Help me change the forumhome_lastpostby in vBulletin

Discussion in 'PHP' started by Dominic, Aug 12, 2006.

  1. #1
    How do I change the forumhome_lastpostby (vBulletin), from:
    1. Listing the username of the last poster and linking to their profile; to
    2. Just listing the username of the last poster, but not linking to their profile?

    PS I don't know php, so can you post the updated code please.

    <if condition="$show['lastpostinfo']">
    <div class="smallfont" align="$stylevar[left]">
    	<div style="clear:both">
    		<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
    		<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
    	</div>
    	<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
    		<phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
    	</div>
    </if>
    Code (markup):
     
    Dominic, Aug 12, 2006 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    Dominic, you don't have to edit that code.

    Go into your vbulletin admin, in the sidebar click on Languages and Phrases to expand the box, then click Phrase Manager.

    Next, for phrase type, keep it at Global and change the dropdown to page 3. Click "edit" beside by_x then in the text box put by {2} and save.
     
    Colleen, Aug 12, 2006 IP
    Dominic likes this.
  3. Dominic

    Dominic Well-Known Member

    Messages:
    1,725
    Likes Received:
    121
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Wow, thanks Colleen that was an interesting look behind a door I haven't opened before.
     
    Dominic, Aug 14, 2006 IP