Announcement

Collapse
No announcement yet.

How to editing; only my Username in postbit legacy..?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to editing; only my Username in postbit legacy..?

    Hi all.. I want to edit only my username which is above the avatar; in postbit legacy (I'm using vertical postbit legacy)..

    Code:
    <div id="postmenu_$post[postid]">
    	<if condition="$show['profile']">
    	<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
    	<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
    	<else />
    	$post[musername]
    	</if>
       </div>
    I tried to add something like this code (below) in these codes (above) ; but it didn't work.. (my user ID = 4)
    Code:
    [COLOR=Red]<if condition="$bbuserinfo['userid'] == 4">
    <marquee>[/COLOR] ..... etc
    So; how can I edit only my username; for example add <marquee> etc.. thx..

  • #2
    $bbuserinfo is for the current user browsing the thread

    $post is for the post

    so use $post[userid] == X

    Comment


    • #3
      Thank U very much Zack..

      Comment


      • #4
        Code:
        <div id="postmenu_$post[postid]">
        [b][color=Red]<if condition="$post['userid'] == '43'">
        Your custom code here
        <else />[/color][/b]
        	<if condition="$show['profile']">
        	<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
        	<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
        	<else />
        	$post[musername]
        	</if>
        [b][color=Red]</if>[/color][/b]
        
        </div>

        Comment


        • #5
          His ID is 4, not 34

          Comment


          • #6
            Originally posted by Deaths
            His ID is 4, not 34
            it's not important; I did it.. Also thanks very much Floris too..

            Another question..

            From where can I get general (basic) information about these commans (codes); for example ;

            - $bbuserinfo >> is for the current user browsing the thread

            - $post >> is for the post etc... Thanx again...

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X