The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Gallery for vBulletin 3.5.X Details »» | |||||||||||||||||||||||||
Gallery-Hack:
This hack is a gallery-system for your forum. Updated 05/25/06 New in this version 1.23: - Alternative layout - english phrases - Addition for the memberprofile - multiple picture-upload - Featured threads What's still to come? - Possibility for users, to choose the different layout. - Possibility for file-upload, not only pictures. - Language-Pack for german users Have fun with the hack. For a live-demo look here: http://www.sf-galerie.de Show Your Support
|
Comments |
#1122
|
|||
|
|||
Quote:
Can user's submit there own pics? |
#1123
|
|||
|
|||
Yes, they can. The only thing, the admin needs, is to setup a forum for the user and create a gallery out of it.
|
#1124
|
||||
|
||||
*clicked installed*! I'll be back with a review once installed.
Thanks for creating and sharing!! |
#1125
|
|||
|
|||
Help!
godaddy shut my site down due to this mod and it's so so awesome! It seems that the following queries caused Go Daddy's CPU utilization soar to over 80% and almost brought down the entire shared server: Quote:
|
#1126
|
|||
|
|||
@Kofoid: I'm aware of this problem, also it should only add some queries to the page, but not that much, that the site breaks down. I'm thinking over this, if i can reduce the amount of queries used in these routines.
|
#1127
|
|||
|
|||
Thanks Harald!! You rock!
|
#1128
|
||||
|
||||
Hi Harold & Everyone,
First, the hack is awesome. I installed it last night. I have a few changes to make to imput link on navbar as I've also just recently installed a custom skin..(need to work with the coding). Anyways, one problem I'm having is showing the latest gallery additions in the user cp. I am in the midst of searching all the posts in this thread to find the answer, but in the event someone knows..it would be great if you could direct me. Thankyou! |
#1129
|
|||
|
|||
Quote:
Thanks! |
#1130
|
|||
|
|||
@Necrosaro: That would mean, that your users would be able to open up a gallery for themself. I have to check this, can't say atm.
|
#1131
|
|||
|
|||
@Kofoid: Try this code for the plugin: gallery_images_forumhome
Code:
// #################### Latest Gallery-Additions ####################### // fetch the permissions for each forum // global $vbulletin; if ($vbulletin->options['show_latest']) { $gal_num_rows = $vbulletin->options['gal_num_rows']; $thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum WHERE gallery='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." GROUP BY ".TABLE_PREFIX ."thread.threadid ORDER BY ". TABLE_PREFIX . "attachment.attachmentid DESC LIMIT $gal_num_rows"); while ($gallery = $db->fetch_array($thumbs)) { eval('$latestgallery .= "' . fetch_template('gallery_latestpictures') . '";'); } } // #################### Random Gallery-Additions ####################### // fetch the permissions for each forum if ($vbulletin->options['show_random']) { $random_thumbs = $db->query_read("SELECT gallery, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum WHERE gallery='1'AND ". TABLE_PREFIX . "thread.featured!='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY RAND() LIMIT $gal_num_rows"); while ($rand_gallery = $db->fetch_array($random_thumbs)) { eval('$random_gallery .= "' . fetch_template('gallery_randompictures') . '";'); } } $top5 = $db->query_read("SELECT gallery,". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, attachmentid, ". TABLE_PREFIX . "attachment.dateline, ". TABLE_PREFIX . "thread.views FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum WHERE gallery='1' AND ". TABLE_PREFIX . "thread.featured!='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." ORDER BY ". TABLE_PREFIX . "thread.views DESC LIMIT $gal_num_rows"); while ($top_gallery = $db->fetch_array($top5)) { eval('$top5_gallery .= "' . fetch_template('gallery_top5') . '";'); } // featured forum $feat_rows=$gal_feat_rows; $featured_thumbs = $db->query_read("SELECT ". TABLE_PREFIX . "thread.featured, threadid, firstpostid, ". TABLE_PREFIX . "thread.title, MAX(". TABLE_PREFIX . "attachment.attachmentid)AS attachmentid, ". TABLE_PREFIX . "attachment.dateline FROM ". TABLE_PREFIX . "attachment, ". TABLE_PREFIX . "thread, ". TABLE_PREFIX . "forum WHERE ". TABLE_PREFIX . "thread.featured='1' AND ". TABLE_PREFIX . "thread.forumid=". TABLE_PREFIX . "forum.forumid AND ". TABLE_PREFIX . "thread.firstpostid = ". TABLE_PREFIX . "attachment.postid AND ". TABLE_PREFIX . "attachment.dateline < " . TIME() ." GROUP BY ".TABLE_PREFIX ."thread.threadid ORDER BY ". TABLE_PREFIX . "attachment.attachmentid DESC LIMIT $feat_rows"); while ($featured = $db->fetch_array($featured_thumbs)) { eval('$featured_gallery .= "' . fetch_template('gallery_featured') . '";'); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|