vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Thumbnail of Attachments on forum display (https://vborg.vbsupport.ru/showthread.php?t=73220)

Delphy 12-29-2004 11:26 PM

I just added 1 line I'd missed from the copy paste of my forumdisplay, and added table prefix stuff, thats it.

Does anybody else have a problem with my version?

lasto 12-30-2004 11:36 AM

works perfect now m8 - you even fixed the rar problem.
If a rar is the only attachement it now displays no thumb displayed pic :)

well done m8

mhobelsb 12-30-2004 04:37 PM

i second that! works great! thanks a lot

???`S?LV?R???` 12-30-2004 06:18 PM

I installed Delphy's version also, and it seems to be working right.

gkar 12-31-2004 03:51 PM

Doesn't work here, all post dissapear when I've installed the hack, it seems to be a problem with the forumdisplay.php modification. I've tried the Dechevious and the Delphy variant, but none works. Any suggestions? Best regards

lasto 12-31-2004 05:25 PM

Quote:

Originally Posted by gkar
Doesn't work here, all post dissapear when I've installed the hack, it seems to be a problem with the forumdisplay.php modification. I've tried the Dechevious and the Delphy variant, but none works. Any suggestions? Best regards

yeah redo it all again as ive tried both versions and the first worked but showed a red x when a rar was an attachment - the second one works perfect so if u got none of them to work then its down to user error m8 and you need to re-do your steps and see where u went wrong.

Delphy 12-31-2004 05:28 PM

gkar,

Make sure you start from a fresh forumdisplay when installing my version, don't start from an existing thumbnailed forumdisplay base.

Also make sure you have the updated txt file above

alkatraz 01-02-2005 08:10 AM

Great hack!

Sadie Frost : thanks for your code, worked great

alkatraz 01-02-2005 10:59 AM

Ug oh.. just noticed that the 2 forums I want this to work in are showing thumbs, but so is one forum I don't want to show thumbs in...

anyone have this problem? It's just one extra forum but it doesn't make sense. Triple checked the #'s in forumdisplay.php... using the code above for "no default post icon" but have tried enabling the icon and using the stock code and the modified code, no change..

Forum number's are 42 and 95 for the ones i WANT it to work in, and 2 for the one that I don't want thumbs to be displayed. Is there a possibility strpos is matching the #2 from 42 with the forum # 2?

PHP Code:

$displaythumbs false;
    if (
strpos("42,95"strval($forumid)) !== false)
        
$displaythumbs true


Delphy 01-02-2005 05:00 PM

alkatraz, yes thats what happening.

If you want to still use the original hack replace the code you have with:

Code:

        $displaythumbs = false;
        $forumids = array(42,95);
        if (in_array($forumid, $forumids)) {
                $displaythumbs = true;
        }

Works much better. :)


All times are GMT. The time now is 11:05 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.01361 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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