Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last X Posts In Profile Details »»
Last X Posts In Profile
Version: 1.00, by afterlab afterlab is offline
Developer Last Online: Jul 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-30-2002 Last Update: Never Installs: 32
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 01-20-2003, 07:56 AM
Aaron1's Avatar
Aaron1 Aaron1 is offline
 
Join Date: Oct 2002
Location: Amsterdam
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #43  
Old 02-09-2003, 05:38 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #44  
Old 03-06-2003, 10:40 PM
kino kino is offline
 
Join Date: Jan 2003
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know what I did? All I did was simple copy and paste, but it gives me errors. See what I mean:

PHP Code:
Parse errorparse errorexpecting `']'' in /home/gorzekc/public_html/kino/forums/member.php(1413) : eval()'d code on line 86 
Reply With Quote
  #45  
Old 03-09-2003, 06:17 PM
Xyphen's Avatar
Xyphen Xyphen is offline
 
Join Date: Dec 2002
Location: ON, Canada
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #46  
Old 03-09-2003, 06:45 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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:

PHP Code:
        if ($posttitle == "") {
        
$posttitle "Re: $threadtitle";
        } else {
        
$posttitle "$posttitle";
        } 
Above:

PHP Code:
        $postctr++; 
You'll also have to change the query to this:

PHP Code:
    $getlastposts=$DB_site->query("SELECT thread.title AS threadtitle,thread.threadid,thread.forumid,post.title AS posttitle,post.postid,post.dateline,post.userid,post.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:

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

PHP Code:
        $posttitle=$getlastpost[posttitle]; 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 PM.


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.04167 seconds
  • Memory Usage 2,269KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete