MyBB Community Forums

Full Version: guid system
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to insert a guid system in user profile?

example...
[Image: guidt.png]
In member_profile template, add the following code where you want GUID to appear;
GUID: {$memprofile['fidX']}

Replace X with the Custom Profile Field ID.
I think is incorrect XD. Why the guid should be shown here: usercp_profile_customfield. It should also be set automatically. How can I do?
ACP >> Configuration >> Custom Profile Fields >> Add New Profile Field
Ok. I've created Smile . But now ... how can I display a code that varies from user to user?
Display a code where?
add a new field to the user table
call the field 'guid'
guid = md5($mybb->user['uid'])

would be a very simple plugin to write
(2011-11-05, 08:46 PM)fizz Wrote: [ -> ]add a new field to the user table
call the field 'guid'
guid = md5($mybb->user['uid'])

would be a very simple plugin to write

I do not understand what should I do xD
Up...
(2011-11-05, 08:46 PM)fizz Wrote: [ -> ]add a new field to the user table
call the field 'guid'
guid = md5($mybb->user['uid'])

would be a very simple plugin to write

I solved thanks Big Grin .

<tr>
<td><a style="text-decoration:none;">GUID</a>:<br />
<?php
$guid = md5($mybb->user['uid']);

if(my_strlen($guid) > 10){
	$guid = my_substr($guid, 0, 10)."";
}
?>
<span class="smalltext">Codice persole di Best Gamers</span></td></tr>
<tr><td>
<input name="" class="textbox" size="0" value="BG-<?php echo $guid; ?>" type="text" />
</td>
</tr>