Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: live627 on June 18, 2010, 10:10:00 PM

Title: Guest Registration Notification
Post by: live627 on June 18, 2010, 10:10:00 PM
Guest Registration Notification


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2607) || Author (http://www.simplemachines.org/community/index.php?action=profile;u=164151) || Support Topic (http://www.simplemachines.org/community/index.php?topic=387066.0)


The Guest Registration Notification mod displays a red, bordered box in the index as default. There are also options to display these boxes in the board index or above posts. Configure the mod through the admin control panel. This mod is compatible for both SMF 1.1.x and SMF 2.0.


Created by Anthony Calandra/Project Evolution - 2010.
Title: Re: Guest Registration Notification
Post by: Mick. on June 18, 2010, 10:27:54 PM
Very nice man, looks pretty good.   Congrats on the approval. ;)
Title: Re: Guest Registration Notification
Post by: ascaland on June 18, 2010, 10:29:04 PM
Thanks a lot my friend, im inclined to be working on more mods. Ive got a lot of inspiration and ideas. :)
Title: Re: Guest Registration Notification
Post by: Nibogo on June 18, 2010, 10:59:50 PM
Nice mod would be nice to see more from you :)
Title: Re: Guest Registration Notification
Post by: ascaland on June 18, 2010, 11:03:02 PM
Heh, thanks guys. Your friendly feedback really motivates me.  O:)
Title: Re: Guest Registration Notification
Post by: IDunc on June 18, 2010, 11:07:48 PM
Very nice! Thanks for the great mods!
Title: Re: Guest Registration Notification
Post by: IDunc on June 18, 2010, 11:23:34 PM
Uh oh, test failure in /Themes/default/MessageIndex.template.php.

File is attached.
Title: Re: Guest Registration Notification
Post by: ascaland on June 18, 2010, 11:30:06 PM
Its because you have this,
global $context, $settings, $options, $scripturl, $modSettings, $txt, $user_info, $board_info;
In the template_main() function while the mod checks for,
global $context, $settings, $options, $scripturl, $modSettings, $txt;

Basically all you have to do is put, (lost some formatting)


if ($context['user']['is_guest'] && !empty($modSettings['enable_guest_notify']) && empty($modSettings['guest_notify_enable_boards'])
&& !empty($modSettings['guest_notify_contents']) && !empty($modSettings['guest_notify_title'])) {
echo '<div class="errorbox">';
echo (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />'
: '<p class="alert">!!</p>';
echo '<h3>' ,$modSettings['guest_notify_title'], '</h3>
<p>', parse_bbc($modSettings['guest_notify_contents']), '</p>
</div>';
}

Below that line.
Title: Re: Guest Registration Notification
Post by: IDunc on June 19, 2010, 01:12:59 AM
Thanks so much, works perfectly.
Title: Re: Guest Registration Notification
Post by: Alpay on June 19, 2010, 10:42:58 AM
turkish translate

// Guest Registration Notify Modification
$txt['guest_notify'] = 'Ziyaretci Not Bildirimleri';
$txt['guest_notify_tab'] = 'Ziyaretci Not Bildirimleri';
$txt['enable_guest_notify'] = 'Ziyaretci Not Bildirimlerini Aktif Et';
$txt['guest_notify_img_path'] = 'Resimli Not için Resim Yolu';
$txt['guest_notify_title'] = 'Ziyaretcilerin Not Başlığı';
$txt['guest_notify_contents'] = 'Ziyaretci Not Bildirimi İçeriği';
$txt['guest_notify_enable_boards'] = 'Forum İndex inde Aktif et';
$txt['guest_notify_enable_posts'] = 'Konularda Aktif et';

Title: Re: Guest Registration Notification
Post by: ascaland on June 19, 2010, 11:15:19 AM
Thank you very much. :)
Title: Re: Guest Registration Notification
Post by: Bugo on June 19, 2010, 01:42:00 PM
Please save languages.xml to ANSI charset and paste turkish translation to separate file, with charset UCS-2 Little Endia.
Title: Re: Guest Registration Notification
Post by: Bugo on June 19, 2010, 02:03:32 PM
Russian translation
Title: Re: Guest Registration Notification
Post by: ascaland on June 19, 2010, 04:51:16 PM
Updated, hopefully I got it right this time...
Still a little new to this.
Title: Re: Guest Registration Notification
Post by: scooterhog on June 19, 2010, 10:18:59 PM
I'm getting this on 1.1.11:

Execute Modification     ./Themes/default/BoardIndex.template.php     Test failed

with these applied mods:

1.      Fix Session Verification for Polls      1.0   
2.    SMF Gallery Lite    2.1    
3.    Copyright & Footer Links | S-Ace    3.1
4.    Ad Managment    2.3.6.1
5.    Global Headers Footers    2.0
6.    AjaxChat Integration    3.2.1    
7.    Team Page    3.5.4    [ Apply Mod ] [ List Files ] [ Delete ]
8.    Animated_BBC_expando    1.0.0    
9.    Ultimate Profile    0.9.1    
10.    Auto Verification    1.0
11.    Hide Unused Profile Display Fields    1.0
12.    Search Focus Dropdown    1.44    
13.    Stop Spammer    2.3.7    
14.    Logo redirect    0.1
Title: Re: Guest Registration Notification
Post by: ascaland on June 19, 2010, 10:21:38 PM
Try this. Above,
//Display ads on the board index
if (function_exists("show_boardAds"))


Add,
if ($context['user']['is_guest'] && !empty($modSettings['guest_notify_contents']) && !empty($modSettings['guest_notify_title']) && !empty($modSettings['enable_guest_notify'])) {
echo '<div style="margin: 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #ffe4e9;">';
echo (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />'
: '<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>';
echo '<b style="text-decoration: underline;">' ,$modSettings['guest_notify_title'], '</b><br />
<div style="padding-left: 6ex;">', parse_bbc($modSettings['guest_notify_contents']), '<br /></div>
</div>';
}
Title: Re: Guest Registration Notification
Post by: scooterhog on June 19, 2010, 10:37:04 PM
This is how the file was modified:

//Display ads on the board index
   if (function_exists("show_boardAds"))
      if ($context['user']['is_guest'] && !empty($modSettings['guest_notify_contents']) && !empty($modSettings['guest_notify_title']) && !empty($modSettings['enable_guest_notify'])) {
         echo '<div style="margin: 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #ffe4e9;">';
            echo (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />'
               : '<div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>';
            echo '<b style="text-decoration: underline;">' ,$modSettings['guest_notify_title'], '</b><br />
            <div style="padding-left: 6ex;">', parse_bbc($modSettings['guest_notify_contents']), '<br /></div>
         </div>';
     }
   {
      $ads = show_boardAds();
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }

Your code was added directly below the target line. I still get the error. I might have misunderstood your instructions. This is a great idea. Thanks for working with me.

Title: Re: Guest Registration Notification
Post by: ascaland on June 19, 2010, 10:40:38 PM
I have attached the fixed BoardIndex.template.php,
Title: Re: Guest Registration Notification
Post by: scooterhog on June 19, 2010, 10:53:28 PM
Same error with the BoardIndex.template file you provided.
Title: Re: Guest Registration Notification
Post by: ascaland on June 19, 2010, 11:02:05 PM
Ok I see, my modification checks to see if there is a tab before the comment in the BoardIndex file, which probably isnt the best idea. So here is the fix, but this would probably interfere with the uninstallation of the Ad Management mod (you can easily hardcode it out though).

Title: Re: Guest Registration Notification
Post by: scooterhog on June 19, 2010, 11:07:44 PM
This file installed without error. If I choose to uninstall Ad Management, I'll restore the original file. I do get two boxes on the Board Index, one on the Topic page.

Thanks for sticking with it!
Title: Re: Guest Registration Notification
Post by: Afro on June 20, 2010, 04:29:28 AM
Very good mod but bbc enclosed links opens in a new window.
It would be nice if you can make that open in the same window.
Title: Re: Guest Registration Notification
Post by: ascaland on June 20, 2010, 11:12:06 AM
Dont forget HTML is also supported. A simple anchor tag fixes this. :)
But I have adjusted the url BBC a bit so it should now work up to your expectations.

Hold on, there is a small problem.

I looked through Subs.php to see how SMF parses the url BBC, and it seems it makes it open a new window/tab by default. However I did notice that iurl opens the link in the same window/tab. Instead of changing things around, I have a better idea.
Title: Re: Guest Registration Notification
Post by: scooterhog on June 20, 2010, 11:47:49 AM
Here's how it appears with enable on board index and posts turned off. No combination produces a single box. Disable works fine.
Title: Re: Guest Registration Notification
Post by: Afro on June 20, 2010, 12:02:57 PM
Quote from: scooterhog on June 20, 2010, 11:47:49 AM
Here's how it appears with enable on board index and posts turned off. No combination produces a single box. Disable works fine.

your installed it twice. you need to check you files and remove the codes.
Title: Re: Guest Registration Notification
Post by: ascaland on June 20, 2010, 12:22:07 PM
I have updated the modification and changelog. It should work now.
Title: Re: Guest Registration Notification
Post by: scooterhog on June 20, 2010, 12:48:45 PM
I reloaded the theme and installed today's update. It's working with my installation now.

Thanks again. Great work.
Title: Re: Guest Registration Notification
Post by: pixeleyes on June 25, 2010, 12:42:02 PM
I installed registration mod everything is fine even mod setting showing in admin panel.

But mod is not working.
Title: Re: Guest Registration Notification
Post by: ascaland on June 25, 2010, 02:20:36 PM
What isnt working about it, is it showing?
If it doesnt, are you using a custom theme?
Title: Re: Guest Registration Notification
Post by: kenso on June 27, 2010, 04:56:34 AM
Wicked mod thanks sooo much, is there anyway to remove the red exclamation marks?

Paul


www.ozfarmer.com
Title: Re: Guest Registration Notification
Post by: ascaland on June 27, 2010, 11:58:50 AM
In each of the codes added into the BoardIndex, Display and MessageIndex template files, look for this,
echo (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />'
: '<p class="alert">!!</p>';


Replace it with,
echo (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />'
: '';
Title: Re: Guest Registration Notification
Post by: romper on July 14, 2010, 07:15:48 AM
Having problem with my ModSettings.php....I tried to do it manualy, but I still get error message. Can I get some help?
Thx.
Title: Re: Guest Registration Notification
Post by: ascaland on July 29, 2010, 02:31:11 PM
Quote from: romper on July 14, 2010, 07:15:48 AM
Having problem with my ModSettings.php....I tried to do it manualy, but I still get error message. Can I get some help?
Thx.

What error are you receiving?
Title: Re: Guest Registration Notification
Post by: romper on July 29, 2010, 09:16:46 PM
Quote from: Project Evolution on July 29, 2010, 02:31:11 PM
Quote from: romper on July 14, 2010, 07:15:48 AM
Having problem with my ModSettings.php....I tried to do it manualy, but I still get error message. Can I get some help?
Thx.

What error are you receiving?

Test failed during install
Title: Re: Guest Registration Notification
Post by: ascaland on July 29, 2010, 10:53:14 PM
The NiceToolTips mod is interfering with this one. Above line 168, add;
),
'guestnotify' => array(
'title' => $txt['guest_notify_tab'],
'href' => $scripturl . '?action=featuresettings;sa=guestnotify;sesc=' . $context['session_id'],
),


Then just reinstall. If you need help just post.

Title: Re: Guest Registration Notification
Post by: stefann on August 18, 2010, 03:08:00 AM
I'm trying to make this notice appear only after guests have opened x pages or been on the site for y minutes, does anyone have any suggestions on how to best achieve this on SMF1.1?

I'm not sure whether there's already a session variable for session creation, so another field may need to be added in the array before it's serialised too

Any help would be appreciated
Title: Re: Guest Registration Notification
Post by: romper on August 19, 2010, 06:31:45 PM
Quote from: Project Evolution on July 29, 2010, 10:53:14 PM
The NiceToolTips mod is interfering with this one. Above line 168, add;
),
'guestnotify' => array(
'title' => $txt['guest_notify_tab'],
'href' => $scripturl . '?action=featuresettings;sa=guestnotify;sesc=' . $context['session_id'],
),


Then just reinstall. If you need help just post.

sorry for the delay, I was on vacation ;D...so I should add this code in modsettings and then install, or install with error and then add in modsettings?
Title: Re: Guest Registration Notification
Post by: DirtRider on August 20, 2010, 08:43:29 AM
I would like this mod to work not with my guest but my Newbie group. I need to give them instruction on completing the registration procedure that they cannot miss  :P
Title: Re: Guest Registration Notification
Post by: ascaland on August 20, 2010, 10:09:14 PM
romper: Install with error then add the snippet yourself. ;)

In the next version I could possibly implement a selection via checkboxes for different membergroups. Do you need help editting the mod or are you just pointing out a suggestion? :P
Title: Re: Guest Registration Notification
Post by: Kat9119 on August 24, 2010, 07:51:21 PM
Im thinking of installing this, but I'm curious if there is a way to change the colors of the box and border
Title: Re: Guest Registration Notification
Post by: ascaland on August 24, 2010, 08:48:43 PM
Quote from: Kat9119 on August 24, 2010, 07:51:21 PM
Im thinking of installing this, but I'm curious if there is a way to change the colors of the box and border

Im going to add options like such, but for now it is attatched to the default error box SMF uses when a user hasnt deleted install.php for example. This will be fixed in the next version which will be up soon.
Title: Re: Guest Registration Notification
Post by: coucnilhomeswap on August 27, 2010, 09:08:43 AM
Quote from: Project Evolution on August 24, 2010, 08:48:43 PM
Quote from: Kat9119 on August 24, 2010, 07:51:21 PM
Im thinking of installing this, but I'm curious if there is a way to change the colors of the box and border

Im going to add options like such, but for now it is attatched to the default error box SMF uses when a user hasnt deleted install.php for example. This will be fixed in the next version which will be up soon.

but how do i change the color as i have a grey themed site
Title: Re: Guest Registration Notification
Post by: ascaland on August 27, 2010, 10:27:06 AM
Quote from: my S-M-F mods on August 27, 2010, 09:08:43 AM
Quote from: Project Evolution on August 24, 2010, 08:48:43 PM
Quote from: Kat9119 on August 24, 2010, 07:51:21 PM
Im thinking of installing this, but I'm curious if there is a way to change the colors of the box and border

Im going to add options like such, but for now it is attatched to the default error box SMF uses when a user hasnt deleted install.php for example. This will be fixed in the next version which will be up soon.

but how do i change the color as i have a grey themed site

Right now you would have to manually go into each the BoardIndex, Display and MessageIndex template files and edit the CSS directly in there. Im hoping to release version 1.2 with an easier interface to do so.
Title: Re: Guest Registration Notification
Post by: coucnilhomeswap on August 27, 2010, 10:55:04 AM
Quote from: Project Evolution on August 27, 2010, 10:27:06 AM
Quote from: my S-M-F mods on August 27, 2010, 09:08:43 AM
Quote from: Project Evolution on August 24, 2010, 08:48:43 PM
Quote from: Kat9119 on August 24, 2010, 07:51:21 PM
Im thinking of installing this, but I'm curious if there is a way to change the colors of the box and border

Im going to add options like such, but for now it is attatched to the default error box SMF uses when a user hasnt deleted install.php for example. This will be fixed in the next version which will be up soon.

but how do i change the color as i have a grey themed site

Right now you would have to manually go into each the BoardIndex, Display and MessageIndex template files and edit the CSS directly in there. Im hoping to release version 1.2 with an easier interface to do so.

ive changed all 3 from red to grey but it aint worked
Title: Re: Guest Registration Notification
Post by: ascaland on August 27, 2010, 03:34:42 PM
Guest Registration Notification version 1.2 is finally out!
Check the original post for more information.
Title: Re: Guest Registration Notification - 1.2
Post by: Bugo on August 28, 2010, 02:00:40 AM
Updated russian translation for version 1.2 of this mod. Please update files in package.
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on August 28, 2010, 11:06:09 AM
Thanks for your contribution!
Title: Re: Guest Registration Notification - 1.2
Post by: Kat9119 on August 28, 2010, 05:10:45 PM
Awesome, thanks I'll have to give it a try
Title: Re: Guest Registration Notification - 1.2
Post by: dsanchez on September 01, 2010, 12:09:52 PM
Thank you for this great mod, already using it here :)

http://curefans.com
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 02, 2010, 10:51:47 PM
Im glad you decided to use my modification, thanks everyone.
Title: Re: Guest Registration Notification - 1.2
Post by: sharks on September 03, 2010, 03:19:55 AM
I am also using it on 2 of my forums, one running on SMF 1.1.11 and the other on SMF 2.0 RC3. Both forums are working great with this mod. :D

Thanks for the updated version, Project Evolution.
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 03, 2010, 01:54:40 PM
No problem, thanks for using!
Title: Re: Guest Registration Notification - 1.2
Post by: dsanchez on September 12, 2010, 01:30:49 PM
it's possible to show the message in all boards except the boards index? thanks :)
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 12, 2010, 02:52:49 PM
Quote from: dsanchez on September 12, 2010, 01:30:49 PM
it's possible to show the message in all boards except the boards index? thanks :)

As a matter of fact you would have to take the code out of the BoardIndex.template.php file manually. When I designed the mod I always thought its main purpose should be in the board index.  :P
Title: Re: Guest Registration Notification - 1.2
Post by: dsanchez on September 13, 2010, 03:52:00 PM
Quote from: Project Evolution on September 12, 2010, 02:52:49 PM
As a matter of fact you would have to take the code out of the BoardIndex.template.php file manually. When I designed the mod I always thought its main purpose should be in the board index.  :P

Yes I understand, is just that I want to put an ad there. I will leave the guest notification in all the other boards by default :)
Title: Re: Guest Registration Notification - 1.2
Post by: Paul_Pauline on September 18, 2010, 04:46:36 PM
Great mod, installed flawlessly, and being able to change the colours in the admin panel is a massive improvement !

Thanks a lot  :)
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 18, 2010, 06:35:16 PM
Quote from: Paul_Pauline on September 18, 2010, 04:46:36 PM
Great mod, installed flawlessly, and being able to change the colours in the admin panel is a massive improvement !

Thanks a lot  :)

Thanks for using! Im always open for suggestions too.
Title: Re: Guest Registration Notification - 1.2
Post by: Kat9119 on September 23, 2010, 03:17:37 PM
Want to install this but test failed on ModSettings. I went to parse the file and add the edits myself. But I'm stuck.

It says to find

),
),
);

// Select the right tab based on the sub action.


and replace with


),
'guestnotify' => array(
'title' => $txt['guest_notify_tab'],
'href' => $scripturl . '?action=featuresettings;sa=guestnotify;sesc=' . $context['session_id'],
),
),
);

// Select the right tab based on the sub action.


However, my file doesn't have the three - ), ), and ); Instead mine looks like:

$context['admin_tabs']['tabs']['rules'] = array(
'title' => $txt['mods_cat_rules'],
'href' => $scripturl . '?action=featuresettings;sa=rules;sesc=' . $context['session_id'],
);

$context['admin_tabs']['tabs']['pages'] = array(
'title' => $txt['dozen_pages_cat'],
'href' => $scripturl . '?action=featuresettings;sa=pages;sesc=' . $context['session_id'],
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;


I'm sure its something simple, but I didn't want to break it.

Thanks for the help!
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 23, 2010, 04:09:49 PM
Can you attatch your ModSettings.php file? Its a modificzation thats interfering with GRN's installation.
Title: Re: Guest Registration Notification - 1.2
Post by: Kat9119 on September 23, 2010, 04:38:58 PM
Sure, here ya go. Thanks for the help.

This one is with all the edits it needs except that one.
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 23, 2010, 05:29:17 PM
Attatched the working file below.
Title: Re: Guest Registration Notification - 1.2
Post by: Kat9119 on September 23, 2010, 07:04:05 PM
That works great! Thank you :)
Title: Re: Guest Registration Notification - 1.2
Post by: Kat9119 on September 23, 2010, 07:30:32 PM
One more question lol.

The title. How do I align it with the reg. text below it. It looks sorta funny out to the left like that.
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 23, 2010, 07:40:28 PM
You can use CSS to align it. Just use some padding.
Title: Re: Guest Registration Notification - 1.2
Post by: Kat9119 on September 23, 2010, 08:43:35 PM
Quote from: Project Evolution on September 23, 2010, 07:40:28 PM
You can use CSS to align it. Just use some padding.

Not quite sure how to do that. I just see things about h1 and whatnot when I look it up
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on September 23, 2010, 08:47:28 PM
http://w3schools.com/css/css_padding.asp

;)
Title: Re: Guest Registration Notification - 1.2
Post by: Kat9119 on September 24, 2010, 12:06:04 AM
Quote from: Project Evolution on September 23, 2010, 08:47:28 PM
http://w3schools.com/css/css_padding.asp

;)

Ah yes, now I remember how to do that haha. Thanks. I kept getting other results from that site
Title: Re: Guest Registration Notification - 1.2
Post by: Alex P. on November 12, 2010, 04:08:42 PM
Can I make it so this mod displays to registered members too?
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on November 12, 2010, 08:21:34 PM
If you wish to, just remove the $context['user']['is_guest'] && within the first if-statements that display the block.
Title: Re: Guest Registration Notification - 1.2
Post by: herace on December 07, 2010, 05:02:55 PM
Please update for RC4
Title: Re: Guest Registration Notification - 1.2
Post by: sharks on December 30, 2010, 02:19:20 PM
Quote from: herace on December 07, 2010, 05:02:55 PM
Please update for RC4
I need this mod for RC4 too. :(
Title: Re: Guest Registration Notification - 1.2
Post by: big red on January 02, 2011, 02:37:00 AM
 Installed into RC4 with no test errors and seems to work except i have left the "checkbox empty" for the main board index but it still shows there. Only want it inside the boards.

  Any ideas??
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on January 02, 2011, 12:26:39 PM
Sorry for being so late guys, it should now work with all 1.1.x versions and 2.0 RC4.
Title: Re: Guest Registration Notification - 1.2
Post by: Perspective on January 21, 2011, 12:15:49 AM
Using 1.1.12 and doesn't work. I can't even see the title for every box when it comes about Setting the options.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F301hx0p.jpg&hash=e014744aeb4a0bf2af3240ca97ad6b84706a1ed7)
Title: Re: Guest Registration Notification - 1.2
Post by: sharks on January 21, 2011, 03:57:25 AM
Perspective, you need to make the edits into your template if you are using a custom theme, which you apparently are. Use the parse tool from the SMF mod site to know what edits to make.
Title: Re: Guest Registration Notification - 1.2
Post by: Arantor on January 21, 2011, 04:10:56 AM
Actually that one looks like missing language strings in Modifications.language.php rather than a template edit. Unlike in 2.0, 1.1.x does not load the English backups in Modifications.english.php.
Title: Re: Guest Registration Notification - 1.2
Post by: italo_anonimo on February 03, 2011, 11:52:32 AM
hi, thanks for mod
i'm a "problem" with BBC code...
[url=http://localhost/pm_smf/index.php?action=register]Register.[/url]
open link in new window!! how to open in the ready window???.... thanks



Title: Re: Guest Registration Notification - 1.2
Post by: Arantor on February 03, 2011, 11:54:04 AM
Use:
[iurl=http://localhost/pm_smf/index.php?action=register]Register.[/iurl]
Title: Re: Guest Registration Notification - 1.2
Post by: italo_anonimo on February 11, 2011, 10:57:27 AM
hi, how to use CSS?? (Edit box and border CSS - Edit content title CSS) #box #border #title ????

thanks
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on February 11, 2011, 04:07:57 PM
Quote from: italo_anonimo on February 11, 2011, 10:57:27 AM
hi, how to use CSS?? (Edit box and border CSS - Edit content title CSS) #box #border #title ????

thanks

For the CSS boxes all you need to do is simply insert CSS attributes. If you need a CSS reference,
http://w3schools.com/css/default.asp
Title: Re: Guest Registration Notification - 1.2
Post by: abraamz on February 20, 2011, 04:15:27 PM
i would prefer warning to appear on the top of the page, maybe even float there!
can this be made with css?
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on February 20, 2011, 08:05:59 PM
Quote from: abraamz on February 20, 2011, 04:15:27 PM
i would prefer warning to appear on the top of the page, maybe even float there!
can this be made with css?

Yes actually. In the admin CP I editted the box's CSS with these attributes,
position: fixed;
border: 1px solid #cc3344;
top: 30px;
background-color: #ffe4e9;
margin-left: 35%;
Title: Re: Guest Registration Notification - 1.2
Post by: trilap5e on March 20, 2011, 03:56:38 AM
Mod site says that its rc5 compat- but it won't install. also the code parser says it's not compatible. do i need to be running rc4 emulation?
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on March 20, 2011, 05:41:52 PM
Thanks for letting me know, I have just updated the modification.
Title: Re: Guest Registration Notification - 1.2.1
Post by: Clickout on March 26, 2011, 10:38:30 AM
Thanks project evolution for providing this mod. I'm using the mod and it's amazing!
Title: Re: Guest Registration Notification - 1.2.1
Post by: desibees on April 02, 2011, 09:07:47 PM
2 major things, please help out.

Even tho i checked it in the mod settings, the message wont appear on the index page (www.mysite.com) and *inside* the actual topics/posts. Not too worried about having it "inside the actual topic/posts" but how do u make it appear on the index page? it only appears only the... Thingie where u can see the title of all topics..

oh and.

Quotei would prefer warning to appear on the top of the page, maybe even float there!
can this be made with css?

is this really possible? if yes, please gimme step by step instructions. I just installed your mod.

I was looking for a mod in which ^^^ that is possible from past 10 hours, I hope my searching stops here.
Title: Re: Guest Registration Notification - 1.2
Post by: ascaland on April 02, 2011, 10:35:29 PM
Are you using a custom theme?

For the floating bar:
Quote from: Project Evolution on February 20, 2011, 08:05:59 PM
Yes actually. In the admin CP I editted the box's CSS with these attributes,
position: fixed;
border: 1px solid #cc3344;
top: 30px;
background-color: #ffe4e9;
margin-left: 35%;


Title: Re: Guest Registration Notification - 1.2.1
Post by: desibees on April 02, 2011, 10:37:51 PM
mate, im completely ... kinda new.
Yes, im using custom theme.
Please don't just copy paste that stuff.

i really don't know which file to edit, where to edit, what to edit.
Title: Re: Guest Registration Notification - 1.2.1
Post by: ascaland on April 02, 2011, 10:40:43 PM
Quote from: desibees on April 02, 2011, 10:37:51 PM
mate, im completely ... kinda new.
Yes, im using custom theme.
Please don't just copy paste that stuff.

i really don't know which file to edit, where to edit, what to edit.

For custom themes you have to find the template edits in the mod and place them in your theme's template files.

And those attributes are placed in the admin CP where the mod asks Edit box and border CSS. Just stick that CSS in the textbox.
Title: Re: Guest Registration Notification - 1.2.1
Post by: desibees on April 02, 2011, 10:47:11 PM

QuoteFor custom themes you have to find the template edits in the mod and place them in your theme's template files.

isnt this already done automatically if i.. installed the mod on my custom theme?
Title: Re: Guest Registration Notification - 1.2.1
Post by: ascaland on April 02, 2011, 10:49:28 PM
Quote from: desibees on April 02, 2011, 10:47:11 PM

QuoteFor custom themes you have to find the template edits in the mod and place them in your theme's template files.

isnt this already done automatically if i.. installed the mod on my custom theme?

If you chose to install it with the custom theme. Doing it yourself if there were errors or you skipped the step in the instalaltion. If it installed and it isnt even showing up on the index page, something went wrong.
Title: Re: Guest Registration Notification - 1.2.1
Post by: desibees on April 02, 2011, 10:54:40 PM
its showing up.... definitely. but not on the page im looking for. can u help me through TV please?
Title: Re: Guest Registration Notification - 1.2.1
Post by: ascaland on April 02, 2011, 10:58:16 PM
Quote from: desibees on April 02, 2011, 10:54:40 PM
its showing up.... definitely. but not on the page im looking for. can u help me through TV please?

Well earlier you said it wasnt displaying on the index page. What is the page your looking for? Can I have a link to your site?
Title: Re: Guest Registration Notification - 1.2.1
Post by: desibees on April 02, 2011, 11:13:12 PM
gah mate, i created my site yesterday ,was having tons of problem with every mod and now just got pissed and reinstall the whole site. Is it possible if you can install this mod on my forum through TV before i install anything else?
Title: Re: Guest Registration Notification - 1.2.1
Post by: ascaland on April 02, 2011, 11:13:55 PM
Quote from: desibees on April 02, 2011, 11:13:12 PM
gah mate, i created my site yesterday ,was having tons of problem with every mod and now just got pissed and reinstall the whole site. Is it possible if you can install this mod on my forum through TV before i install anything else?

Contact me on MSN then.
Title: Re: Guest Registration Notification - 1.2.1
Post by: desibees on April 02, 2011, 11:18:07 PM
i don't....... have... your msn
Title: Re: Guest Registration Notification - 1.2.1
Post by: ascaland on April 02, 2011, 11:19:19 PM
Quote from: desibees on April 02, 2011, 11:18:07 PM
i don't....... have... your msn

Have you ever though about looking in my profile..?
Title: Re: Guest Registration Notification - 1.2.1
Post by: desibees on April 02, 2011, 11:21:20 PM
I did, but i never saw that msn icon lol. im sorry, sec
Title: Re: Guest Registration Notification - 1.2.1
Post by: denisoi on April 22, 2011, 02:55:14 PM
hello Project Evolution

can u explain me wich i must to modify to can have this mode one custom theme ? i just instaled and on my theme doesent work , only to the default ..

thanks
Title: Re: Guest Registration Notification - 1.2.1
Post by: ascaland on April 22, 2011, 02:59:12 PM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0) - Skip down to XML Format Instructions.

Basically, you just need to put the code that the mod edits in the template files, into your theme's  template files.
Title: Re: Guest Registration Notification - 1.2.1
Post by: denisoi on April 22, 2011, 03:06:45 PM
thanks man ... i resolved .. nice mode.. really i like it !
Title: Re: Guest Registration Notification - 1.2.1
Post by: ascaland on May 11, 2011, 08:45:08 PM
Finally, I have an update. For SMF 2.0 users, Guest Registration Notification now doesnt require template edits (using integration hooks)!
Title: Re: Guest Registration Notification - 1.3
Post by: nicole_2008 on May 25, 2011, 04:08:43 AM
This isnt working in custom theme...RC5

If I switch to default theme (Curve) it shows fine...

What do I have to do to get this working in my custom theme?
Title: Re: Guest Registration Notification - 1.3
Post by: ascaland on May 25, 2011, 12:30:40 PM
May I ask what theme it is?
Title: Re: Guest Registration Notification - 1.3
Post by: lycan.v on May 25, 2011, 04:23:24 PM
Dear Project Evolution,

I am using SMF 2.0 RC 3 and while installing i am getting this error....

QuoteFatal error:  Call to undefined function  add_integration_function() in /home/lycan/public_html/forum/Packages/temp/install_2.php on line 18

But all the test are comming successful.

Quote
Execute Codeinstall_2.php
2.Execute Modification./Sources/Admin.phpTest successful
3.Execute Modification./Sources/ManageSettings.phpTest successful
4.Execute Modification./Sources/Subs.phpTest successful
5.Execute Modification./Themes/default/languages/Modifications.english.phpTest successful
6.Execute Modification./Themes/default/languages/Help.english.phpTest successful

7.Execute Modification./Themes/default/languages/Modifications.turkish.phpSkipping file

8.Execute Modification./Themes/default/languages/Modifications.russian.phpSkipping file

9.Execute Modification./Themes/default/languages/Help.russian.phpSkipping file

10.Execute Modification./Themes/default/languages/Modifications.russian-utf8.phpSkipping file

11.Execute Modification./Themes/default/languages/Help.russian-utf8.phpSkipping file
Is there any solution.

Thanks.
Title: Re: Guest Registration Notification - 1.3
Post by: ascaland on May 25, 2011, 06:24:23 PM
Hey, thanks for downloading the mod. On the page I placed version 2.1 on there, you can use that in the meantime. :)
Title: Re: Guest Registration Notification - 1.3
Post by: lycan.v on May 25, 2011, 11:20:22 PM
Quote from: Project Evolution on May 25, 2011, 06:24:23 PM
Hey, thanks for downloading the mod. On the page I placed version 2.1 on there, you can use that in the meantime. :)

Thanks very much.... this version 1.2.1 is working fine with 2RC3.

Title: Re: Guest Registration Notification - 1.3
Post by: nicole_2008 on May 28, 2011, 11:32:54 AM
Quote from: Project Evolution on May 25, 2011, 12:30:40 PM
May I ask what theme it is?

its called "Back n Black" by Crip

Title: Re: Guest Registration Notification - 1.3
Post by: ascaland on May 28, 2011, 12:10:57 PM
I have updated the mod so its all contained in one package for all versions. nicole_2008, you will still need to apply a fix (only if you download 1.4),
Code (After) Select
// Put HTML replacement under this comment for other themes (other than default)!
Code (Add) Select
$buffer = str_replace('<div id="bodyarea">', $notification, $buffer);
Title: Re: Guest Registration Notification - 1.3
Post by: Buneduggy on May 29, 2011, 06:58:05 PM
Thanks for this great mod. I enjoy being able to customize the look of it. Works great.
Title: Re: Guest Registration Notification - 1.3
Post by: nicole_2008 on June 03, 2011, 10:34:08 AM
Thanks very much :D

Working lovely now :)
Title: Re: Guest Registration Notification - 1.3
Post by: Ronald_1938 on June 25, 2011, 04:01:20 PM
Just one question. How can I remove the two Exclamation marks as seen in my attachment..Black arrow is pointing to the two objects.

Excellent Mod by the way..

Thanks Ron..
Title: Re: Guest Registration Notification - 1.3
Post by: ascaland on June 25, 2011, 04:27:30 PM
Take a look at this post:
http://www.simplemachines.org/community/index.php?topic=387066.msg2682459#msg2682459
Title: Re: Guest Registration Notification - 1.3
Post by: warezxts on August 27, 2011, 02:49:58 PM
Hello!
My problem is, i have custom theme (Bright Forest), and Hungarian UTF-8 language in my forum.
When i tried to install, everything looks fine, i can admin the registration message all.
But NO EFFECT on my page....means no registration notify appears on my page.

I really love to use this mod (now i use another one, but this one is miles away better)

I tried to add manually to ./Themes/default/languages/Modifications.hungarian-utf8.php also, but same
no any effect... :(

Please help! Thank you in advance!
Title: Re: Guest Registration Notification - 1.4.1
Post by: ascaland on August 27, 2011, 06:48:38 PM
I have updated the modification to version 1.4.1, I noticed a little error with the package-info XML file. :)
Please reinstall the mod and post again if you still experience errors.
Title: Re: Guest Registration Notification - 1.4.1
Post by: warezxts on August 28, 2011, 04:28:00 AM
For me, its still the same....

What i noticed is in the Admin.php and ManageSettings.php wants to modify BEFORE the selected line, not after.
I dont know is it important or not.

BTW i tried to exchange manualy, but it was the same... :(
Title: Re: Guest Registration Notification - 1.4.1
Post by: ascaland on August 28, 2011, 12:21:31 PM
Those edits probably wont solve your problem. What you need to do is make sure the integration hook is looking for the right HTML code in the Subs.php file. So under,
// Put HTML replacement under this comment for other themes (other than default)!
You need to add this,
$buffer = str_replace('HTML CONTENT', $notification, $buffer);
HTML CONTENT is the HTML code you need to find equivalent to the default theme's main_content_section. If you have trouble, then post your index.template.php file here.
Title: Re: Guest Registration Notification - 1.4.1
Post by: warezxts on August 28, 2011, 12:52:24 PM
I have no code like this -even similar- in Subs.php under Sources... :S
Title: Re: Guest Registration Notification - 1.4.1
Post by: ascaland on August 28, 2011, 01:04:58 PM
Are you sure you downloaded version 1.4.1? I updated it again this morning because I noticed the package maneger had trouble with the parsing instructions, maybe that was a factor. So could you please make sure you download 1.4.1 again?
Title: Re: Guest Registration Notification - 1.4.1
Post by: warezxts on August 28, 2011, 05:07:32 PM
Unfortunately its still nothing :((( bruhuhu i really need this mod  :'(
Just in case, i attach the before-after modified files by your mod, you know better programing than me... (whish i could). C U tomorrow!

Good night!
Warezxts
Title: Re: Guest Registration Notification - 1.4.1
Post by: ascaland on August 28, 2011, 05:28:23 PM
I have found it, could you please attach your index.template.php file here?
Title: Re: Guest Registration Notification - 1.4.1
Post by: warezxts on August 29, 2011, 03:41:50 AM
Sure! I attach it from both themes (default, and theme what i use).
Title: Re: Guest Registration Notification - 1.4.1
Post by: ascaland on August 30, 2011, 08:37:00 PM
Give the attached Subs.php a try. By the way, make sure its installed THEN replace the file.
Title: Re: Guest Registration Notification - 1.4.2
Post by: warezxts on August 31, 2011, 07:33:54 AM
I did download the 1.4.2 and install...nothing happened (same as before), but when i replaced your modified Subs.php
I've got the following (picture attached), so its working but not perfectly... but its WORKING!
(plus there is a strange "upper" word in it at the end)
Title: Re: Guest Registration Notification - 1.4.2
Post by: ascaland on August 31, 2011, 11:44:36 AM
Try the attached.
Title: Re: Guest Registration Notification - 1.4.2
Post by: warezxts on August 31, 2011, 12:58:37 PM
with this Sub.php i have only background appear...
If you have time and mood, let's try more direct communication for each other, and we can figure it out whats wrong.
this week i am free, basicly anytime (except when i sleep - sometimes need this - poor human nature :) ).
Title: Re: Guest Registration Notification - 1.4.2
Post by: ascaland on August 31, 2011, 04:11:23 PM
I am available tomorrow! Do you mind PMing me tomorrow?
Title: Re: Guest Registration Notification - 1.4.2
Post by: warezxts on September 01, 2011, 09:26:18 PM
i PMd You!
Title: Re: Guest Registration Notification - 1.4.2
Post by: Clickout on September 05, 2011, 12:41:32 AM
hi,
i've installed the mod successfully on my smf 2.0 . but it is not showing the notification while i'm logged out.

i'm using the overviewlight theme by ds, i've also attached my index.template.php file

the mod was working fine with my previous smf 2.0rc4

pl. help
Title: Re: Guest Registration Notification - 1.4.2
Post by: ascaland on September 05, 2011, 10:31:34 AM
What you need to do is make sure the integration hook is looking for the right HTML code in the Subs.php file. So under,
// Put HTML replacement under this comment for other themes (other than default)!
You need to add this,
$buffer = str_replace('<div id="mainarea">', '<div id="mainarea">' . $notification, $buffer);
Title: Re: Guest Registration Notification - 1.4.2
Post by: Clickout on September 06, 2011, 08:56:00 AM
thanks a lot Project Evolution :)

the mod works just perfect; i'm so happy :D i hope this works for all dzinerstudio themes.
Title: Re: Guest Registration Notification - 1.4.2
Post by: vieriu1992 on September 12, 2011, 09:39:57 AM
i have a problem with this mod

it doesnt work i installed the mod but the message doesnt show up
Title: Re: Guest Registration Notification - 1.4.2
Post by: ascaland on September 12, 2011, 04:28:46 PM
Quote from: vieriu1992 on September 12, 2011, 09:39:57 AM
i have a problem with this mod

it doesnt work i installed the mod but the message doesnt show up

Are you using SMF 2? Were there any errors on installation?
Title: Re: Guest Registration Notification - 1.4.2
Post by: Account Abandoned on October 01, 2011, 04:17:20 PM
I have installed this modification on my forum. I am using v2.0.1. http://www.anotherpublicsafetyforum.com/ The install and configuration went perfectly with no errors at all. However, the message does not show in guest view. I did the instructions on this post http://www.simplemachines.org/community/index.php?topic=387066.msg3152997#msg3152997 and it didn't seem to do anything. Any ideas?
Title: Re: Guest Registration Notification - 1.4.2
Post by: ascaland on October 01, 2011, 04:43:06 PM
By looking in the page source, no HTML hinting the mod was actually there. This usually means it hasnt found the HTML code you supplied it to replace.
Title: Re: Guest Registration Notification - 1.4.2
Post by: Account Abandoned on October 02, 2011, 11:10:52 AM
Okay, so what should I do? Manually install?
Title: Re: Guest Registration Notification - 1.4.2
Post by: ascaland on October 02, 2011, 11:22:52 AM
Quote from: Shawn Gossman on October 02, 2011, 11:10:52 AM
Okay, so what should I do? Manually install?

Unless you dissect the HTML code out of the integrateTemplateGRN function, your best bet is to modify that integration hook. Try this for Subs.php,
Code (Find) Select
// Put HTML replacement under this comment for other themes (other than default)!
Code (Add After) Select
$buffer = str_replace('<div id="bodyarea">', '<div id="bodyarea">' . $notification, $buffer);
Title: Re: Guest Registration Notification - 1.4.2
Post by: Account Abandoned on October 02, 2011, 11:57:47 AM
Thanks, that seemed to have fixed it :)
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on October 22, 2011, 03:38:36 PM
Updated to version 1.4.3! Now uses two more integration hooks to hook into the admin control panel!
Title: Re: Guest Registration Notification - 1.4.3
Post by: ishy on October 24, 2011, 06:15:46 AM
Quote from: Project Evolution on October 02, 2011, 11:22:52 AM
Quote from: Shawn Gossman on October 02, 2011, 11:10:52 AM
Okay, so what should I do? Manually install?

Unless you dissect the HTML code out of the integrateTemplateGRN function, your best bet is to modify that integration hook. Try this for Subs.php,
Code (Find) Select
// Put HTML replacement under this comment for other themes (other than default)!
Code (Add After) Select
$buffer = str_replace('<div id="bodyarea">', '<div id="bodyarea">' . $notification, $buffer);

I don't have that hook in my Subs.php and I'm having the same problem.
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on October 24, 2011, 09:19:07 AM
Can you attach your Subs.php (without the ~, there is a difference)? :)
Title: Re: Guest Registration Notification - 1.4.3
Post by: ishy on October 24, 2011, 03:09:56 PM
You're right, I did the wrong one, but it still isn't showing up (http://www.sulfiteaction.com/forum/index.php) after I added that.

Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on October 24, 2011, 04:30:51 PM
Maybe try this,
$buffer = str_replace('<div id="bodyarea">', '<div id="bodyarea">' . $notification, $buffer);
Title: Re: Guest Registration Notification - 1.4.3
Post by: ishy on October 25, 2011, 05:54:38 AM
That worked! Thanks!
Title: Re: Guest Registration Notification - 1.4.2
Post by: filipes on November 10, 2011, 10:15:29 AM
Quote from: Project Evolution on October 02, 2011, 11:22:52 AM
Quote from: Shawn Gossman on October 02, 2011, 11:10:52 AM
Okay, so what should I do? Manually install?

Unless you dissect the HTML code out of the integrateTemplateGRN function, your best bet is to modify that integration hook. Try this for Subs.php,
Code (Find) Select
// Put HTML replacement under this comment for other themes (other than default)!
Code (Add After) Select
$buffer = str_replace('<div id="bodyarea">', '<div id="bodyarea">' . $notification, $buffer);
Why this does not work with my theme...Damaged design 2010 by, Crip...
thks
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 10, 2011, 04:31:14 PM
Because that particular tag may not be defined in that theme. You need to look for the appropriate tag in the index.template.php for the buffer to replace with.
Title: Re: Guest Registration Notification - 1.4.3
Post by: filipes on November 11, 2011, 04:20:02 AM
Quote from: Project Evolution on November 10, 2011, 04:31:14 PM
Because that particular tag may not be defined in that theme. You need to look for the appropriate tag in the index.template.php for the buffer to replace with.
Hello
I think I do not understand how to do that here is my index.template.php to see if you can help me....
thks
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 11, 2011, 04:22:16 PM
I was actually able to find the tag, so it should have worked. Can you elaborate more when you say "it doesnt work?" Does it not show up? Is it not in the correct place?

I also want to know: did you add that line of code to Subs.php properly?
Title: Re: Guest Registration Notification - 1.4.3
Post by: filipes on November 12, 2011, 07:24:03 AM
Quote from: Project Evolution on November 11, 2011, 04:22:16 PM
I was actually able to find the tag, so it should have worked. Can you elaborate more when you say "it doesnt work?" Does it not show up? Is it not in the correct place?

I also want to know: did you add that line of code to Subs.php properly?
Hello
It does not show up, yes for the Subs.php!
thks
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 12, 2011, 10:43:33 AM
Give this one a try.
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 12, 2011, 10:43:34 AM
Give this one a try.
Title: Re: Guest Registration Notification - 1.4.3
Post by: filipes on November 12, 2011, 04:13:05 PM
Quote from: Project Evolution on November 12, 2011, 10:43:34 AM
Give this one a try.
Thks, does not work  :-X
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 12, 2011, 04:31:29 PM
Quote from: filipes on November 12, 2011, 04:13:05 PM
Quote from: Project Evolution on November 12, 2011, 10:43:34 AM
Give this one a try.
Thks, does not work  :-X

Im sorry but I dont know the solution. You replaced the Subs.php on your webserver with what I attached right?
Title: Re: Guest Registration Notification - 1.4.3
Post by: cotty on November 16, 2011, 10:29:29 PM
I am having the same problem as a few of the other previous people, installed fine with no errors, and does not show up as a guest. I have tried adding the line you said to add to others in the subs.php file and still nothing.

Im using SMF2.0.1 with BlackRain V3 theme.

I have attached my sub.php file if this is any help.

Cheers
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 18, 2011, 05:12:22 PM
Any changes to the $buffer variable need to be applied before the return statement. Attached is the updated Subs.php file.
Title: Re: Guest Registration Notification - 1.4.3
Post by: cotty on November 19, 2011, 07:04:17 PM
Quote from: Project Evolution on November 18, 2011, 05:12:22 PM
Any changes to the $buffer variable need to be applied before the return statement. Attached is the updated Subs.php file.

hmmm still didnt seem to work. I replaced the subs.php and reinstalled and didnt seem to work? Is there something I am doing wrong??
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 19, 2011, 07:17:11 PM
Can you attach your index.template.php file please.
Title: Re: Guest Registration Notification - 1.4.3
Post by: cotty on November 22, 2011, 09:59:07 PM
Quote from: Project Evolution on November 19, 2011, 07:17:11 PM
Can you attach your index.template.php file please.

Here it is, thanks.
Title: Re: Guest Registration Notification - 1.4.3
Post by: ascaland on November 22, 2011, 10:47:26 PM
Depending on your theme, it would either be,
$buffer = str_replace('<div id="content_wrap">', '<div id="content_wrap">' . $notification, $buffer);

Or,
$buffer = str_replace('<div id="content_wrap">', $notification . '<div id="content_wrap">', $buffer);

Do some experimenting to find out. Be sure to have that ABOVE the return statement in the integrateGRNBuffer method (Subs.php edit). :)
Title: Re: Guest Registration Notification - 1.5
Post by: ascaland on December 26, 2011, 01:21:19 AM
Thanks for using Guest Registration Notification! Version 1.5 is now out and replaces integration hooks with template layer changes for easier use with any theme!
Title: Re: Guest Registration Notification - 1.5
Post by: Clickout on December 27, 2011, 09:24:32 AM
Hi,
looks like i just found a bug in version 1.5

i've installed the mod in my smf 2.0.2 forum and my xml sitemap became invalid in my webmaster tools. when i tried to fetch the xml sitemap as googlebot i found the following outputHTTP/1.1 200 OK
Server: cloudflare-nginx
Date: Tue, 27 Dec 2011 14:15:19 GMT
Content-Type: text/xml; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Pragma: no-cache
Cache-Control: private
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Tue, 27 Dec 2011 14:15:19 GMT
Vary: Accept-Encoding,User-Agent
Set-Cookie: __cfduid=d740ca9d829a179d4c3b855e3536ded2d1324995318; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.ipool.tk
Set-Cookie: __cfduid=d740ca9d829a179d4c3b855e3536ded2d1324995318; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.www.ipool.tk
Content-Encoding: gzip

<div style="padding: 1em;border: 1px solid #cc3344;color: #000;background-color: #ffe4e9;margin-bottom: 1em;"><img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="http://www.ipool.tk/guest.gif" title="" /><h3 style="padding: 0;margin: 0;font-size: 1.3em;text-decoration: none;">Join the friendliest worldwide Electronics Discussion Community!</h3><p style="margin: 1em 0 0 0;">Members <a href="http://www.ipool.tk/login/" class="bbc_link"><strong>Login</strong></a> &nbsp;| &nbsp;Not an iPooL member yet? &nbsp;<a href="http://www.ipool.tk/register/" class="bbc_link"><strong>Register Now!</strong></a><br />iPooL is the perfect Community forum for Electronics & Communication Engineering Discussions and Support &nbsp;<a href="http://www.ipool.tk/about/" class="bbc_link">Learn More...</a></p></div><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://www.ipool.tk/index.php</loc>
<lastmod>2011-12-27T09:15:19-05:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.ipool.tk/general-chat/</loc>
<lastmod>2011-12-27T08:47:49-05:00</lastmod> ....

The rest of the code is just fine..

it's like the mod is trying to display the guest registration notification in my xml sitemap :(

is there any solution for this problem..

I'm using the overview light theme by ds.


thank you..
Title: Re: Guest Registration Notification - 1.5
Post by: ascaland on December 27, 2011, 12:43:40 PM
Thanks for pointing out the bug! Seems I may have forgotten to take into account AJAX calls and such, so I have modified the mod.

Version 1.5.1 is now out.
Title: Re: Guest Registration Notification - 1.5.1
Post by: Clickout on December 27, 2011, 09:49:59 PM
no problem.. :) Thanks for the new version. I've installed 1.5.1 and my xml sitemap is valid now..
Title: Re: Guest Registration Notification - 1.5.1
Post by: sharks on December 29, 2011, 11:58:32 AM
Thanks for updating your mod, Project Evolution. :) These days, few devs care about their mods on SMF.
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on December 29, 2011, 12:00:44 PM
Thank you guys.
Title: Re: Guest Registration Notification - 1.5.1
Post by: jstop on February 06, 2012, 12:32:16 PM
Just installed the mod, Had to do it manually. I can't get the text to show in the tab or the form...
What did I miss?
What files should I attach?
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on February 06, 2012, 05:00:17 PM
Quote from: jstop on February 06, 2012, 12:32:16 PM
Just installed the mod, Had to do it manually. I can't get the text to show in the tab or the form...
What did I miss?
What files should I attach?

Looks like it is missing the language strings. Did you follow the instructions in english.xml?
Title: Re: Guest Registration Notification - 1.5.1
Post by: jstop on February 06, 2012, 05:04:16 PM
Quote from: Project Evolution on February 06, 2012, 05:00:17 PM
Quote from: jstop on February 06, 2012, 12:32:16 PM
Just installed the mod, Had to do it manually. I can't get the text to show in the tab or the form...
What did I miss?
What files should I attach?

Looks like it is missing the language strings. Did you follow the instructions in english.xml?

No... Where are those instructions?
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on February 06, 2012, 05:24:13 PM
Quote from: jstop on February 06, 2012, 05:04:16 PM
Quote from: Project Evolution on February 06, 2012, 05:00:17 PM
Quote from: jstop on February 06, 2012, 12:32:16 PM
Just installed the mod, Had to do it manually. I can't get the text to show in the tab or the form...
What did I miss?
What files should I attach?

Looks like it is missing the language strings. Did you follow the instructions in english.xml?

No... Where are those instructions?

Contained within the modification. It also gives the instructions when you parse the mod from the mod site.
Title: Re: Guest Registration Notification - 1.5.1
Post by: jstop on February 06, 2012, 05:34:40 PM
Quote from: Project Evolution on February 06, 2012, 05:24:13 PM
Quote from: jstop on February 06, 2012, 05:04:16 PM
Quote from: Project Evolution on February 06, 2012, 05:00:17 PM
Quote from: jstop on February 06, 2012, 12:32:16 PM
Just installed the mod, Had to do it manually. I can't get the text to show in the tab or the form...
What did I miss?
What files should I attach?

Looks like it is missing the language strings. Did you follow the instructions in english.xml?

No... Where are those instructions?

Contained within the modification. It also gives the instructions when you parse the mod from the mod site.

I modified the following pages:

Sources/ModSettings.php
Themes/default/BoardIndex.template.php
Themes/default/Display.template.php
Themes/default/MessageIndex.template.php
Themes/default/languages/Modifications.english.php
Themes/default/languages/Help.english.php

Title: Re: Guest Registration Notification - 1.5.1
Post by: jstop on February 06, 2012, 06:32:37 PM
Got the text issue working!

