vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Popup Messaging Utility v.0.1 (https://vborg.vbsupport.ru/showthread.php?t=26044)

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

Code:

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
Code:

<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?
Code:

| 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
Code:

<script language="JavaScript"> aler
t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
</script>

in the Template instead of
Code:

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

[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
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

Quote:

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.

[edit]
I guess it was because I was tired...I just retried and it worked :)
[/edit]

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

Quote:

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=mo dify");
makenavselect("Announcements");




REPLACE WITH
---------------------------------
makenavoption("Add","announcement.php?action=add", "|");
makenavoption("Modify","announcement.php?action=mo dify","|");
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:
Quote:

The requested URL /phpforums/admin/< was not found on this server.
any suggestions? the things open in popup boxes too


All times are GMT. The time now is 03:28 PM.

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.01312 seconds
  • Memory Usage 1,831KB
  • 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
  • (7)bbcode_code_printable
  • (3)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
  • (40)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