Page Index Toggle Pages: 1
Topic Tools
Link to my posts on menu bar (Read 1,510 times)
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,768
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Link to my posts on menu bar
Reply #4 - Sep 20th, 2011 at 2:05pm
Post Tools
Off-Topic replies have been moved to this Topic.
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Link to my posts on menu bar
Reply #3 - Sep 1st, 2011 at 8:11pm
Post Tools
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; } 



  
Back to top
 
IP Logged
 
estebanv
YaBB Newcomer
*
Offline



Posts: 23

None
Re: Link to my posts on menu bar
Reply #2 - Sep 1st, 2011 at 8:02pm
Post Tools
Thabks it works great, is there a way I can configure it to 10 latests posts ?
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Link to my posts on menu bar
Reply #1 - Sep 1st, 2011 at 6:20pm
Post Tools
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 »  
Back to top
 
IP Logged
 
estebanv
YaBB Newcomer
*
Offline



Posts: 23

None
Link to my posts on menu bar
Sep 1st, 2011 at 5:38pm
Post Tools
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...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top