vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Default icon only for the first message in a thread? (https://vborg.vbsupport.ru/showthread.php?t=19739)

ThomasP 08-02-2001 09:43 PM

Hi again,

yes works perfect in 2.0.3
My bad I read your post too late dwh ;) here's my edit in functions.php:

Comment or remove the following
PHP Code:

        if ($showdeficon) {
            
$post[icon]='<img src="{ imagesfolder}/icons/icon1.gif" border="0" alt="">';
        } 

cu,
-Tom

P.S.: Installing fresh on 2.0.3: Edit codepiece in admin/functions.php as showing above and turn "Show default icon" ON in your vB's Control Panel.

Please note the blank within { imagesfolder} which doesn't appear in the orginal code - was left there intentionally because it would be parsed by vb as code...

Island Roots 12-13-2001 02:35 PM

[QUOTE]Originally posted by freddie
Eh? Just turn the option on and remove the code from showthread.php that puts in the default icon. You will then get the icon on all the posts on the forumdisplay listing but not when viewing threads. In other words remove this from showthread.php
Code:

    if ($showdeficon) {
      $post[icon]='<img src="images/icons/icon1.gif" border="0" alt="">';
    }

and turn the option MasMind mentioned on.

FWC 12-13-2001 04:23 PM

Quote:

Originally posted by Justin Hancock


I can't find that. I'm using 2.2.1 also.

The code to be removed is in admin/functions.php now.

Island Roots 12-14-2001 12:47 AM

I searched for it with the Find feature several times and nothing came up in admin/functions.php. :confused:

FWC 12-14-2001 01:16 AM

Quote:

Originally posted by Justin Hancock
I searched for it with the Find feature several times and nothing came up in admin/functions.php. :confused:
Line 127-129 in a clean version of admin/functions.php.


All times are GMT. The time now is 12:30 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.01510 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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