• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Buttons only for admins.

This forum is now locked as we will no longer be developing the v1.x branch

Moderators: OldWolf, re*s.t.a.r.s.*2

Topic locked
2 posts • Page 1 of 1

Postby kyl10 » Wed Sep 16, 2009 11:32 pm

hey everyone I'm new here.. I'm pretty good with the chat and everything.. but one thing i couldnt figure out how to do.

is there a way to add another button to the chat? kind of like the send button, only like right next to the formatting options for the text. also, the button should only show if you are admin, and i want it to be so when the button is clicked it brings you to another php file.

so basically, another button, only usable by admins, that when clicked by an admin, brings you to a different php file of your choice.

this must be possible.. i just don't know how to do it.

any help would be greatly appreciated with this.
kyl10
New member
 
Posts: 2
Joined: Wed Sep 16, 2009 11:27 pm
Top

Postby Jamesiv4 » Thu Sep 17, 2009 2:58 pm

Take a look in chatthemesdefault and modify chat.html.tpl.php to add a button.

Don't have any idea how to make it Admin only.

You might have better luck creating an 'Admin Only' command, such as /rehash

James
Jamesiv4
Member
 
Posts: 57
Joined: Sat Sep 06, 2008 11:18 am
Top


Topic locked
2 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 2 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub