Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Starter in Postbit for vB 4 Details »»
Thread Starter in Postbit for vB 4
Version: 1.0.3, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 06-08-2010 Last Update: 07-29-2010 Installs: 149
Uses Plugins
 
No support by the author.

Thread Starter in Postbit for vB 4
Version 1.0.3
(By Boofo)

What does this product do?
This will add a thread starter icon/text to the postbit. There are 4 locations to choose from (2 icon and 2 text). I know this had been done already, but I didn't like how it showed in the postbit. You do not have to have a signature for this to work. This product is just an upgrade to the manual template edit I have used in the past.

Note: This product was written using the postbit_legacy template and has not been tested on the postbit template, although it should work fine.

Version Information:
Version 1.0.0 --Initial release for vBulletin 4.0.0
Version 1.0.1 --Fixed to work for vB 4.0.4
Version 1.0.2 --Added 2 new locations with highlighted text.
Version 1.0.3 --All 4 options are now linked to the first post of the thread. Also fixed a template cache error that was showing up for PMs.

Installation Overview:
-----------------------------------------------------
1 Product XML (2 Plugins, 1 template, 7 phrases and 1 setting)
1 image file

Installation Instructions:
-----------------------------------------------------
1. Upload thread_starter.gif to the forums/images/misc folder on your site.

2. Go to your Admin CP
Scroll down to 'Plugins & Products'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_threadstarter.xml file on your computer

3. Go to your Admin CP -> vBulletin Options -> 'Thread Starter in Postbit' and set the following option:
--Show Thread Starter Icon/Text?: This will add the Thread Starter icon/text to your chosen location in the postbit.

--"No" will disable the Thread Starter icon/text from showing anywhere in the postbit. (Default)
--"Yes, Show icon under userinfo" will place the Thread Starter icon under the userinfo.
--"Yes, Show icon in message area" will place the Thread Starter icon at the top right of the message area.
--"Yes, Show text in button bar" will place the highlighted Thread Starter text in the button bar at the bottom of the post.
--"Yes, Show text in message area" will place the highlighted Thread Starter text at the top center of the message area.
-----------------------------------------------------

Done!
Enjoy!


Code:
if ($mark_as_installed != 'clicked')
{
	$you_get = 'squat';
}
else
{
	$you_get = 'support';
}

Download Now

File Type: zip Thread_Starter_in_Postbit_vb4.zip (8.6 KB, 584 views)

Screenshots

File Type: png ts_message_icon.png (1.5 KB, 0 views)
File Type: png ts_message_text.png (8.5 KB, 0 views)
File Type: png ts_userinfo_icon.png (3.1 KB, 0 views)
File Type: png ts_button_bar.png (1.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
hazem_aliraqi, iiioroh, sodasusu, thecore762

Comments
  #42  
Old 06-13-2011, 02:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dvsDave View Post
You wouldn't still have the original instructions would you? I have some seriously customized postbits and the xml file doesn't seem to work for me.
Just look in the xml file and it will show you where each piece of code goes.
Reply With Quote
  #43  
Old 06-13-2011, 03:04 PM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see the code, but I'm having trouble figuring out where to insert it in the postbit.
Reply With Quote
  #44  
Old 06-13-2011, 03:15 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to look for the template hooks in the code where I insert it:

Code:
$template_hook['postbit_userinfo_right_after_posts']
$template_hook['postbit_controls']
$template_hook['postbit_messagearea_start']
Reply With Quote
  #45  
Old 06-13-2011, 05:01 PM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks much! Turns out I had forgotten to flush my cache after loading the product so the template edits were actually not needed!
Reply With Quote
  #46  
Old 06-13-2011, 05:05 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, so you are running a server cache, I take it? If I had known that I could have saved you some grief.
Reply With Quote
  #47  
Old 06-13-2011, 05:12 PM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I had remembered that I had a cache running, I would have saved myself the grief! But I jumped to the wrong conclusion. I've done some serious customization of the postbit template, laid out here: https://vborg.vbsupport.ru/showthread.php?t=250423 and just thought that it was the cause of the issue, instead of thinking about the cache.
Reply With Quote
  #48  
Old 06-13-2011, 05:37 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best way to handle things like that is to make sure the hooks are in the template. If they are, then it has to be something else causing the issue, as you found out.
Reply With Quote
  #49  
Old 06-14-2011, 01:25 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work Boofo
Reply With Quote
  #50  
Old 06-21-2011, 07:02 AM
adiabatic adiabatic is offline
 
Join Date: Nov 2010
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

when edit a post were the threadstarter icon i visible to the left, it breaks the quick reply box.

Any idea?

vB 4.1.3 - postbit
Reply With Quote
  #51  
Old 06-21-2011, 08:36 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by adiabatic View Post
Hi,

when edit a post were the threadstarter icon i visible to the left, it breaks the quick reply box.

Any idea?

vB 4.1.3 - postbit
Post a pic here so I can see what you are talking about.
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 01:20 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.07393 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete