The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
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 ![]() 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
|
Comments |
#22
|
|||
|
|||
![]()
Yep all of that stuff.
Plus on each BB message that a person writes there should be an icon to 'Send Private Message', if there isn't such thing already. Have to admit though, bloody good for a hack. If this is what one person can do in a short time then the 'proper' vBulletin version should be amazing ![]() |
#23
|
|||
|
|||
![]()
In global.php find
Code:
function bbcodeparse2($bbcode,$forumid=0,$allowsmilie=1) { // parses text for vB code, smilies and censoring global $DB_site,$bbcode2; global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsmilies,$wordwrap; if ($wordwrap!=0) { $bbcode=eregi_replace("([^ <>\"\\-]{$wordwrap})"," \\1 ",$bbcode); } if ($forumid!=0) { Code:
// PRIVATE MESSAGING if ($forumid=="-1") { global $privallowhtml, $privbbimagecode, $privallowsmilies, $privallowbbcode; $allowhtml = $privallowhtml; $allowbbimagecode = $privbbimagecode; $allowsmilies = $privallowsmilies; $allowbbcode = $privallowbbcode; } else { // END PRIVATE MESSAGING Code:
$dobbcode=$forum[allowbbcode]; |
#24
|
|||
|
|||
![]() Quote:
here is the fix for this (it works perfectly, relax): where the instructions now say: Code:
------------- 2. global.php ------------- Find: ~~~~~ function bbcodeparse($bbcode,$forumid=0,$allowsmilie=1) { global $DB_site,$enablecensor,$censorwords,$censorchar; global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsmilies; if ($forumid!=0) { ~~~~~ Under, add: ~~~~~ // PRIVATE MESSAGING if ($forumid=="-1") { global $privallowhtml, $privbbimagecode, $privallowsmilies, $privallowbbcode; $allowhtml = $privallowhtml; $allowbbimagecode = $privbbimagecode; $allowsmilies = $privallowsmilies; $allowbbcode = $privallowbbcode; } else { // END PRIVATE MESSAGING ~~~~~ Just below that, find: ~~~~~ $allowbbcode=$forum[allowbbcode]; ~~~~~ Under, add: ~~~~~ // PRIVATE MESSAGING } // END PRIVATE MESSAGING ~~~~ ------------- Code:
------------- 2. global.php ------------- Find: ~~~~~ // parses text for vB code, smilies and censoring global $DB_site,$bbcode2; global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsmilies,$wordwrap; if ($wordwrap!=0) { $bbcode=eregi_replace("([^ <>\"\\-]{$wordwrap})"," \\1 ",$bbcode); } if ($forumid!=0) { ~~~~~ Under, add: ~~~~~ // PRIVATE MESSAGING if ($forumid=="-1") { global $privallowhtml, $privbbimagecode, $privallowsmilies, $privallowbbcode; $dohtml = $privallowhtml; $dobbimagecode = $privbbimagecode; $dosmilies = $privallowsmilies; $dobbcode = $privallowbbcode; } else { // END PRIVATE MESSAGING ~~~~~ Just below that, find: ~~~~~ $dobbcode=$forum[allowbbcode]; ~~~~~ Under, add: ~~~~~ // PRIVATE MESSAGING } // END PRIVATE MESSAGING ~~~~ ------------- |
#25
|
|||
|
|||
![]()
Looks like we both know what we are doing
![]() |
#26
|
|||
|
|||
![]()
Heres how to add lightbulbs to the private messaging
In the part which is added to index.php find Code:
$newpmcount = $newpmcounta[msgid]; Code:
if($newpmcount == 0) { $lightbulb = 'images/off.gif'; } else { $lightbulb = 'images/on.gif'; } Code:
<img src="$lightbulb"> That's it ![]() |
#27
|
|||
|
|||
![]()
Thanks Mark, that rules!
As for the "delete" in the messages list page -- I couldn't find a way to do a "mass delete" whereby you could check the boxes next to several messages and delete them at once, so instead I did this (for the time being): 1) add a td in the privmsgslist template at the end of the row, after the date/time td. Put there "delete?" 2) edit privmsgsbitlist template and add at the end of the row, after the $datesent and $timesent td, the following: Code:
<FORM ACTION="private.php" NAME="REPLIER" METHOD="POST"><td bgcolor="{firstaltcolor}" nowrap><input type="hidden" name="delete" value="yes"><input type="hidden" name="action" value="dodelete"><input type="hidden" name="msgid" value="$msgid"><input type="hidden" name="table" value="$table"><input type="hidden" name="password" value="$password"><input type="submit" value="Delete" width="1" height="1" style="font-size: 11px;"></td></form> Of course, this isn't the idyll solution - I'd prefer check boxex and the option to delete several messages whose boxes are checked at once - but it's still better than nothing. Now onto finding a fix for the forum jump scrolldown list ![]() |
#28
|
|||
|
|||
![]()
Thanks bira - i've given it a go and it has worked in part.
However, where do I get the templates from ? Mark talks of the pmloggedin template - i've not got anything like that ![]() privatelogin privatemsglist privmsgbit privmsgsbitlist Can you help ? Maybe someone could email me any I might be missing ? |
#29
|
|||
|
|||
![]()
Craig - I posted a list of the templates earlier on, I will do it again just for you
![]() pmloggedin pmloggedout privatelogin privatemsglist privatemsgbit privatemsgbitlist sendprivmsg showprivmsg Those templates are installed when you run "makeprivtables.php" successfully. Check again -- you might have missed it. the pmloggedin is right above the postbit in the list of templates. Otherwise - what isn't working for you? |
#30
|
|||
|
|||
![]()
Right, i'm definately missing these two:
pmloggedin pmloggedout They're not there at all - as you'd see from my homepage ![]() Could you do me a huge favour and copy & paste them here for me ? (or email them if you wish) Cheers |
#31
|
|||
|
|||
![]()
Craig,
did you "Add $pminfo to 'forumhome' template where you want 'pmloggedin' or 'pmloggedout' template to appear"? In any case, this is how the original pmloggedin and pmloggedout templates look like: pmloggedin: Code:
<TR bgcolor="{categorybackcolor}" id=cat><TD colspan=6> <font color="{categoryfontcolor}" size=2><B>Private Messaging:</B></font></td> </tr> <tr bgcolor="{firstaltcolor}"><td colspan=6> <smallfont><a href="private.php">Read them!</a> <BR>$username - You have $pmcount private message(s) ($newpmcount new)</smallfont></td> </tr> Code:
<TR bgcolor="{categorybackcolor}" id=cat><TD colspan=6> <font color="{categoryfontcolor}" size=2><B>Private Messaging:</B></font></td> </tr> <tr bgcolor="{firstaltcolor}"><td colspan=6> <smallfont><a href="private.php">Login to read your private messages!</a></smallfont></td> </tr> Let me know if you need anything else |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|