MyBB Community Forums
Group php script - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Miscellaneous Archive (https://community.mybb.com/forum-140.html)
+----- Forum: Requests/Services/Jobs 2 (https://community.mybb.com/forum-136.html)
+----- Thread: Group php script (/thread-98192.html)

Pages: 1 2 3 4 5


Group php script - SergeMorel - 2011-07-06

Hello

Can anybody code me a script & tell me how to use it.
The script should be something like :
http://mysite.com/userinfo.php?username=SergeMorel

If you navigate to that, I want it to give this info :
UserID :
Usertitle :
Group :
Postcount :
The most important is group atm.

Thanks in advance


RE: Group php script - kavin - 2011-07-06

I don't think this is in any way related to MyBB. Correct me if i was wrong.


RE: Group php script - SergeMorel - 2011-07-06

I know, I posted it wrong, I think
Can somebody move it to here : http://community.mybb.com/forum-65.html


RE: Group php script - SergeMorel - 2011-07-07

someone ?


RE: Group php script - Nelson Noa - 2011-07-07

How much are you going to pay?


RE: Group php script - Bit 'n Bang - 2011-07-07

You do know that all of that information is available in a user's profile, right?


RE: Group php script - SergeMorel - 2011-07-07

This is for a visual basic program, a loader.
I need it as simple as possible, not in a user profile, it's to hard to get.
& I pay nothing :s


RE: Group php script - Nathan Malcolm - 2011-07-07

Could be improved, but this is the general idea.

<?php
define("IN_MYBB", 1);
require_once "./global.php";

if($mybb->input['uid']) {

$user = get_user(intval($mybb->input['uid']));

echo $user['usergroup'];

}

?>



RE: Group php script - Paul H. - 2011-07-07

(2011-07-07, 08:55 PM)SergeMorel Wrote: & I pay nothing :s

*snort*



RE: Group php script - SergeMorel - 2011-07-07

http://myforum.com/userinfo.php?uid=1

Gives me : "4"

I made userinfo.php & inserted your text & uploaded it to my root folder.
btw, can you do it with username please?