Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
My Threads/My Posts Links in Header Details »»
My Threads/My Posts Links in Header
Version: 1.00, by vBNinja vBNinja is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.7 Rating:
Released: 04-20-2012 Last Update: Never Installs: 7
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

This is a very simple template modification to show links for "My Threads" and "My Posts" under the welcome box.

In the Header Template:

Find:
Code:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
Replace all of it with:
Code:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
	
<div class="memberInfo">
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">? My Threads</a>
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">? My Posts</a>
</div></div>
Feel free to replace the text to whatever you want!

That's it!

Note: Depending on your style, you might need to fix your search box,
If your searchbox looks weird now, add this to your additional css in the "Main CSS" page for your style:

Code:
.loginBox {
    height: 28px;
    margin-top: 0px;
}
Replace 0px with what best suits your style


Please mark as installed for support!

Show Your Support

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

Comments
  #2  
Old 04-23-2012, 01:50 AM
exel exel is offline
 
Join Date: Jan 2008
Location: Southern California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need that div. >.>

Code:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
<div>
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">? My Threads</a>
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">? My Posts</a></div>
You can pretty much add this wherever you want it to show, doesn't have to be header.
Code:
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">? My Threads</a>
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">? My Posts</a>
Reply With Quote
  #3  
Old 04-23-2012, 02:09 AM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by exel View Post
You don't need that div. >.>

Code:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
<div>
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">? My Threads</a>
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">? My Posts</a></div>
You can pretty much add this wherever you want it to show, doesn't have to be header.
Code:
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">? My Threads</a>
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">? My Posts</a>
Yes, but my example was to put it underneath the private messages..
Reply With Quote
2 благодарности(ей) от:
Al3asq, d1alaccom
  #4  
Old 04-23-2012, 04:38 AM
exel exel is offline
 
Join Date: Jan 2008
Location: Southern California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I meant this div: <div class="memberInfo">

Should just be <div>

Reply With Quote
  #5  
Old 04-23-2012, 10:53 AM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by exel View Post
I meant this div: <div class="memberInfo">

Should just be <div>

Tried that first, the text looked bigger than the rest and made it look bad, so i use the memberinfo div to match it
Reply With Quote
  #6  
Old 04-24-2012, 02:01 AM
exel exel is offline
 
Join Date: Jan 2008
Location: Southern California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But memberinfo isn't in all the themes, so add that below.

Grab the css for 'memberinfo' and post it, tell people to add it to their additional css.
Reply With Quote
  #7  
Old 05-01-2012, 12:58 PM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by exel View Post
But memberinfo isn't in all the themes, so add that below.

Grab the css for 'memberinfo' and post it, tell people to add it to their additional css.
True, thanks for the tip
Reply With Quote
  #8  
Old 07-11-2012, 03:31 PM
bjkinzluvr bjkinzluvr is offline
 
Join Date: Sep 2008
Location: Ohio
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to do this in vBulletin 4.2 but add it as a link to the Quick Links menu?
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 11:11 PM.


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.04463 seconds
  • Memory Usage 2,291KB
  • Queries Executed 24 (?)
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
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete