View Full Version : How to do this
I've seen it on 1 or 2 vb boards.
Look at http://www.aliensoup.com/cgi-bin/forums/forumdisplay.cgi?action=topics&forum=Advice&number=1&DaysPrune=20&LastLogin=
How do you make the last user to post a link to their profile?
You should be able to use the $newuserid variable to do that:
<a href="member.php?action=getinfo&userid=$newuserid">$newusername</a>
John
My mistake - that code above would let you link to the profile of the newest member on the front page. To link to the last poster, you would do something like this in the forumdisplaybit template:
<a href="member.php?action=getinfo&username=$lastposter">$lastposter</a>
This would work fine on everything except where the username has spaces in AND netscape is being used.
John
This would work fine on everything except where the username has spaces in AND netscape is being used.
John
Does anyone have a workaround for the Netscape thingy, or is that something just to live with for the time being?
I would like to add this to both the main forum page and the forum topic pages. It works (apart from the problem John mentions above) but the word 'by' shows up when it's used on the home page. Presumably this should ne in the template, and not in the code ? Should this be fixed ? And how about adding an extra piece of code which would allow us to link to the profile ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.