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:

RobAC 09-26-2001 12:12 AM

THANKS!!!!!! :D

Kengan 09-26-2001 12:13 PM

Where is the new version ?

maverick1236 09-26-2001 05:59 PM

anyone get this up on a windows machine yet?

Delhaze 09-26-2001 07:31 PM

Quote:

Originally posted by Maverick1236
anyone get this up on a windows machine yet?
Try looking above

clubplanet 10-05-2001 06:28 PM

I think I finally have this working...

http://bbs.clubplanet.com/gallery.php

But it is INCREDIBLY slow. Is it supposed to be this slow? The rest of the site is not... Thinking maybe I did something wrong.

Anyone?

TechTalk 12-06-2001 08:33 PM

Is there an updated version for VB 2.0.3? /admin/functions.php is completely different and the "acceptupload" function is no longer existing :( I cant get it to work on 2.0.3 for anything and I had it working perfectly before.

Please help

TechTalk 12-15-2001 08:35 PM

BUMP!

How about an updated version for 2.2.1? This was a main feature on my site and I was forced to remove it because it didnt work with 2.2.1

talon3dhq 12-20-2001 04:58 PM

I have to agree. This is a great hack, and I even had my New host install ImageMagik so I could is this, and now I can not.. Hope there is a 2.2.1 version coming out soon!!

Talon

Gutspiller 01-05-2002 08:47 PM

Somebody mind explaining what this hack does, since I can't find a description for it? :confused:

TechTalk 01-07-2002 04:34 AM

It doesnt do S-H-I-T anymore, since noone can take the time to make it compatible with ther latest version of VB

gabs 01-18-2002 08:23 PM

I got this working with minor modifications after upgrading a 2.0.3 board that had a working gallery in it. I have no idea if this will work in other cases.

Anyways, what I did was this:

follow the instructions in gallery.txt, untill you get to :
Quote:

Find function acceptupload() (Line 1277):
Find (Line 1347):
...
Skip the whole part, and Do this instead:

Find function acceptupload():

Find:
PHP Code:

fclose($filenum);
unlink($attachment); 

Replace it with:
PHP Code:

fclose($filenum);
//unlink($attachment); //galhack 


Find:
PHP Code:

$attachmentid=$DB_site->insert_id(); 

Replace it with:
PHP Code:

$attachmentid=$DB_site->insert_id();
makeThumb($attachmentid$attachment_name$attachment); //galhack
unlink($attachment); //galhack 

And then follow further instructions in gallery.txt from CONTROLL PANEL OPTIONS.


That's all folks

"This is all i actually had to do too get it working, as I did a code comparison upgrade..."

Gutspiller 01-18-2002 08:35 PM

What if I have a 2.0.3 board? Will the original code work? and WHAT DOES THIS HACK DOOOOO? :frus:

gabs 01-18-2002 08:43 PM

oh it works great with 2.0.3 -

What it does, well it gives you an Image gallery on your forum.
It makes thumbnails of all attachments, and provides easy access to them and theyr post..

oh hell, heres a screenshot - a picture say's more than a thousand words ( the "please select image gallery" is your forums list ):

Steph2k 02-18-2002 04:23 PM

Do Gabs modifications work for 2.2.2???

Steph

gabs 02-18-2002 04:38 PM

they work for me.. :)

fmoise99 03-06-2002 09:05 PM

Worked fine for me too. :D

AndyTSJ 04-28-2002 06:27 PM

Seems like a while since this hack was last discussed ! Anyone still running it, using vbulletin2.2.2 + ?

george_proost 04-30-2002 11:55 AM

:chinese:

TechTalk 04-30-2002 08:16 PM

Quote:

Originally posted by george_proost
:chinese:
It doesnt work on 2.2.x without an assload of changes. I have been there and tried it, and none of the instructions match up with the code.

AndyTSJ 05-01-2002 05:17 PM

That's what I suspected after reading some of the earlier posts. Sounds like some folks were making a ton of code changes that were not documented in the original installation instructions, making it an extremely difficult hack to install.

memobug 07-27-2002 07:02 AM

Does anyone have this running with 2.2.6?

Is this one dead? Too bad, I think it's exactly what I need. I have photopost, but this sounds like it integrates much more tightly with the vB forum.

george_proost 07-31-2002 09:57 AM

on 2.2.6 as well

:bandit:

Dark_Wizard 08-06-2002 03:18 PM

Quote:

Originally posted by george_proost
on 2.2.6 as well

:bandit:

That's funny...your forums are version 2.2.1. Do you have a url for us to see it? Otherwise I will work on this as I need something for one of my customers.

Freefall 10-11-2002 11:11 PM

Hey,

I have installed it and everything, but there is a slight problem - the page is blanc. I did everything right, but the templates didn't install. If I can't find a way, i wouldn't mind just creating them myself if someone could attatch them for me :)

Thanx

NTLDR 10-27-2002 06:54 PM

After a bit of trial and error I got this working on vB 2.2.8, very nice hack indeed.

Thanks for sharing, this is just what I needed :D

Brad 10-30-2002 04:28 AM

Anyone care to share how they got it working?

Dark_Wizard 10-30-2002 12:39 PM

Actually it is easy to get it working but requires a few changes if you have PPN's "Attachments as Files" hack. I looked it over quickly and made changes to the original install file...try the one I attached and let me know if it works.

Brad 11-27-2002 05:49 AM

I have attachments as files installed :(, anyone care to edit the code to work with it? i really need a gallery.

94supratt 01-13-2003 11:02 PM

I got no thumbs. I get this when I run debug...

"perpage = 10
galrows = 5
galcols = 2
gallerypage = Image Gallery
gallerytitle = Image Gallery
SELECT COUNT(*) as thumbs FROM post LEFT JOIN thumb ON post.attachmentid=thumb.attachmentid LEFT JOIN thread on post.threadid=thread.threadid WHERE post.attachmentid AND post.visible=1 AND thumb.attachmentid IS NOT NULL
Total thumbs: 259
SELECT thumb.attachmentid, post.postid, post.title FROM post LEFT JOIN thumb ON post.attachmentid=thumb.attachmentid LEFT JOIN thread on post.threadid=thread.threadid WHERE post.attachmentid AND post.visible=1 AND thumb.attachmentid IS NOT NULL ORDER BY thread.forumid, post.dateline DESC LIMIT 0,10
Row: 0, Col: 0
Row: 0, Col: 1
Row: 1, Col: 0
Row: 1, Col: 1
Row: 2, Col: 0
Row: 2, Col: 1
Row: 3, Col: 0
Row: 3, Col: 1
Row: 4, Col: 0
Row: 4, Col: 1
"

Natch 01-14-2003 02:56 PM

I got this working on 2.2.9 after a bit of work ... added an auto-centering popup script to round it out ...

http://www.mobileforces.org/forums/gallery.php


All times are GMT. The time now is 02:33 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.01443 seconds
  • Memory Usage 1,838KB
  • 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
  • (9)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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