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)

Zamtil 07-13-2001 10:35 PM

It won't try to remake thumbnails that are already in the database. Did you run gallerymakethumbs.php with the --flatten option enabled originally?

Edit your functions.php and comment out the line:

unlink($thumbname);

in function makeThumb. Then try posting a new message with an image attachment. Go to your /tmp directory and see if a thumb_{random stuff} file was created and is greater then 0 bytes.

Also, are you running in safemode?

RobAC 07-13-2001 10:38 PM

Originally....no.

I'm not running in safe mode. I'll try and post an image...

RobAC 07-13-2001 10:39 PM

I am finding a discrepancy in the database. Record #31 is missing which is the record it's trying to make out of a text file attachement somewhere in the forums.

mojotim 07-13-2001 10:41 PM

bingo!
I posted an image

Zamtil 07-13-2001 10:42 PM

Quote:

Originally posted by RobAC
I am finding a discrepancy in the database. Record #31 is missing which is the record it's trying to make out of a text file attachement somewhere in the forums.
Yeah, the way things work, gallerymakethumb.php just runs through ALL attachments, writes them to disk, and then calls function makeThumb on it. function makeThumb does the check to see if the file is a valid GIF/JPG/PNG, whereas gallerymakethumb.php prints out the processing message. It's nothing to worry about, just a silly bug because I wrote gallerymakethumb.php in 5 minutes. =)

RobAC 07-13-2001 10:42 PM

I wonder if I should just delete everything and try running the install script again???

RobAC 07-13-2001 10:43 PM

Quote:

Originally posted by mojotim
bingo!
I posted an image

Hmmmm.....ok.....cool....so it works with new images posted. ROFL :L What does that mean? :)

Zamtil 07-13-2001 10:45 PM

Quote:

Originally posted by RobAC


Hmmmm.....ok.....cool....so it works with new images posted. ROFL :L What does that mean? :)

Hm, I'm still not showing any images in the gallery.

mojotim 07-13-2001 10:48 PM

I posted it in the test forum

try this:
http://corvetteactioncenter.com/foru...php?forumid=41

RobAC 07-13-2001 10:59 PM

I'm curious....so....if new images that are posted show up in their respective forum ids, does that mean that ImageMagick is working?

mojotim 07-13-2001 11:02 PM

That's the deal, it's working. Something is going wrong with (I think) gallerymakethumbs.php not reading the attachment from the database. At least that's what it seems, I may be mistaken.

RobAC 07-13-2001 11:08 PM

Not sure if this is a clue or not, but if I go into phpmyadmin and look at the file data for the pics that mojotim added, this is what I see:

ÿØÿàJFIFÿÛC $.' ",#(7),01444'9=82<.342ÿÀ ( ÿÄÿÄ/!1A"#Qa2R$Bq‘¡ÁÿÚ?÷ôDDDDDDDDDDDDDDDDDDDDD^W Žñ?(Ëܞ|¾2´x ¼DïˆùVA•¥ý-iSg¾ûhu•mÚÆ[µ'µÖÊ?`ÈÐí¼ôއók¿Ë²ª+øÏ‘·„ Æ#WâF*eæ×\g¯DhµÝôá²Ð¨Ú“cŸÜÃòNC »ò|& ¡á%v—H֞ƒÒ;÷õ÷VMñqµjò 2¸i+ɉ‚¼áÎ$ó[>¼±½“ó7~ºïë¥mÆy½ü¿,³ÇòXx¨Ø†“.u Ekή#Côb¡ó¬–cÌø‹i姊–Bû+X¨Ö3¥ ¢zµÕßz#zÐV¼Ã”ÖÇ ã²xúÙFcò±Ô32yëÈ袸¸4·a½ï]—Á3Ù&fì\~K'gŽGŒÎüœ‚I;t\ø£xfÛý+\ ;s)a÷ñ£# (h:hhb x³Ö7õ&k€".ÚÙ^‹Ârò¼'~üñOnzÍ|²Å®—ï ÛßïùÚ¿DDDD\¡ðã‹;3w+&4Ibï™ç6IèÜ^4òN #Ýe_Ãì| mœóò՞1Žkó<1£Dmß.´=>ÁE…œRZ2Ֆœò É ï³!˜·OÞÀ?åNƒÃþ-9j7Šjí«/Qq2FÒ;ïܵ¯7Áq™,^V -n>æF»+Éj&8µ€4ƒØ€ÛÝUpo…s6òóÏTٞ»+ 6q:8šÖ蓧¹Ä¸‘÷×ávðØìšV.Ԏy©K V{·¸ßû‡ålÉc iåñóPÈWeг7¦HŸèá½ÿÅS†àüg^7q8jÕ, –üÈÁßIÖǯà,3ÜÈ ™¶|£¥¯aðºHÏô8´Ž¦þ »£F®6Œ©@È+@ÀÈâ`ÐkG B""""""""""""ÿÙ

Zamtil 07-13-2001 11:11 PM

I have yet to see a link that displays anything but a blank thumbnail gallery. gallery.php or galler.php?forumid=41.

I'm just viewing as a anonymous user, could this be a permissions issue? ... pretty sure if the user can see the forum, they can see the gallery though.

What was the result of commenting out the unlink statement? Are you getting thumb_xxxx files in your /tmp directory?

RobAC 07-13-2001 11:14 PM

No results with commenting out that line.

if you mean the /tmp directory on my server, no, there are no files there labeled thumb_xxxx

RobAC 07-13-2001 11:35 PM

I think I have to give up with this hack. I've uninstalled it and re-installed it several times, trying everything and nothing works. :(

RobAC 07-14-2001 01:08 AM

Just a comment....I've tried installing this hack so many times, that I just found that when you run the install script....it doesn't rewrite over the old templates...it installs the same ones over and over again, so there are 6-8 of the same template installed. This really should be fixed somehow in the installation script. So how can I mass delete all the templates that were created???

RobAC 07-14-2001 02:15 AM

Well....I've given this hack one more shot and I still can't get it to work. I've upgraded from vB 2.0.0 to 2.0.1....I also had the old version of the gallery zip file from 6/30 before the updated version was released on 7/1. I noticed that when I ran the old install file, the records that were created in the thumb table had data in them....at least when viewed through phpmyadmin, binary code was in each file. However....when after completing the installation, when you go to gallery.php, nothing appeared but a couple of lines and the forum nav bar.

I uninstalled everything. Downloaded the updated (7/1) version and reinstalled it. This time, it only took 2 seconds for the gallerytumbnail script to run....I knew that each record created in the table...was empty. Sure enough, I confirmed it. However, when going to gallery.php, everything appears except the actual thumbnails. So....somewhere along the way, something still isn't right.

The other thing I noticed is that the size of the gallery install script on 6/30 was only 6kb. The released version on 7/1 is 11kb. That's almost double in size. Why would the original 6/30 installation script seem to install data in the records, but the new version does not?

I've tried every single combination of fixes listed in this thread and no matter what I do, I can't get this to run. :(

Sarge 07-14-2001 03:04 PM

<font size="4">ANYONE HELP!</font>

I have posted this serveral times with no response.
How do I make on the dropdown only active forums shown?
It is listing even forums that are inactive (i have a bunch)

Please help
Thanks

mojotim 07-14-2001 03:35 PM

Don't know, maybe Zamtil?

Sarge 07-14-2001 06:54 PM

Bueller? Bueller?

ToraTora! 07-15-2001 08:05 AM

Quote:

Originally posted by Sarge
ANYONE HELP!

I have posted this serveral times with no response.
How do I make on the dropdown only active forums shown?
It is listing even forums that are inactive (i have a bunch)


Please help
Thanks


Are you refering to "new" posts or threads in active forums, or just forums that are hidden, and not shown to the public. Im not understanding the whole question here, but your jump box script usually can bail you out of that one, for it displays forums that should be seen by certain users. So, if you have a masked gallery, it will show up in the pulldown jump box to the users who have permission to see it, and in the same sense, display nothing to the user who should NOT see it.

Sorry if Im way off base on this one Sarge, im just having a hard time understanding what it is your asking is all. :)

Sarge 07-15-2001 04:04 PM

I have several forums that are hidden and not active for users..
I us them with the bfc weblog

When I view the gallery dropdown.. it lists every forum that I have...including the 10 forums that do not display on my actual index.php

I want it to only display active forums..
Understand?
Hope I could explain it

mojotim 07-15-2001 04:39 PM

Are you looking at them logged in as the admin or moderator? Do you still have this problem if you're not logged in, or logged in as a regular member?

Sarge 07-15-2001 04:56 PM

The same as an admin or a reg member

ToraTora! 07-15-2001 08:00 PM

Quote:

Originally posted by Sarge
I have several forums that are hidden and not active for users..
I us them with the bfc weblog

When I view the gallery dropdown.. it lists every forum that I have...including the 10 forums that do not display on my actual index.php

I want it to only display active forums..
Understand?
Hope I could explain it

My question is, if all members can see the hidden forums, Can they access them as well? (when they choose lets say a hidden forum that is masked and has forum permissions set on) Or does a log-in prompt ask the users who are not allowed in these forums, to log-in due to the permissions aspect?

Either way, I would just copy the jump box IF it doesnt do the same thing, and add it where your hardcoded box is. If your gallery is a few of those "hidden" forums, than they will be hidden on the Jump box as well.
The jump box as I previously stated, only shows the forums that are allowed to be seen by those who have the permissions to do so. The masked jump box, would work perfect for your set up.

What happened i think, is that you hardcoded the addys to your hidden forums, and they are showing up in your dropboxes.

RobAC 07-17-2001 01:48 PM

Just wondering if there's been any further progress on this? I'd love to be able to get this hack working on my site. :)

White Knight 07-17-2001 01:58 PM

I wanted to make a quick comment about this script.

After the perfect instructions that I had everything installed just fine.

The one problem I did come up with is that I have over 2000 attachments on my site on a dedicated box. The CPU went very high. In fact peaking at 26.5 at times. Basically killing the website process.

It was the image software though.. not the php coding.

I suggest anyone installing this to clean up your attachments before you attempt this install. I accually aborted out of the idea.

Good luck.

fmoise99 07-20-2001 03:25 PM

I am having the same problem also. I just cannot get the script to work! I would love to have this gallery on my site. I tried everything this thread said to do, but no luck. I confirmed the path to ImageMagick with my provider also.


You can view my gallery here!

http://www.islandchat.net/forums/gallery.php

http://www.islandchat.net/forums/gallerydebug.php

Any help would be appreciated.

Zamtil 07-21-2001 02:54 AM

Quote:

Originally posted by White Knight
I wanted to make a quick comment about this script.

After the perfect instructions that I had everything installed just fine.

The one problem I did come up with is that I have over 2000 attachments on my site on a dedicated box. The CPU went very high. In fact peaking at 26.5 at times. Basically killing the website process.

It was the image software though.. not the php coding.

I suggest anyone installing this to clean up your attachments before you attempt this install. I accually aborted out of the idea.

Good luck.

Not sure why your load went so high.. it'll only try to create one thumbnail at a time. My own site has 1000+ attachments, I've deleted the thumbs table for testing purposes and load hasn't gone through the roof. I'll take a look into it, been busy, but I'll be making the hidden forum change and a few other requests this week.

RobAC 07-24-2001 07:09 PM

Interestingly, I thought I'd post an update on my problems with this hack. I added and when it wasn't working, I just left it alone. Any image that has been posted to the Forums since the date of installation....has been properly thumbnailed and viewable in the gallery. Any images prior to the date of installation, will not thumbnail. I now have to go and delete 300+ thumbnail records out of the table and then the hack should be ready to release to my members.

Kengan 07-26-2001 08:34 AM

Processing attachment #1: 123.gif.

Fatal error: Call to undefined function: makethumb() in /home/imldes/www/forum/admin/gallerymakethumbs.php on line 14

any idea ?:confused:

Kengan 07-26-2001 08:38 AM

Quote:

Originally posted by mojotim
I added a little more to Zamtil's instruction in the hopes to make the install easier for everyone. It's a great hack and works great as well. You just have to know how to install it.

This is how I did it just this morning on a new site. It might help someone out.
This should go without saying, but as with any hack Zamtil nor I take any responsibilty if you screw up your site. I have used the hack on 4 seperate boards and have not run into any problems. That being said, be careful and backup anyway.

Thanks ! will you post again in another format ! hard to view !

will you ?

mojotim 07-26-2001 10:15 AM

Quote:

Originally posted by Kengan
Processing attachment #1: 123.gif.

Fatal error: Call to undefined function: makethumb() in /home/imldes/www/forum/admin/gallerymakethumbs.php on line 14

any idea ?:confused:

Sound like there's no ImageMagick on your server, or the path to it is wrong.

As far as the instructions go, hard to read? It's a text file and that's as easy as it gets.

Zensai 07-26-2001 12:48 PM

Is there anyway to implement this hack on a Win 2000 server?

Kengan 07-26-2001 01:24 PM

Quote:

Originally posted by mojotim


Sound like there's no ImageMagick on your server, or the path to it is wrong.

As far as the instructions go, hard to read? It's a text file and that's as easy as it gets.

Thanks !

How do I know the ImageMagick on my server ?

;)

nickmarksdotcom 07-27-2001 06:19 PM

I am trying to make a place where people can post their textures for free and come and find textures to use in their work. It is a very noble cause that will help a ton of artists. I am trying to figure out this Gallery thing but I am not a programmer and don't know squat about servers or installing ImageMagik....I could sure use someone's help on getting this stuff this stuff installed. I would be enternally grateful. THanks

Nick

Blackangel 08-04-2001 02:00 PM

This work fine for me.

But how i can get a page with a list of all user with the number of image in they gallery ?

same style of this : http://www.chins-n-quills.com/forums/gallery.php


who can help me !

RobAC 08-09-2001 10:35 PM

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.

mojotim 08-09-2001 10:48 PM

still works for me. are the templates still in there?

RobAC 08-09-2001 10:54 PM

Yep. When I ran the install script it came back and said that the templates were updated. They're all there. All 8, correct? I haven't hacked any of them. Did you upgrade to 2.0.3?


All times are GMT. The time now is 01:00 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.01530 seconds
  • Memory Usage 1,831KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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