Posted: Fri Mar 14, 2008 2:02 pm Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
I have a new set of files if it helps identify lingering issues. I guess that means there is a version 0.5.12 now.
Here is the changelog I have so far...
Code: › 2008-03-14 Dariush Molavi <dari@nukedgallery.net> 0.5.12
* Fix: Changed template_mods.txt to subSilver_mods.txt so README is correct.
* Fix: Added missing copy line for admin/gallery2_unmap.php in
integration_mods.txt.
* Fix: Removed the $db->sql_freeresult($result); line from
includes/usercp_viewprofile.php in integration_mods.txt.
* Fix: FIND instruction in subSilver_mods.txt.
* Fix: sql statement in admin_gallery2.php so initial setup runs properly
with empty phpbb_gallery2 table.
* Fix: FIND instruction in lightbox_mods.txt so lightbox now works in
posting preview.
* Fix: Added mod instructions to lightbox_mods.txt so lightbox now works in
viewtopic.
* Fix: Added to lightbox_mods.txt per phpBB3 mods so lightbox "loading" and
"close" icons now work.
* Fix: Added lightbox_overrides.css file per phpBB3 mods so lightbox "prev"
and "next" icons now work.
* Thanks to PoPoutdoor for help in identifying and fixing the majority of
these issues.
That is the only thing I had a problem with, but it only happens with a clean install and empty gallery2 table. That's why I didn't see it before.
Quote: › 2. Lightbox mod
There was still a problem with viewtopic, so I had to add some more mod code. The js stuff only needs to go in overall_header.tpl. Here is the mod file I have that is working on mine:
Code: › ##############################################################
## MOD Title: Gallery2 Integration Mod
## MOD Author: jettyrat <jettyrat@jettyfishing.com> (Scott Gregory) http://jettyfishing.com
## MOD Description: This mod integrates phpBB2 and Gallery2. See the Readme.
## MOD Version: 0.5.12
##
## Installation Level: Intermediate
## Installation Time: 10 Minutes
## Files To Edit: includes/bbcode.php,
## includes/page_header.php,
## includes/viewtopic.php,
## templates/subSilver/bbcode.tpl,
## templates/subSilver/overall_header.tpl,
## Included Files: templates/subSilver/lightbox_overrides.css
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes: Support for this mod can be found at http://www.nukedgallery.net
##
##############################################################
## MOD History: See ChangeLog
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy phpBB2/templates/subSilver/lightbox_overrides.css to templates/subSilver/lightbox_overrides.css
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Replace all the < with < and the > with >
Quote: › 3. g2helper.inc, mapAllGalleryLinks function code
I think the function only for "user gallery / gallery link in profile" mods
That's right.
Quote: › About lightbox:
My fix only good at preview and viewtopic, BUT the image path errors when g2Image popup.
1. How to fix the path issue?
2. No error message about image access rights, such as Guest not allow to view full size image.
3. Does lightbox support selecting resized image?
4.Gallery is embed only, lburl not works if I changed the generated path from ./gallery2/main.php to ./gallery2.php
1. I don't have a path issue, so not sure what you mean!
2. I have not tried experimenting with permissions and access restrictions so not sure. I would think that if g2image is using the imageblock module that permissions are respected, but not sure about the image link generated in the bbcode. Will have to look into that some time.
3. You mean g2image? That is supposed to be included in the next release of g2image, but currently it does not support resized images.
4. I'm not following that one. What needs changing?
Posted: Tue Mar 18, 2008 2:35 pm Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
Where are the two instances of the code block - in the page source? Mine doesn't have this problem. Are you sure you don't have double mods somewhere - overall_header.tpl?
I noticed an issue in the lightbox mods - this:
Code: › <!-- BEGIN lburl --><a href="{LBURL}" class="postlink" rel="lightbox[g2image]">{DESCRIPTION}</a><!-- END url -->
Should be:
Code: › <!-- BEGIN lburl --><a href="{LBURL}" class="postlink" rel="lightbox[g2image]">{DESCRIPTION}</a><!-- END lburl -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
3. Lightbox features Mods
Customized, only for viewtopic page.
(the lightbox related javascripts conflicts with MultiBBcode mode, I have to remove that to get my posting page javascripts works again)
Posted: Fri Mar 21, 2008 1:12 am Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
I've been installing/uninstalling this a few times with my test board and I've run into a few issues after installing it on my main board. I'm hoping you can two can clear these bugs up (thanks for tackling this PoPoutdoor - I know Jetty's busy tackling phpBB3 stuff.) These bugs do not include the fixes here - I'm not sure which ones I should definitely implement.
Why Switches around Lightbox Scripts?
In the install directions for the lightbox it says :
(I'm changing the greater than/less than signs in this post to brackets because the board won't let me post the code as it is in the install directions.)
However, as far as I can tell, there is no option in the Admin panel anywhere that lets you turn off lightbox, no "switch_enable_lightbox" option. I had to remove the switches in order to get the lightbox option on the g2image feature to work. Is this option missing - why are there switches on this code?
g2Image Thumbnails disappear if you edit your post sometime later
Also, it seems that if you use the lightbox option in g2image and then go back and edit your original post sometime later, the g2image thumbnails revert back to normal [lburl] codes and no thumbnails are displayed. I guess that might have something to do with the session codes that are included, but it's a bug I noticed when I went back and edited a post where I explained how to use the new features on my board.
Take a look at those "bugs" if you are looking for more bug reports.
Last edited by gondee on Fri Mar 21, 2008 3:53 am; edited 1 time in total
Posted: Fri Mar 21, 2008 3:42 am Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
gondee,
To be honest, I'm not a programmer. For two years of maintaining 3 phpBB2 sites(1 is phpBBplus), I learned some tricks on applying and fixing mods.
I didn't make "Gallery Profile Mod / All Gallery Links In Profile Mod" works in 0.5.10 and 0.5.11 for my last mod test. I will test that part again later on.
1. About Lightbox mod:
- 0.5.11 package doesn't have options to disable Lightbox features.
- If you don't want to use Lightbox, skip the lightbox mods.
- the template switch code output ONLY if you have the [lburl]...[[/lburl] tags in post message.
2. g2Image in post:
Agrees with the "session" guess, but I didn't noticed missing thumbnail display.
I will take closer look at the code. hope I can find some useful info there.
Meanwhile, I'm working on remove Lightbox features from g2image popup window, take a look on my upgrade instructions on first post.
Posted: Fri Mar 21, 2008 3:55 am Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
That's okay Popoutdoor - I'm pretty much the same as you are in that regard. You seem to understand more about PHP than I do though.
Sorry guys, I was instituting some bugfixes here when the whole thing went to hell and even my backup files wouldn't work. I edited my message above to remove all the examples from my site as the integration is not installed there anymore. I had to backup to before I started the install - I'm going to give it one last try tomorrow night and if that doesn't work I'm going to uninstall the whole thing. My board is so heavily modded I think it might be unfair to expect you guys to fix all my problems.
Posted: Sun Mar 23, 2008 3:46 am Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
I'm testing the "cleanup" version of g2image by now.
If everything seems OK, I'll post update here soon.
gondee,
I'm a computer user back to the DOS era
And now, my home networks is Linux only
Before my friend ask me to setup his personal site, I don't even know php exists
Besides of code sharing, I think opensource spirit encourage self-learning too
The facts from daily apache log, I have to catch up every new tricks before my server got hacked!
Posted: Mon Mar 24, 2008 10:12 pm Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
I thought you said you were no programmer!
I may implement your preg expression to cut out the g2 session id in g2image links in the phpbb3 integration as well.
Just curious why you cut up the g2image code so much? The idea was to leave as a drop-in for future upgrades of the g2image code and the references to word press and drupal aren't really hurting anything by being in there.
Posted: Wed Mar 26, 2008 5:28 am Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
jettyrat,
I can write some lines of code doesn't mean I'm as smart as you guys. Creating something like the G2 integration package needs more skills that I may never achieved.
Quote: › Just curious why you cut up the g2image code so much?
The short answer: I only have phpbb2.
The long answer: The g2image package is too complicated for me to trace. Just commented out code I can't follows. After the cleanup, I start adding code for the resized image.
For g2image, I think current code should changed to more modular way, which loads only those javascripts as needed.
Good new: My test g2image code now returns resized image url for lightbox. I'm going to add resized selection to g2image.
Some help needed: How to deal with the Language part?
Posted: Wed Mar 26, 2008 9:21 am Post subject: Re: Upgrade instructions (0.5.10 to 0.5.11)
Quote: › I can write some lines of code doesn't mean I'm as smart as you guys. Creating something like the G2 integration package needs more skills that I may never achieved.
Yeah well, that's how it starts!
I'd be interested in your changes for the re-sized image. The next version of g2image is supposed to include this also.
Quote: › Some help needed: How to deal with the Language part?
Try this: http://www.poedit.net/ [poedit.net] I have not tried it myself, but it turned up on google search as possibility.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum