Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Welcome Panel mod

Asked Modified Viewed 3,631 times
S
SoulEater
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

Hello everyone! I wanted to edit my welcome panel to only display to guests, Since I feel like it being displayed all the time to members is a waste of space. -_- How can I go about this?

I have tried this so far:
opentable($locale['global_035']);
if (iGUEST) {
echo stripslashes($settings['siteintro'])."\n";
closetable();
?>


but it didn't work, makes my home page go completely blank.
0 replies

9 posts

R
Rauling
R
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

I will follow this thread - this could be a good thing to add.
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

What is your site adress? Add your prfoile plz..

add a new panel save-request and enable..
panel code:
 if (iMEMBER) {
 echo "";
 }
else {
opentable("Welcome");
echo "CONTENT";
closetable();
}
Edited by HaYaLeT on 10-02-2012 18:13,
0 replies
R
Rauling
R
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

HaYaLeT: Is that the final code to put in so only the guests will see the message?
0 replies
S
SoulEater
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Here's my webpage. http://l1resistance.com/lineage/

I tried this and didn't work either.
if (iMEMBER) {
 echo "";
 }
else {
opentable($locale['global_035']);
echo stripslashes($settings['siteintro'])."\n";
closetable();
?>
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

sory! use this pls:

if (iMEMBER) {
  echo "";
  }
 else {
 opentable($locale['global_035']);
 echo stripslashes($settings['siteintro'])."\n";
 closetable();
}
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Or you can also use this :
if (iGUEST) {
opentable($locale['global_035']);
echo stripslashes($settings['siteintro'])."\n";
closetable();
}
0 replies
S
SoulEater
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you, HaYaLeT & AnkuI! I tried both way they work like charms. I'm grateful for you're assistance. :)
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

Rauling wrote:

HaYaLeT: Is that the final code to put in so only the guests will see the message?


Yes.. if you want only see guest use this code:

 if (iMEMBER) {
  echo "";
  }
 else {
 opentable("Welcome");
 echo "This message for GUEST";
 closetable();
 }


And this code for guest and member

 if (iMEMBER) {
 opentable("Welcome");
  echo "This message for MEMBER";
 closetable();
  }
 else {
 opentable("Welcome");
 echo "This message for GUEST";
 closetable();
 }
0 replies
R
Rauling
R
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Cool, thanks.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 9 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

H
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
S
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
R
R
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 6 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet