Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Different header or page for different access required

UserPost

7:09 am
February 3, 2010


lordakoa

Member

lordakoa

posts 5

1

I am using NextGen Gallery for my header as a slideshow. Problem is I only want the subscribed users to see the photos on it. I want to give the folks that havent logged in a different header or the default header.jpg that my Iphone users get now. Any tips?

8:41 am
February 8, 2010


Kevin

Admin

posts 1326

2

lordakoa said:

I am using NextGen Gallery for my header as a slideshow. Problem is I only want the subscribed users to see the photos on it. I want to give the folks that havent logged in a different header or the default header.jpg that my Iphone users get now. Any tips?


If that's all you need, some custom code in your template's header.php should do the job:

global $current_user;
if ( $current_user->ID ) {
  // your subscriber display code
} else {
  // your non-subscriber display code
}

7:15 pm
February 8, 2010


lordakoa

Member

lordakoa

posts 5

3

perfect, worked like a charm!



Reply to Topic: Different header or page for different access required

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 11 + 11        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 667

Posts: 3053

Members:

There are 601 members

There are 1 guests


Kevin has made 1326 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin