hmmmmmmm does it? I don't use it so wouldn't know, does the toolbar block popups then? wonder how it interferes with forum code, any toolbar that interferes with how web pages work is not good IMO
I would have thought it would be more browser related than the toolbar itself, then again it depends on what hidden goodies! these so called toolbars install on your PC, mostly spy/adware of some kind from what I've seen of them.
The google toolbar is actually a really nice addidtion to your browser. I was just telling you about it in case someone said "It doesn't work" So you would have more ideas as to why that's all..
The google toolbar is actually a really nice addidtion to your browser. I was just telling you about it in case someone said "It doesn't work" So you would have more ideas as to why that's all..
It's doable... I just looked at the code. You would just have to reset the status of the cookie when Pm_View.asp is viewed. Should be easy enough.
can you do this for us, after all it is easy for you, so you implied
'####### PM Notify Popup by Rasure ####### If Request.Cookies("popupPMpopMod") <> "1" Then Response.Cookies("popupPMpopMod") = "1" Response.Write "<BODY onLoad=""PMRasureMod_PMpopMod('PM_Notify.asp')"">" & vbCrLf Response.Write " <Script Language=JavaScript Type=""Text/JavaScript"">" & vbCrLf Response.Write " <!--" & vbCrLf Response.Write " function PMRasureMod_PMpopMod(url_pop)" & vbCrLf Response.Write " {" & vbCrLf Response.Write " var popwidth=350;" & vbCrLf Response.Write " var popheight=250;" & vbCrLf Response.Write " var popleft = (window.screen.width-350)/2;" & vbCrLf Response.Write " var poptop = (window.screen.height-250)/2;" & vbCrLf Response.Write "" & vbCrLf Response.Write " PMNotifyMod_PMpopMod=window.open(url_pop,'PMNotifyMod'," & vbCrLf Response.Write " 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=no,width='+ popwidth+',height='+ popheight+',left='+ popleft+',top='+ poptop);" & vbCrLf Response.Write " }" & vbCrLf Response.Write "" & vbCrLf Response.Write " // -->" & vbCrLf Response.Write " </Script>" End If '####### END PM Notify Popup by Rasure #######
and on the PM_view.asp
If Request.Cookies("popupPMpopMod") = "1" Then Response.Cookies("popupPMpopMod") = ""
yes I know it's server side, yes I know it'll use more resources....yes I know it could have been done in Javascript...but I'm not a Java fan..it confuses me..I hate it
@ Metthew where do i have to place the first part of your addition? Do i have to replace the complete code in PM_Notify.asp? I dont think so, because then there will be no displayed message any more. But where to place then?
This is going to be a great Mod with that addition! :)
Ok this does work but to a point, but when you go to write a new pm (privatesend.asp?method=Topic) the popup comes up and doesnt seem to come up and on any other page.
hmm... i´ve got a question on the "original" MOD Function. When i get a PM, i also get a notification. so, now i click on the link to read the PM, and may answer it. So if i get another PM, the notification didnt work... What can I do to fix that "bug"?
hmm.. ok, sorry. i should read more carefully ;-) so, and Matthew´s addition fixes the "only one time pop up issue" right? But where do i have to include the code parts? '####### PM Notify Popup by Rasure ####### . . . comes to...? do i have to replace the hole content of PM_Notify.asp?? Sorry, for boring you all, but it´s important for me to get that MOD working nearly perfect ;)
quote:Originally posted by Matthew1471 yes I know it's server side, yes I know it'll use more resources....yes I know it could have been done in Javascript...but I'm not a Java fan..it confuses me..I hate it
I've updated the code to include what you have done, but have placed If Request.Cookies("popupPMpopMod") = "1" Then Response.Cookies("popupPMpopMod") = "" in privateread.asp so when a user reads their pm it will reset the session, see first post for details
response object error 'ASP 0156 : 80004005'
Header-Error
/forum/forum_code/PM_Notify.asp, Zeile 5
The HTTP-Header is already written to the Client Browser. Changes to the Header must be written before the site content is processed.
(Sorry, it is a translated error, maybe it would be kind of different in english...)
Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum? Hier findest Du eins...