Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Bugs with new version

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Thu Feb 14, 2008 1:23 am    Post subject: Bugs with new version Reply with quote

I've found a couple of installation problems with v1.0.0...

In "includes/functions.php", you want to find:
Code: ›          // We do not want the cron script to be called on error messages
         define('IN_CRON', true);
         
         if (defined('IN_ADMIN') && isset($user->data['session_admin']) && $user->data['session_admin'])
         {
            adm_page_footer();
         }
         else
         {
            page_footer();
         }

         exit;
      break;

This should actually be:
Code: ›          // We do not want the cron script to be called on error messages
         define('IN_CRON', true);
         
         if (defined('IN_ADMIN') && isset($user->data['session_admin']) && $user->data['session_admin'])
         {
            adm_page_footer();
         }
         else
         {
            page_footer();
         }

         exit_handler();
      break;


You don't actually need to do this line either:
Code: ›       'L_GALLERY2'       => $user->lang['GALLERY2'],

phpBB will automatically use the "GALLERY2" language text.
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Bugs with new version  

Back to top
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Thu Feb 14, 2008 2:10 am    Post subject: Re: Bugs with new version Reply with quote

I also recommend replacing:
Code: › <!-- IF S_G2IC_LBURL -->
 <script type="text/javascript" src="./g2image/jscripts/prototype.js"></script>
<script type="text/javascript" src="./g2image/jscripts/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="./g2image/jscripts/lightbox.js"></script>
<link rel="stylesheet" href="./g2image/css/lightbox.css" type="text/css" media="screen" />
<!-- ENDIF -->


with:
Code: › <!-- IF S_G2IC_LBURL -->
 <script type="text/javascript" src="{ROOT_PATH}g2image/jscripts/prototype.js"></script>
<script type="text/javascript" src="{ROOT_PATH}g2image/jscripts/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="{ROOT_PATH}g2image/jscripts/lightbox.js"></script>
<link rel="stylesheet" href="{ROOT_PATH}g2image/css/lightbox.css" type="text/css" media="screen" />
<!-- ENDIF -->


in overall_header.html in the Lightbox installation instructions.
Back to top
Offline View user's profile Send private message
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Thu Feb 14, 2008 2:29 am    Post subject: Re: Bugs with new version Reply with quote

I noticed that the close and loading images for Lightbox don't display either. The problem is with the paths set in the lightbox.js file.

I fixed this by doing the following:

Removed:
Code: › var fileLoadingImage = "images/loading.gif";      
var fileBottomNavCloseImage = "images/closelabel.gif";


from lightbox.js and added:
Code: › &lt;script type="text/javascript">
// <![CDATA[
var fileLoadingImage = "{ROOT_PATH}g2image/images/loading.gif";      
var fileBottomNavCloseImage = "{ROOT_PATH}g2image/images/closelabel.gif";
// ]]>
&lt;/script>


to overall_header.html in the:
Code: › <!-- IF S_G2IC_LBURL -->
<!-- ENDIF -->

section.

Smile Hope you don't mind all the reports... Razz
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1144

PostPosted: Thu Feb 14, 2008 10:36 am    Post subject: Re: Bugs with new version Reply with quote

Thanks! Reports are always good! Smile I'll look at adding this to the 1.0.1 version, I want to see how the phpbb review goes first...

The first post needs to be fixed for sure, especially the find instruction. (That's probably left over from the phpbb3 beta versions)

The second is a good suggestion on the path settings.

Third is a nice fix! I've noticed the images do not work. I was trying to keep the g2image as simple as possible because it is an externally developed feature and I was trying to keep it as much of a simple drop-in as possible. Your fix is fairly simple, though.

I'll look into adding these. Thanks a lot...input appreciated! Smile
Back to top
Offline View user's profile Send private message
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Thu Feb 14, 2008 10:55 am    Post subject: Re: Bugs with new version Reply with quote

Glad I could be of service mate.
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1144

PostPosted: Thu Feb 14, 2008 4:18 pm    Post subject: Re: Bugs with new version Reply with quote

There is no need to modify the lightbox.js file if you change the code in overall_header like this...

Instead of:
Code: › // <![CDATA[
var fileLoadingImage = "{ROOT_PATH}g2image/images/loading.gif";     
var fileBottomNavCloseImage = "{ROOT_PATH}g2image/images/closelabel.gif";
// ]]>


Use this:
Code: › // <![CDATA[
fileLoadingImage = "{ROOT_PATH}g2image/images/loading.gif";     
fileBottomNavCloseImage = "{ROOT_PATH}g2image/images/closelabel.gif";
// ]]>


This simply sets the vars to new values and leaves lightbox.js the way it is.

That still doesn't fix the "prev" and "next" images that are defined in lightbox.css. These should pop up on the lightbox image if there is more than one image posted in the msg. Will have to look into that one some more.
Back to top
Offline View user's profile Send private message
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Fri Feb 15, 2008 7:36 am    Post subject: Re: Bugs with new version Reply with quote

Thanks for that. You can do that and it will work.

Only thing though, remember to move the CDATA script so that it appears AFTER the line that loads "lightbox.js". Took me half an hour to figure that out. Lol.

I never even realised the prev and next images were missing. I'll look into that as well.
Back to top
Offline View user's profile Send private message
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Fri Feb 15, 2008 7:47 am    Post subject: Re: Bugs with new version Reply with quote

Well, to fix the "prev" and "next" images,

move the Gallery2 Javascript code in "template/overall_header.html" UP so that it comes before the
Code: › <link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />

line.

Then, edit "theme/buttons.css" and add the following to the END of the file:
Code: › #prevLink, #nextLink{
   background: transparent url({ROOT_PATH}/g2image/images/blank.gif) no-repeat; /* Trick IE into showing hover */
   }
#prevLink:hover, #prevLink:visited:hover { background: url({ROOT_PATH}/g2image/images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url({ROOT_PATH}/g2image/images/nextlabel.gif) right 15% no-repeat; }

I picked "buttons.css" because that seemed the most appropriate as the images are buttons in a way.
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1144

PostPosted: Fri Feb 15, 2008 10:55 am    Post subject: Re: Bugs with new version Reply with quote

Quote: › Only thing though, remember to move the CDATA script so that it appears AFTER the line that loads "lightbox.js". Took me half an hour to figure that out. Lol.

Yeah, sorry, it needs to be after loading lightbox.js so it can overwrite the values set by lightbox.js

Quote: › Well, to fix the "prev" and "next" images,

Nice! I'll try that out...thanks!
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1144

PostPosted: Fri Feb 15, 2008 1:16 pm    Post subject: Re: Bugs with new version Reply with quote

jettyrat wrote: ›
Quote: › Well, to fix the "prev" and "next" images,

Nice! I'll try that out...thanks!


That works nicely, but only for prosilver.

What you have there works perfectly well, but for the integration package, I added a lightbox_overrides.css to both prosilver and subsilver2 and then added a line to overall_header.html to load the override file after lightbox.css is loaded. Only drawback with this is the paths are hard-coded in the override file, but that is the way subsilver's stylesheet.css file is anyway; it's not parsed like prosilver's style sheet.css, so things like {ROOT_PATH} don't work in subsilver2.

lightbox_overrides.css (in styles/xxxsilver/theme directory)
Code: › /* ********************************************************************************
 * fix that allows prev and next buttons to show up on lightbox images
 */
#prevLink, #nextLink {
   background: transparent url(../../../g2image/images/blank.gif) no-repeat; /* Trick IE into showing hover */
}

#prevLink:hover, #prevLink:visited:hover {
   background: url(../../../g2image/images/prevlabel.gif) left 15% no-repeat;
}

#nextLink:hover, #nextLink:visited:hover {
   background: url(../../../g2image/images/nextlabel.gif) right 15% no-repeat;
}


overall_header.html mod
Code: › <link rel="stylesheet" href="{ROOT_PATH}g2image/css/lightbox.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="{T_THEME_PATH}/lightbox_overrides.css" />
Back to top
Offline View user's profile Send private message
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Sat Feb 16, 2008 4:33 am    Post subject: Re: Bugs with new version Reply with quote

As I have my gallery2.php file outside of my forum directory, I can't really do the hard coded paths thing.

I didn't realise that Subsilver doesn't have the CSS files parsed. How strange.

Oh well, I'm glad you could make some kind of change to fix this problem. Keep up the great work.
Back to top
Offline View user's profile Send private message
denney

Novice
Novice


Joined: Dec 24, 2007
Posts: 28

PostPosted: Sun Feb 17, 2008 6:08 am    Post subject: Re: Bugs with new version Reply with quote

Your way is actually better because one problem I just noticed was that, because I had the "g2embed_overrides.css" included before the style stylesheet it wasn't actually overriding anything and looked horrible! Smile
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia