Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-13-2000 Last Update: Never Installs: 0
 
No support by the author.

Woo-freaking-hoo!

Here it is, the vB PM hack! NEWLY CHANGED TO VERSION 1.2.0 - please reference this thread now: http://www.vbulletin.com/forum/showt...?threadid=1772

It can be downloaded from here: http://www.enter.net/~rmsullivan/pmhack1.2.zip . The instructions are included within that.

Demo at: http://www.magic-singles.com/cpa/forums/ . If you MUST register to test it, ok, I guess. I'll be adding screenshots so you know what it's like soon.

Now UPDATED to version 0.9.15 !!!! Several bug fixes, additional support for linking to posts and nicer delete methods (thanks bira!)

Please note that the UBB import script has NOT been done yet - sorry. Soon though.

Enjoy! Post and questions/comments/bug reports here!

[Edited by Ed Sullivan on 07-16-2000 at 11:31 PM]

Show Your Support

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

Comments
  #72  
Old 06-14-2000, 10:46 AM
Guest
 
Posts: n/a
Default

Yep, i'm getting the date problem too...

http://www.ten-tenths.com/forum/show...?threadid=2348

Anyone ?
Reply With Quote
  #73  
Old 06-14-2000, 10:52 AM
Guest
 
Posts: n/a
Default

The reason for the date bug is again because the hack was basing itself on the 1.1.1 version, whereas John changed the date settings in 1.1.2 - he switched from the MySQL date to the PHP date.

In any case, I removed that line and the one about total posts from the showprivmsg template - who cares about those two in PM anyway
Reply With Quote
  #74  
Old 06-14-2000, 10:54 AM
Guest
 
Posts: n/a
Default

For the sake of continuity throughout the forums, I do!

Is this likely to be fixed up Ed, or should I follow bira's example ?
Reply With Quote
  #75  
Old 06-14-2000, 10:58 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Ed Sullivan
Quote:
Originally posted by Me2Be
a little birdie told me about it!
HEY! I'm not that little and I'm not a birdie!
Okay, fine - this strong, masculine gentleman told me about it.

Better?
~~~~ Men............ ~~~~

[Edited by Me2Be on 06-14-2000 at 07:59 PM]
Reply With Quote
  #76  
Old 06-14-2000, 11:23 AM
Guest
 
Posts: n/a
Default

Darn, I can't find that time code in the template. Any clues Bira?? I saw timezone, but that was it.
Reply With Quote
  #77  
Old 06-14-2000, 11:30 AM
Guest
 
Posts: n/a
Default

I'm sorry Rick, my mistake - it's in the privmsgbit template.

Let me know if you cannot find it there (it will under $username2 and $usertitle)
Reply With Quote
  #78  
Old 06-14-2000, 11:34 AM
Guest
 
Posts: n/a
Default

I found another glitch. After someone sends you a PM click on profile under their message and it will bring up your own not the person who sent the message. I haven't tested the e-mail form to see who get the e-mail the proper recipiant or yourself.
Reply With Quote
  #79  
Old 06-14-2000, 11:51 AM
Guest
 
Posts: n/a
Default

go to the privmsgbit template and edit it:

replace $profile with:

Code:
<a href="member.php?action=getinfo&userid=$fromid" target="_blank"><img src="images/profile.gif" border="0" alt="Click here to see the profile for $username"></a> &nbsp;

This will make it work right

[Edited by bira on 06-14-2000 at 09:04 PM]
Reply With Quote
  #80  
Old 06-14-2000, 12:03 PM
Guest
 
Posts: n/a
Default

in the same template, replace $emailuser with:

Code:
<A HREF="member.php?action=mailform&userid=$fromid" target=_blank><IMG SRC="images/email.gif" BORDER=0 ALT="Click Here to Email $username"></A> &nbsp;
And peace is restored
Reply With Quote
  #81  
Old 06-14-2000, 12:31 PM
Guest
 
Posts: n/a
Default

A couple of my users asked that the PM login that shows up on the forum homepage will also be available on the forums pages, since many of them have specific forums bookmarked and don't see the forum homepage.

So I did a tiny hack to the hack to have this. Thought I'd share it with you if you're interested.

In forumdisplay, above the line // parse header ################## (or anywhere else for that matter which is outside a process), paste the following:

Code:
  //PM HACK
  if ($bbusername) {
  	$username = $bbusername;
  	$pmcounta = $DB_site->query_first("SELECT COUNT(msgid) AS msgid FROM privatercvd WHERE toid=$bbuserid");
  	$pmcount = $pmcounta[msgid];
  	$newpmcounta = $DB_site->query_first("SELECT COUNT(msgid) AS msgid FROM privatercvd WHERE toid=$bbuserid AND UNIX_TIMESTAMP(datetime)>$bblastvisit");
  	$newpmcount = $newpmcounta[msgid];
  	if($newpmcount == 0)
	{
  	$newold = 'images/folder.gif';
	} else {
  	$newold = 'images/newfolder.gif';
	}

  	eval("\$pminfo .= \"".gettemplate("pmloggedin2")."\";");
  } else {
  	eval("\$pminfo .= \"".gettemplate("pmloggedout2")."\";");
  }
  //END PM HACK
Now go to the templates, copy the content of "pmloggedin" and paste it into a new template called "pmloggedin2". Make the necessary modifications so that it will have the same number of td in a row as the forumdisplaybit has.

Now do the same with "pmloggedout" - copy the content of this template and paste it into a new template called "pmloggedout2". Edit it as necessary to fit your forumdisplay layout (same as pmloggedin2).

Finally, open the "forumdisplay" template and put $pminfo where you want the pm login to show (similar process as to the one for the forums homepage).

Enjoy
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 09:55 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.04889 seconds
  • Memory Usage 2,280KB
  • 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
  • (3)bbcode_code
  • (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
  • (4)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_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
  • 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