Log in

View Full Version : Profile Enhancements - User name images


WorldDomination
07-09-2009, 10:00 PM
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Ћ?я
07-10-2009, 07:02 PM
very nice thanks voaw:D

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

SwollenCranium
07-10-2009, 07:50 PM
You should specify if this is a POSTBIT only mod.

Some of us prefer Legacy.

WorldDomination
07-10-2009, 08:18 PM
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
07-10-2009, 08:43 PM
Updated. Now includes instructions for both postbit and postbit legacy.

macc
07-10-2009, 09:16 PM
Nice! Thanks

will test ...

must we make own image?

regards

macc

SwollenCranium
07-10-2009, 09:37 PM
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
07-10-2009, 11:09 PM
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
07-10-2009, 11:12 PM
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
07-10-2009, 11:26 PM
installed and voted

WorldDomination
07-10-2009, 11:29 PM
installed and voted
Thanks!

florkat
07-11-2009, 06:00 AM
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
07-11-2009, 06:06 AM
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
07-11-2009, 12:43 PM
Thanks for this mod
I install it ok but in user's profile /About me shows the path link to the image

princeedward
07-11-2009, 01:46 PM
great and thanks...might try this...

WorldDomination
07-11-2009, 06:51 PM
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
07-11-2009, 07:09 PM
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
07-11-2009, 07:27 PM
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
07-11-2009, 09:28 PM
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
07-14-2009, 12:54 AM
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
07-16-2009, 06:03 AM
Thanks for sharing! :) Installed*

Is there anyway for it to show up in Memberslist?

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

Huy Ho?ng
07-19-2009, 07:04 AM
Please let me know what's new in this new version?

tehone
07-22-2009, 07:07 PM
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
07-29-2009, 10:47 PM
Haha I always wondered if this was the World Domination from sythe and rsforums.

This one works really good.

Thank you

WorldDomination
07-31-2009, 05:59 AM
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
08-01-2009, 11:29 PM
Works great! Thank you!

Cfreyna
08-04-2009, 04:00 AM
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
08-24-2009, 06:19 AM
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
09-20-2009, 03:34 PM
dude you made me jizz all over my pants with this mod! been looking for it for ages!

WorldDomination
12-07-2009, 06:15 PM
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
12-07-2009, 08:51 PM
Possible someone can share the code for whosonlinebit so I can see the images within Currently Active Users? That would be great!

Zigeto
12-21-2009, 06:31 PM
Great Guy. He set it up for me and everything. Again thank you!

bacemail
12-21-2009, 09:58 PM
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
12-28-2009, 08:00 AM
Is it possible to show the Username Images in the Memberlist and in the Currently Active Users List?

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

FRANKTHETANK 2
01-03-2010, 05:53 AM
awesome mod. thanks alot

KyleWhitey
01-27-2010, 11:10 PM
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
01-30-2010, 06:41 AM
is this correct ?



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

dtv100
02-06-2010, 09:31 PM
bumb

Huy Ho?ng
02-10-2010, 12:40 PM
Uninstall because used for 4.0

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

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

Lilmikeishere
06-10-2010, 12:53 AM
We need something like this for vB4.

Sajeth
06-13-2010, 02:23 PM
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
10-06-2010, 11:12 PM
What do I do if the code specified was not in the postbit? :/

DiLaRa
11-21-2010, 08:58 PM
marked as installed,Thanks for this mod

Emeralda
11-21-2011, 12:08 AM
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-05-2012, 07:26 AM
https://vborg.vbsupport.ru/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
11-29-2012, 11:24 AM
thx my friend
already used in vb 3 and now adapted for vb 4.2.0
nice job

SoniaTel
12-27-2012, 11:04 AM
very nice thanks

sabsabi
10-11-2013, 03:51 AM
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? :)