MyBB Central
My Awards 1.3 - Printable Version

+- MyBB Central (http://www.mybbcentral.com)
+-- Forum: Archives (http://www.mybbcentral.com/forum-33.html)
+--- Forum: Mybb 1.4x Series Topics (http://www.mybbcentral.com/forum-26.html)
+---- Forum: Mybb 1.4x Plugins and Hacks (http://www.mybbcentral.com/forum-27.html)
+---- Thread: My Awards 1.3 (/thread-1782.html)



RE: My Awards 1.2 - rapid - Feb 22, 2009

Any update on my reply above?
Quote:Sorry one problem, i do not want guests to view the Recipients page,
how do I stop them from viewing this please.



RE: My Awards 1.2 - labrocca - Feb 22, 2009

And after the include for globals.php add this:

if(!$mybb->user['uid'])
{
error_no_permissions();
}


RE: My Awards 1.2 - Robotics131 - Feb 24, 2009

Just Registered So I Can Get This. How Long Do I Have To Wait? Anyway It Looks Really Good Big Grin


RE: My Awards 1.2 - labrocca - Feb 24, 2009

Downloads are for subscribers...read the PM you recieved on signup please.


RE: My Awards 1.2 - rapid - Feb 24, 2009

Code:
And after the include for globals.php add this:

if(!$mybb->user['uid'])
{
error_no_permissions();
}

Sorry, for me that is confusing. I am not an experienced coded or user.
What i did was opened up the globals.php file, and when i searched for include the search field came up with three options with the word includes in.

Where do i put it exactly?


RE: My Awards 1.2 - labrocca - Feb 25, 2009

Rapid:
Do it after this line:

Code:
require_once "./global.php";



RE: My Awards 1.2 - Bey Brad - Feb 25, 2009

He tried to get global.php

You need to edit the plugin file, NOT global.php


RE: My Awards 1.2 - rapid - Feb 25, 2009

hmm, i placed the code:

PHP Code:
if(!$mybb->user['uid'])
{
error_no_permissions();


After:
PHP Code:
require_once "./global.php"

now when i load the plugin page in admin it does not load, it says there is an error on line 22, which according to Dreamweaver is:
PHP Code:
error_no_permissions(); 

Am at a lost. Now i think i will just leave this plugin alone.
Maybe for future versions of My Awards we can have an option to enable/disable view to Guests. That's the Recipients page

Thanks for your help guys


RE: My Awards 1.2 - MattR - Feb 25, 2009

I believe it's

PHP Code:
error_no_permission(); 

as opposed to

PHP Code:
error_no_permissions(); 

no 's' at the end of permission. That's just based on what I've seen before, may not be the cause.


RE: My Awards 1.2 - rapid - Feb 25, 2009

Thanks MattR, am not touching it now, maybe worth having that rule ie 'option to enable/disable viewing of the Recipients page for guests'.

What do you think?