Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Fanta - joulukuu 23, 2004, 05:20:44 AP

Otsikko: Pop Up Alert
Kirjoitti: Fanta - joulukuu 23, 2004, 05:20:44 AP
Is it possible to have a code where when you have a new PM you have a pop up box like so:


You have # new private message(s).

[View Now] [Close] [Don't Show This Again]
Otsikko: Re: Pop Up Alert
Kirjoitti: [Unknown] - joulukuu 23, 2004, 07:37:19 AP
http://www.simplemachines.org/community/index.php?action=profile;sa=pmprefs

Look carefully... ;).

-[Unknown]
Otsikko: Re: Pop Up Alert
Kirjoitti: Fanta - joulukuu 23, 2004, 07:42:15 AP
Cool! I never noticed that section before. :o

Thanks. ;D
Otsikko: Re: Pop Up Alert
Kirjoitti: Damienov - helmikuu 06, 2005, 09:37:22 IP
Lainaus käyttäjältä: [Unknown] - joulukuu 23, 2004, 07:37:19 AP
http://www.simplemachines.org/community/index.php?action=profile;sa=pmprefs

Look carefully... ;).

-[Unknown]
is there a way to set the pm pop-up as a default to all user?
Otsikko: Re: Pop Up Alert
Kirjoitti: babylonking - helmikuu 06, 2005, 09:59:40 IP
Lainaus käyttäjältä: Damienov - helmikuu 06, 2005, 09:37:22 IP
Lainaus käyttäjältä: [Unknown] - joulukuu 23, 2004, 07:37:19 AP
http://www.simplemachines.org/community/index.php?action=profile;sa=pmprefs

Look carefully... ;).

-[Unknown]
is there a way to set the pm pop-up as a default to all user?

In profile.template

search for:
<label for="popup_messages"><input type="checkbox" name="default_options[popup_messages]" id="popup_messages" value="1"', !empty($context['member']['options']['popup_messages']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['popup_messages'], '</label><br />

Replace it with:
<label for="popup_messages"><input type="checkbox" checkbox="checked" name="default_options[popup_messages]" id="popup_messages" value="1"', !empty($context['member']['options']['popup_messages']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['popup_messages'], '</label><br />

If you wanna force your member to keep using the pm-popup add the code below.


';
if ($context['allow_admin'])
echo '
                                                                         <label for="popup_messages"><input type="checkbox" checkbox="checked" name="default_options[popup_messages]" id="popup_messages" value="1"', !empty($context['member']['options']['popup_messages']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['popup_messages'], '</label><br />



Otsikko: Re: Pop Up Alert
Kirjoitti: Damienov - helmikuu 06, 2005, 10:29:29 IP
ouch :o a core hack
well at least its not diffucult to do. thanks alot babylonking, great community :)

btw, is there a plan for adding user control option in the forum administration in SMF future relase?
Would be great if i can see a smf roadmap for future release
Otsikko: Re: Pop Up Alert
Kirjoitti: [Unknown] - helmikuu 07, 2005, 12:26:20 AP
Or you could just go to Admin -> Theme and Layout Settings -> Default -> Reset theme options.

-[Unknown]