Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Gallery for vBulletin 3.5.X Details »»
Gallery for vBulletin 3.5.X
Version: 1.23, by Harald_T Harald_T is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 07-24-2005 Last Update: 05-24-2006 Installs: 346
DB Changes Uses Plugins Template Edits
Code Changes  
No support by the author.

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

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

Comments
  #102  
Old 08-15-2005, 08:37 PM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm quite confused...

So I've done everything but the part that isnt working too hot is making the forums...

I did this:

MADE new forum and made it a category, with display order 0 and is "acting as gallery" I then made a child forum (parent is the category that I had made) and left it as display order 1 (still cant be seen cause parent is 0), acts as gallery, and has 4 rows.

When I click on the link to go there it says "Sorry! This forum is not accepting new posts."

Whats going on?
Reply With Quote
  #103  
Old 08-16-2005, 01:48 AM
shardex shardex is offline
 
Join Date: Mar 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to convert the original hack to 3.5 and am having trouble with this code in the forumdisplay.php:

PHP Code:
$sql_threads "SELECT $votequery $previewfield    thread.threadid, thread.title AS threadtitle, ".
         
"thread.forumid, pollid, open, replycount, postusername, postuserid, ".
         
"thread.iconid AS threadiconid, $lastpost_info, thread.dateline, ".
         
"IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, ".
         
"sticky, votetotal, thread.attach,    hiddencount ".
         
iif($displaythumbs == true", MIN(attachment.attachmentid) AS attachmentid ").
         
iif($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed").
         
iif($deljoin", deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason").
         
iif($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'], ', threadread.readtime AS threadread'). 
            
"$hook_query_fields ".
            
"FROM " TABLE_PREFIX "thread AS thread ".
            
"$deljoin ".            
        
iif($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid'], " LEFT JOIN " TABLE_PREFIX "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = " $vbulletin->userinfo['userid'] . ")").
            
iif($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'], " LEFT JOIN " TABLE_PREFIX "threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = " $vbulletin->userinfo['userid'] . ")").
            
"$previewjoin ".
            
"$tachyjoin ".
            
"$hook_query_joins ".
        
iif($displaythumbs == true"LEFT JOIN ".TABLE_PREFIX."attachment as attachment ON(attachment.postid = thread.firstpostid) ").
        
"WHERE thread.threadid IN (0$ids$hook_query_where ".
        
"ORDER BY sticky DESC, $sqlsortfield $sqlsortorder ";
    
$threads $db->query_read($sql_threads);
    unset(
$limitothers$delthreadlimit$deljoin,$datecut$votequery$sqlsortfield$sqlsortorder$threadids); 
I am basically trying to follow the original format but adapt it for 3.5 since there is a bit if a difference in the $sql_threads variable. I figure you have overcome this and so I was wondering if you could help me out?

Cheers,
Reply With Quote
  #104  
Old 08-16-2005, 07:15 AM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jesus likes pie
I'm quite confused...

So I've done everything but the part that isnt working too hot is making the forums...

I did this:

MADE new forum and made it a category, with display order 0 and is "acting as gallery" I then made a child forum (parent is the category that I had made) and left it as display order 1 (still cant be seen cause parent is 0), acts as gallery, and has 4 rows.

When I click on the link to go there it says "Sorry! This forum is not accepting new posts."


Whats going on?
You don't need to set "Act as gallery" for the category. It isn't neccessary.
Your error sounds like you set the forum closed or something like this.

@Shardex: Do you try to convert my old gallery-hack or the thumbnail-hack? The code looks like the one for the thumbnail-hack from Delphy (i've made also an conversion for the thumbnail-on-forum-display-hack to 3.5).
Reply With Quote
  #105  
Old 08-16-2005, 08:57 AM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i change it to show only 4 thumbnails instead of 5
Reply With Quote
  #106  
Old 08-16-2005, 10:21 AM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I assume you mean on the Forumhome-Page?

Change the code for the plugin "latest_gallery_images" Hook->forumhome_complete to:

Code:
// #################### Latest Gallery-Additions #######################
// fetch the permissions for each forum
global $vbulletin;


$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() ." ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT 4");

while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}
That's it.
Reply With Quote
  #107  
Old 08-16-2005, 10:29 AM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vizionz
if i missed something sorry but how can i change the thumbnails shown on forum and how to make that a closeable table. *note i guess i found out how just editing the rows thought that was for the main gallery page and how many rows down it goes ..

okay now with that how many pictures will actually go in there will it just keep going and going and going. or is this script have pages so like 20 to 40 pictures per page ? if not should be next addition
How many Thumbs are shown on one page is depending on how many threads are displayed on one page. You find this option in the vBulletin-Options under "Forum-Display-Options"->Maximum Displayed Threads Before Page Split. If you set it by 10 then only 10 thumbs per page will be shown (but only 10 threads also). I'm thinking of making this separate for the gallery.
Reply With Quote
  #108  
Old 08-16-2005, 11:40 AM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats horrible then so that means no matter what it will keep showing thumbs ?
so your page is gonna scroll all crazy. or you will have to have like 950 pages of posts for a big topic this should be a main concern to make this hack worth anything
Reply With Quote
  #109  
Old 08-16-2005, 11:46 AM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not meant for the posts of a thread, but for the amount on threads displayed on your forumdisplay.

For example: If you set "Maximum Displayed Threads Before Page Split" to 100, then in your normal forums will be 100 threads shown, before page breaks. In the gallery there will be shown 100 thumbs. Depending on the number of rows, you've set in the gallery-options, the page won't be so long. If you set it to e. g. 5 rows, there will be 20 coloumns on the page.

But as i said, i'm thinking of making this independend from the forum.
Reply With Quote
  #110  
Old 08-16-2005, 11:53 AM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Harald_T
But as i said, i'm thinking of making this independend from the forum.
That would be very good.


As for Vizionz, you may notice that each forum (not thread) has pages (if well, its an active forum). So a forum looks like a thread, except that instead of posts, you get threads. And after X amount of threads, a new page is made.
Reply With Quote
  #111  
Old 08-16-2005, 11:57 AM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@jesus: Did you check your settings for your category? I've looked at your forum, and it could be one of the other hacks that ist "shooting" between.
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 08:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13843 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (3)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
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete