![]() |
$usergroup[admin] and $usergroup[moderator]
Are these the strings to show for example all the admins?
|
nope
you have to use getpermissions function and then you can ask for those things: PHP Code:
|
Ok, thx
|
But, this will show all moderators or administrators?
|
no, if you want to show all moderators or admin you have to use DB-queries:
PHP Code:
|
I get a DB error when I do:
<?php The code you gave ?> |
Have tried alot, won't get it working
|
have you required global.php?
it won't work without.... |
It's IN global.php :)
|
IN global.php????
what will you do? *gg* be sure it's AFTER the requirement of db_mysql.php and there is already a connection to the db |
Yub IN global.php (forum/ADMIN/global.php)
I want to show all moderators and administrators under login screen. It's for my: Userinfo @ CP Login HACK. This is an addon for it |
i've edited the code a bit, try it again now.
be sure you put it BEHIND that line :) // end init db |
Ok, Will try thiz code
|
Parse error: parse error in /home/joshua/www/forum/admin/global.php on line 122
Fatal error: Call to undefined function: adminlog() in /home/joshua/www/forum/admin/index.php on line 7 Added the code (with <?php and ?> in before and after) before // end init db. This error, will try it without <?php =============================== Without page is working but noting is showed :( |
oops :D added it BEFORE // end init db
LoL sorry :D ======================= edit in the code, with <?php tags cauz else it would be normal text. But noting is shown, DB error is gone now (had a DB error with 1st code) |
of course it would show nothing
add echo $adminnames; after the whileloop. <? ?> within a php block isn't allowed |
Ok, thx, getting a bit know with PHP now :D
|
Thx it's working!!!
For moderators al: "admin" would be replaced with: "mod" Or with "supermod" (or moderator) ? |
for supermoderators replace all admin with supermod and the cancontrolpanel=1 with ismoderator=1.
for normal moderators, you have to use another query... |
Ok, thx Bro
|
That would become:
Code:
<?php |
But that ain't working
|
of course,
you have misspelled something: while($supermod=$DB_site->fetch_array($supermods)) { you've forgotten the s |
Ok, thx, ++++ happens :D
|
np
you're welcome |
You're Credits will be add to my: Admin CP userinfo hack
|
All times are GMT. The time now is 12:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|