Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Zamtil (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-26-2001 Last Update: Never Installs: 0
 
No support by the author.

<a href="http://www.noows.com/gallery.php" target="_blank">http://www.noows.com/gallery.php</a>

I know gallery.php is the same filename Freddie uses. However, this is my own hack, from scratch (although I do have some large chunks of borrowed vBulletin code).

It adds a new table called 'thumb' and uses ImageMack to generate thumbnails ONCE. It also adds a thumb.php file, which is basically a modified copy of attachment.php. No changes to existing PHP files or tables are necessary. I've written a small PHP file to make thumbs of all existing JPG/GIF/BMP/PNG attachments. Thumbs are generated and stored as GIFs.

AFAIK all security aspects are intact. My release will only support ImageMagick (via PHP system() call), if someone else needs GD/NetPBM support, they're welcome to hack-my-hack.

I'd like to get some feedback from Jesoft before I release. As I mentioned, I use some fairly large blocks of their code (from search.php and attachment.php) and want to make sure their are no issues. If it provides enough functionality, I'd have no problem with Jelsoft incorporating it into their next release, rather than me maintaining it as a hack.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-26-2001, 11:49 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just wanted to say nice job! I'm looking forward to seeing how this hack progresses.
Reply With Quote
  #3  
Old 06-27-2001, 01:02 AM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. Nice job!
Reply With Quote
  #4  
Old 06-27-2001, 08:16 AM
Lordmusic
Guest
 
Posts: n/a
Default

So basically this hack just takes the images ever posted in a forum and displays them on a page? Is there any way to edit the images, remove the naughty ones, add ones not posted and so forth? Perhaps a way for people to submit?
Reply With Quote
  #5  
Old 06-27-2001, 12:05 PM
Znaper Znaper is offline
 
Join Date: Oct 2001
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post this Hack here?
Thx
Sorry for my bad englisch, but i come's from germany!
Reply With Quote
  #6  
Old 06-27-2001, 03:19 PM
Zamtil
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Lordmusic
So basically this hack just takes the images ever posted in a forum and displays them on a page? Is there any way to edit the images, remove the naughty ones, add ones not posted and so forth? Perhaps a way for people to submit?
It generates thumbnails for all GIFs/JPGs/PNGs/BMPs in your attachment table. It stores those thumbnails in a new table called thumb (I have no plans to store thumbs as files). It provides links to the full size attachment, as well as, the post the attachment appeared in. The links are currently opened in a seperate window, so you can keep the gallery open and jump to the individual posts. The way for people to submit is to post an attachment in the forum. You'll see I have a copy of the ForumJump box at the top of the page. The user can scroll through forums and chose "different galleries." gallery.php accepts params: userid & forumid. So, this is one virtual gallery:

http://www.noows.com/gallery.php?s=&...ws=5&galcols=2

This is another:

http://www.noows.com/gallery.php?s=&...ws=5&galcols=2

And this is my "personal" gallery (I modded my copy of memberlist template to provide a link to every users gallery):

http://www.noows.com/gallery.php?s=&userid=1

The links to the original post would be your way of "removing naughty ones." To submit new ones, the user just has to make a new post/attachment in the appropriate forum. I really don't see the need to code seperate admin/edit functionality into the gallery. Would just cause users more confusion in the end. Perhaps a link that would allow users to directly reply to an image in another window?
Reply With Quote
  #7  
Old 06-27-2001, 03:20 PM
Zamtil
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Znaper
Can you post this Hack here?
Thx
Sorry for my bad englisch, but i come's from germany!
I will, but I need a few days for features/bugs yet. I also need to talk to Jelsoft since I'd be releasing a few large chunks of code I borrowed/modified from them.
Reply With Quote
  #8  
Old 06-27-2001, 04:13 PM
BradC
Guest
 
Posts: n/a
Default

Looks really good.. can't wait to try it out..
Reply With Quote
  #9  
Old 06-27-2001, 08:35 PM
First-Man
Guest
 
Posts: n/a
Default

coool I must have this hack.
Reply With Quote
  #10  
Old 06-27-2001, 08:45 PM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work as always!

Now thats two hacks of yours im waiting for...lol..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 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.04517 seconds
  • Memory Usage 2,279KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete