The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Forum Toolbar Problems

View previous topic View next topic Go down

Forum Toolbar Problems

Post by Player863 on June 4th 2011, 4:53 pm

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.

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://illiweb.com/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

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 5th 2011, 5:55 pm

24 hours...

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by Mike on June 5th 2011, 6:32 pm

Your forum should automatically detect if a member logs in so what are you trying to do ?

Mike
Hyperactive

Male Posts : 4242
Reputation : 466
Language : English, HTML, CSS
Location : Bozeman, Montana

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 5th 2011, 8:25 pm

I'm trying to get the toolbar to detect if a member is logged in and display the "Log In" and "Log Out" accordingly.

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 6th 2011, 6:26 pm


Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by kirk on June 6th 2011, 11:41 pm

I see a log in and log out tab?

whats it do when your logged in?

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 7th 2011, 12:09 am

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?

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by kirk on June 7th 2011, 3:36 am

@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 scratch LOL..
so the log in and log out is already showing that way.

I am just confused on it?

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 7th 2011, 3:47 am

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

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by kirk on June 7th 2011, 4:54 am

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?

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 7th 2011, 5:15 am

Wow... I really suck at explaining Razz
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?

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by kirk on June 7th 2011, 5:25 am

hahah oh why dint you just say so Razz

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

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 7th 2011, 5:50 pm

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.

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 9th 2011, 3:09 am

BUMP

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

Re: Forum Toolbar Problems

Post by kirk on June 10th 2011, 4:04 am

@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

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: Forum Toolbar Problems

Post by Player863 on June 11th 2011, 4:20 pm

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 Razz)

Player863
New Member

Male Posts : 13
Reputation : 0
Language : English, HTML, Jscript, A bit of Lua

http://pspology2.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum