PDA

View Full Version : Username changed in postbit. How to change in others?


kartik786
07-15-2011, 11:05 AM
<a href="$vboptions[homeurl]/profile.php?$session[sessionurl]user=<if condition='$post[user_username]'>$post[user_username]<else />$post[username]</if>" ><if condition="$show['profile']"><!--href="member.php?$session[sessionurl]u=$post[userid]"<if condition="$post[usertitle]">$post[usertitle]<else />$post[username]</if>--></if><if condition="$post[user_fname]">$post[user_fname]<if condition="$post[user_lname]"> $post[user_lname]</if><else />$post[username]</if></a><script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
<if condition="$post[user_fname]">$post[user_fname]<if condition="$post[user_lname]"> $post[user_lname]</if><else />$post[username]</if>
</if>

We had inserted first name and last name variables in registration fields and wanted to show full name instead of username, so we made the above changes to reflect it in postbit. It works.

But the person who did it forgot to maintain uniformity, so last post by is still showing username and not full name .. same is the case in who's online, forumhome, forumdisplay templates.

Can someone guide what changes to be made to maintain uniformity?

Badshah93
07-15-2011, 11:46 AM
if this fields are userfield so i don't think you can directly show them in forumhome, lastpostby or who's online.

sql query will be needed to join userfield table with variable used in forumhome, lastpostby template and others.

i would suggest you to contact that guy who did work for you as you need to create different plugins for different template.

kartik786
07-15-2011, 04:03 PM
the guy who did it for me ran away .. can you tell me what changes need to be made and how?