Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #392  
Old 11-22-2005, 12:06 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lexx27
Thank you christianb, I used your code and Achieved the vertical view with some editing for 4 pictures...but they are the same lol.
that's what I was afraid of... lol - but then again, how many pictures do you have in your gallery? I've only got a total of 3 in mine.
Reply With Quote
  #393  
Old 11-22-2005, 12:08 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

O.k. i've got it.

For vertical view of the latest/random pictures:

Change in the plugin: "gallery_images_forumhome" the following code

Code:
while ($gallery = $db->fetch_array($thumbs))
{
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}
to this one:

Code:
while ($gallery = $db->fetch_array($thumbs))
{
eval('$adv_latestgallery .= "' . fetch_template('adv_latestgallery') . '";');
eval('$latestgallery .= "' . fetch_template('latestgallery') . '";');
}
Do the same for the random_gallery:

Code:
while ($rand_gallery = $db->fetch_array($random_thumbs))
{
eval('$adv_random_gallery .= "' . fetch_template('adv_random_gallery') . '";');
eval('$random_gallery .= "' . fetch_template('random_gallery') . '";');
}
Now, create two the following two templates:

adv_latestgallery:
Code:
<tr>
<td align="center">
<table class="tborder" align="center">
<tr>
<td class="thead" height="100" width="120" align="center">
<a HREF="attachment.php?attachmentid=$gallery[attachmentid]">
<img src="attachment.php?attachmentid=$gallery[attachmentid]&stc=1&thumb=1" border=0 align="center"></a>
</td>
</tr>
<tr>
<td valign="center" align="center" width="120" height="40">
<br />
<a href="showthread.php?t=$gallery[threadid]">
$gallery[title]
</a>
</td>
</tr>
</table>
</td>
</tr>
adv_random_gallery:
Code:
<tr>
<td align="center">
<table class="tborder">
<tr>
<td class="thead" height="100" width="120" align="center">
<a HREF="attachment.php?attachmentid=$rand_gallery[attachmentid]">
<img src="attachment.php?attachmentid=$rand_gallery[attachmentid]&stc=1&thumb=1" border=0 align="center"></a>
</td>
</tr>
<tr>
<td valign="center" align="center" width="120" height="40">
<br />
<a href="showthread.php?t=$rand_gallery[threadid]">
$rand_gallery[title]
</a>
</td>
</tr>
</table>
</td>
</tr>
now, change the code for adv_portal_gallery (s. post of christianb):

Code:
<if condition="$vboptions['show_latest']==1">
     <tr>
          <td colspan=$gal_num_rows align="center">Latest pictures in the gallery:
</td>
</tr>
$adv_latestgallery
</if>

<if condition="$vboptions['show_latest']==1">
     <tr>
          <td colspan=$gal_num_rows align="center">Random pictures from the gallery:
</td>
</tr>
$adv_random_gallery
</if>
Of course, it could be better for handling, if you make two modules, one with the latest pictures and one with the random pictures.

Second: Forget those file-edit on vba_cmps_include_bottom.php. It's not neccessary anymore.
Reply With Quote
  #394  
Old 11-22-2005, 12:35 PM
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Location: Athens
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

harald this is great. Thank you very much for the support.

Quote:
that's what I was afraid of... lol - but then again, how many pictures do you have in your gallery? I've only got a total of 3 in mine.
I have nearly 90 and now I went verical!!! hehe
Reply With Quote
  #395  
Old 11-23-2005, 01:44 PM
nexus851 nexus851 is offline
 
Join Date: Oct 2005
Location: LA
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the thumbnails are soo small in my gallery, is there a way to make the uploaded images bigger than the reduced size ????
Reply With Quote
  #396  
Old 11-23-2005, 01:50 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is in your AdminCP => vBulletin Options => Message Attachment Options

After you change your setting there, you need to go to Maintenance => Update Counters => Rebuild Attachment Thumbnails
Reply With Quote
  #397  
Old 11-23-2005, 02:53 PM
nexus851 nexus851 is offline
 
Join Date: Oct 2005
Location: LA
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

didnt work.. the thumbnails in the gallery are still the same size...

not sure if u understand me.. i want the thumbnails in the gallery to be bigger... if i uploaded a 800x600 image, i want to show a smaller version(thumbnail) in the gallery which is bigger than it is set right now... where's the coding for the resizing of the image ?
Reply With Quote
  #398  
Old 11-23-2005, 03:05 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You find the settings therefor under your vB-Options: Text:Attachments
Reply With Quote
  #399  
Old 11-23-2005, 03:43 PM
nexus851 nexus851 is offline
 
Join Date: Oct 2005
Location: LA
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, it worked...

another simple question is: how do i restrict the gallery pix view so that users cannot view the pictures unless they register first...
Reply With Quote
  #400  
Old 11-23-2005, 08:26 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just look here:

https://vborg.vbsupport.ru/showpost....5&postcount=98
Reply With Quote
  #401  
Old 11-23-2005, 09:20 PM
nexus851 nexus851 is offline
 
Join Date: Oct 2005
Location: LA
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool thanx, however can you attach or PM me the REGISTER.JPG. I dont see that file attached to the threads anywhere... & also how do u make a popup window for the images in the latest/random gallery? currently it doesnt popup even if u set the attachment options to popup.

Thanks!

P.S - 1 more question, what if in the future i change my mind and i want guest to be able to view the gallery, is there a easy way to change permissions in the user group that can let guests view the gallery without having to edit the templates again? I tried to edit the usergroups, but that has no effect...
Reply With Quote
Reply

Thread Tools

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 07:01 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.08564 seconds
  • Memory Usage 2,312KB
  • 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
  • (6)bbcode_code
  • (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
  • (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