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?

Members view How to do this

Asked Modified Viewed 2,921 times
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
asked
Junior Member

I'm wondering if there is a way to not have the registered members view like the Welcome msg panel on the main screen after they have logged in. The way i have the welcome msg on my site is for unregistered member when they stop by the site it displays a quick register now and give a brief info about the site. Again if your already a member i would like that not to be displayed to them once they are logged in. TIA
0 replies

13 posts

W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

I am not a programmer but,

I'm think that if maybe ther is a line put into the welcome_msg_panel.php

if (!iMEMBER) hide("welcome_message_panel.php");
0 replies
B
breana
B
breana 10
Love me or hate me....
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Hi, try this i use it on my site a lot :)
It works for me, just put your content in the right place...

if(iMEMBER) {
echo "MEMBERS CONTENT HERE";
} else {
echo "GUEST CONTENT HERE";
}
Edited by breana on 16-11-2007 03:44,
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

i'll try it but do i leave member content empty and put welcome_msg_panel.php in guest section at this time its the welcome msg that i want to hide from registered members but display it to unregistered people.

here is what i put into the welcome_message_panel.php NO LUCK

Quote

<?php
/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION"wink) { header("Location: ../../index.php"wink; exit; }

if(iMEMBER) {
echo "";
} else {
echo "welcome_message_panel.php";
}


opentable($locale['024']);
echo stripslashes($settings['siteintro'])."\n";
closetable();
?>
Edited by Woody on 16-11-2007 03:51,
0 replies
B
breana
B
breana 10
Love me or hate me....
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

It depends on you hun, i have it set so a guest will see a welcome panel with links...
And members see a different panel, with stats and other junk so you can leave it blank thats ok it wont hurt it!

Oh, you want to hide the welcome panel total to members give me a second...
Edited by breana on 16-11-2007 03:57,
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

luv ya for helpin out and really want this to work
0 replies
B
breana
B
breana 10
Love me or hate me....
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

if(iMEMBER) {
echo "";
} else {
include INFUSIONS."welcome_message_panel/welcome_message_panel.php";
}


opentable($locale['024']);
echo stripslashes($settings['siteintro'])."\n";
closetable();


I just tested it on my site it works fine, you forgot the path to the folder/
Edited by breana on 16-11-2007 04:05,
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

nope still not working hmmmm
0 replies
B
breana
B
breana 10
Love me or hate me....
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Did you get my mail?
Post the whole php in a zip file i will mod it for you hun.

Or should i ask how are you setting it, by making a new page in admin or adding it to the current welcome_message.php?
Edited by breana on 16-11-2007 04:15,
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

editing the welcome_message_php file it self

NOTE what i ahve in quotes is the whole file
Edited by Woody on 16-11-2007 04:17,
0 replies
B
breana
B
breana 10
Love me or hate me....
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

Ok just a sec i'll fix it.


/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

if(iMEMBER) {
echo "";
} else {
opentable($locale['024']);
echo stripslashes($settings['siteintro'])."\n";
closetable();
}


Replace all the code with this code...
Edited by breana on 16-11-2007 04:20,
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

I L O V E U U U U U TY for your help it worked great

:D:D
0 replies
B
breana
B
breana 10
Love me or hate me....
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

NP, just remember i am here to help :)
Did you get my mail because the host timed out, drop me a line on there i can help you with other stuff as well by!
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

no i didnt get any email but i did get pm and replied to it again ty for ur help
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 13 posts
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet