| Author |
Message |
jaxon121
Beginner


Joined: Apr 09, 2007 Posts: 2
|
Posted: Tue Jul 03, 2007 7:08 pm Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
I've run into a few problems and I'm not even 10% through the instructions on integration_mods.txt.
First, the default style that came with my phpBB3 (3.0.RC2) is subSilver2, not subSilver. The SQL queries listed in the instructions reference subSilver in at least one place... will this affect the installation?
Second, I'm attempting to follow the directions for editing memberlist.php.
Code: ›
#
#-----[ FIND ]------------------------------------------
#
'U_REMOVE_FOE' => ($foe) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&remove=1&usernames[]=' . $user_id) : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'GALLERY_IMG' => $user->img('icon_user_gallery', $user->lang['GALLERY']),
'L_GALLERY' => $user->lang['GALLERY'],
'L_GALLERY_HEADER' => (isset($member['gallery_count'])) ? sprintf($user->lang['GALLERY2_LINKMOD'], $member['username'], $member['gallery_count']) : '',
'L_GALLERY_MORE' => $user->lang['GALLERY_MORE'],
'S_GALLERY' => (!empty($member['allLinks'])) ? true : false,
'S_GALLERY_MORE' => ($member['gallery_totalcount'] > $member['gallery_count']) ? true : false,
'U_GALLERY' => ($member['user_gallery'] && !empty($member['link'])) ? append_sid("{$phpbb_root_path}gallery2.$phpEx", 'g2_view=core.ShowItem&g2_itemId=' . $member['user_gallery']) : '',
#
#-----[ FIND ]------------------------------------------
#
$i = 0;
foreach ($id_cache as $user_id => $row)
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Grab Gallery link permission
$sql = 'SELECT link FROM ' . GALLERY2_TABLE;
$row = $db->sql_fetchrow($db->sql_query_limit($sql, 1));
$gallery_link = $row['link'];
#
The section listed above can't be followed, since the FIND results in zero matches in the entire file. Any ideas on this??
Am I doing something horribly wrong? Is the most recent version of the integration pack obsolete? Am I simply better off installing phpbb2 and waiting till the official release of phpbb3?
[/code] |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
|
|
|
| Back to top |
|
 |
mrmikehammond
Novice


Joined: Jun 12, 2007 Posts: 23 Location: U.K.
|
Posted: Wed Jul 04, 2007 1:42 pm Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
The integration package your trying is an old one meant for the "Olympus" Beta versions, now RC2 has come out the code is being re-written so currently there isn't a working solution. We're all waiting with baited breath  |
|
| Back to top |
|
|
mrmikehammond
Novice


Joined: Jun 12, 2007 Posts: 23 Location: U.K.
|
Posted: Fri Jul 06, 2007 1:04 pm Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
Any news yet Dari  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Wed Jul 11, 2007 6:49 am Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
| no, i've done multiple pings on the guy working the RC2 (now RC3) work, and haven't gotten any response yet. |
|
| Back to top |
|
|
HelterSkelter
Beginner


