Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Details »»

Version: , by ThomasP (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-08-2001 Last Update: Never Installs: 0
 
No support by the author.

Hi there,

does anyone has a clue if it is hard to hack that?

Referring to http://161.58.84.213/forum/showthrea...threadid=19592 I would like to show a default icon only for the first Message in a topic, so that there's no "empty icon" on forumdisplay-view

Thanks for any hint,
-Tom

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-02-2001, 04:46 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh.
Good idea.

vbmoderators, you need an embarassed icon/smilie
Reply With Quote
  #13  
Old 07-07-2001, 05:38 AM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you turn this option on, it doesn't put the default icon in the subscribed messages section of the usercp.
Reply With Quote
  #14  
Old 07-07-2001, 08:33 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 07-07-2001, 09:52 PM
ThomasP
Guest
 
Posts: n/a
Default

Thanks a bunch freddie,
works peferct!
*jumpingaroundintheroom*
cu,
-Tom
Reply With Quote
  #16  
Old 07-07-2001, 10:14 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't that cause default icons in all posts of the thread, which was the original problem?
Reply With Quote
  #17  
Old 07-08-2001, 05:48 AM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 07-30-2001, 10:07 PM
Reef Board
Guest
 
Posts: n/a
Default

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~
Reply With Quote
  #19  
Old 08-01-2001, 05:36 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 08-01-2001, 01:33 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 08-01-2001, 03:31 PM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05698 seconds
  • Memory Usage 2,291KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete