PDA

View Full Version : vB Popup Messaging Utility v.0.1


s.molinari
08-20-2001, 10:00 PM
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 (http://www.adduco.de/images/screenshots.jpg)


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!.

fxpersonline
08-21-2001, 07:01 PM
nice hack but i aint gonna try it out i want my board working lol

ps. could we have a screenshot please.

s.molinari
08-21-2001, 07:08 PM
Originally posted by fxpersonline
nice hack but i aint gonna try it out i want my board working lol

ps. could we have a screenshot please.

It will work.:)

I'll see what I can do about the screen shots.

Scott

s.molinari
08-21-2001, 08:03 PM
Screenshots now available. See above.

Scott

fxpersonline
08-21-2001, 08:13 PM
those screenshots are f**king **** u cant see anything will u imporve them plz

Steve Machol
08-21-2001, 08:28 PM
fxpersonline, please show some respect. Scott has gone through a lot of work to provide this. The least you could do is ask politely. Language and attitudes like this are likely to get you added to many people's 'Ignore' list.

Also, could you please enter your customer info into your user profile? See my sig for details. Thanks.

water
08-21-2001, 10:05 PM
I second that, great hack that I'm sure was quite a job to make so there's no need for the attitude :)

btw. I get a more that good enough impression from the provided screeenshots.

:water

Bane
08-22-2001, 12:43 AM
Well done Scott :)

butty
08-22-2001, 12:58 AM
good work scott thats pretty wild that :D

maverick1236
08-22-2001, 01:04 AM
ive installed-but how do i send a message??

i always miss the simple things..lol

tx

butty
08-22-2001, 01:56 AM
it should be in your control panel under users

s.molinari
08-22-2001, 08:56 AM
Originally posted by fxpersonline
those screenshots are f**king **** u cant see anything will u imporve them plz

Hello,

That's a give off. Quality for size. The jpeg is 100KB. I didn't want it any bigger. So it stays as is.

Scott

s.molinari
08-22-2001, 09:00 AM
Originally posted by Maverick1236
ive installed-but how do i send a message??

i always miss the simple things..lol

tx

Make sure you follow the directions in the install file. There are some lines of code wich you need to add in both the mod and admin CPs. You must also resave your board options. If you don't you can send messages but the users will not get them.

Scott

s.molinari
08-22-2001, 04:53 PM
uh. Did 2 people delete their posts or is there something wrong here? I just got 2 mails that there were new posts but there were none. What's up wit dat?

Scott

Lordmusic
08-22-2001, 09:56 PM
Odd, it doesn't seem to be working. I edited global.php in my base directory, ran the install file, deleted the install file, uploaded the other files, and added the $ command and tried sending it to the administrators. It said it was sent, yet I don't see anything and I was an admin. Please assist.

Delhaze
08-22-2001, 10:48 PM
Its working fine for me.

I've only done a very basic test so far.

Should the install file be deleted after install?

polgas
08-23-2001, 02:01 AM
Got it working.

Although you need to avoid referring to line nos. when doing the change. Some of us might have other hacks installed which would make it difficult for us to follow the line nos.

Other than that, GREAT and SIMPLE HACK!

:)

s.molinari
08-23-2001, 04:55 AM
Originally posted by Lordmusic
Odd, it doesn't seem to be working. I edited global.php in my base directory, ran the install file, deleted the install file, uploaded the other files, and added the $ command and tried sending it to the administrators. It said it was sent, yet I don't see anything and I was an admin. Please assist.

Did you resave your board options? All you need to do is go to Options->change options->save options in the Admin CP. This then saves the options along with the checkmessages variable. If you didn't do this the option to send messages is basically "off".

Scott

s.molinari
08-23-2001, 04:56 AM
Originally posted by Delhaze
Its working fine for me.

I've only done a very basic test so far.

Should the install file be deleted after install?

It would be wise. It's not needed for the utility to work.

Scott

s.molinari
08-23-2001, 06:09 AM
I've added 2 new things on my todo list:

1. Timestamping the messages. Probably not a bad idea.
2. Checking that messaging is on before messages get stored in
db. Would save Mods the embarassment.

Scott

Lordmusic
08-23-2001, 07:58 AM
I know what it was. Can you please not post the line #'s for I have installed hacks before and hence it did not work for me. I need to know what items to put it above and below and I am sure other users would appreciate this. Thanks.

s.molinari
08-23-2001, 09:31 AM
Line numbers are the easiest to reference. If you know you have hacks (more lines) then you can probably assume that the lines that I quoted won't be correct. My suggestion. Take a look at the original script and see where the lines are and what's around them, then find the same place in your hacked up script.

Scott

Operations
08-23-2001, 01:14 PM
Stille the Same Problem like Lordmusic has bevor

but i have update Cp
i have controlled all stats and for sure i have make it by hand now..

but no error message and no popup :/

normaly its not so hard ;)

but something is wrong... can u get me a clue what could be?

but i?m looking forward nice hack :)

s.molinari
08-23-2001, 02:27 PM
Hello All,

Due to popular demand (and the load of PMs I've gotten) I have now done one better. Instead of just improving my demo screenshots I have added a real life demo on my test board.

Go here! (http://www.webtroniks.de/tempadmin/index.php)

I have made 10 test accounts.

User name: test1 (through 10)
password:test

Login to the board, then send yourself a message. It's that easy.

Please don't forget to logout when your finished.

Scott

p.s. I didn't do a mod demo because it's basically the same thing as the admin, just with a few less options for user selection.

Operations
08-23-2001, 05:04 PM
@Molinari sorry all done i am such a idiot had a misstype in my board ;)

aehmmm works great now nice work :)

GB
08-23-2001, 09:46 PM
I installed the hack and it does not work. I saved my options in my cp once I finished installing the hack.

Your reference to line numbers in each php file are really a pain in the butt. It would make it alot easier if you made some sort of reference as to what code it should go below or above instead of line numbers...

Operations
08-23-2001, 10:22 PM
Template "Headinclude"

</style>
$headnewmsg
$headnewpm<font color="#6F6660"></font>

bewteen style and $headnewpm

in the global.php after

$headnewpm='';
if ($checknewpm and $bbuserinfo['userid']!=0 and $bbuserinfo['pmpopup']==2) {
if ($noshutdownfunc) {
$DB_site->query("UPDATE user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]";
}
$newpmmsg=1;
eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
}

add

if ($checkmessages and $bbuserinfo['userid']!=0 and $bbuserinfo['messagepopup']==2) {
$popupmessages = $DB_site->query("SELECT * FROM popupmsgs WHERE userid=$bbuserinfo[userid] ORDER BY nummessages DESC");
while ($popmsg = $DB_site->fetch_array($popupmessages)) {
$popmessage .= "Von:$popmsg[sender]\\n";
$popmessage .= "Nachricht:$popmsg[message]\\n\\n";
$DB_site->query("DELETE FROM popupmsgs WHERE nummessages=$popmsg[nummessages] AND userid=$bbuserinfo[userid]");
}
$DB_site->query("UPDATE user SET messagepopup=1 WHERE userid=$bbuserinfo[userid]");
eval("\$headnewmsg = \"".gettemplate('head_newmsg')."\";");
}

this code follows

$header='';
$footer='';

// parse header ##################
eval(gettemplate('phpinclude',0,0));


the both addings in the /mod/index.php and /admin/index.php are simply Links an can be created somewhere in the Nav
but basicly they are after
<a href="email.php?s=<?php echo $session[sessionhash]; ?>&action=genlist"> Generate mailing list </a><br> in the admin/index.php

and after

<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> View </a>| in the mod/index

thats all start install.php and update cp and it works..
:)

s.molinari
08-24-2001, 06:06 AM
Originally posted by GB
I installed the hack and it does not work. I saved my options in my cp once I finished installing the hack.



You should have finishwd installing the hack and then save your options.


Your reference to line numbers in each php file are really a pain in the butt. It would make it alot easier if you made some sort of reference as to what code it should go below or above instead of line numbers...

I don't understand what's so difficult. If you know you have hacks then you know the line numbers aren't correct for your scripts. So you should look at an original script. Look at the line number and see for yourself where you should add the code in your hacked script. It has to be easier for both of us when I write line numbers. What would you say if I did do what you want, like Operations did above(thank you very much Operations), and it just so happened that the code I mention is also hacked in your script, then you would never find the spot to where the code should be placed. Nah I'll stick to my line numbers. Sorry!

The other point to make is, if you have a clue as to how to program in PHP, then you should be able to see right away where the code belongs. If your not proficient in PHP programming then you really aught not to be playing around with hacks. Especially ones that change the form of the database like mine. That's why I said in the install, "Only continue if you know what your doing!"

Scott

Operations
08-24-2001, 06:12 AM
Np Molinari... (just @work go with it ;) )

That's why I said in the install, "Only continue if you know what your doing!"

Thats why Newbes delete files.. format harddisks, destroy CdR?s

they think they know what they do.. ;)

@GB... what happend whith the Hack.. do U got an Error?
works it but no message appear, did you have manually controlled the script?

(@molinari sorry for posting.. but so i can learn this php language a little bit better...)

Lordmusic
08-24-2001, 08:37 AM
I don't know what is wrong but I have tried this hack over and over. I installed the install script 2ce which frigged things up i am sure.

I added the $ command where it should be.

I also followed Operations directions in case I did it wrong.

It tells me the messages were sent, but nothing is seen. Please let me know.

s.molinari
08-24-2001, 08:42 AM
Did you resave your board options?

joecrow
08-24-2001, 08:44 AM
same here bro

Operations
08-24-2001, 08:48 AM
Did you resave your board options? All you need to do is go to Options->change options->save options in the Admin CP. This then saves the options along with the checkmessages variable. If you didn't do this the option to send messages is basically "off".

Scott
like he say its off if anything else is right
it must be this.. but u can easy looking

just enter phpmyadmin and go to
Table setting and search for
19 | Allow Popup messaging? | checkmessages | 1 | This function allows Admins and Mods to send quick private messages to users. | yesno

If value is 1 its aktivated and something else is wrong if its 0 its deaktivated.. change it there oder in the cp to 1 and it works..

water
08-24-2001, 09:21 AM
i know this a shot in the dark....

is there some way to make the message appear without the user refreashing or even visitng the forums? could this be done with with cookies and checking procediures & persistant login or something?

Operations
08-24-2001, 09:25 AM
this should be a joke or not?

i didnt suppose that so what is working...

how should this working?
you can not make a pop up whithout a script
he must reload the site to get the pop up.. if he is not on the site.. no pop up..

s.molinari
08-24-2001, 09:36 AM
Originally posted by water
i know this a shot in the dark....

is there some way to make the message appear without the user refreashing or even visitng the forums? could this be done with with cookies and checking procediures & persistant login or something?

No, it's not possible. The internet is a network of non interconnected computers. There are servers and clients. A client is you and your browser. Only when you request an internet page does the server know you want something from it. And only then can it send the info back to you. Of course there are the chat relay systems, but then we're getting into a whole other ballpark.;)

Scott

water
08-24-2001, 10:09 AM
it is not a joke and as i clearly stadet it was a shot in the dark, my point exactly what you stated, what i was asking, or tried to ask, was : is there a way to acheive this without the user activly going to the page, but have the software do it in some way.

:water

Operations
08-24-2001, 10:11 AM
:) sorry for my hard answer at your last post but..
but now..

on a vbulletin Forum definitly NOT

this exactly enough? ;)


Edit: But u can try it like an instant messager system.. but in that case u could take ICQ.. goes faster :)

GB
08-24-2001, 01:15 PM
Same things happens to me. It tells me the message was sent but no message!

Operations
08-24-2001, 01:19 PM
Originally posted by Operations

like he say its off if anything else is right
it must be this.. but u can easy looking

just enter phpmyadmin and go to
Table setting and search for
19 | Allow Popup messaging? | checkmessages | 1 | This function allows Admins and Mods to send quick private messages to users. | yesno

If value is 1 its aktivated and something else is wrong if its 0 its deaktivated.. change it there oder in the cp to 1 and it works..

what tells u the phpmyadmin?
what is your status?

s.molinari
08-24-2001, 03:04 PM
If the utility acts like it is working but there are no popups coming it could be one of the following reasons:

1. The $headnewmsg variable is not added to the headinclude template. (I even made this mistake in my demo board.:))

2. The board options are not saved in the Admin CP.

3. You added the changes to the /admin/global.php and not to the main global.php or you put the changes in the wrong place.

4. You have Javascript turned off in your browser.

I can't think of any more right now.

This is of course assuming that none of your other hacks change the normal functioning of the $headinclude call in global.php.

Hope this helps.


Scott

cyrus
08-24-2001, 03:39 PM
238th line ????

is this compatible with version 2.0.3 toooo ?????/

thanks

Operations
08-24-2001, 04:03 PM
it is for 2.03 compatible

i have this version and it works..

cyrus
08-24-2001, 04:05 PM
worked like a spanner and nut

THANKS !!

Lordmusic
08-24-2001, 05:29 PM
Here's my PhPMyAdmin report: 19 Allow Popup messaging? checkmessages 1 This function allows Admins and Mods to send quick private messages to users. yesno 15

and:
</style>

$headnewmsg
$headnewpm
Is in all the templates.

I resaved the control panel options as well.

The problem lies in this bit of the install script:

echo "<p>Adding extra template for popups...</p>\n";
$template = '<script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script>';

No custom template is created. Please tell me what to do here and I am sure it will work perfectly. I will also write a new document for other users. Thank you.

Operations
08-24-2001, 05:37 PM
look in your phpmy admin
enter
"SELECT * from template where title like "head_newmsg" LIMIT 0, 30 " if there is the template that all is ok..
if there is none enter new template

templateid templatesetid title template
Your id - 1 head_newmsg <script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n"); </script>

You have to Create a template called "head_newmsg"

Insert in the template
<script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script>

ok?

s.molinari
08-24-2001, 06:12 PM
hmmm..

Lordmusic do you have more than one template set?

Scott

Lordmusic
08-24-2001, 07:58 PM
Yep I have 4 and I have applied this to all of them. I am still working on it. I customy added all the MySQL stuff, added the $ command to all sections, and the template. Still no luck. I have tried everything. I get no errors, but I get no popups eigther.

Everything should be working perfectly, any ideas?

s.molinari
08-25-2001, 06:47 AM
Hello Lordmusic,

Could you check the phpmysql results when you run these queries.

SELECT * FROM template WHERE title='head_newmsg'

Here your looking for 4 or 5 results. When you say 4 style sets does that include the default? Normally though the default (-1) is loaded automatically so if you have one result with templatesetid -1 then that should be ok.

SELECT * FROM template WHERE title='options'

Here you are looking for the last variable. You should see something like:...."; $WOLresolve = "1"; $WOLrefresh = "60"; $checkmessages = "1";

SELECT * FROM template WHERE title='headinclude'

Again, if you have 4 sets of templates then you should have 4 or 5 results. Make sure what's below is at the end of all templates.

#EEEEFF; } </style> $headnewmsg $headnewpm


If everything checks out ok then we'll have to take a look at where you added the code in the global.php script.

Scott

Lordmusic
08-26-2001, 06:19 AM
| 6222 | -1 | head_newmsg | ".addslashes($template)."
|
| 6223 | 1 | head_newmsg | <script language="JavaScript"> aler
t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script> |
| 6224 | 6 | head_newmsg | <script language="JavaScript"> aler
t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script> |
| 6226 | 7 | head_newmsg | <script language="JavaScript"> aler
t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script> |
| 6227 | 8 | head_newmsg | <script language="JavaScript"> aler
t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script> |
| 6225 | 9 | head_newmsg | <script language="JavaScript"> aler
t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script> |
+------------+---------------+-------------+------------------------------------
----------------------------------------------------------------+
6 rows in set (0.01 sec)
_________________________________________

$WOLenable = "1";
$WOLguests = "1";
$WOLresolve = "1";
$WOLrefresh = "60";
$allowimgsizefailure = "0";
$allowvbcodebuttons = "1";
$memberAllGood = "1";
$checkmessages = "1";
_________________________________________

a.pageNum:hover {color: #ffffff; background-color: #a0a0a0;}
</style>

$headnewmsg
$headnewpm |
________________________________________
In Global.php base directory, not admin...

$newpmmsg=0;
$headnewpm='';
if ($checknewpm and $bbuserinfo['userid']!=0 and $bbuserinfo['pmpopup']==2) {
if ($noshutdownfunc) {
$DB_site->query("UPDATE user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]";
}
$newpmmsg=1;
eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
}
if ($checkmessages and $bbuserinfo['userid']!=0 and $bbuserinfo['messagepopup']==2) {
$popupmessages = $DB_site->query("SELECT * FROM popupmsgs WHERE userid=$bbuserinfo[userid] ORDER BY nummessages DESC");
while ($popmsg = $DB_site->fetch_array($popupmessages)) {
$popmessage .= "Von:$popmsg[sender]\n";
$popmessage .= "Nachricht:$popmsg[message]\n\n";
$DB_site->query("DELETE FROM popupmsgs WHERE nummessages=$popmsg[nummessages] AND userid=$bbuserinfo[userid]");
}
$DB_site->query("UPDATE user SET messagepopup=1 WHERE userid=$bbuserinfo[userid]");
eval("\$headnewmsg = \"".gettemplate('head_newmsg')."\";");
}
$header='';
$footer='';
___________________________________

Weird isn't it...

s.molinari
08-26-2001, 10:53 AM
What is this in the default template?
| 6222 | -1 | head_newmsg | ".addslashes($template)."
|


I think that may be your problem.


Scott

Lordmusic
08-26-2001, 10:38 PM
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.

Operations
08-27-2001, 04:45 AM
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

Lordmusic
08-27-2001, 05:24 AM
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.

Operations
08-27-2001, 05:54 AM
Try to enter
<script language="JavaScript"> aler
t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script> in the Template instead of ".addslashes($template)." because more than malfunction like now is impossible..

You can do it directly in the myadmin or in the p..

Lordmusic
08-27-2001, 07:28 AM
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.

Operations
08-27-2001, 07:36 AM
Oh Boy... ok
my settings are

1544 -1 head_newmsg <script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n"); </script> [code]


[code]$checkmessages = "1";

</style> $headnewmsg $headnewpm<font color="#6F6660"></font

i can only tell u that because molinari makes the hack.. i just try to help...
:(

dxb
08-28-2001, 07:52 PM
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 :D

FreshFroot
08-28-2001, 08:22 PM
Great hack...

I installed it 2 hours ago and have already put it to use! We love it!

s.molinari
08-29-2001, 03:11 PM
Originally posted by dxb
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 :D


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

dxb
08-29-2001, 05:26 PM
waaw I'm just a bug squasher :) ...I'll be waiting for your update :D

Kengan
08-30-2001, 12:06 AM
Very useful hack !! Thanks man !! good work !!;)

veedee
08-30-2001, 06:50 PM
guess whats next on my install list !!!

Axelon
09-27-2001, 07:20 PM
i use vbulletin 2.0.0

i install your script and its works but when i call popupmsginstall.php in the bottom appear this error :

Fatal error: Failed opening required '' in ./global.php on line 45

In the admin CP when i send a message appear this error :

Warning: Variable $numof is not an array or string in /home/sites/site57/web/forumprova/admin/adminpopupmsg.php on line 116

what is it???

Thanks

Steve Machol
09-27-2001, 09:01 PM
Axelon,

You need to upgrade to version 2.0.3. The version you are running has a serious security hole. You can download the latest version in the Member's Area.

Also, could you please enter your vB license info into your user profile? See my sig for details. Thanks!

humble
10-26-2001, 04:16 AM
I followed the instructions perfectly, and what do you know... It WORKED perfectly!!!!

Great addition to an already robust appliation. My hats off to you sir.

TWTCommish
11-06-2001, 03:00 AM
Me confused. I logged in as "test8." Then I sent a message via the admin thingy...set "Just a Test?" to "No" -- entered a message, said who it was from, and had it send to anyone with less than 5,000 posts...and yet I didn't see it. Is it is supposed to show up on just the mainpage/does it take awhile? Will it popup on *ANY* page that is loaded after it is "sent"?

orca
11-14-2001, 01:24 PM
Well, I installed it yesterday on vBulletin 2.2 but it didn't work. I checked every suggestion within this thread and all is set as mentioned. But no go. Maybe I was tired and forgot sth, so I'll try again tonight... Or may it doesn't work with vbPortal. No idea, though. Well, if it doesn't work, I'll remove it again.


I guess it was because I was tired...I just retried and it worked :)

LDT
11-17-2001, 08:32 PM
Just installed it on vBB 2.2.1 and it works, that install instructions would need an update though. ;)

kyrnel
11-22-2001, 02:12 PM
Great Hack! Do you think it would be possible to modify this hack to allow members to send each otehr messages? It could be associated with the Who's Online function so you can only send to people online.

This would almost be a IM system (which a lot of people have asked for).

What do you think?

Lionel
12-18-2001, 03:45 PM
I get a parse error on those lines on 2.21

<br><a href="adminpopupmsg.php?s=<?php echo $session[sessionhash]; ?>&action=start"> Send a message </a>

black
12-18-2001, 06:27 PM
Originally posted by Lionel
I get a parse error on those lines on 2.21

<br><a href="adminpopupmsg.php?s=<?php echo $session[sessionhash]; ?>&action=start"> Send a message </a>

in the admin/index.php file


FIND
-----------------
makenavoption("Add","announcement.php?action=add","|");
makenavoption("Modify","announcement.php?action=modify");
makenavselect("Announcements");




REPLACE WITH
---------------------------------
makenavoption("Add","announcement.php?action=add","|");
makenavoption("Modify","announcement.php?action=modify","|");
makenavoption("Send A Message","adminpopupmsg.php?s=<?php echo $session[sessionhash]; ?>&action=start");
makenavselect("Announcements");

Lotus Ims
12-18-2001, 09:25 PM
Great system! It worked fine for me. I had to modify one thing in the /admin/index.php file, but that was it!

Thanks for a great hack!

hypedave
12-24-2001, 02:24 PM
has anybody tryed this on vbb 2.2.1 yet

Lionel
12-24-2001, 02:31 PM
I am using it with 2.21. All you have to do is change the link into makenav etc... I used it and it works great. The message length is limited though.

Lionel
01-13-2002, 06:06 PM
I would like to be able to send a message only to people with a certain country (flag hack). How can I add the additional field in the control panel :anduser country is: ?

StarBuG
01-13-2002, 08:19 PM
For me it works!!

Thank you!

What about the todo list??

Do u still try to implement the new features or not??
This things are on queue a long time now! *G*

Greetings

StarBuG

StarBuG
01-14-2002, 08:49 PM
I have to take this back!

It only worked 1 time then never again!
s.molinari.. I have writen you a PM regarding the Problems cause I have talked to you half a year ago about that problem! :D

Hope you respond!

Greetings

StarBuG

Shenlong
01-17-2002, 06:24 PM
O_O

just what i wanted....going to install immediatly

Shenlong
01-17-2002, 07:28 PM
WONDERFUL HACK! Smooth Instillation, 1 PROBLEM

I am using vbb2.2.1, wen i go to admin, the main right box says:
The requested URL /phpforums/admin/< was not found on this server.

any suggestions? the things open in popup boxes too

Shenlong
01-17-2002, 09:45 PM
yo anyone got suggestions for my problem, it would help a ton

Shenlong
01-19-2002, 12:31 AM
Well my vbb homies? :p

Frank-kun
02-03-2002, 02:36 PM
That "<" at the end - might be your problem. I forget which file to check to fix that..admin/index.php maybe?

Anyway, here's my problem. My users are getting script errors for a mass-message that one of my fellow admins sent to everyone. I checked the messaging and I was able to do a successful test popup with no problems. I then checked the database and saw that the message my admin had sent had a carriage return line skip in it, like this:

blah blah blah

Bleh

If a message like this is sent, it gets put in the database and nothing gets through.

If scott is still around, I would also suggest you implement a "Clean" function that could clean old or even all the popup messages from the table. Even messages that error out remain in the database, as well as those who don't ever check the boards. We'd save a lot of space that way.

Smallville
03-31-2002, 07:05 PM
Ok, I installed it and all, and it looks like it will work, but when I send a message, it doesn't work.

I looked through this whole thread and followed everything you guys told us to do. Now what? I get no errors or anything, it just doesn't work.

freeshares1
04-21-2002, 07:30 PM
I must be stupid, But i cant seem to get it in the correct line in admin/index. but it works if i use the link directly. Anbody give me any further advise...

Found the information on page 2... It works like a dream and i have already used it a number of times.

I couldnt find a way of putting an url in there.

Phil

Eniyi
04-25-2002, 08:45 AM
Can you make the "from" section not changeable for mods (they can only use their own username).
Maybe with some modifications, another one for standard users can be created. It would be like an instant messaging hack.

jjj0923
05-30-2002, 11:31 AM
Has anyone attempted to modify this so that forum members can send instant messages to each other?

pseudocode
06-05-2002, 10:09 PM
Awesome hack. Works great (2.5.5). Thanks!

globalwin
06-14-2002, 09:26 PM
Can someone please give me instructions with the latest code (In English) on how to install this on vB 2.2.6 because it just doesnt work. :(

Jawelin
06-15-2002, 02:05 PM
Always worked well, it stopped displaying the popup message to users after I upgraded to vb 2.2.4... and now w/ 2.2.6 it still doesn't work yet.

tractor-beam
06-15-2002, 02:15 PM
Originally posted by jjj0923
Has anyone attempted to modify this so that forum members can send instant messages to each other? I would dearly love to have this ability as well!

Many of my users are asking for the ability to instant message someone who is on the board to tell them to me them in our on-line chat room.

- Gerry

BigJohnson
06-22-2002, 09:48 PM
Does everyone no how UBB has this feature for there board where anyone can use this type of featur eby sending someone a message that is online. Is there any way to make this happen. I would love that feature.

AndyTSJ
06-23-2002, 10:53 AM
I would love this feature. Surely it wouldn't be hard to extend to other members as well as just admins, would it ?

BigJohnson
06-23-2002, 12:26 PM
Ya. Because if you ever saw the UBB version of it You click an Instant Message button then it brings you to a screen with everyone who is online and thena check box next to everyones name. Now who ever you put a check to that is who is getting the message you send. This was a great feature for UBB and this is one of the things I use to love about ther eboard. That would be so great if Vb could have something like this.

globalwin
06-30-2002, 11:24 AM
anyone 2.2.6? :(

Bison
09-17-2002, 11:27 AM
[QUOTE]Originally posted by BigJohnson
Ya. Because if you ever saw the UBB version of it You click an Instant Message button then it brings you to a screen with everyone who is online and thena check box next to everyones name. Now who ever you put a check to that is who is getting the message you send. This was a great feature for UBB and this is one of the things I use to love about ther eboard. That would be so great if Vb could have something like this.

dxb
10-20-2002, 11:45 AM
I've seen the one for UBB and I've been looking for something like that in vb but I couldnt find it and here all I found is requests that all

although there is an easy way to create that hack is by modifing this hack so that it has the online users and instead of search for a username it should be by inputing the user id from the online list

BigJohnson
10-20-2002, 11:54 AM
Ya. I would love to see something like to be made.

dxb
10-20-2002, 12:17 PM
man dont you hate it when UBB has something that VB don't

Graphics
10-20-2002, 12:27 PM
Looks a sweet little hack. Good job. :)

Bison
10-20-2002, 01:56 PM
Does anyone have this working on vb 2.2.6 or 2.2.7?

Dean C
10-20-2002, 02:48 PM
yes i have it working on 2.2.8..

but its really slow ... i set the pop-up message and got it about 4 days later :s

- miSt

dxb
10-22-2002, 01:48 PM
I'm ready to pay for the instant messaging hack the one that looks like the UBB version

Remi
10-22-2002, 04:03 PM
Great idea, but sadly it is not workig

Dynamic One
11-11-2002, 08:35 AM
Thanks for this nice hack. This way the users don't have to worry when Im installing some hacks :D.

BigJohnson
12-07-2002, 02:09 PM
Yes can anyone make this hack work so anyone can use it. Like UBB has it where u can IM pop up anyone.

we_scooter
12-12-2002, 08:24 PM
|

hi masterz

isn't there any hope for making this one works like {UBB} boards..?? so that every user can use this feature..!!!

|

IT will be a big HiT in the scene and nothing will be hard to get for VB users :bored: :bored: ..
|

see ya ..!!!

Sweet Cheeks
01-05-2003, 04:13 PM
Not working on 2.2.9. Darn this would have been soo cool to have too :(

Rasbelin
05-20-2003, 07:25 AM
Just reporting that this hack works great on 2.3.0. You just need to follow the instructions and modify the admin/index.php and mod/index.php files abit different.

Nice hack. :smoke:

Intex
06-21-2003, 10:25 AM
S. molinari - thx. for the hack. I was looking for something like this a little while back and couldn't find it :).

I have a few notes which may help others:

In your instructions you stated:


************************************************** ****************************/
/* insert this between lines 248 and 249 into index.php in /admin directory */
/************************************************** ***************************

<br><a href="adminpopupmsg.php?s=<?php echo $session[sessionhash]; ?>&action=start"> Send a message </a>


Like a lot of other people, I've hacked around with my index.php and therefore specifying line numbers isn't probably the best way to indicate where to add code. As I'm no expert I just looked at the control panel and placed it just after the line:


makenavoption("vBulletin Options","options.php?t=0","<br>");



I also re-wrote the code similar to the other makenavoption line, thus:


makenavoption("Send a Popup Message","adminpopupmsg.php?t=0","<br><br>");


That gave me the control panel item I need and worked fine :).


Your installation script doesn't seem to show the user options (via UserCP or Registration) for turning popup messages of this type on / off. However the AdminCP does does show the option to turn it on / off for admin / mods.

Perhaps include a line to say remove the original install file 'popupmsginstall.php' from the admin directory after installation is complete.


Might help a few other newbies like me :). Other than that, the popup works great. Thx :cool:.

* Intex clicks install.

Kamui Shirou
06-28-2003, 08:46 AM
implenting worked but when i send a pop up nothing happens.