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)

dwh 07-02-2001 03:46 PM

oh.
Good idea.
;)
vbmoderators, you need an embarassed icon/smilie

dwh 07-07-2001 04:38 AM

When you turn this option on, it doesn't put the default icon in the subscribed messages section of the usercp.

Wayne Luke 07-07-2001 07:33 PM

A way to do this would be:

1. Turn off the option "Show Default Icon".

2. Go into PHPMyAdmin and change the default for the iconid field in the thread table. The default is ID 1.

Or you could use this query through telnet:
Code:

SQL-query:
ALTER TABLE thread CHANGE iconid iconid SMALLINT (5) UNSIGNED DEFAULT '1' not null


ThomasP 07-07-2001 08:52 PM

Thanks a bunch freddie,
works peferct! :D :)
*jumpingaroundintheroom*
cu,
-Tom

dwh 07-07-2001 09:14 PM

Wouldn't that cause default icons in all posts of the thread, which was the original problem?

Wayne Luke 07-08-2001 04:48 AM

Quote:

Originally posted by dwh
Wouldn't that cause default icons in all posts of the thread, which was the original problem?
My idea? No.. Each post also has an iconid which would still be set to zero by default.

Reef Board 07-30-2001 09:07 PM

Quote:

Originally posted by freddie
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.

I can't find this in showthread.php for version 2.0.2.. Whats the code I need to edit to do this with 2.0.2?

Phil~

FWC 08-01-2001 04:36 AM

Quote:

I can't find this in showthread.php for version 2.0.2.. Whats the code I need to edit to do this with 2.0.2?
This is a very good question. I have the same problem. But, you have to figure everybody who can figure out how to do it is a little busy right now. :D

dwh 08-01-2001 12:33 PM

admin/functions.php

around line 125 or so, comment out the line. Basically that functionality moved into a function instead of being specific to showthread.php.

FWC 08-01-2001 02:31 PM

Quote:

admin/functions.php

around line 125 or so, comment out the line. Basically that functionality moved into a function instead of being specific to showthread.php.
I went where you said and deleted the same code that used to be in showthread.php and it worked perfectly. Thanks again, dwh!!


All times are GMT. The time now is 12:33 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.01655 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (4)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
  • (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