Forum Toolbar Problems
3 posters
Page 1 of 1
Forum Toolbar Problems
What I need to know is just how to do a few things:
-Detect if a member is logged in
-Detect if a member is Administrator/Moderator
-Put the above two to use
I am the root admin on this site, and need help putting the above three to use in the site's custom navbar.
Any help would be appreciated.
NOTE:
Credit to MrMario for his "Pop-Out Chatbox" code, I based this toolbar off of that.
-Detect if a member is logged in
-Detect if a member is Administrator/Moderator
-Put the above two to use
I am the root admin on this site, and need help putting the above three to use in the site's custom navbar.
Any help would be appreciated.
- Code:
- Code:
<!--Edited Player863, credit to MrMario of forumotion for original code, not to be edited without consent
Give Credit if you DO use this!-->
<!--Main DIV bar--><div id="chatbox_ret_cont" style="border-bottom: 7px solid rgb(148, 11, 11); z-index: 10000; background-image:url('http://hitskin.com/themes/12/14/91/i_background.jpg'); position: fixed; top: 0pt; left: 0pt; width: 100%; border-color: #000000;">
<!--QuikLink: font and credits--><div style="font-size: 12px; font-family: 'trebuchet ms',serif; cursor: pointer; padding: 3px; text-align: left;"><span id="chatbox_ret_online" style="color:#CCCCCC);"><b><a title="Original Pop-Out Chatbox by MrMario. Edited by Player863. Thank you for using QuikLink.">QuikLink:</a>
<!--Links-->
<a href="http://pspology.forumotion.com/forum">Home</a>|
<a href="http://pspology.forumotion.com/faq">FAQ</a>|
<a href="http://pspology.forumotion.com/search">Search</a>|
<a href="http://pspology.forumotion.com/memberlist">Members</a>|
<a href="http://pspology.forumotion.com/profile?mode=editprofile">Profile</a>|
<a href="http://pspology.forumotion.com/privmsg?folder=inbox">Messages</a>|
<a href="http://pspology.forumotion.com/t19-forum-rules">Rules</a>|
<a href="http://pspology.forumotion.com/f15-forum-news">News</a>|
<a href="http://pspology.forumotion.com/login?logout=1&tid=f23cc40bb121329a1db864407810ff1f&key=3452cd">Log Out</a>|
<a href="http://pspology.forumotion.com/login">Log In</a>|
<!--Confusing, isn't it? It toggles showing the iframe which contains the Chatbox-->
<a onclick="(document.getElementById('chatbox_ret').style.display=='block')?my_setcookie('chatbox_ret','0',0,0):my_setcookie('chatbox_ret','1',1,0); $('#chatbox_ret').toggle('showOrHide');" class="external"><font color="#FF9900"><u>Chatbox</u></font></a></b></span></div>
<!--Chatbox iframe-->
<iframe scrolling="no" frameborder="0" onload="if(cb_new) { cb_start(); cb_new=0; }" style="width: 100%; height: 40%; display: none;" marginheight="0" marginwidth="0" name="chatbox_ret" id="chatbox_ret" src="/chatbox/chatbox.forum"></iframe>
<!--Search iframe
Beta, not referred to, never will
Production was stopped because of difficulty-->
<iframe scrolling="no" frameborder="0" style="width: 100%; height: 15%; display: none;" marginheight="0" marginwidth="0" name="search_iframe" id="search_iframe"><form action="/search.forum" method="get"><div class="gensmall"><input type="text" class="bginput" name="search_keywords" size="24" style="width:50%;" /> <input type="submit" class="button" value="Go" />
<input id="interne" type="radio" name="typerecherche" value="interne" checked="checked" /><label for="interne"> Inside</label> <input id="google" type="radio" name="typerecherche" value="google" /><label for="google"> <b><font color="#0039b6">G</font><font color="#c41200">o</font><font color="#f3c518">o</font><font color="#0039b6">g</font><font color="#30a72f">l</font><font color="#c41200">e</font></b></label>
Display results as :
<input id="rposts" type="radio" name="show_results" value="posts" /><label for="rposts"> Posts</label> <input id="rtopics" type="radio" name="show_results" value="topics" checked="checked" /><label for="rtopics"> Topics</label><hr /><a href="/search.forum"><img src="http://2img.net/i/fa/empty.gif" width="12" height="13" border="0" alt="Rechercher" hspace="3" /> Advanced Search</a></div></form></iframe>
</div>
NOTE:
Credit to MrMario for his "Pop-Out Chatbox" code, I based this toolbar off of that.
Last edited by Player863 on June 11th 2011, 6:25 pm; edited 2 times in total
Re: Forum Toolbar Problems
Your forum should automatically detect if a member logs in so what are you trying to do ?
Mike- Hyperactive
- Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado
Re: Forum Toolbar Problems
I'm trying to get the toolbar to detect if a member is logged in and display the "Log In" and "Log Out" accordingly.
Re: Forum Toolbar Problems
I see a log in and log out tab?
whats it do when your logged in?
whats it do when your logged in?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Forum Toolbar Problems
The toolbar at the top of the page:
Whether I'm logged in or out, it displays both. However, I want to change it to display Log In and Log Out for guests and members respectively. Along with displaying an Admin Panel shortcut for Admins. Is there any way I can do that?
Whether I'm logged in or out, it displays both. However, I want to change it to display Log In and Log Out for guests and members respectively. Along with displaying an Admin Panel shortcut for Admins. Is there any way I can do that?
Re: Forum Toolbar Problems
Player863 wrote: However, I want to change it to display Log In and Log Out for guests and members respectively.
it's already doing that?????
As far as the admin panel option, when your admins are logged into the forum they will see it at the bottom of the page as normal,
unless your able to take the code for it out of the template and add to the code in your tool bar.. but i dont think it's going to work or be compatible that way.
Other then that i do not know what you mean by the log in and log out for guest or members.
a guest is a guest and means they are not logged into the forum, you can be a member and when your not logged in your just a guest until you log in LOL..
so the log in and log out is already showing that way.
I am just confused on it?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Forum Toolbar Problems
It's alright, I guess I'm not explaining it correctly. Anyway, I am one of the "other admins" on that site, so I can't go to the template editor in the Admin Panel. All I need to know is:
Is there a script of some kind that can detect if a member is logged in, and, if so, how would I manipulate it to perform certain actions (such as display certain links)?
Is there a script of some kind that can detect a member's rank, and, if so, how would I... yadayadayada...?
That's all I need to know, and
Is there a script of some kind that can detect if a member is logged in, and, if so, how would I manipulate it to perform certain actions (such as display certain links)?
Is there a script of some kind that can detect a member's rank, and, if so, how would I... yadayadayada...?
That's all I need to know, and
Re: Forum Toolbar Problems
i dont know of any scripts like that,
But you should be able to see who's online in the who's online section,
Be sure to set your settings for mods to see hidden members, the founder can actually remove that whole feature from the template if they are using phpbb2 or punbb
other then that be sure you have the who's online feature on in the acp.. and you can always see ranks by clicking on their name or just going to their profile in the acp
But as far as a script to automatically see what your asking? thats a tough one. i do not know of anything like that?
But you should be able to see who's online in the who's online section,
Be sure to set your settings for mods to see hidden members, the founder can actually remove that whole feature from the template if they are using phpbb2 or punbb
other then that be sure you have the who's online feature on in the acp.. and you can always see ranks by clicking on their name or just going to their profile in the acp
But as far as a script to automatically see what your asking? thats a tough one. i do not know of anything like that?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Forum Toolbar Problems
Wow... I really suck at explaining
Ummmmmmm... How would I put this...
If the viewer (you, the user) is logged in, display Log Out, otherwise, display Log In in the place of Log Out. Get it now?
Ummmmmmm... How would I put this...
If the viewer (you, the user) is logged in, display Log Out, otherwise, display Log In in the place of Log Out. Get it now?
Re: Forum Toolbar Problems
hahah oh why dint you just say so
dunno i have to see the code, it should do it automatically if it was set up right?
It looks like a familiar tool bar i seen before.. is there a tutorial on that one here on forumotion support?
dunno i have to see the code, it should do it automatically if it was set up right?
It looks like a familiar tool bar i seen before.. is there a tutorial on that one here on forumotion support?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Forum Toolbar Problems
Well it's only a series of hrefs, so I don't think it'd know...
And no, this is only modified code from the "Pop-Out Chatbox" that MrMario posted.
And no, this is only modified code from the "Pop-Out Chatbox" that MrMario posted.
Re: Forum Toolbar Problems
Player863 wrote:, this is only modified code from the "Pop-Out Chatbox" that MrMario posted.
oh well that explains a lot?
i dont think your going to be able to get it, thats why both log in and log out was added to the coding the way it is now.
Are you sure you want to use that, you can find other stuff here that will work better and have the options like the way you are asking
oh wait i know see you did, you just added a custom nav bar in to the top of the chat code.
You know what i would try. i'll have to test.
just go into the index template and find then remove everything out of the nav bar options you do not want, then add that to the top of the overall template.
it sounds easier then what it is, so i will have to go and make sure it's possible and will work.
I dont have time to do it tonight but will be sure to fiddle with it tomorrow when i get home from work.it should work, but may take me a few min to adjust it properly.
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Forum Toolbar Problems
Thanks for the help kirk. I've now put the custom navbar on my own site, so I think I'll have to try the template editing (that is, if I can find the right one )
Similar topics
» 3 Forum-Theme Problems: Image Not Displaying, Bits of Old Themes Remain, Toolbar...
» 2 problems on toolbar
» Tablet/mobile problems with the toolbar.
» Toolbar under of the forum
» How To Add A Toolbar To My Forum.
» 2 problems on toolbar
» Tablet/mobile problems with the toolbar.
» Toolbar under of the forum
» How To Add A Toolbar To My Forum.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum