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?

To Make guest register on my website

Asked Modified Viewed 2,551 times
I
isz24
I
isz24 10
  • Member, joined since
  • Contributed 60 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
asked
Member

I wanna my website is register by guest to see the full of my website...
now, even my guest didn't register but they still can see what i post on my news...
so what should i do?

can you recomend any code or modification that should i do...
please help me...
im newbie...

i use php fusion v7.02
0 replies

8 posts

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

Simply edit your news.php and find this line first :
add_to_title($locale['global_200'].$locale['global_077']);

After this line, add this condition :
if (iMEMBER) {

Now goto the end of the file where this line is written :
require_once THEMES."templates/footer.php";

before this line, add a curly closing bracket, i.e :
}

Done ! Your Guests will not be able to see the news. Just add a simple Notice in a panel and enable on Main saying that "you need to registere first etc etc" ;)
0 replies
I
isz24
I
isz24 10
  • Member, joined since
  • Contributed 60 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
answered
Member

tq admin...

Merged on May 16 2011 at 23:12:33:
people that not registerd cannot view the pages...

but i want to redirect back them to news.php...

what should i do...

please help me!!
Edited by isz24 on 16-05-2011 16:12,
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

This thread is in the wrong place, moved.
0 replies
G
GMUDuckman
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
answered
Senior Member

Just change the permissions on the news items. You can control who can see the news when you post it.
0 replies
I
isz24
I
isz24 10
  • Member, joined since
  • Contributed 60 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
answered
Member

i want to make if not member it will return back to new page...
what should i do?
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

You need to put a redirect in your code for that....

   if (!iMEMBER) { redirect(BASEDIR."index.php"); }
0 replies
I
isz24
I
isz24 10
  • Member, joined since
  • Contributed 60 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
answered
Member

where i should put that code?
0 replies
N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

I would recommend against using the following as of now:

redirect("index.php");


As is it would more than likely create a redirect loop (unless you changed your opening page).

Use the following option, when creating some news content, set Access to "Member".

Look at the image below for reference.

Best,
NetriX

www.php-fusion.co.uk/infusions/forum/attachments/news.jpg
NetriX attached the following file:
news.jpg [No information available / 46 Downloads]
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 6 members

6 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
N
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
G
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
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
I
I
isz24 10
  • Member, joined since
  • Contributed 60 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet