vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Image Gallery v1.0 (https://vborg.vbsupport.ru/showthread.php?t=21602)

mojotim 08-11-2001 05:49 AM

Yes, I updated to 2.03.

I just checked my gallery php files and they are the same as the last zip. So, know changes were made and mine works.

fmoise99 09-14-2001 05:15 PM

Quote:

Originally posted by RobAC
This hack no longer seems to work after upgrading vBulletin 2.0.3. I've rehacked the functions.php file and reran the gallery installation hack and for some reason, the page navigation does not show up on gallery.php and the page will not load in netscape. No matter what changes you make to the options in the Admin CP, they don't work.
That is true. I am having the same problem. Appearently, vbulletin changed the page navigation style they were using and now the page navigation does not work on the image gallery. I checked, the template names were changed.

Does anyone have the new code that will fix this?

ToraTora! 09-14-2001 06:06 PM

Quote:

Originally posted by RobAC
This hack no longer seems to work after upgrading vBulletin 2.0.3. I've rehacked the functions.php file and reran the gallery installation hack and for some reason, the page navigation does not show up on gallery.php and the page will not load in netscape. No matter what changes you make to the options in the Admin CP, they don't work.
I noticed you said netscape...it is possible that the tables are not showing up for nutscrape. it happened with a couple of things before i tried to add..
Try using IE, and if that doesnt display, than i would take a look at your tables in MYSQL, and see if there is any info going in or out. I am assuming that the pics are strored in a folder, so it is possible that the folder is no longer chmodded or even there to begin with..of course, i am just throwing out loose ideas here, so dont bite my head off.

fmoise99 09-14-2001 08:14 PM

The real problem is with the page navigation. If I can get my hands on the old vbulletin 2.01 templates numbernav and numbernav_pages.

That would fix the page navigation problem without modifying code.

Delhaze 09-17-2001 11:12 AM

I managed to get this working on IIS 5 on Windows 2000 Server.

I have a few questions

I changed the line

PHP Code:

system("$galleryconvert -geometry '160x120>' $path -flatten -quality '75' JPEG:$thumbname"); 

to

PHP Code:

system("$galleryconvert -geometry 160x120 $path -flatten -quality 75 JPEG:$thumbname"); 

as the convert was creating 0 length files.

What are the ' and > for ?

I also had to //comment out the
PHP Code:

if ($filesize != 0

line as the test was always failing.

Any idea why?

phumphries 09-17-2001 11:53 AM

All the galleries that I checked out had the same problem with an unclosed table.

If you can get through the spurious HTML errors on this validator, you will see that there is a FORM embedded improperly and an unclosed table. IE doesn't care, but NS does crap out.

(Corvette Action Center: I hope that you do not mind that I used your gallery as an example.)

RobAC 09-17-2001 12:16 PM

Quote:

Originally posted by phumphries
All the galleries that I checked out had the same problem with an unclosed table.

(Corvette Action Center: I hope that you do not mind that I used your gallery as an example.)

Not at all. I had looked into the problem a while ago and couldn't figure out what the problem was given the amount of time I had to look into. I dropped it for a while, but will go back and revisit it now. Thanks!

-Rob Loszewski, Site Administrator
Corvette Action Center

Delhaze 09-17-2001 04:15 PM

Quote:

Originally posted by Delhaze
What are the ' and > for ?
Answering my own question.

I read the docs and found out the > stops it making images smaller than the thumbnail size bigger.

I've put it back in and it is working OK.

RobAC 09-20-2001 06:46 PM

Quote:

Originally posted by fmoise99
The real problem is with the page navigation. If I can get my hands on the old vbulletin 2.01 templates numbernav and numbernav_pages.

That would fix the page navigation problem without modifying code.

Does anyone have an update for this? This hack would work perfectly if either numbernav templates were made (I no longer have these after upgrading to 2.0.3), or if the code in gallery.php was corrected to utilize the correct templates.

Delhaze 09-25-2001 11:01 PM

I didn't have enough images on my board to require page navigation until now, so I couldn't see the bug some of you had noticed.

But I do now.

Anyway I had a look in an old backup and found the required templates.

As they are no longer in use I hope it's not a problem posting the code here.

numbernav
PHP Code:

 $firstpage_atag<<$endfirstprevtag  &nbsp$prevpage_atag<$endfirstprevtag  &nbsp$pagenumbers $nextpage_atag>$endlastnexttag  &nbsp$lastpage_atag>>$endlastnexttag 

numbernav_pages
PHP Code:

 $numbernav_atag$curpage$endpagetag  &nbsp

I have tested them and they are working fine. :cool:


All times are GMT. The time now is 04:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01187 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete