The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Forum Toolbar Problems

3 posters

Go down

Forum Toolbar Problems Empty Forum Toolbar Problems

Post by Player863 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:

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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

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

24 hours...
Forum Toolbar Problems 34343388
Player863
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

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

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

Male Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by Player863 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
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

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

Forum Toolbar Problems 34343388
Player863
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

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

I see a log in and log out tab?

whats it do when your logged in?
kirk
kirk
Forumaster

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

Back to top Go down

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by Player863 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
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by kirk 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
kirk
Forumaster

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

Back to top Go down

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by Player863 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
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by kirk 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
kirk
Forumaster

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

Back to top Go down

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by Player863 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
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by kirk 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
kirk
Forumaster

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

Back to top Go down

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by Player863 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
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

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

BUMP
Player863
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

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by kirk 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
kirk
Forumaster

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

Back to top Go down

Forum Toolbar Problems Empty Re: Forum Toolbar Problems

Post by Player863 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
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

Back to top

- Similar topics

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