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
  #2  
Old 06-08-2001, 08:33 PM
Mas*Mind's Avatar
Mas*Mind Mas*Mind is offline
 
Join Date: Oct 2001
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is an option in general settings:

Quote:
Show default icon
Show a default icon if a user doesn't choose a message icon or is unable to choose one based on forum settings? {imagesfolder}/icons/icon1.gif will be used.
Yes No
Reply With Quote
  #3  
Old 06-08-2001, 08:46 PM
ThomasP
Guest
 
Posts: n/a
Default

Yes, I know, but then it shows on every message
I want it only for the first Message in a topic
cu,
-Tom
Reply With Quote
  #4  
Old 06-16-2001, 07:01 PM
ThomasP
Guest
 
Posts: n/a
Default

Does anyone has at least an idea if this could be done at all and has a kind of model if so how?
thx,
-Tom
Reply With Quote
  #5  
Old 06-30-2001, 02:06 PM
Tic Tac
Guest
 
Posts: n/a
Default

ThomasP please show me an example of this and perhaps i can look into getting it working, therefore making my first hack for vB ! Please post a screenshot or a link to your board where this is a problem!

Thanks,
Tic Tac
Reply With Quote
  #6  
Old 06-30-2001, 02:22 PM
ThomasP
Guest
 
Posts: n/a
Default

Hi

thanks for the answer, Tic Tac!
Are you fluent in php? I still am more into perl, but willing to learn...

Here is the screen:


This is how it looks like if the poster doesn't chose an icon (1st three posts, 4th post with icon). I don't like that empty cells...

Now if I chose to include a default icon in the CP, vB does include the default icon in every post - even in threads.

-> I want a default icon only for the first post of a thread if the user doesn't chose one.

Btw: I saw a lot of people posting this

thx,
-Tom
Reply With Quote
  #7  
Old 06-30-2001, 02:32 PM
Tic Tac
Guest
 
Posts: n/a
Default

hmm... it can be done... im just trying to think of something that happens ONLY when the first post is posted in the forum.... if i could figure that out, i could most likely write this hack. no im not all that good with php, but if i get in there and look around i am sure i can get what your wanting! if you could think of anything right off that would help me, please let me know... also if you could refer me to files in which it may be in, that would be great too! i just need to know how to "check" and see if it is the first post in the forum and if it is then display "X-icon". Other Questions follow...

1. Do you want the same icon to be shown whether they choose an icon or not?

2. Do you want this icon to be shown on ALL pages that have a display of threads (i.e. say forum1 has 75 posts and they only display 25 on each page... do you want "X-icon" to appear on every page or just the first one?)

Please answer thes questions to the best of your ability to further help me through this situation!

Thanks,
Tic Tac
Reply With Quote
  #8  
Old 07-01-2001, 11:22 AM
ThomasP
Guest
 
Posts: n/a
Default

Hi Tic Tac,

sorry, I have no idea where this is don...

Hmm, no if someone choses an icon that's fine, just if a user forgets to chose one, there should be the default posting icon, that would be great.
Best would be if the icon would show in the "forumdisplay" pages, so that the effect as seen on the screenshot wouldn't appear anymore...
Thanks,
-Tom
Reply With Quote
  #9  
Old 07-01-2001, 05:25 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Tic Tac
hmm... it can be done... im just trying to think of something that happens ONLY when the first post is posted in the forum.... if i could figure that out, i could most likely write this hack.
I don't think there really is anything that happens only on the first post, but from looking at the database structure, it looks like there is no countid telling what the order of the posts within a postid/threadid are... it seems the system does an sql call and sort for all posts within a threadid, and the post with lowest numerical postid is the first post. So you'd have to do a mysqlcall for the same thing, or find where vbulletin makes the call and get the info from there.... I think it should be in showthread.php. I'd like this feature too and may eventually hack this but I have a lot to do first so it won't be for a long time till I get to it....
Reply With Quote
  #10  
Old 07-02-2001, 04:25 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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="{imagesfolder}/icons/icon1.gif" border="0" alt="">';
    }
and turn the option MasMind mentioned on.
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:48 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.05803 seconds
  • Memory Usage 2,281KB
  • Queries Executed 23 (?)
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
  • (1)bbcode_code
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_onlinestatus
  • (10)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