vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Gallery for vBulletin 3.5.X (https://vborg.vbsupport.ru/showthread.php?t=92875)

lexx27 11-21-2005 03:40 PM

why dont you tell us how? :)

davidw 11-21-2005 05:15 PM

No problem

What I did was went to the VBA CMPS => Add module => Module Type [Template]

Module Title - Gallery (Or whatever you want)
Column [Center Column]
Display Order 20 (whatever you want here)
Active Yes
Template to Include: adv_portal_gallery
Template Content:

PHP Code:

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

<if 
condition="$vboptions['show_random']==1">
     <
tr>
         <
td colspan=$gal_num_rows align="center">Random pictures from the gallery:
     </
tr>
     <
tr>
          
$random_gallery
     
</tr>
</if> 

Use Module Shell Template - Yes
Module Link: (I used this and put it directly to my gallery (same as the link for the navbar - remember your forum ID)

Permissions are up to you - I disallow unregistered and banned users to save bandwidth

lexx27 11-21-2005 06:28 PM

Thank you man. This is nice. Does it work in the left column?

davidw 11-21-2005 06:34 PM

I don't think it will, the way it is formatted. $random_gallery and $latestgallery refer to what is set up in AdminCP - which I think is around 4 or 5 horizontal images. If you set it to 1 image, which would hinder other references, it would probably work.

VBUsers 11-21-2005 07:44 PM

Quote:

Originally Posted by Harald_T
I checked your site, but couldn't see any posts in the gallery. Are the permissions set right? Otherwise, could you do me a favour and give me a test-access?


test info sent thanks harald!

ScottC20 11-21-2005 08:11 PM

Hey Harald,

The Latest Pictures From the Gallery table fits in fine on my home computer (although my home computer has a wider than average monitor) but on my work computer it stretches wildly and you need to scroll to see all of the images is there not a way to set it so that it will automatically fit within the screens browser

lexx27 11-21-2005 08:13 PM

Quote:

Originally Posted by christianb
I don't think it will, the way it is formatted. $random_gallery and $latestgallery refer to what is set up in AdminCP - which I think is around 4 or 5 horizontal images. If you set it to 1 image, which would hinder other references, it would probably work.

hm, thats true. I ll see what Ι can do. Thanks anyway :)

lexx27 11-21-2005 10:09 PM

Module Link: (I used this and put it directly to my gallery (same as the link for the navbar - remember your forum ID)
What exactly do you mean here. Because I see an X in my portal

davidw 11-22-2005 12:11 AM

In the instructions with the download there is a small instruction for putting the link to the gallery in the navigation bar. This requires you to change "X" with the forum ID of the gallery, assumably if the most of the instructions are followed on the extras. For example, when I created the gallery on my site, my gallery became forum 65, so I replaced x with 65 in the navbar hack. If you did the navbar hack, you can take the same link and use it for the module link. It's a quick way to get to the gallery.

Pvtiste 11-22-2005 12:36 AM

yes very good work guy ;)
I'm really interested in your script !


All times are GMT. The time now is 08:09 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.01905 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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