vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - My Threads/My Posts Links in Header (https://vborg.vbsupport.ru/showthread.php?t=281880)

vBNinja 04-20-2012 09:00 PM

My Threads/My Posts Links in Header
 
1 Attachment(s)
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!

exel 04-23-2012 12:50 AM

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>


vBNinja 04-23-2012 01:09 AM

Quote:

Originally Posted by exel (Post 2322619)
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..

exel 04-23-2012 03:38 AM

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

Should just be <div>

:)

vBNinja 04-23-2012 09:53 AM

Quote:

Originally Posted by exel (Post 2322641)
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

exel 04-24-2012 01:01 AM

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. :)

vBNinja 05-01-2012 11:58 AM

Quote:

Originally Posted by exel (Post 2322983)
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

bjkinzluvr 07-11-2012 02:31 PM

Is there any way to do this in vBulletin 4.2 but add it as a link to the Quick Links menu?


All times are GMT. The time now is 01: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.02394 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete