View Full Version : Last X Posts In Profile
afterlab
07-30-2002, 10:00 PM
Last X Posts In Profile
ADD-ON AVAILABLE
Total Request Jive
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
This hack was requested by several members such as Crater Seraph and Webmasta X. I decided to come forth and post a hack that i've been working easily on my own forums. Any suggestions, comments, and ideas are welcome at this time.
Modifications
=-=-=-=-=-=-=-=-=-=-=-=
* 1 file alteration.
* 2 new templates.
* 2 template alterations.
Changelog
=-=-=-=-=-=-=-=-=-=-=-=
* Added an add-on by request of Velocd. To install the add-on, go to the bottom of the new installation file. Enjoy.
Add-On
=-=-=-=-=-=-=-=-=-=-=-=
* The add-on will display a small preview of a post when your mouse highlights a thread title shown within a user's latest posts in their profile.
More Information
=-=-=-=-=-=-=-=-=-=-=-=
Compatibility: This hack will work with vB 2.0.3 and higher.
Install Time: 3-8 Minutes.
Screenshot: Click Here (https://vborg.vbsupport.ru/attachment.php?s=&postid=279397)
Add-On Screenshot: Click Here (https://vborg.vbsupport.ru/attachment.php?s=&postid=279498
)
Download: Instructions are in attachment.
shovel
07-31-2002, 09:31 PM
Thanks for finally publishing it afterlab. I appreciate it.
afterlab
07-31-2002, 09:35 PM
Here is the final product. Although I must warn you, the screenshot was taken on a HEAVILY managed 'getinfo' template, so this will look slightly different on a new installation of vBulletin.
DrkFusion
07-31-2002, 09:38 PM
Thanks man!
Great, I really needed this
Great work..
By the way(this is completly off topic)but who is that character in your avatar?
hehe
Drk
afterlab
07-31-2002, 09:45 PM
Thanks for the comments everyone.
DrkFusion: Vincent Valentine from Final Fantasy VII.
DrkFusion
07-31-2002, 10:18 PM
Thanks :) Didn't know, in your avatar looks like a little kid, heh, nice work once again:) Very useful
Drk
Velocd
07-31-2002, 11:22 PM
Nice hack ;), although it would be a sweeeet amount of help if you could get a post preview of their last post, maybe by highlighting the link it will show up in a alt-box thingy. This would rid the use of the "last posts" page, which is exactly your hack but with a post preview. And I hate taking the extra trip to that page... :ermm:
Webmasta XT
07-31-2002, 11:33 PM
Thank You Afterlab, Thank you very much, you always have great hacks!
afterlab
07-31-2002, 11:45 PM
Originally posted by Velocd
Nice hack ;), although it would be a sweeeet amount of help if you could get a post preview of their last post, maybe by highlighting the link it will show up in a alt-box thingy. This would rid the use of the "last posts" page, which is exactly your hack but with a post preview. And I hate taking the extra trip to that page... :ermm:
Just show 1 of them, or for all of them have the "alt-box" with a small post preview? It can be done quite easily.
and chance ov a small icon in postbit to go automatically to Last posts of that user.
Example lets say someone has been spamming so u clcik the gif and bingo u see the last X posts
afterlab
08-01-2002, 12:42 AM
I don't exactly understand what you're saying fully, Mr_P, but try clicking on "Search for all posts by this user" in the profile.
Chris M
08-01-2002, 12:53 AM
Great:)
Satan
Velocd
08-01-2002, 01:27 AM
The addition I requested would defiantly be very useful, and would eliminate the "Search for all posts by this user" page all together :p (going to it from profile > page that is, I still use it as a link in postbit)
afterlab
08-01-2002, 01:54 AM
Your addon is being developed right now. They'll be an option to limit a certain amount of characters in the alt-box when your mouse rolls over the link.
Schorsch
08-01-2002, 02:10 AM
thx for this hack!!! installed and works fine :)
afterlab
08-01-2002, 02:38 AM
The add-on is now complete. You may check it out by re-downloading the installation file. Nothing was changed in the existing code, just a simple add-on for those who want it.
Here's a screenshot of what it looks like with the new add-on.
Schorsch
08-01-2002, 02:52 AM
ohhh man this looks terrific !!!!!!!!!! GREAT WORK :) your hack is very useful for me :)
Velocd
08-01-2002, 03:36 AM
Excellent work Afterlab, this will be a huge help for the moderators when checking user posts.
Tungsten
08-01-2002, 12:37 PM
Question:
Will this hack show posts that a user made to a forum that the user currently viewing his/her profile does not have access into?
For example, on my site we have a "Staff Lounge" forum where the moderators and administration discuss sensitive issues away from the public eye. It would be very bad if someone clicked on my personal profile and saw the threads that I had recently posted in that private forum, and even worse yet if they could mouse-over the thread titles and see a portion of those posts in the previews. :eek:
Thanks.
afterlab
08-01-2002, 02:17 PM
No. BTW, At my site, we have a hidden staff forum called exactly that, FFR Staff Lounge. Just found it somewhat funny. :D
Boofo
08-01-2002, 03:17 PM
The addon is showing all of the characters in the post no matter what I have it set to. If the post is too long, it seems like it is flashing on the screen because the post is longer than the screen.
afterlab
08-01-2002, 03:33 PM
Boofo: Ah, thanks for the heads up. I fixed it now, and it's been tested to work perfect. Installation file updated
Velocd
08-01-2002, 04:09 PM
I modified it to not show the alt-text, and just insert it right into the post, only because I'm too lazy to move my mouse over it...
But, anyway, I was thinking of another great add-on would to have page numbers! That way I can browse through their newest posts, past the amount I specify to be shown.
And in addition to that, maybe a drop down list to specify how many posts are shown? That doesn't seem too hard :p
Great hack once again ;)
Originally posted by Velocd
I modified it to not show the alt-text, and just insert it right into the post, only because I'm too lazy to move my mouse over it...
Hello Velocd im lazy any chance of telling us how you got it to go like yours instead of the mouse over text ??????????.
afterlab
08-01-2002, 05:43 PM
To do what Velocd did, do this:
// ###############################
// Create a new template named: #
// getinfo_latestposts #
// ###############################
// ENTER THIS: #
// ###############################
<tr>
<td width="70%" bgColor="{firstaltcolor }">
<normalfont><a href="$posturl">$posttitle</a></normalfont></td>
<td width="30%" bgColor="{firstaltcolor }">
<normalfont>$postdate $posttime</normalfont></td>
</tr>
<tr>
<td width="100%" bgColor="{firstaltcolor }">
<smallfont>$addon</smallfont></td>
</tr>
If you've already installed it, then just add this to the end of getinfo_latestposts:
<tr>
<td width="100%" bgColor="{firstaltcolor }">
<smallfont>$addon</smallfont></td>
</tr>
Also, make sure you delete the extra spaces in {firstaltcolor }. I had to do this so it wouldn't automatically parse here at vB.org.
ok its seems a lot better that way i like can see instantly
One last thing - is it possible to call that code in on a page on its own as evertime i want to see what a users last 10 posts i have to scroll down to avoid having to read the profile again.
minor niggle i know but once u read it u read it :)
Velocd
08-01-2002, 08:32 PM
Use an anchor tag then if you are planning to access it via a link and want direct access.
Other wise, it's pointless to make because there is already an option in the userprofile (before installing this hack) to view the members newest posts. (to see that page, click on the magnify glass next to your username on vB.org postbit)
The only last thing I could really use on Afterlabs hack is pagenumbers, so you can see more then just the last 10 posts (that is what I defined) but the page will only show 10, to not clutter things up.
lol i only just noticed the glass
is this an hack that is already out ?
Velocd
08-01-2002, 08:53 PM
No, it's a built in feature of vBulletin, lol :p
Replace yoursite with your domain name:
http://www.yoursite.com/forums/search.php?s=&action=showresults&searchid=1
It mainly can be accessed through the user profile. (search for all posts by this user)
Boofo
08-02-2002, 12:06 AM
Found another problem. You aren't parsing out the html. Here's a sample of what I got in one of the messages. Before the Delete original PM, there is a checkbox. I don't know why it won't show up in here now, but it is there. :) It is a code box or PHP box the delete line is in.
...it goes on ;) What do you already have changed? What else must you change? We have reached an agreement (*LOL) that you use only one template. For this you must change - the template 'priv_sendprivmsg' - the file private.php First the template: search for $requestreceipt and add directly after
Delete original PM: delete original PM after reply
serach for $header ...
Boofo
08-02-2002, 12:47 AM
Ok, fixed it. :) You will need to search in member.php for
$addon=censortext($addon);
and directly after that add:
$addon=htmlspecialchars($addon);
Thanks to bad_madman for this one. :)
Velocd
08-02-2002, 04:13 AM
Awesome :D
Thnx Boofo for catching that ;)
Boofo
08-02-2002, 04:17 AM
You know me...if it's there, I usually end up finding it somehow. :)The more hacks I install, the more I find with the new ones. :)
Originally posted by Velocd
Awesome :D
Thnx Boofo for catching that ;)
MartynJ
09-08-2002, 03:12 PM
:confused:
concept
09-16-2002, 09:48 AM
very useful hack thanx
concept
09-16-2002, 10:19 AM
one problem why do i have a repeating
tr>
tr>
tr>
tr> b4 my latest post here i'll show you what i mean...
i think somehtign is wrogn in the getinfo template on thast last add on
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td align="left" colspan="2"><normalfont color="{tableheadtextcolor}"><b>Latest Posts From $userinfo[username]</b></normalfont></td>
</tr>
$latestposts
</table>
</td></tr></table>
concept
09-16-2002, 10:30 AM
NM i fixed it i just missed < in my getinfo lastest post sorry to destrub great work
SpeedStreet
11-26-2002, 05:12 PM
Is there a way to attach the forum name to this as well?
On our site, we tend to want to have a quick way to see where people are posting the most (OT, Mitsubishi, Ford, University, etc.)
If we were able to see this quickly, it would make our lives alot easier :)
drownedspirit
01-06-2003, 08:54 AM
filter the posts posted on ADMIN/MOD forums?
Aaron1
01-19-2003, 07:07 PM
Great hack!
I like the addon aswell, but i am missing only one addition that would make this hack even better.
Could you add a maximum characters (showchar) restriction for the Topics/Subjects aswell? Because some topics are very long.
Best regards!
Aaron1
01-20-2003, 07:56 AM
Solved myself!
Right after this:
$posttitle=$getlastpost[title];
ADD this:
if (strlen($getlastpost[title]) > 40) {
$posttitle = substr($getlastpost[title], 0, 37) . '...';
}
It works on my forum!
does anybody know how to get this working with maybe an if/then/else statement?
here's what i want to do. i want it to instead of ALWAYS showing the thread title that was posted in, i want it to be something like
if thread title exists, it will use that UNLESS there is also an individual post subject that someone has manually entered along the line, then it would use that? see what I mean? thanks.
Does anyone know what I did? All I did was simple copy and paste, but it gives me errors. See what I mean:
Parse error: parse error, expecting `']'' in /home/gorzekc/public_html/kino/forums/member.php(1413) : eval()'d code on line 86
Xyphen
03-09-2003, 06:17 PM
Works fine on vB2.3.0 except if user has made no post then it doesn't display the No Posts Made template.. I am also using your Hide Un-entered fields..
Boofo
03-09-2003, 06:45 PM
Originally posted by 006
does anybody know how to get this working with maybe an if/then/else statement?
here's what i want to do. i want it to instead of ALWAYS showing the thread title that was posted in, i want it to be something like
if thread title exists, it will use that UNLESS there is also an individual post subject that someone has manually entered along the line, then it would use that? see what I mean? thanks.
Just add:
if ($posttitle == "") {
$posttitle = "Re: $threadtitle";
} else {
$posttitle = "$posttitle";
}
Above:
$postctr++;
You'll also have to change the query to this:
$getlastposts=$DB_site->query("SELECT thread.title AS threadtitle,thread.threadid,thread.forumid,post.ti tle AS posttitle,post.postid,post.dateline,post.userid,po st.visible FROM thread,post WHERE thread.threadid=post.threadid AND post.userid=$userinfo[userid] AND post.visible=1 ORDER BY post.dateline DESC");
And add this:
$threadtitle=$getlastpost[threadtitle];
$threadtitle=censortext($threadtitle);
$threadtitle=htmlspecialchars($threadtitle);
$threadurl="showthread.php?s=$session[sessionhash]&threadid=$getlastpost[threadid]\" title=\"Go to first post";
Above this:
$posttitle=$getlastpost[posttitle];
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.