Joined: Jul 10, 2007 Posts: 2
|
Posted: Wed Jul 11, 2007 11:00 pm Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
find
Code: ›
'U_REMOVE_FOE' => ($foe) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&remove=1&mode=foes&usernames[]=' . $user_id) : '',
after, add
Code: ›
'GALLERY_IMG' => $user->img('icon_user_gallery', $user->lang['GALLERY']),
'L_GALLERY' => $user->lang['GALLERY'],
'L_GALLERY_HEADER' => (isset($member['gallery_count'])) ? sprintf($user->lang['GALLERY2_LINKMOD'], $member['username'], $member['gallery_count']) : '',
'L_GALLERY_MORE' => $user->lang['GALLERY_MORE'],
'S_GALLERY' => (!empty($member['allLinks'])) ? true : false,
'S_GALLERY_MORE' => ($member['gallery_totalcount'] > $member['gallery_count']) ? true : false,
'U_GALLERY' => ($member['user_gallery'] && !empty($member['link'])) ? append_sid("{$phpbb_root_path}gallery2.$phpEx", 'g2_view=core.ShowItem&g2_itemId=' . $member['user_gallery']) : '',
find
Code: ›
for ($i = 0, $end = sizeof($user_list); $i < $end; ++$i)
{
$user_id = $user_list[$i];
$row =& $id_cache[$user_id];
after, add
Code: ›
// Grab Gallery link permission
$sql = 'SELECT link FROM ' . GALLERY2_TABLE;
$row = $db->sql_fetchrow($db->sql_query_limit($sql, 1));
$gallery_link = $row['link'];
|
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Thu Jul 12, 2007 9:58 am Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
| is this a change to the existing MOD? |
|
| Back to top |
|
|
HelterSkelter
Beginner


Joined: Jul 10, 2007 Posts: 2
|
Posted: Thu Jul 12, 2007 8:24 pm Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
| no, the "find" code in memberlist.php / phpbb3.0.RC3 has changed from RC2 |
|
| Back to top |
|
|
ShogunFranky
Beginner


Joined: May 29, 2007 Posts: 1
|
Posted: Tue Jul 24, 2007 12:11 am Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
Any word on the new RC3 integration mod yet?  |
|
| Back to top |
|
|
Timba92
Beginner


Joined: Aug 09, 2007 Posts: 2
|
Posted: Thu Aug 09, 2007 3:36 am Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
I can't even extract the package win i download/unzip. Winzip asks me
"Please enter the full name of the file contained within the archive phpBB3_003.gz. For example, if the contentsis a DOC file . a recommended file name is phpBB3_003.DOC"
So I tried .txt and .doc but it still won't open. Why would I be having this problem over somthing that should be so simple? |
|
| Back to top |
|
|
Myaj
Novice


Joined: Aug 09, 2007 Posts: 24
|
Posted: Thu Aug 09, 2007 1:56 pm Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
| Took a while to figure out just how to download (with the multiple registrations) but thank you. |
|
| Back to top |
|
|
Timba92
Beginner


Joined: Aug 09, 2007 Posts: 2
|
Posted: Sat Aug 11, 2007 3:26 am Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
I have tried PowerArchive and WinZip but my computer still doesn't recognize the file. What am I doing wrong here? I get the file name "phpBB3_003[1]". Thats all I get. I can't read it or execute it or feed it to my dog. What the hell am I supposed to do with it? PLEASE HELP!!!!!!!  |
|
| Back to top |
|
|
jamcgee
Beginner


Joined: Jun 01, 2007 Posts: 7
|
Posted: Tue Aug 21, 2007 8:14 am Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
Hi
I've just installed this package into phpBB3 rc4 without much of a problem. Although I had to leave out some of the code.
Coded used to prosilver http://www.weimaranerforum.net/gallery2prosilver.htm
I have one question:
Does this mod allow you to insert Gallery images into posts ie via g2image/g2image.php
If yes it doesn't appear to work. I would have thought that for this to work some code would be required in bbcode.php or editor.js |
|
| Back to top |
|
|
jamcgee
Beginner


Joined: Jun 01, 2007 Posts: 7
|
|
| Back to top |
|
|
timnsal
Novice


Joined: Aug 08, 2007 Posts: 25
|
Posted: Tue Aug 21, 2007 11:19 am Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
jamcgee wrote: › Hi
I've just installed this package into phpBB3 rc4 without much of a problem. Although I had to leave out some of the code.
Coded used to prosilver http://www.weimaranerforum.net/gallery2prosilver.htm
I have one question:
Does this mod allow you to insert Gallery images into posts ie via g2image/g2image.php
If yes it doesn't appear to work. I would have thought that for this to work some code would be required in bbcode.php or editor.js
The files you ned to change are posting_buttons.html in the template folder to call g2ic_open with postform instead of post, and functions.js in the g2image jscripts folder |
|
| Back to top |
|
|
jamcgee
Beginner


Joined: Jun 01, 2007 Posts: 7
|
Posted: Tue Aug 21, 2007 1:35 pm Post subject: Re: phpBB3/Gallery2 Integration Package |
|
|
timnsal wrote: ›
The files you ned to change are posting_buttons.html in the template folder to call g2ic_open with postform instead of post, and functions.js in the g2image jscripts folder
I've changed posting_buttons.html
From:
Code: › <input type="button" class="btnbbcode" name="g2image" value="g2Img" onclick="g2ic_open('post', 'message');" onmouseover="helpline('g')" onmouseout="helpline('tip')" />
to:
Code: › <input type="button" class="btnbbcode" name="g2image" value="g2Img" onclick="g2ic_open('postform', 'message');" onmouseover="helpline('g')" onmouseout="helpline('tip')" />
And am now getting
Quote: › [img]http://localhosthttp://localhost/phpBB3/gallery2.php?g2_itemId=38&g2_view=core.DownloadItem[/img][img]
Could you please post the required edit for functions.js as I'm not sure what to change.
Thank you
Gareth |
|
| Back to top |
|
|
|
|
|
|
|