vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   Job Class creation problem (https://vborg.vbsupport.ru/showthread.php?t=78530)

Kayden 03-22-2005 12:28 AM

Job Class creation problem
 
When I create a new class just for the admins, apparently normal users can use these classes as well. How do I fix this?

Revan 03-22-2005 10:13 AM

Are you sure you set Visible to No at creation?

Kayden 03-22-2005 01:58 PM

Yeah, and normal members could still choose the classes.

Revan 03-22-2005 03:24 PM

Verified.
I am working on a fix now, thanks for reporting it :)

Fixed. Reupload headquarters.php from new zip :)

Kayden 03-22-2005 05:38 PM

The only thing that changed is normal members can now see an '*' next to the admin only classes. They're still selectable too.

EDIT: Do you by chance have the zip file?

Revan 03-22-2005 05:58 PM

Yes I have the zip file, and you have it too if you look at the first post of the release thread :P
I know that it's fixed because I tested it with an admin user account and one member account. The class didn't show up at all.

Kayden 03-22-2005 06:04 PM

So I need to download the entire RPG zip file, I take it. Or else I'm just blind. O.o

Now I get the following error when I try to get into my HQ...

Fatal error: Call to undefined function: can_administer() in /second/home/darkess/public_html/saviores/headquarters.php on line 83

Revan 03-22-2005 06:59 PM

open your includes/adminfunctions.php and look for can_administer

If you do not find it in there, then you need to update your vBulletin, because I seem to recall that one of the releases moved this function there.
I think.

Kayden 03-22-2005 07:18 PM

I see it, yes.

Maybe it has somethign to do with the includes/init.php file?

Because when I try to place:

//rpg
'canadminrpg' => 65536,
//rpg

under:

'canadminupgrade' => 32768,

I get another error.

Revan 03-22-2005 08:09 PM

You must make sure that no other bitfield is using the same number.


All times are GMT. The time now is 11:19 AM.

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.00966 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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