vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Private Messaging Hack (v0.9) !!!!!!! (https://vborg.vbsupport.ru/showthread.php?t=1095)

06-14-2000 02:49 AM

Ok, bunch of things here, I think

1. Templates: this is the full list of templates makeprivtables.php creates.
Quote:

error_pmcantdelete
error_pmcantignoreself
error_pmcantview
error_pmivalidrecipient
error_pmnosentreply
pmloggedin
pmloggedout
privatelogin
privatemsglist
privmsgbit
privmsgsbitlist
redirect_pmdelete
redirect_pmignoreadded
redirect_pmignoreedited
redirect_pmthanks
sendprivmsg
showignore
showprivmsg
2. I've just updated the zip above to v0.9.1!! Not many fixes, yet. Fixed instructions for vB 1.1.2, fixed "icons off" bug, added support for...

3. PM Button in Posts. Use what you want, but here's the syntax:
Code:

private.php?action=newmessage&toid=$userid
Simple enough.

4. Looked in to checkboxes real quick and they don't work how I wish they did - they only return the last value. Might have to talk to John a little about this.

06-14-2000 02:52 AM

Quote:

Originally posted by bira
Craig, if you don't mind losing the changes you made to the pm templates, then just run makeprivtables.php again - it will delete and rebuild the necessary tables. [/B]
WAIT! You have to make a few changes to it then!!

Namely, uncomment all these lines: (they're all at the top)
Code:

//$DB_site->query("DROP TABLE privatercvd");
//$DB_site->query("DROP TABLE privatesent");
//$DB_site->query("ALTER TABLE user DROP ignorelist");
//$DB_site->query("DELETE FROM template WHERE title='privmsgsbitlist'");
//$DB_site->query("DELETE FROM template WHERE title='privatemsglist'");
//$DB_site->query("DELETE FROM template WHERE title='privatelogin'");
//$DB_site->query("DELETE FROM template WHERE title='showprivmsg'");
//$DB_site->query("DELETE FROM template WHERE title='privmsgbit'");
//$DB_site->query("DELETE FROM template WHERE title='sendprivmsg'");
//$DB_site->query("DELETE FROM template WHERE title='redirect_pmthanks'");
//$DB_site->query("DELETE FROM template WHERE title='redirect_pmdelete'");
//$DB_site->query("DELETE FROM template WHERE title='error_pmnosentreply'");
//$DB_site->query("DELETE FROM template WHERE title='error_pmivalidrecipient'");
//$DB_site->query("DELETE FROM template WHERE title='error_pmcantdelete'");
//$DB_site->query("DELETE FROM template WHERE title='error_pmcantview'");
//$DB_site->query("DELETE FROM template WHERE title='error_pmcantignoreself'");
//$DB_site->query("DELETE FROM template WHERE title='redirect_pmignoreadded'");
//$DB_site->query("DELETE FROM template WHERE title='showignore'");
//$DB_site->query("DELETE FROM template WHERE title='redirect_pmignoreedited'");
//$DB_site->query("DELETE FROM template WHERE title='pmloggedin'");
//$DB_site->query("DELETE FROM template WHERE title='pmloggedout'");

Just remove the // in front of it.

Back to work...

06-14-2000 02:54 AM

Ed,

Go to my forum at http://www.atlasf1.com/bb/index.php and register and send me (bira) a pm, and then have a look at the delete buttons I added to the PM list :)

Also, as for the URL from posts - it will also work with the fix I posted, same thing :)

And lastly -- what do you mean by "fixed "icons off" bug"?

Thanks :)

06-14-2000 02:57 AM

Since you turned off icons in your forum, it wasn't returning anything. In the template for newmessage (I don't even remember what it's called now!), just leave posticons and it will instead insert a <input type="hidden"...> in place of the icons - stops that error :D

06-14-2000 02:57 AM

Can someone come up with a good private messaging 'icon' cause my artistic ability is erm, limited :p

