Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 08:05 am EDT

Geeklog Forums

Creating a button link under 'Admins Only'


Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
Hey guys,

Does anyone know how to create a button with links under "Admin Only". If so, could please tell me where should go and edit the code to have buttons. And plus how to restrict certain users accessing from that page.

Suresh
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by suresheva31: Does anyone know how to create a button with links under "Admin Only".

NOt sure what you mean. Do you want buttons instead of the links?

That can be done by changing the adminoption.thtml and adminoption_option.html template files.

Quote by suresheva31: And plus how to restrict certain users accessing from that page.

Geeklog already does that for you. Only those users that have Admin permissions will see the block in the first place. And if you make someone, say, a Story Admin, they will only see the links for Story Admins but not e.g. the link to the user list.

bye, Dirk
 Quote

Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
You the know the button you see under 'Admins Only'
exampels:

Submissions
Stories
Blocks
Topics
Links
etc ..

I want to create my own button something like that, and links to my own pages, with wrap around of geeklog
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by suresheva31: You the know the button you see under 'Admins Only'

Ah, okay. I wouldn't call them "buttons", though. Those are simple text links.

Quote by suresheva31: I want to create my own button something like that, and links to my own pages, with wrap around of geeklog

Write a plugin.

bye, Dirk
 Quote

Status: offline

suresheva31

Forum User
Junior
Registered: 09/13/04
Posts: 21
ok thanks.

So that's the only way I could solve that question rite?

Suresh
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by suresheva31: So that's the only way I could solve that question rite?

The only official way at least. You don't need to implement all the plugin API functions, btw. Only pick those that you need.

The unofficial way would be to hack Geeklog, but then you'd have to do all your changes again when you upgrade to a later version.

bye, Dirk
 Quote

Status: offline

comicbookguy

Forum User
Regular Poster
Registered: 05/15/04
Posts: 97
An easy alternative would be to create a block with admin only privilages and place your links in there. You can easily set it up to appear right below or above your Admin Block so it's easy to find.

I actually have a number of blocks with reference material and news feeds that only I see when I log on as an admin. It's a good way to manage your site and your info.
 Quote

All times are EDT. The time is now 08:05 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content