Change format of user options

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PamelaE
    Senior Member
    • Feb 2005
    • 345

    Change format of user options

    HI,

    How do I change the user options like edit/post, quote, profile etc to show in a similar way to this forum (I believe owned by Kron?) http://www.pbnation.com/showthread.php?threadid=822889

    Thanks
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That is the old vB2 postbit layout. You would need to edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you are using)

    In the postbit_legacy template, that bottom bar is this code. You can add more buttons like this:

    Code:
    	<td class="alt1" align="$stylevar[right]">
    		[color=red]<a href="URL HERE"><img src="PATH TO IMAGE HERE" alt="" border="0" /></a>[/color]
    		<!-- controls -->
    		<if condition="$post['editlink']">
    			<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
    		</if>
    		<if condition="$post['forwardlink']">
    			<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
    		</if>
    		<if condition="$post['replylink']">
    			<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
    		</if>
    		<if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
    			<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
    		</if>
    		<!-- / controls -->
    	</td>

    Comment

    • PamelaE
      Senior Member
      • Feb 2005
      • 345

      #3
      Thanks for this Jake. I managed to get the users homepage to appear but I cant get add to buddy, e-mail and private message to work.

      Do you know what code I use to make those appear?

      Many Thanks

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Originally posted by PamelaE
        Thanks for this Jake. I managed to get the users homepage to appear but I cant get add to buddy, e-mail and private message to work.
        Those links are:

        profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]
        sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]
        private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]

        Comment

        • PamelaE
          Senior Member
          • Feb 2005
          • 345

          #5
          Cna I just check where they go after the <if> tag?

          Thanks again for all your help

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Put those links into the red code. For example:

            Code:
            [color=red]<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><img src="PATH TO IMAGE HERE" alt="" border="0" /></a>[/color]
            You still need to change PATH TO IMAGE HERE to point to an image (for the "add buddy" icon in the above example).

            Comment

            • PamelaE
              Senior Member
              • Feb 2005
              • 345

              #7
              Thank you so much, that worked fine

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