Whenever a guest click on the link to ushop.php he gets the permission error... i would like for guests to view this page only and everything else work the same..... i'm pretty sure is quite simple to accomplish... I just would like for guest to view all the good stuff they are missing :)

hope someone can help me out...

Zachery

15 Mar 2005, 22:33

Whenever a guest click on the link to ushop.php he gets the permission error... i would like for guests to view this page only and everything else work the same..... i'm pretty sure is quite simple to accomplish... I just would like for guest to view all the good stuff they are missing :)

hope someone can help me out...
You will need to remove / change this bit

Find and remove

if ($bbuserinfo['userid'] == 0) {
print_no_permission();
}

Not recomended.

Polo

15 Mar 2005, 22:43

Thank you Zachery :)
Not recomended.
can I know why? :ermm:

hollyboy

15 Mar 2005, 22:46

You will need to remove / change this bit

Find and remove

if ($bbuserinfo['userid'] == 0) {
print_no_permission();
}

Not recomended.

the userid goes here at the place of: userid ?

Polo

15 Mar 2005, 22:51

what about changing it to a non existing number?

if ($bbuserinfo['userid'] == 9999) {
print_no_permission();
}

Zachery

15 Mar 2005, 22:54

what about changing it to a non existing number?
Because unless you go and change it, the unregistered usergroup does not have access to money, or options, and will get a no actions found error.

hollyboy

15 Mar 2005, 22:56

I have the same problem with another page.
I want this page to not be viewble for the unregistered users, what do I have to do?

Polo

15 Mar 2005, 22:57

Because unless you go and change it, the unregistered usergroup does not have access to money, or options, and will get a no actions found error.
well maybe I can just change to "no actions found error" to something like "no actions found, in order to use the action you need to register" and make the register word an active link to the registration form...

can I create some type of security issue by adding this small modification?

I have the same problem with another page.
I want this page to not be viewble for the unregistered users, what do I have to do?
he already posted the solution... :)

hollyboy

15 Mar 2005, 23:00

he already posted the solution... :)

where? :ermm:

Polo

15 Mar 2005, 23:02

You will need to remove / change this bit

Find and remove

if ($bbuserinfo['userid'] == 0) {
print_no_permission();
}

Not recomended.
here

hollyboy

15 Mar 2005, 23:05

here
:ermm: There is something wrong then...
The page I don't want the guest to view is this one: http://www.interfans.org/forum/profil_pic.php

Here's the code, as u can see there is no the code mentioned before

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Polo

15 Mar 2005, 23:07

Well then you are in the wrong forum, because this is just for the ushop ucash hack... anyways, i wouldnt know the answer... and I dont know if someone will help you since as I said, this forum is for the ushop, ucash hack...

hollyboy

15 Mar 2005, 23:09

I thought it was the same problem, sorry

Polo

15 Mar 2005, 23:10

oh dont worry... maybe you should try the general modifications forum... i'm pretty sure someone will be able to help you out...

hollyboy

15 Mar 2005, 23:13

ok polo thank u ;)

Polo

15 Mar 2005, 23:14

ok polo thank u ;)
Your welcome, and hope you find a solution. :)

Polo

23 Mar 2005, 00:00

I tried what you said zachery.. however... guests arent able to see the shop :( even when I applied what you told me