PDA

View Full Version : Profile Enhancements - User name images


WorldDomination
10 Jul 2009, 19:56
IMPORTANT UPDATE
I forgot to mention a vital part of the installation in the previous versions. When setting up the Custom Profile Field you must not make the location of the field in 'Edit Your Details', otherwise people that do not have the proper permissions to edit this field can do so VIA viewing their profile. I have updated the .zip with the updated instructions. Sorry for any inconvenience.

I've seen quite a few people asking about a mod to display an image in their user name spot, and haven't been able to find a working one.

What does this mod do?

This mod uses a Custom Profile Field to display an image for a persons user name rather than their default, boring text user name. It will display in all the users posts and in the users profile.

About this Mod:
Which user groups can view the Profile Field used for this mod
The size of the Image that can be used
Any user that doesn't have access to this field, or chooses not to use it, will have their normal text user name displayed.
It works with both Postbit and Postbit Legacy styles.Please Mark Installed if you use!

This is my first released MOD, so some feedback would be very helpful, plus maybe some ideas on what else to add etc. to this MOD would be helpful.

INSTRUCTIONS ARE IN THE .ZIP FILE!

PµŋĭsЋ£я
10 Jul 2009, 20:02
very nice thanks voaw:D

WorldDomination
10 Jul 2009, 20:03
very nice thanks voaw:D
Your welcome. :) Let me know if you run into any problems.

SwollenCranium
10 Jul 2009, 20:50
You should specify if this is a POSTBIT only mod.

Some of us prefer Legacy.

WorldDomination
10 Jul 2009, 21:18
You should specify if this is a POSTBIT only mod.

Some of us prefer Legacy.

Oh right. Sorry I didn't even think about that. I will edit the MOD so it works for a few. Will update soon. :)

WorldDomination
10 Jul 2009, 21:43
Updated. Now includes instructions for both postbit and postbit legacy.

macc
10 Jul 2009, 22:16
Nice! Thanks

will test ...

must we make own image?

regards

macc

SwollenCranium
10 Jul 2009, 22:37
Oh right. Sorry I didn't even think about that. I will edit the MOD so it works for a few. Will update soon. :)


Thank you, sir.

Sofia
11 Jul 2009, 00:09
Hummm... Pages take longer to load due to images.

I don't use your mod but I like this idea. So I click Installed. Good work :p

WorldDomination
11 Jul 2009, 00:12
Nice! Thanks

will test ...

must we make own image?

regards

macc
You have to create one with your name on it, yes.

Thank you, sir.
You're welcome. The two different postbits didn't cross my mind when I was making the mod. Thanks for pointing it out.

Hummm... Pages take longer to load due to images.

I don't use your mod but I like this idea. So I click Installed. Good work :p


Naturally that's going to happen, using .gif images will help it load faster. And thanks. :)

Itchy Nips
11 Jul 2009, 00:26
installed and voted

WorldDomination
11 Jul 2009, 00:29
installed and voted
Thanks!

florkat
11 Jul 2009, 07:00
marked as installed ^^ i'm going to try this tomorrow. i think if we use .png image it will be faster to load. that i don't think will be my problem. but i'm new on vb so here's my question
how do i set the option to display user avatar and info at the left column of the thread post like on the 3rd screenshot?

WorldDomination
11 Jul 2009, 07:06
how do i set the option to display user avatar and info at the left column of the thread post like on the 3rd screenshot?
Admin CP -> vBulletin Options -> Style & Language Settings -> Scroll too
Use Legacy (Vertical) Postbit Template and choose yes then hit save.

willy888
11 Jul 2009, 13:43
Thanks for this mod
I install it ok but in user's profile /About me shows the path link to the image

princeedward
11 Jul 2009, 14:46
great and thanks...might try this...

WorldDomination
11 Jul 2009, 19:51
Thanks for this mod
I install it ok but in user's profile /About me shows the path link to the image
I'll look into that.

great and thanks...might try this...
You're Welcome! :)

