MyBB Community Forums

Full Version: UID for Guests and Members
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to have a userid displayed in the post bit below the titles of guest and actual users.

This would be to help distinguish guests replying to their own threads, while also keeping users from logging out and replying to their own threads.

By doing so everyone would be assigned a specific ID.

I'm willing to pay for this, not a lot(poor), but something.
You can actually achieve this through template edits. Use {$post['uid']} to put their user id. I believe the templates will be postbit and postbit_classic.
(2014-05-22, 01:12 AM)dragonexpert Wrote: [ -> ]You can actually achieve this through template edits. Use {$post['uid']} to put their user id. I believe the templates will be postbit and postbit_classic.

With guests and registered?
Yes. A guest will have a user id of 0.
(2014-05-22, 02:06 AM)dragonexpert Wrote: [ -> ]Yes. A guest will have a user id of 0.

Yeah, see I want each individual to have a UNIQUE ID to identify them on other posts, regardless of being registered or not.
(2014-05-22, 03:38 AM)Nordic Wrote: [ -> ]
(2014-05-22, 02:06 AM)dragonexpert Wrote: [ -> ]Yes.  A guest will have a user id of 0.

Yeah, see I want each individual to have a UNIQUE ID to identify them on other posts, regardless of being registered or not.

I am also trying to achieve this.
You can try this for a more or less unique ID: http://community.mybb.com/thread-148100-...pid1048754
Note: the guest code is for 1.6 only. For 1.8 you need something like this (haven't tried):
UID: <?=hexdec(substr(md5($ipaddress), 0, 10))?>

Or use Yaldaram's plugin mentioned below my post, but it's paid and will most likely not work in 1.8 either.
EDIT: And his site is currently suspended..
(2014-09-19, 07:02 PM)Destroy666 Wrote: [ -> ]You can try this for a more or less unique ID: http://community.mybb.com/thread-148100-...pid1048754
Note: the guest code is for 1.6 only. For 1.8 you need something like this (haven't tried):

UID: <?=hexdec(substr(md5($ipaddress), 0, 10))?>

Or use Yaldaram's plugin mentioned below my post, but it's paid and will most likely not work in 1.8 either.
EDIT: And his site is currently suspended..

Im using something very similar to that and its working a treat but im having another issue related to this, I want to add a bit of text next to the image, using the plugin opimage @ http://mods.mybb.com/view/original-poster-image

Now it works for users, But all guests that post in the same thread get the op tag regardless, And this is because the id is 0 for everyone in the database, Is it possible to make it either log the guest id so i can get this working?