CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Header with dynamic links based on security groupid

Print topic Send  topic

Author Message
beckie

Posts: 16
Posted: 01/15/2005, 7:57 AM

I want a header that displays only the links to pages that are accessible by a user based on its groupid.

Is it possible to generate a dynamic set of links in a header?

I'm using CSS in combination with PHP / MySQL.
View profile  Send private message
DonB
Posted: 01/15/2005, 9:22 AM

I include a call to this function in my "restricted" links' Before Show
events. The links have "Extended HTML" enabled so that they acquire a
Visible property (won't work if you forget to do this).

function restricted(&$item, $level) {
# Hide elements that are restricted. User group must be at least that
specified in $level
# for $item to be visible

$item->Visible = (CCGetGroupID() >= $level ? true : false);

}


--
DonB

http://www.gotodon.com/ccbth


"beckie" <beckie@forum.codecharge> wrote in message
news:241e93d7db071c@news.codecharge.com...
> I want a header that displays only the links to pages that are accessible
by a
> user based on its groupid.
>
> Is it possible to generate a dynamic set of links in a header?
>
> I'm using CSS in combination with PHP / MySQL.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

beckie

Posts: 16
Posted: 01/15/2005, 1:11 PM

Can you explain how this code generates the actual hyperlinks to the authorized pages? And can I influence to order and position of these hyperlinks?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.