MyBB Community Forums

Full Version: Make a Custom User-Bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am wanting to add a user-bar to my site, such as this one:
[Image: XboxMBXboxMessageBoardsXboxMB.png]

I am wanting the bar at the bottom of the page and for it to move as I scroll, how would I do this?
Add this code to the bottom of your headerinclude_welcomeblock_member template:

<div style="width: 100%; text-align: left; padding: 7px; position: fixed; bottom: 0; left: 0; font-size: small; background: #eee; border: 1px solid #888; color: #000">
<div style="border: 1px solid #ccc; padding: 3px; display: inline;">
<a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}
</div>
&nbsp;
<div style="border: 1px solid #ccc; padding: 3px; display: inline;">
<form action="/search.php" method="post" style="display: inline;"><input name="keywords" title="Enter your search keywords" type="text" /><input value="Search Forum" name="submit-search" type="submit" /><input type="hidden" name="action" value="do_search" /></form>
</div>
</div>
Ok, thanks it worked. How do I add onto a current link?

Like for instance if I have the page open as: http://moddingnation.org/forum/forumdisplay.php?fid=12
and I wanted to add onto the link:
&filterxt_prefix=2

so it would appear as: http://moddingnation.org/forum/forumdisp...t_prefix=2

But I am wanting to do this on any page so if I'm on http://moddingnation.org/forum/forumdisplay.php?fid=13
then it will add &filterxt_prefix=2 onto the link to make it http://moddingnation.org/forum/forumdisp...t_prefix=2
and for it to be like this for any page.

How would I do this?
So basically you want to add &filterxt_prefix=2 onto arbitrary links? It's kind of impossible... (edit: very difficult/impractical...)

May I ask why you want to do this, or what it does?
(2011-12-28, 01:15 AM)Dennis Tsang Wrote: [ -> ]So basically you want to add &filterxt_prefix=2 onto arbitrary links? It's kind of impossible... (edit: very difficult/impractical...)

May I ask why you want to do this, or what it does?

That was the whole point of everything that I was doing today, it would be pointless if I wasn't able to add that to any given page I was on.

What I am planning on doing is nothing like I have seen on any other forum, this would create less server strain and load pages a bit faster.
What I have done is make general section, then I have made thread prefixes which go into more specific details.
The user would go into the general section then would click on the button on the userbar so it would filter all the threads with a specific thread prefix so they are by themselves.
This would make the forum look cleaner and simple.
Ok, I got it to work.
Just in case anyone stumbles upon this in the future and wants to know how I did it, the code I used is:
<div style="border: 1px solid #ccc; padding: 3px; display: inline;">
<a href="{$forumurl_q}filterxt_prefix=1">Display MW2</a>