vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   Allow Guests to view the ushop (https://vborg.vbsupport.ru/showthread.php?t=78186)

Polo 03-15-2005 09:21 PM

Allow Guests to view the ushop
 
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 03-15-2005 09:33 PM

Quote:

Originally Posted by Polo
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 03-15-2005 09:43 PM

Thank you Zachery :)
Quote:

Originally Posted by Zachery
Not recomended.

can I know why? :ermm:

hollyboy 03-15-2005 09:46 PM

Quote:

Originally Posted by Zachery
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 03-15-2005 09:51 PM

what about changing it to a non existing number?

Quote:

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

Zachery 03-15-2005 09:54 PM

Quote:

Originally Posted by Polo
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 03-15-2005 09:56 PM

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 03-15-2005 09:57 PM

Quote:

Originally Posted by Zachery
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?

Quote:

Originally Posted by hollyboy
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 03-15-2005 10:00 PM

Quote:

Originally Posted by Polo


he already posted the solution... :)

where? :ermm:

Polo 03-15-2005 10:02 PM

Quote:

Originally Posted by Zachery
You will need to remove / change this bit

Find and remove

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

Not recomended.

here


All times are GMT. The time now is 03:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01122 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete