Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

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
  #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
  #22  
Old 08-02-2001, 10:43 PM
ThomasP
Guest
 
Posts: n/a
Default

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...
Reply With Quote
  #23  
Old 12-13-2001, 02:35 PM
Island Roots Island Roots is offline
 
Join Date: Dec 2001
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
Reply With Quote
  #25  
Old 12-14-2001, 12:47 AM
Island Roots Island Roots is offline
 
Join Date: Dec 2001
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I searched for it with the Find feature several times and nothing came up in admin/functions.php.
Reply With Quote
  #26  
Old 12-14-2001, 01:16 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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 05:49 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.05741 seconds
  • Memory Usage 2,296KB
  • 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
  • (1)bbcode_php
  • (6)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
  • (1)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