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)

UtahNissans 05-19-2006 03:41 AM

So answer me this. THe instructions say to upload the upload.jpg in the folder images/button, now the icon I have in the .zip download is upload.gif. Also is it images/button or forums/images/button or forums/images/buttons?

The reason I ask is because I am getting nothing but "There are no posts in this forum"

Bernd 05-19-2006 09:07 AM

wrong placement of a button shouldn't get you the return message you are receiving, only a red x.
post the url to your website if you can...it's a bit hard to imagine what is going on without looking at it.

UtahNissans 05-19-2006 06:51 PM

Quote:

Originally Posted by Bernd
wrong placement of a button shouldn't get you the return message you are receiving, only a red x.
post the url to your website if you can...it's a bit hard to imagine what is going on without looking at it.

http://utahnissans.com/forumdisplay.php?f=60

Zowners 05-19-2006 11:04 PM

Ok I have everything working fine I was just wondering can you make the latest gallery pictures section collapsable. And is it possible to insert subforums in a forum in the gallery category. At the moment its created duplicates of the subforums in the gallery category.

Bernd 05-20-2006 07:03 AM

Quote:

Originally Posted by UtahNissans

I can't even register on your forum without getting an error, so i doubt it's a gallery related issue ;)

Harald_T 05-20-2006 03:13 PM

@Zowners: I can make it collapsable, i will include it in the next coming update. A subforum isn't possible atm. But i will look after it.

Bernd 05-20-2006 05:24 PM

Here is a working thumbnailer for this gallery.

step 1,

edit template gallery_attachment and replace the code with

PHP Code:

<if condition="$attachment[filename] == $vboptions[featured_thumbnail]">
<else />
<
a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"target="_blank"</if>>
<
img class="thumbnail" src="tn_image.php?image=$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]border="0" align="center"></a>
&
nbsp;<if condition="$show['br']"><br /><br /></if></if> 

'/' in '$vboptions[bburl]/attachment.php' has to be left out if you've set your forum url ending with '/' in forum options.

Step 2,


Upload tn_image.php to your forum directory and set the following parameters to your specifications
$x = 600; //width
$y = 600; //height

Currently, tn_image.php resizes images that are too small to the paramaters specified. Someone with a bit more php knowledge should be able to fix that easily. The current advantage over the old resizer is that it uses the GD library to create thumbnails, meaning that images will not have the pixelated look that it would otherwise have.

Note that tn_image.php was not written by me. I can't credit the writer since the name was not listed ;)

Harald_T 05-20-2006 06:01 PM

Thanks for your help Bernd. I will see how i can integrate it completly.

DrewM 05-21-2006 06:53 PM

why not just use the condition with the extenion field it's alot easier.

Harald_T 05-21-2006 07:12 PM

@LarrySW: But this one only assures that only a picture will be uploaded. But it doesn't check the size of it.


All times are GMT. The time now is 05:46 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.02347 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