PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2004-10-20 19:45:07

mi
New member
Registered: 2004-10-17
Posts: 8

adding links in head depending on guest/member/moderator/admin?

yes, it was easy to add links, e.g. to forum startpage/any page in the head.
but, if i want to add another link, but only for members...
• what would be the syntax and in which file would i "mod"?

(hoping this forum is not dead, or i would have to move my q to mommy-forum)


Running PunBB 1.2.19 • School-forumFriendly Web-shopMy sailboat-forum • VERY happy with PunBB!

Offline

 

#2 2004-10-20 23:11:09

gizzmo
Member
From: Earth, Milkyway Galaxy
Registered: 2004-08-05
Posts: 252

Re: adding links in head depending on guest/member/moderator/admin?

just open up include/functions.php and look for the generate_navlinks() function and edit that with:

Code:

if($cur_user['status'] < PUN_MOD)

for users with less than mod privlages

Code:

if($cur_user['status'] = PUN_ADMIN)

if you only want for admins


but you get the idea...its realy simple


Gizzmo

Offline

 

#3 2004-10-21 07:38:35

mi
New member
Registered: 2004-10-17
Posts: 8

Re: adding links in head depending on guest/member/moderator/admin?

sweet! will try that soon - and get back to you if i still dont get it, since i am so stooooopid ;)
(i had a quick look at it...adding another link within one of those check-functions, say in the middle of one which lets members see a link, my "new" link would be visible for members only - how smart IS the programmer? ;) )


Running PunBB 1.2.19 • School-forumFriendly Web-shopMy sailboat-forum • VERY happy with PunBB!

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.