MyBB Central

Full Version: My Awards 1.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
And after the include for globals.php add this:

if(!$mybb->user['uid'])
{
error_no_permissions();
}
Just Registered So I Can Get This. How Long Do I Have To Wait? Anyway It Looks Really Good Big Grin
Downloads are for subscribers...read the PM you recieved on signup please.
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?
Rapid:
Do it after this line:

Code:
require_once "./global.php";
He tried to get global.php

You need to edit the plugin file, NOT global.php
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
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.
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?