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 PM on Forumhome Details »»
Last PM on Forumhome
Version: 1.00, by Kratheous Kratheous is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-18-2003 Last Update: Never Installs: 11
 
No support by the author.

This hack will show you last PM you recieved on the forumhome.

Show Your Support

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

Comments
  #42  
Old 05-13-2003, 07:26 PM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:18 PM Boofo said this in Post #40
Welcome back, my friend.
Thanks, latly I pretty much giving up on making hacks for vbulletin till 3.0 comes out. Ive been working on other projects in the mean time. Most for some freinds.

Current Projects (Not intergrated with vbulletin in any way):

Team managment page - user system with user profiles and a admin and user system that allow team admins to create accounts then users to log in and edit there profile.

List List - shows a list of links added by a team admin and also supports banners and tells the status of the site.

Image Gallery with auto thumbnailer

FAQ system that allows people to search FAQ's and team admins to add there own

Projects page - allows the admin to add, edit and delete current prjects and add a screen shot, link, description and other things.

Online dictionary - A custom dictionary where some one can add a word, pronouncian, translation, description and comments. Also with the dictionary withh be a search feature and a text translator feature.

and a bunch of others.
Reply With Quote
  #43  
Old 05-14-2003, 06:01 AM
vB-Host.com's Avatar
vB-Host.com vB-Host.com is offline
 
Join Date: Apr 2003
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack.. installed in less then 2 minutes on my www.thesportsforum.net board... thanks for such a cool hack!
Reply With Quote
  #44  
Old 06-02-2003, 09:37 PM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Confirmed working on 2.3.0, however I made a few slight modifcations in the manner that the private message previews are displayed. I noticed that you were utilizing nl2br() to convert new lines into <br> which can stretch the layout so I removed the call to that function and added a str_replace() to remove carriage returns "\n" and new lines "\n" from the $lastpmstuff['preview'] variable.
Reply With Quote
  #45  
Old 06-02-2003, 10:07 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:
Today at 05:37 PM Kriek said this in Post #43
Confirmed working on 2.3.0, however I made a few slight modifcations in the manner that the private message previews are displayed. I noticed that you were utilizing nl2br() to convert new lines into <br> which can stretch the layout so I removed the call to that function and added a str_replace() to remove carriage returns "\n" and new lines "\n" from the $lastpmstuff['preview'] variable.
Can you show us what you changed in the code itself?
Reply With Quote
  #46  
Old 06-03-2003, 02:29 AM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open index.php and find
PHP Code:
$lastpmstuff['preview'] = preg_replace("/\[[^\]]*\]/","",$lastpmstuff['message']); 
Add the following below it
PHP Code:
$lastpmstuff['preview'] = str_replace(array("\n","\r\n","\r")," ",$lastpmstuff['preview']); 
Remain in index.php and find
PHP Code:
$lastpmstuff['preview'] = trim(nl2br(dowordwrap($lastpmstuff['preview']))); 
Replace with the following
PHP Code:
$lastpmstuff['preview'] = trim(dowordwrap($lastpmstuff['preview'])); 
Reply With Quote
  #47  
Old 06-03-2003, 02:55 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's what I already had for that piece of code and I think it works about the same way, doesn't it?

PHP Code:
 $lastpmstuff['preview'] = preg_replace("/\[[^\]]*\]/","",$lastpmstuff['message']); 
 
$lastpmstuff['preview'] = str_replace("\"","",$lastpmstuff['preview']);
 
$lastpmstuff['preview'] = trim(htmlspecialchars($lastpmstuff['preview']));
 if (
strlen($lastpmstuff['preview']) > 300) {
   
$lastpmstuff['preview'] = substr($lastpmstuff['preview'], 0300) . "…";
  }
  
$lastpmstuff['preview'] = trim(dowordwrap($lastpmstuff['preview'])); // for pm title= preview 
Reply With Quote
  #48  
Old 06-03-2003, 03:35 AM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Technically yes, but it will not remove carriage returns and/or new lines.
Reply With Quote
  #49  
Old 06-03-2003, 03:47 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried it with your code and the message looked all run together. I want it to look like it does in the pm when you preview it.
Reply With Quote
  #50  
Old 06-03-2003, 09:41 PM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you completely misunderstood the purpose of my modifcations, as I do NOT want the preview to look like the original private message, because it stretches the layout; imagine a private message with ten or more carriage returns.
Reply With Quote
  #51  
Old 06-03-2003, 09:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand what you mean now. Sorry about that. It is just a little hard to read all bunched together for me.
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:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06291 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_php
  • (2)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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