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-23-2000 09:10 AM

Ed:

Since this works so well do you think that John will incoroporate it into the next version of vBulletin? It sure would make it a lot easier if it was already included.

One thing that I think would really be cool is a feature that would offer a java pop up if they wanted like ICQ. When you have private messages waiting, you as a member could choose the option, could have a pop up window with the messages that you could scroll through and then close the window out.

Just thinking!

Parker

06-23-2000 08:43 PM

Java could be a bad idea for the sake of compatibility.

06-24-2000 02:45 AM

Just wanted to say, Great Hack!

06-25-2000 06:01 PM

Which zip file has the latest bug fixes, files, and instructions?

Thanks!

06-26-2000 06:54 PM

OKAY, I must be real stupid.

6. Add $pminfo to 'forumhome' template where you want 'pmloggedin' or 'pmloggedout' template to appear.


Where the heck are these templates????? This line of the instructions speak like I'm supposed to know or something.

:)

Can we have "PM Hack for Dummies?"

in other words.....help?

06-26-2000 06:55 PM

OKAY, I must be real stupid.

-----------INSTRUCTIONS----------------------------
6. Add $pminfo to 'forumhome' template where you want 'pmloggedin' or 'pmloggedout' template to appear.
---------------END------------------------

Where the heck are these templates????? This line of the instructions speak like I'm supposed to know or something.

:)

Can we have "PM Hack for Dummies?"

in other words.....help?

06-30-2000 08:04 AM

Quote:

Originally posted by Cold Steel
Which zip file has the latest bug fixes, files, and instructions?

Thanks!

*bump*

Can someone tell me please?

06-30-2000 11:01 AM

Uhm, on the first page, perhaps?

07-01-2000 08:30 AM

Does this hack work in any incarnations of 1.1.3?

07-03-2000 02:09 AM

Quote:

Originally posted by Cold Steel
Does this hack work in any incarnations of 1.1.3?
Yes, see my board.

And about those templates someone mentioned: look in the list - they're there.

07-03-2000 02:14 AM

Cold Steel : yes it works but you will have to look a little bit for the correct place to put it as the instructions don't exactly match up.

07-04-2000 02:47 PM

Does the PM hack currently check against baneip / banemail if enablebanning is switched on via the Control Panel?

If not can this functionality be introduced please?

07-12-2000 12:03 AM

Your board is beautiful! Can I use your light bulbs?

07-12-2000 12:07 AM

My board?!? Wow, I don't even like it too much anymore ;) But if you were talking to me, sure.

About the new version - it's coming along well. I'll look through this whole thread and tell what's been added so far.

07-12-2000 12:39 AM

Well, here's just a list of new features and such for the new version:

------
Quote:

1) In the table of the messages in the received list and the sent list, to have a column with a checkbox next to each message title. You can check the boxes next to the titles you want to delete, and then click on a button which says "delete all checked titles". This way, if you'd like to delete several messages, you don't have to access each message at a time.
Done!

Quote:

2) Add "My Private Messaging" to the $forumjump scrolldown list (I guess this could be added somehow simple, no?)
Not yet, but it sounds simple (I'm just trying to avoid making changes to vB's standard files.

Quote:

3) the lightbulb icon! - have a lightbulb icon next to the privae messages line on the forumhome, whereby if you have new messages it will be lit up, and if you don't have new messages it won't be (just like you have an indicator for the forums)

4) "last message by" - have on the forumhome and indicator of the last message date and who sent it, just like in the forums.
Been done!

Quote:

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.
Yep, been done too!

Quote:

This might seem a little hard, but would it be possible for the user to create subfolders, like "Old PM's", or something like that? Someplace to put the PM's once they have been read, but so that they are not in the "Inbox".
A little hard, but ... Done too!

Quote:

some kind of indicator to note whethere a message has been replied to or not
Done too!

Quote:

I wonder if you are able to put "quotas" on accounts. IE limit to 20 messages or something??
I haven't tested it, but Done! (Admins/Mods exempt too) (Even sends email if full)

Quote:

1) Forward. "Forward this message to..."
Done!

Quote:

2) a "read next" "read previous" links on the messages, like in the threads.
Done!

Quote:

3) An arrow next to the "last message from..." which takes you directly to that last message.
Not yet, but I think that's simple too...

Quote:

how about the option to dispatch an email to the user when a new private message is awaiting them
Not yet

Quote:

Also, it would be great if there was a facility for admins only (i.e. me) to send a private message to *every* registered user.
Not quite yet...

Quote:

an option to stop specific users from using the facility if they abused it, but seperate from their posting rights section
Coming...

Quote:

Would it be possible to place check boxes next to the list of "sent" messages, so instead of deleting them one at a time you could check as many messages as you want and delete them all at once.
See above (aka Done!)

Quote:

Receipt Notification (notify sender that recepient read message)
Don't really know if this is possible without adding another field...

Quote:

Make a folder with an R or such so that we know we responded to a specific message
Done! (I just need a folder that has an R)

Quote:

If there are no messages in your folder it says "Last message from" and then nothing, have this say 'nobody' or such. Should only do this if I have never received a message (see below)
Fixed

Quote:

If I delete all of my messages it should remember who my last message was from and reflect that in the "Last Message from"
I don't want to add another field to the user table :)

Quote:

Oh yeah would it be possible to get some sort of stat function in the CP that would say

25 IM's sent today, 350 total ever sent.
Not done yet...

Quote:

One thing that I think would really be cool is a feature that would offer a java pop up if they wanted like ICQ
Nope...

Quote:

Does the PM hack currently check against baneip / banemail if enablebanning is switched on via the Control Panel?
Done! (That was the simplest fix ever)
-------

07-12-2000 12:46 AM

Oh, and this was amusing:

Views: 2250. Wow, 2250 views of this one thread :D

07-12-2000 04:34 AM

Ed:

One other thing. I think you should make it to where the member can turn this option off. I know you have control as an admin to turn it off or on to the whole board but a lot our members don't like the private messging and don't want anyone sending them anything. This should also remove the icon that you put in the forumdisplay pages too so that they can't send a private message from there either.

Parker

07-12-2000 04:40 AM

Ed:

You know looking at what you have done already it would nice if you put all the member selection in an options section. That way on one page you could set up your folders, set up your ban list, enable or disable private messaging, etc.

Just a thought.

Parker

07-12-2000 05:57 AM

Quote:

Originally posted by Ed Sullivan
quote:

Quote:

Does the PM hack currently check against baneip / banemail if enablebanning is switched on via the Control Panel?
Done! (That was the simplest fix ever)

Thanks! :D



Quote:

Originally posted by Parker Clack
Ed:

One other thing. I think you should make it to where the member can turn this option off. I know you have control as an admin to turn it off or on to the whole board but a lot our members don't like the private messging and don't want anyone sending them anything. This should also remove the icon that you put in the forumdisplay pages too so that they can't send a private message from there either.

Parker

Agree 100%


[Edited by Ciaran on 07-12-2000 at 02:58 AM]

07-12-2000 08:22 AM

all we need now are polls in a pm...;)

07-12-2000 01:52 PM

Ed:

One thing too. Do you have it written for 1.1.3 yet? I used the version that you have but noticed today that in the faq and bbcode pages you get a database error like:

Database error in vBulletin: Invalid SQL: SELECT announcementid,userid,startdate,title FROM announcement WHERE startdate<=963412951 AND enddate>=963412951 AND (forumid= OR forumid=-1) ORDER BY startdate DESC LIMIT 1
mysql error: You have an error in your SQL syntax near 'OR forumid=-1) ORDER BY startdate DESC LIMIT 1' at line 1
mysql error number: 1064
Date: Wednesday 12th of July 2000 09:42:31 AM
Script: /htforum/index.php?action=bbcode
Referer: http://www.hometheaterforum.com/htfo...php?action=faq

so it is probably where I am putting the code that have in the index.php file.

Could you look at 1.1.3 and see what changes need to be made in the placement of your code?

BTW, when I put the original code from 1.1.3 back in it took care of the problem.

Thanks,
Parker

07-12-2000 02:11 PM

Parker-
Quote:

One other thing. I think you should make it to where the member can turn this option off. I know you have control as an admin to turn it off or on to the whole board but a lot our members don't like the private messging and don't want anyone sending them anything. This should also remove the icon that you put in the forumdisplay pages too so that they can't send a private message from there either.
See my list, it's "Coming...", as in I'm programming it right now.

Quote:

You know looking at what you have done already it would nice if you put all the member selection in an options section.
Maybe if I feel like writing another template. I really hate making templates, and I'm already up to about 30 (!!!) :D

Quote:

One thing too. Do you have it written for 1.1.3 yet?
Yes, works fine on 1.1.3. Look at my board.

Quote:

I used the version that you have but noticed today that in the faq and bbcode pages you get a database error like: {SNIP}
Umm... I don't get them.

Doron-
Quote:

all we need now are polls in a pm...
LOL, that's coming in version v80.1 :)

07-12-2000 02:44 PM

Ed:

Since it is the index.php file that is causing the trouble
this is what I have.

Just below:
if ($action=="showforums") {

I have:

//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) {
$lightbulb = 'images/off.gif';
} else {
$lightbulb = 'images/on.gif';
}
$lastsent = $DB_site->query_first("SELECT fromid,UNIX_TIMESTAMP(datetime) AS datetime FROM privatercvd WHERE toid=$bbuserid ORDER BY msgid DESC");
if ($lastsent) {
$lastid = trim($lastsent[fromid]);
$lastdate=date($dateformat,$lastsent[datetime]+(($timeoffset+$bbtimezoneoffset)*3600));
$lasttime=date($timeformat,$lastsent[datetime]+(($timeoffset+$bbtimezoneoffset)*3600));
$lastsentuser = $DB_site->query_first("SELECT username FROM user WHERE userid=$lastid");
$lastuser = htmlspecialchars($lastsentuser[username]);
}
eval("\$pminfo .= \"".gettemplate("pmloggedin")."\";");
} else {
eval("\$pminfo .= \"".gettemplate("pmloggedout")."\";");
}
//END PM HACK

and this is just above:

$numbersmembers=$DB_site->query_first("SELECT COUNT(userid) AS users FROM user");
$numbermembers=$numbersmembers[users];

Does this look right?

Parker

07-12-2000 04:12 PM

Parker - that code is fine, although the new version makes some changes.

Now, the weird thing: I just downloaded the new beta 3, and did some searches, both in global.php and index.php. And that SQL isn't even in either! So, it's not my hack that's causing them to die :)

07-12-2000 04:16 PM

That IS weird. If I put the orginal index.php file back in I don't get the error. If I put the one with the code added in I get the database error.

What I was wanting in the previous message was to know if I was putting it in right or not.

Maybe the new version will take care of this problem. Who knows.

Parker

[Edited by Parker Clack on 07-12-2000 at 01:18 PM]

07-12-2000 07:32 PM

Maybe I'm missing the point, or didn't catch the sarcasm, but... :)

What's the point with polls in a private message?

There would be two votes MAX...so it seems rather, pointless. :)

07-12-2000 07:38 PM

you could mass mail them and have a central poll..nah, that was a joke. ;)

07-12-2000 07:49 PM

This is sweet! :) Goodbye mass e-mails hello personal messages! ;)

07-13-2000 02:53 AM

Ed:

I sent you an email back with the file you requested.

Did you get it?

Parker

07-13-2000 03:53 AM

Yeah, I haven't looked at it extensively yet though. Can you do a quick search in your global.php for something in that SQL error (like, announcement) or something - I really have no clue what would cause that.

When forumid=-1 in an announcement, that means it's going to any forum. So what the script is trying to grab looks like a forumdisplay.php routine: grab announcements for any forum (-1) or this forum (the blank space, since you're not in a forum). But, w(why)tf would it be doing that in index.php?!

*shrug* Not sure yet...

And, to everyone, I'm very close to the new release. Tonight if I rush to document all the changes, most likely tomorrow though.

Some misc. stuff now:
- Yes, there is an upgrade route to the new version, but some of the templates have significant changes. I suggest using the default versions, and just rehacking :) (Besides, I'm not even sure of everything I've changed)
- 95% of the suggestions have been implemented, including a few that weren't "Done!" before.
- Unfortunately, with new features, comes more editing to vB's standard files--much more. :(

Now, some bragging rights: :D
- 4 new profile fields, 2 customizable via "modifyprofile", other 2 from PM hack itself
- one new field to "usergroup" table
- (Get ready) 35 new templates (!!)
- 3 new tables:
* privatercvd, now with 10 fields
* privatesent, with 8 fields
* and pmstats, with 4 (new feature, still lacking though) :(

Anyway, get ready :)

07-13-2000 07:39 AM

Quote:

- Unfortunately, with new features, comes more editing to vB's standard files--much more.
It's inevitable, even though Idid think about creating a fuction file and using that to reduce the code you enter (for the poll hack).

07-13-2000 12:00 PM

Ed:

Thanks for looking into it. I found the problem. It was in my index.php file. I was trying to put an announcement thing on the main page found out I couldn't get it to work but forgot to take the code back out. That is what was causing the error. You didn't see it because it wasn't in index.php to begin with.

Duh!

I look forward to the newest version. Do you think you could document the names of the templates that you have created and are adding. It's kind of hard to look through the list and figure out which ones go with the private messages.

Thanks again,

Parker

[Edited by Parker Clack on 07-13-2000 at 09:10 AM]

07-13-2000 02:26 PM

doron - that's not really possible because a lot of the stuff is replacing lines.

Parker - see, it wasn't my hack :) And about template names: Well, most (95%) start with pm, error_pm, or redirect_pm, but ok.

07-14-2000 01:54 PM

Ummm...stupid question but it is possible to set this feature for admins and mods to mass mail members? Not all but simply more than one member?

ie.
In the input field you would ask the admin/mod to separate the user names using commas.

I know how to do this in perl but don't even know where to start in php... I need a book

07-14-2000 03:37 PM

Quote:

Originally posted by SonnetCelestial
Ummm...stupid question but it is possible to set this feature for admins and mods to mass mail members? Not all but simply more than one member?
Not in this version.

07-14-2000 08:41 PM

Okay, no worries ed! :) Thanks though. (btw when I said MAIL I meant POST, sorry for the confusion)

[Edited by SonnetCelestial on 07-14-2000 at 05:41 PM]


All times are GMT. The time now is 05:08 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.01404 seconds
  • Memory Usage 1,843KB
  • 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
  • (33)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)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