vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Last X Posts In Profile (https://vborg.vbsupport.ru/showthread.php?t=41743)

afterlab 07-30-2002 10:00 PM

Last X Posts In Profile
 
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
Add-On Screenshot: Click Here
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

Quote:

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.

Mr_P 08-01-2002 12:12 AM

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 ;)

Mr_P 08-01-2002 05:37 PM

Quote:

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:

Code:

// ###############################
// 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:

Code:

            <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.

Mr_P 08-01-2002 06:15 PM

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.

Mr_P 08-01-2002 08:41 PM

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/searc...lts&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.

Quote:

...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

PHP Code:

$addon=censortext($addon); 

and directly after that add:

PHP Code:

$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. :)

Quote:

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
PHP Code:


<br>

<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="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!


All times are GMT. The time now is 06:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01494 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete