News:

Wondering if this will always be free?  See why free is better.

Main Menu

New IM JS popup

Started by Dado, March 17, 2004, 12:10:23 PM

Previous topic - Next topic

edi67

great

should be possible open new PM in another window ??
and main window will be the same ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Dado

Quote from: davide on April 07, 2004, 12:49:13 PM
great

should be possible open new PM in another window ??
and main window will be the same ?

Yes, it is. This could be done by adding an option to IM prefs to always open inbox in a new window. Then I would do target="_blank" from this JS popup..

edi67

Quote from: Dado on April 08, 2004, 12:49:46 PM

Yes, it is. This could be done by adding an option to IM prefs to always open inbox in a new window. Then I would do target="_blank" from this JS popup..

where add this code?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Dado

Quote from: davide on April 09, 2004, 03:54:20 AM
Quote from: Dado on April 08, 2004, 12:49:46 PM

Yes, it is. This could be done by adding an option to IM prefs to always open inbox in a new window. Then I would do target="_blank" from this JS popup..

where add this code?

Some new attributes should be added to the database structure for the user, so he/she could choose if they wanted the popup or  inbox in a new window. With this info, the script would generate the appropriate JS code.

edi67

sorry me but is not possible do this adding something in u great JS ?

will be useful for me ..please
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Dado

Replace this line:


$sJS .= "if (confirm('". $sInsert ."'))\n\twindow.location.href='". $scripturl ."?action=pm#new';";


with this:


$sJS .= "if (confirm('". $sInsert ."'))\n\twindow.open('". $scripturl ."?action=pm#new');";


Didn't test it, but I think it should work.

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

paulo

thank you very mutch , your script it's ok .

[Unknown]

 + Added the option to show a popup on new personal messages.
* Added some code to the Settings templates to show the popup option.
& Added entries to Profile and index language files for the pm popup.

-[Unknown]

edi67

in new release all this add?


super  ;)
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Homie


edi67

QuoteAdded some code to the Settings templates to show the popup option.


where is this option unknwon ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

edi67

x DADO

this script not work with new SMF beta5 ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Ben_S

settings.template.php

Works fine here.
Liverpool FC Forum with 14 million+ posts.

edi67

Quote from: Ben_S on April 29, 2004, 05:02:08 AM
settings.template.php

Works fine here.

sorry me u can help me find it?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Dado

#35
Quote from: edi67 on April 29, 2004, 04:55:36 AM
x DADO

this script not work with new SMF beta5 ?

I just tested the new popup feature and seen that my mod wasn't implemented  ::) so all questions go to Unknown who implemented his own.  ???

[Unknown]

Profile -> PM Prefences -> Enable popup.

-[Unknown]

Egg

anyway to alter it so it doesnt open a new window, but just pops up with "hey you have a new message!"

[Unknown]

This is not done specifically because you might be posting or something, and it would be very annoying to take your current window.

However, if you must change it, just find this in Subs.php:

window.open("' . $scripturl . '?action=pm");

And make it:

location.href = "' . $scripturl . '?action=pm";

-[Unknown]

Egg

that sorted it now all I need to do is alter the words on the popup so it doesnt say (open in new window)

Advertisement: