YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
Link to my posts on menu bar (Read 1,369 times)
 Sep 1st, 2011 at 5:38pm
There are no actions to perform.  

estebanv 
YaBB Newbie
*
Offline
Posts: 23


YaBB 2.5
Link to my posts on menu bar
I would like a link on the menu bar next to to the Panel link. So that a user can go directly to his hiw own posts because it very handy.

I can make a lik but how do I get the username to the query string ? Hare is an example of the link

http://www.yabbforum.com/community/YaBB.pl?action=myusersrecentposts;username=43...
 
 
IP Logged  
 Reply #1 - Sep 1st, 2011 at 6:20pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Link to my posts on menu bar
Hi estebanv,

This will be limited to the last 5 posts, but I think it's sort of what you mean. First off, in the the yabb2 directory, open up Variables/Settings.pl and you should have a line that looks something like this:

Code (Perl)Select All
@AdvancedTabs = ("home","help","search","ml","admin","revalidatesession","login","register","guestpm","mycenter","logout"); # Advanced Tabs order and infos 


Add the highlighted, like so:

Code (Perl)Select All
@AdvancedTabs = ("home","help","search","ml","admin","revalidatesession","login","register","guestpm","mycenter","recent","logout"); # Advanced Tabs order and infos 


Then open up Sources/TabMenu.pl and find:

Code (Perl)Select All
        $tab{'mycenter'} = qq~<span |><a href="$scripturl?action=mycenter" title = "$img_txt{'mycenter'}" style="padding: 3px 0 4px 0;">$tabfill$img_txt{'mycenter'}$tabfill</a></span>~; 


And add after:

Code (Perl)Select All
        $tab{'recent'} = qq~<span |><a href="$scripturl?action=usersrecentposts;username=$useraccount{$username}" title = "My Recent Posts" style="padding: 3px 0 4px 0;">$tabfill My Recent Posts $tabfill</a></span>~; 

« Last Edit: Sep 1st, 2011 at 6:55pm by Derek Barnstorm »  
 
IP Logged  
 Reply #2 - Sep 1st, 2011 at 8:02pm
There are no actions to perform.  

estebanv 
YaBB Newbie
*
Offline
Posts: 23


YaBB 2.5
Re: Link to my posts on menu bar
Thabks it works great, is there a way I can configure it to 10 latests posts ?
 
 
IP Logged  
 Reply #3 - Sep 1st, 2011 at 8:11pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Link to my posts on menu bar
No worries.

estebanv wrote on Sep 1st, 2011 at 8:02pm:
is there a way I can configure it to 10 latests posts ?

Find this line in Sources/Profile.pl:

Code (Perl)Select All
    if (!$display) { $display = 5; } 


And change the '5' to '10':

Code (Perl)Select All
    if (!$display) { $display = 10; } 



 
 
IP Logged  
 Reply #4 - Sep 20th, 2011 at 2:05pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,619
Land of the Blazing Sun!


None
Re: Link to my posts on menu bar
Off-Topic replies have been moved to this Topic.
 
I find your lack of faith disturbing.
 
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.