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)

Harald_T 10-29-2005 02:16 PM

Just create those two phrases, that's all.

Permissions: If you want to show guests an thumbnail which tells them, that they should register first, you have to change the code. I've already posted this, i think it was about page 8, or so.

ScottC20 10-29-2005 07:34 PM

I will do that then. Do you know if I can make it so when a new picture is uploaded it isn't displayed in the New Posts area, my members are getting terribly confused by the short threads??

ScottC20 10-31-2005 05:00 PM

Think I have that sorted ^^ but how can I increase the amount of thumbnails displayed on the forum index to say six or seven?

lexx27 10-31-2005 09:03 PM

Quote:

Originally Posted by Harald_T
I haven't done yet. As i said, it shouldn't be much work. It's mostly template-work (normaly you only have to copy most of the code into the template-code of those boxes of vBadvanced). I will install vBadvanced on Wednesday and fix the problem.

I know you havent install it yet but can you give me some hypothetical solution to start. Like which templates to use, if i willl need a php file. Thank you

ThePimp 11-01-2005 02:38 PM

Is there a way to set a default thumbnail? For example, most users aren't the brightest bulb in the bunch, and I frequently get people posting incorrectly, or posting topics in the gallery forums... and what happens is that a broken "Red X" image is displayed in those posts on the gallery as well as on the ForumHome page. I'm wondering if there's a way to detect improperly posted / no image topics and replace the thumbnail with a default graphic?

dreck 11-01-2005 02:52 PM

Quote:

Originally Posted by ThePimp
Is there a way to set a default thumbnail? For example, most users aren't the brightest bulb in the bunch, and I frequently get people posting incorrectly, or posting topics in the gallery forums... and what happens is that a broken "Red X" image is displayed in those posts on the gallery as well as on the ForumHome page. I'm wondering if there's a way to detect improperly posted / no image topics and replace the thumbnail with a default graphic?

Thats a great ideas. I can see my members do the same thing. :)

Harald_T 11-01-2005 03:16 PM

Sorry for late reply.

O.k., if you want to to have a thumb displayed, if no picture is attached, then you have to change the code in threadbit_gallery:

Find

Code:

<td width="170" height="170" align="center">
                            <if condition="$displaythumbs">
                                    <a HREF="attachment.php?attachmentid=$thread[attachmentid]">
                                          <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0 align="center">
                                </a><br>
                            <else />
                                <img src="$stylevar[imgdir_misc]/nothumb.gif" width=75 height=56 border="0">
                            </if>
<br />
</td>

and replace it with:

Code:

<td width="170" height="170" align="center">
                            <if condition="$displaythumbs">
<if condition="$thread[attachmentid]">
                                    <a HREF="attachment.php?attachmentid=$thread[attachmentid]">
                                          <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0 align="center">
                                </a><br>
                            <else />
                                <img src="$stylevar[imgdir_misc]/nothumb.gif" width=75 height=56 border="0">
                            </if>
</if>
<br />
</td>

And don't forget to upload an :gif-File called "nothumbs.gif". That should do it.

ScottC20 11-01-2005 04:04 PM

Quote:

Originally Posted by ScottC20
how can I increase the amount of thumbnails displayed on the forum index to say six or seven?

????

Harald_T 11-01-2005 04:09 PM

You just have to change the plugin: latest_gallery_images_forumhome.

Inside the query you find

Code:

ORDER BY ". TABLE_PREFIX . "attachment.dateline DESC LIMIT 5");
Just change the letter 5 to your prefered amount. That's all.

dreck 11-01-2005 05:14 PM

What if I wanted to put a bit more space between the 5 forum home thumbnails?


All times are GMT. The time now is 08:07 AM.

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.01629 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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