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)

davidw 11-22-2005 12:06 PM

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. :)

Harald_T 11-22-2005 12:08 PM

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.

lexx27 11-22-2005 12:35 PM

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 :)

nexus851 11-23-2005 01:44 PM

the thumbnails are soo small in my gallery, is there a way to make the uploaded images bigger than the reduced size ????

davidw 11-23-2005 01:50 PM

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

nexus851 11-23-2005 02:53 PM

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 ?

Harald_T 11-23-2005 03:05 PM

You find the settings therefor under your vB-Options: Text:Attachments

nexus851 11-23-2005 03:43 PM

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...

Harald_T 11-23-2005 08:26 PM

just look here:

https://vborg.vbsupport.ru/showpost....5&postcount=98

nexus851 11-23-2005 09:20 PM

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...


All times are GMT. The time now is 05:49 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.01559 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_code_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