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)

ryancooper 01-18-2005 02:59 PM

Quote:

Originally Posted by Harald_T
O.k., i think, i've got it so far. :nervous:

I included all files in a zip-files, including an image for the upload-button.

This hack isn't still finished, i'm trying to find out other things to do, so be patient.

I hope you like it.

Edit: Included a screenshot, how it looks like now.


In your txt file you say to
Code:

6. Find:

// REPLACE NUMBERS BELOW WITH FORUM IDS YOU WANT THUMBNAILS TO SHOW IN
$forumids = array(1,2,3); //this is the original-text, id's may vary depending on your forum
if (in_array($forumid, $forumids)) {
        $displaythumbs = true;
}

7. Replace it with:
     
        if (in_array($forumid, $forumids)) {
                $displaythumbs = true;
        }

But I jsut installed this hack and my line is totally different. . i have
Code:

// CHANGE THE LINE BELOW "4,5,17" TO BE THE FORUM ID # YOU WISH THUMBS TO BE DISPLAYED IN
        $displaythumbs = false;
        if (strpos("3", strval($forumid)) !== false)
                $displaythumbs = true;


Also i don;t have this line
Code:

// while ($thread = $DB_site->fetch_array($threads))
in my fourm display??

Harald_T 01-18-2005 04:33 PM

No Panic! ;)

You need the modified hack from Delphy (i think you find on page 2 on this thread. It's attached to his post). The lines you've posted are from Dechevious hack.

The second code you couldn't find is also in Delphys Hack.

First of all you should install it, and do my modifications. Then it should work.

ryancooper 01-18-2005 05:06 PM

Quote:

Originally Posted by Harald_T
No Panic! ;)

You need the modified hack from Delphy (i think you find on page 2 on this thread. It's attached to his post). The lines you've posted are from Dechevious hack.

The second code you couldn't find is also in Delphys Hack.

First of all you should install it, and do my modifications. Then it should work.


AHHH

You know i read that in yor post as well and i thipught htis was that hack. :ermm:

DUHHH


Thanks!!

Ryan

mhobelsb 01-20-2005 02:57 PM

Really cool this gallery hack!!! Love it...

but (i hope i am not rude asking that) i would like to have in one forum the "normal thumbnail" from delphy and in one Forum (the showroom) i would like to have your gallery mod. is that possible? i reeeeaaallly hope so.

thanks so much for the efford you guys put in this...

Martin

Harald_T 01-20-2005 05:06 PM

Hmh, i think it could be possible. I'll have a look after it at the weekend.

gkar 01-21-2005 09:08 AM

Nice one, thanks for your efforts.

Keta 01-21-2005 10:49 AM

i tried and followed the steps i re did it 4 times and my forum still looks like this:
http://www.illefx.com/forum/forumdisplay.php?f=18

what am i missing? what am i doing wrong?

Harald_T 01-21-2005 11:08 AM

Did you set the right forum id in "global.php"? That could be, why it isn't working.

Edit: Could be also something on the permissions. I'll check it with my testforum here at home.

Keta 01-21-2005 01:42 PM

Quote:

Originally Posted by Harald_T
Did you set the right forum id in "global.php"? That could be, why it isn't working.

Edit: Could be also something on the permissions. I'll check it with my testforum here at home.

global.php? it says in the install file IN FILE: forumdisplay.php FIND THE FOLLOWING:

Keta 01-21-2005 01:50 PM

Quote:

Originally Posted by Sadie Frost
Thanks for this! I tried for the longest time to code it myself but lol, not a coder :D

I think maybe if you have no set default icon (via your admincp options), you just need to rearrange the conditional in the threadbit template in order to get it to work without having a threadicon specified. Like move that '<if condition="$show['threadicon']">' bit. But I haven't played around with that or anything so I don't know.

Edit:

Okay, yes, if you have no default post icon selected in your admincp, I used this code for the threadbit template and it works:

thanks!!! your code worked for me


All times are GMT. The time now is 06:32 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.01274 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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