The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Hello all,
Well I did it, my first real hack. I don't know what the rule on this is but I'll be honest and say I used alot of original vB code to make this. I don't believe in reinventing the wheel and the code in vB is so good it makes it very easy to modify. This hack will give Admins and Mods the ability to alert users with a small message. This message works similiar to the PM popup. It also has the ability to send one user a number of messages. Each message will be denoted by the person who sent the message. If you are not competent with Mysql and the inner workings of vB and your not sure if you need this utility I would recommend not installing it. I consider this to be a Beta since I only tested it on my local dev computer. I would really appreciate some "experienced" users testing this hack to let me know where I've made mistakes. If someone is real hack happy he/she they could change the hack and add the thing listed on my todo list below. If not I'll get to adding them sooner or later. Anyhow, have fun. I'll be answering your questions here in this forum. Scott Demo Screenshots To do list: 1. Add option to send a message to online users only(good for telling them that the board will be closing before it's closed) 2. Timestamping the messages. Probably not a bad idea. 3. Checking that messaging is on before messages get stored in db. Would save Mods the embarassment. 4. Add wild card function '*' to search for user names. If you have more ideas as to how I could improve this hack feel free to post your ideas here!. Show Your Support
|
Comments |
#52
|
||||
|
||||
What is this in the default template?
Code:
| 6222 | -1 | head_newmsg | ".addslashes($template)." | Scott |
#53
|
|||
|
|||
But that is the default template as u said. I have 5 different layouts/colors and that is it. And yes I am using IE. And if that was my problem how do I fix it.
|
#54
|
|||
|
|||
If iam right Molinari means you shold use a template like
| 6223 | 1 | head_newmsg | <script language="JavaScript"> aler t_box=alert("$bbtitle Messaging\n\n$popmessage\n"); </script> | //your other templates // instead of .addslashes |
#55
|
|||
|
|||
Just tell me exactly what to do please, I am illiterate with this stuff, I am somewhat of a hardware guy more than a programmer.
|
#56
|
|||
|
|||
Try to enter
Code:
<script language="JavaScript"> aler t_box=alert("$bbtitle Messaging\n\n$popmessage\n"); </script> Code:
".addslashes($template)." You can do it directly in the myadmin or in the p.. |
#57
|
|||
|
|||
Ok, well problem, ".addslashes($template)." in template -1 is from a template that is not used or visible at all. Hence it should have no effect on the outcome of any of this. What else could be wrong.
|
#58
|
|||
|
|||
Oh Boy... ok
my settings are [code]1544 -1 head_newmsg <script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n"); </script> [code] Code:
$checkmessages = "1"; Code:
</style> $headnewmsg $headnewpm<font color="#6F6660"></font |
#59
|
||||
|
||||
thanks s.molinari for this great hack ..it works like a charm for me ... I have only one problem
let say I have these users josh josh1 and I want to send the message to josh ....it will send it to josh1 first then it will ask me to continue that means all the other users will get the message which I dont wont to ... now is there is a way of giving a choice not to send the message to the other users except the one I want I hope you got what I mean |
#60
|
|||
|
|||
Great hack...
I installed it 2 hours ago and have already put it to use! We love it! |
#61
|
||||
|
||||
Quote:
Hey, you've found a bug! Not only with my hack but with vb also. I will add this on my to do list. Sorry for the inconvenience. What I will change is the possibility to add a '*' to the criteria. This will enable you to send josh a message but if you would like to send all users with josh in their name you would then write *josh*. Scott |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|