06-14-2000 03:03 AM

Ah Ed, that's what I did, so I guess there's no point in me downloading the new version.

Mark - I'm working on it, though don't hold your breath :)

06-14-2000 03:09 AM

OK, rather than running it all again, could someone let me have a copy of the 'showignore' template as this is also missing from my setup for some reason :(

This is a really great addon Ed - thanks very much for your efforts. I hope that John will adopt it as part of the official release in the next release (or at least something as good - and compatible!)

06-14-2000 03:09 AM

bira - sent you a message, I like those delete buttons - unfortunately, they're not really foolproof. One mis-click and Poof!, you just lost a message. If you (or anyone) knows some javascript to bring up an "Are you sure?" type prompt, I'll add it to the official version. :)

PM Buttons - why not just rip it from the UBB version? ;)

You know, I've heard about hanging out in certain forums before, but I've never heard about hanging out in a thread! :D

06-14-2000 03:14 AM

showignore:

(Please note, I've made a few changes so the replacement variable tags don't get parsed)

Code:

{html doctype}
<HTML><HEAD><TITLE>$bbtitle - Private Messaging: Edit Ignore List</TITLE>
$cssinclude
</HEAD>
<body>
$header

<table border="0" width="100%"><tr>
<td valign="top" align="left"><a href="index.php"><img src="$titleimage" border="0"></a></td>

<td valign="middle" align="center" nowrap>
$fivelinks
</td></tr></table>

<table border="0" width="100%" cellpadding="2">
<tr><td width="100%">

<font><b><a href="index.php">$bbtitle</A> &gt; <a href="private.php?action=getmsgs&password=$password">Private Messaging</a> &gt; Edit Ignore List</b></font>

</td></tr></table>

<FORM ACTION="private.php" NAME="REPLIER" METHOD="POST">
<input type="hidden" name="page" value="login">
<table border=0 cellpadding=4 cellspacing=1 width="100%">
<tr bgcolor="{table headbgcolor}"><TD COLSPAN=2>
<font color="{table headtextcolor}" class=thtcolor><B>Editing $username's Ignore List</B></font></td></tr>
<tr bgcolor="{first altcolor}"><td valign=top>
<font><B>Your UserName:</B></font></td>
<td valign=top>
<INPUT TYPE="TEXT" NAME="username" VALUE="$username" SIZE=25 MAXLENGTH=25></td>
</tr>
<tr bgcolor="{second altcolor}">
<td valign=top>
<font><B>Your Password:</B></font></td>
<td valign=top><INPUT TYPE="PASSWORD" NAME="password" VALUE="$nonmd5password" SIZE=13 MAXLENGTH=13>&nbsp;&nbsp;
<smallfont><A HREF="member.php?action=lostpw">Forgotten your password?</A></smallfont></td></tr>

<TR bgcolor="{first altcolor}"><TD valign=top nowrap>
<font><B>Your Ignore List:</B></font>
<p><br><smallfont>(One username per line)</smallfont></td>
<td>
<TEXTAREA NAME="ignorelist" ROWS=20 COLS=60 WRAP="VIRTUAL">$ignoredusers</TEXTAREA>
</td></tr>
</table>

<P align="center">
<INPUT TYPE="HIDDEN" NAME="action" VALUE="doeditignore">
<INPUT TYPE="Submit" NAME="submit" VALUE="Edit Ignore List">
<INPUT TYPE="RESET" NAME="RESET" VALUE="Clear Fields">
</p></form>

$footer

</body>
</html>


06-14-2000 03:16 AM

Here are a few quick PM icons for the lower bar:

http://www.wakeamerica.com/forums/images/pm1.gif
http://www.wakeamerica.com/forums/images/pm2.gif
http://www.wakeamerica.com/forums/images/pm3.gif
http://www.wakeamerica.com/forums/images/pm4.gif


All times are GMT. The time now is 04:55 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.01152 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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