Itchy Nips
11 Jul 2009, 20:09
great mod. installed and voted!

my only feedback so far is that the menu that appears when you click the username, does not appear anymore when you use the username image. Instead, it goes right to their profile.

any ideas?

WorldDomination
11 Jul 2009, 20:27
great mod. installed and voted!

my only feedback so far is that the menu that appears when you click the username, does not appear anymore when you use the username image. Instead, it goes right to their profile.

any ideas?

The pop up menu works for me. Are you cure you copied the code correctly? Double check that then post here if that wasn't the problem.

Itchy Nips
11 Jul 2009, 22:28
you are correct, sir! I did not have the right code in there. I realized what happened, and this is another feedback for you.

When I pasted that code in replacement of the old code from step 2 (in the instructions), it puts an online status icon next to the username. But their online status also appears where it should (on the bottom of the postbit).

I had to edit your code from this:

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$post['field8']"><img src="$post[field8]" border="0"/></a> <else />$post[musername]</a></if>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

to this:

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$post['field7']"><img src="$post[field7]" width="150" height="30" border="0"/></a> <else />$post[musername]</a></if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

getting rid of the:
$post[onlinestatus]
after the </a></if> code.

it all works fine now :)
kudos to you!

WorldDomination
14 Jul 2009, 01:54
you are correct, sir! I did not have the right code in there. I realized what happened, and this is another feedback for you.

When I pasted that code in replacement of the old code from step 2 (in the instructions), it puts an online status icon next to the username. But their online status also appears where it should (on the bottom of the postbit).

I had to edit your code from this:

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$post['field8']"><img src="$post[field8]" border="0"/></a> <else />$post[musername]</a></if>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>to this:

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$post['field7']"><img src="$post[field7]" width="150" height="30" border="0"/></a> <else />$post[musername]</a></if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>getting rid of the:
$post[onlinestatus]after the </a></if> code.

it all works fine now :)
kudos to you!
Oh right. I completely forgot about it doing that in postbit legacy. Thanks for the fix, will update now. ;)

Feanor_87
16 Jul 2009, 07:03
Thanks for sharing! :) Installed*

Is there anyway for it to show up in Memberslist?

willy888
17 Jul 2009, 07:18
What about for those who have already installed it ?
Any update info what to change ?

Huy Hoàng
19 Jul 2009, 08:04
Please let me know what's new in this new version?

tehone
22 Jul 2009, 20:07
Hey, I have a problem. I have yet to install this, but I've downloaded it and had a little read through. I was wondering in the Username Image part in the user CP.. do you put the link to the image or put it in HTML tags? Please PM with a response as I might forget to check back here.

Cfreyna
29 Jul 2009, 23:47
Haha I always wondered if this was the World Domination from sythe and rsforums.

This one works really good.

Thank you

WorldDomination
31 Jul 2009, 06:59
What about for those who have already installed it ?
Any update info what to change ?
Nothing is changed. I changed something, then changed it back becuase it didn't work. Sorry for the confusion.

Hey, I have a problem. I have yet to install this, but I've downloaded it and had a little read through. I was wondering in the Username Image part in the user CP.. do you put the link to the image or put it in HTML tags? Please PM with a response as I might forget to check back here.
You OBVIOUSLY got it working.

Haha I always wondered if this was the World Domination from sythe and rsforums.

This one works really good.

Thank you
Yes it is I. ;) And you're welcome, sir.

BigDog56
02 Aug 2009, 00:29
Works great! Thank you!

Cfreyna
04 Aug 2009, 05:00
I got this error when trying to make it changeable in users profiles.

Parse error: syntax error, unexpected ')' in /includes/adminfunctions_template.php(3939) : eval()'d code on line 1

florkat
24 Aug 2009, 07:19
hey world domination, i have a little problem about this. I get the "User Name Image" input field, and I have followed your steps correctly and I've tried this 3 times and I can't find where my mistake is. When I put the image URL it saves the changes and the image shows perfectly on the profile field, but the image won't show on the forums. I have tried this with html, direct link, url tags, etc. and it doesn't work for me. Is there any way the image can show not only on my profile, but also on the forums posts? thanks in advance!