Next Question is there a way to get the notification to show on my SimplePortal home page?
There are blocks for Custom HTML, Custom PHP if that helps.
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on February 06, 2012, 07:24:45 PM
Hmmm, I dont believe GRN without some manual work can get that working. Since PHP is an option, you can use the actual code that is used for the top layer (the actual notification) of the mod. This is it below (messy, I know...):
function template_grn_above() {
   
global $modSettings;

$notification = (!empty($modSettings['guest_notify_css'])) ? '<div style="padding: 1em;margin-bottom: 1em;' . $modSettings['guest_notify_css'] . '">' : '<div style="padding: 1em;border: 1px solid #cc3344;color: #000;background-color: #ffe4e9;margin-bottom: 1em;">';
$notification .= (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />' : '<p style="padding: 0;margin: 0;float: left;width: 1em;font-size: 1.5em;color:red;">!!</p>';
$notification .= (!empty($modSettings['guest_notify_css_title'])) ? '<h3 style="padding: 0;margin: 0;' . $modSettings['guest_notify_css_title'] . '">' . $modSettings['guest_notify_title'] . '</h3>' : '<h3 style="padding: 0;margin: 0;font-size: 1.1em;text-decoration: underline;">' . $modSettings['guest_notify_title'] . '</h3>';
$notification .= '<p style="margin: 1em 0 0 0;">' . parse_bbc($modSettings['guest_notify_contents']) . '</p></div>';
echo $notification;
}
Title: Re: Guest Registration Notification - 1.5.1
Post by: jstop on February 07, 2012, 09:33:15 PM
Quote from: Project Evolution on February 06, 2012, 07:24:45 PM
Hmmm, I dont believe GRN without some manual work can get that working. Since PHP is an option, you can use the actual code that is used for the top layer (the actual notification) of the mod. This is it below (messy, I know...):
function template_grn_above() {
   
global $modSettings;

$notification = (!empty($modSettings['guest_notify_css'])) ? '<div style="padding: 1em;margin-bottom: 1em;' . $modSettings['guest_notify_css'] . '">' : '<div style="padding: 1em;border: 1px solid #cc3344;color: #000;background-color: #ffe4e9;margin-bottom: 1em;">';
$notification .= (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />' : '<p style="padding: 0;margin: 0;float: left;width: 1em;font-size: 1.5em;color:red;">!!</p>';
$notification .= (!empty($modSettings['guest_notify_css_title'])) ? '<h3 style="padding: 0;margin: 0;' . $modSettings['guest_notify_css_title'] . '">' . $modSettings['guest_notify_title'] . '</h3>' : '<h3 style="padding: 0;margin: 0;font-size: 1.1em;text-decoration: underline;">' . $modSettings['guest_notify_title'] . '</h3>';
$notification .= '<p style="margin: 1em 0 0 0;">' . parse_bbc($modSettings['guest_notify_contents']) . '</p></div>';
echo $notification;
}


I put the code in an empty "Custom PHP block" in SimplePortal and all I get is an empty block.
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on February 07, 2012, 10:28:47 PM
Quote from: jstop on February 07, 2012, 09:33:15 PM
Quote from: Project Evolution on February 06, 2012, 07:24:45 PM
Hmmm, I dont believe GRN without some manual work can get that working. Since PHP is an option, you can use the actual code that is used for the top layer (the actual notification) of the mod. This is it below (messy, I know...):
function template_grn_above() {
   
global $modSettings;

$notification = (!empty($modSettings['guest_notify_css'])) ? '<div style="padding: 1em;margin-bottom: 1em;' . $modSettings['guest_notify_css'] . '">' : '<div style="padding: 1em;border: 1px solid #cc3344;color: #000;background-color: #ffe4e9;margin-bottom: 1em;">';
$notification .= (!empty($modSettings['guest_notify_img_path'])) ? '<img style="float: left; width: 2ex; font-size: 2em; color: red; padding-right: 5px;" src="' . $modSettings['guest_notify_img_path'] . '" title="" />' : '<p style="padding: 0;margin: 0;float: left;width: 1em;font-size: 1.5em;color:red;">!!</p>';
$notification .= (!empty($modSettings['guest_notify_css_title'])) ? '<h3 style="padding: 0;margin: 0;' . $modSettings['guest_notify_css_title'] . '">' . $modSettings['guest_notify_title'] . '</h3>' : '<h3 style="padding: 0;margin: 0;font-size: 1.1em;text-decoration: underline;">' . $modSettings['guest_notify_title'] . '</h3>';
$notification .= '<p style="margin: 1em 0 0 0;">' . parse_bbc($modSettings['guest_notify_contents']) . '</p></div>';
echo $notification;
}


I put the code in an empty "Custom PHP block" in SimplePortal and all I get is an empty block.

Well, you might have to actually adjust it. Im assuming having it all in a function isnt necessary.
Title: Re: Guest Registration Notification - 1.5.1
Post by: Tikkuy on March 21, 2013, 03:21:22 AM
I'm not sure if I've installed this correctly! When I tried to I recieved an "The package you are trying to download or install is either corrupt or not compatible with this version of SMF" error, but as I'm getting that with all my installations for some reason I just uploaded the .zip into the Packages directory. It's showing up on the package list but has no option to install or anything, and I'm not sure where to look to see if the thing has been installed as I don't know where the options are in the ACP. Any help?!

Thanks!
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on March 21, 2013, 04:47:32 PM
Quote from: Tikkuy on March 21, 2013, 03:21:22 AM
I'm not sure if I've installed this correctly! When I tried to I recieved an "The package you are trying to download or install is either corrupt or not compatible with this version of SMF" error, but as I'm getting that with all my installations for some reason I just uploaded the .zip into the Packages directory. It's showing up on the package list but has no option to install or anything, and I'm not sure where to look to see if the thing has been installed as I don't know where the options are in the ACP. Any help?!

Thanks!

Use the Package Emulation (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version) feature to get this working.
Title: Re: Guest Registration Notification - 1.5.1
Post by: Tikkuy on March 26, 2013, 09:29:56 AM
Quote from: Anthony` on March 21, 2013, 04:47:32 PM
Quote from: Tikkuy on March 21, 2013, 03:21:22 AM
I'm not sure if I've installed this correctly! When I tried to I recieved an "The package you are trying to download or install is either corrupt or not compatible with this version of SMF" error, but as I'm getting that with all my installations for some reason I just uploaded the .zip into the Packages directory. It's showing up on the package list but has no option to install or anything, and I'm not sure where to look to see if the thing has been installed as I don't know where the options are in the ACP. Any help?!

Thanks!

Use the Package Emulation (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version) feature to get this working.

Hm, thanks. It seems that the mod can't find the line "// Show some statistics next to the link tree if SP1 info is off." in "Themes/default/BoardIndex.template.php'. Any ideas where else I could add that edit?
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on April 06, 2013, 04:37:57 PM
Quote from: Tikkuy on March 26, 2013, 09:29:56 AM
Quote from: Anthony` on March 21, 2013, 04:47:32 PM
Quote from: Tikkuy on March 21, 2013, 03:21:22 AM
I'm not sure if I've installed this correctly! When I tried to I recieved an "The package you are trying to download or install is either corrupt or not compatible with this version of SMF" error, but as I'm getting that with all my installations for some reason I just uploaded the .zip into the Packages directory. It's showing up on the package list but has no option to install or anything, and I'm not sure where to look to see if the thing has been installed as I don't know where the options are in the ACP. Any help?!

Thanks!

Use the Package Emulation (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version) feature to get this working.

Hm, thanks. It seems that the mod can't find the line "// Show some statistics next to the link tree if SP1 info is off." in "Themes/default/BoardIndex.template.php'. Any ideas where else I could add that edit?

Are you using the latest version (1.5.1)? Which SMF version are you using?
Title: Re: Guest Registration Notification - 1.5.1
Post by: Westwegoman on January 15, 2014, 11:53:01 PM
When I upgrade to PHP 5.4 the settings for this mod and one other mod disappears. The mod itself works, just can't see the settings for it anymore. I went back to PHP 5.2 and it showed up again. I've since switched back up to 5.4 and it's gone again.
Title: Re: Guest Registration Notification - 1.5.1
Post by: Arantor on January 15, 2014, 11:57:45 PM
much the same bug as the other, really.

The changes made to Subs.php (which *really* didn't have to be file edits at all)

Code (find) Select
function integrateModifyModificationsGRN($subActions) {

Code (replace) Select
function integrateModifyModificationsGRN(&$subActions) {

Code (find) Select
function integrateAdminAreasGRN($admin_areas) {

Code (replace) Select
function integrateAdminAreasGRN(&$admin_areas) {/code]
Title: Re: Guest Registration Notification - 1.5.1
Post by: Westwegoman on January 16, 2014, 12:04:48 AM
Once again, thanks for the quick fix. :)

Still enjoying the conversion to SMF!!
Title: Re: Guest Registration Notification - 1.5.1
Post by: Kiriakos GR on January 26, 2014, 11:42:27 PM
Great mod , thanks.
Title: Re: Guest Registration Notification - 1.5.1
Post by: GamePersia on February 25, 2014, 08:31:20 AM
where is it installed ??
not able to find the settings for this mod in Miscellaneous section also
smf 2.0.7. :-\
Title: Re: Guest Registration Notification - 1.5.1
Post by: Westwegoman on February 25, 2014, 08:41:58 AM
Quote from: GamePersia on February 25, 2014, 08:31:20 AM
where is it installed ??
not able to find the settings for this mod in Miscellaneous section also
smf 2.0.7. :-\

Administration Center »  Modification Settings »  Guest Reg Notification
Title: Re: Guest Registration Notification - 1.5.1
Post by: GamePersia on February 25, 2014, 09:32:54 AM
Quote from: Westwegoman on February 25, 2014, 08:41:58 AM
Quote from: GamePersia on February 25, 2014, 08:31:20 AM
where is it installed ??
not able to find the settings for this mod in Miscellaneous section also
smf 2.0.7. :-\

Administration Center »  Modification Settings »  Guest Reg Notification
Yes,..Modification Settings,..i have seen,..but not there !!
i have also checked my installed mods,..
and it's showing that this mod is installed !!.. ???
Title: Re: Guest Registration Notification - 1.5.1
Post by: GamePersia on March 07, 2014, 09:29:34 AM
Seriously man,..... >:(
i have installed this mod thrice,...but not finding this mod settings !!!! :'( :'(
Searched full Miscellaneous section,...but it's not there,...Whereas in package manager,..it's telling that it's installed !!!

Buddies tell me,..where it is ??????
buddies : k@, Diego Andrés, Deprecated And margarett Help Guys !! :'(
Title: Re: Guest Registration Notification - 1.5.1
Post by: ascaland on March 07, 2014, 11:41:49 AM
Should be in Admin CP -> Configuration -> Modification Settings... -> Guest Reg Notification.
Title: Re: Guest Registration Notification - 1.5.1
Post by: GamePersia on March 09, 2014, 10:10:11 PM
Quote from: Anthony` on March 07, 2014, 11:41:49 AM
Should be in Admin CP -> Configuration -> Modification Settings... -> Guest Reg Notification.
No Buddy,..It's Not There... :-X :-X
I Don't Know Where It's Gone ???
Title: Re: Guest Registration Notification
Post by: live627 on March 09, 2014, 11:45:39 PM
Try 1.5.2.
Title: Re: Guest Registration Notification
Post by: GamePersia on March 09, 2014, 11:51:59 PM
Quote from: live627 on March 09, 2014, 11:45:39 PM
Try 1.5.2.
Hmmm,..
i don't know why it worked now  :-\
But thanks for update !!... :-*
Title: Re: Guest Registration Notification
Post by: GamePersia on March 09, 2014, 11:59:26 PM
Awesome,..Working,..
But Little Problem,..
Can We Lift The Box Little Upwards ??
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FDIwSjX7.jpg&hash=b7cacd030e38365dcce41cde1eea46b32cfdfd7e)
Because it's coming on total members stats...
Title: Re: Guest Registration Notification
Post by: Colin on March 10, 2014, 12:07:52 AM
In index.css


/* the small stats */
#index_common_stats
{
display: block;
margin: 0 0 0.5em 0;
text-align: right;
font-size: 0.9em;
position: relative;
top: -10px;
line-height: 1px;
}


Replace with


/* the small stats */
#index_common_stats
{
display: block;
margin: 0 0 0.5em 0;
text-align: right;
font-size: 0.9em;
position: relative;
top: -50px;
line-height: 1px;
}
Title: Re: Guest Registration Notification
Post by: GamePersia on March 10, 2014, 12:19:23 AM
Quote from: Colin on March 10, 2014, 12:07:52 AM
In index.css


/* the small stats */
#index_common_stats
{
display: block;
margin: 0 0 0.5em 0;
text-align: right;
font-size: 0.9em;
position: relative;
top: -10px;
line-height: 1px;
}


Replace with


/* the small stats */
#index_common_stats
{
display: block;
margin: 0 0 0.5em 0;
text-align: right;
font-size: 0.9em;
position: relative;
top: -50px;
line-height: 1px;
}

:D...Nice..Buddy
Title: Re: Guest Registration Notification
Post by: Ninja ZX-10RR on December 07, 2014, 11:17:08 AM
Had to file a security report for this one, you can find the details here: http://simpleportal.net/index.php?topic=13734.0
Please fix this serious bug asap since it destroys all AJAX forum functions by bugging them and preventing them from working correctly.

EDIT - The solution is easy even if the bug is bad: http://simpleportal.net/index.php?topic=13734.msg67897#msg67897
Title: Re: Guest Registration Notification
Post by: live627 on December 09, 2014, 12:51:15 AM
Fixed in v1.5.3.
Title: Re: Guest Registration Notification
Post by: Empire KickAss on April 26, 2015, 08:05:06 AM
Holy damn. Finally found what I have been looking for. I'll install it later once on my desktop. Probably going to reply with errors lol, I have learned to fix things my self now
Title: Re: Guest Registration Notification
Post by: lego-man on February 20, 2017, 10:20:09 AM
Hey,

Is there still support for this mod.

Looking to remove the !! Tagreat at the beginning on the post if anyone can help.

Cheera