Ezud
20 Sep 2009, 16:34
dude you made me jizz all over my pants with this mod! been looking for it for ages!

WorldDomination
07 Dec 2009, 19:15
Hey all,
I've been very busy as of late and have had no time to work on nay of this, so if anyone has any problems with it please let me know ASAP so I can get them fixed.

Skyrider
07 Dec 2009, 21:51
Possible someone can share the code for whosonlinebit so I can see the images within Currently Active Users? That would be great!

Zigeto
21 Dec 2009, 19:31
Great Guy. He set it up for me and everything. Again thank you!

bacemail
21 Dec 2009, 22:58
I was hoping to find a modification that would place the user's avatar in the thread list next to the user name? Have you made anything like this? ESPN has a board that does this. It looks great and would be a great mod... IMO.

Example...

http://boards.espn.go.com/boards/mb/mb?sport=ncaa&id=ncf

Sven2488
28 Dec 2009, 09:00
Is it possible to show the Username Images in the Memberlist and in the Currently Active Users List?

Negrosoo
01 Jan 2010, 09:16
I don't like this mod , but thanck you for the work ;)

FRANKTHETANK 2
03 Jan 2010, 06:53
awesome mod. thanks alot

KyleWhitey
28 Jan 2010, 00:10
I can't get the images to show, i did all the steps right too. i put the html link to the image right?

dtv100
30 Jan 2010, 07:41
is this correct ?



<if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[15], array(15)) OR is_member_of($bbuserinfo, 2))">

dtv100
06 Feb 2010, 22:31
bumb

Huy Hoàng
10 Feb 2010, 13:40
Uninstall because used for 4.0

3beidat
08 May 2010, 18:47
Possible someone can share the code for whosonlinebit
so I can see the images within Currently Active Users? That would be great!

Skyrider
26 May 2010, 14:01
Would be great if someone converts it (or the original author) to vB4! ^_^

Lilmikeishere
10 Jun 2010, 01:53
We need something like this for vB4.

Sajeth
13 Jun 2010, 15:23
This opens the floodgates to XSS attacks, dont know what the authors intention was when posting this exploitable modification. Horrible.
Possible fix would be to set the regexp for the URL field to
^(https?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$|^$
which is too long for the standard vB database and requires the previous SQL query
ALTER TABLE `profilefield` CHANGE `regex` `regex` VARCHAR( 511 )
OR
ALTER TABLE `YOURTABLEPREFIX_profilefield` CHANGE `regex` `regex` VARCHAR( 511 )
if you use table prefixes. Elsewise this could be EASILY exploited for XSS attacks.

Tactiii
07 Oct 2010, 00:12
What do I do if the code specified was not in the postbit? :/

DiLaRa
21 Nov 2010, 21:58
marked as installed,Thanks for this mod

Emeralda
21 Nov 2011, 00:08
This opens the floodgates to XSS attacks, dont know what the authors intention was when posting this exploitable modification. Horrible.
if you use table prefixes. Elsewise this could be EASILY exploited for XSS attacks.

Than just limit it to your staff. I did it just for admins, and it works quite nicely.

Xp.Warrior
05 May 2012, 08:26
https://www.vbulletin.org/forum/external/2012/05/48.png
Brother Look This I Want To Show Username Image Every Where But Not Show In This How To Set ?
Thanks In Advanced

RRCamellini
29 Nov 2012, 11:24
thx my friend
already used in vb 3 and now adapted for vb 4.2.0
nice job

SoniaTel
27 Dec 2012, 11:04
very nice thanks

sabsabi
11 Oct 2013, 04:51
Hello there.

Thank you very much for this add-on.

Would it be possible for you to add a verification option?

Example: An administrator has to accept every single image, before it's working? :)