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.
- Enable/disable option
- Edittable content/title/display image
- Supports BBC
- Configurable to show in index (by default) also in board index and above posts
- SMF 2 versions (above RC3) modifies template layers
Created by Anthony Calandra/Project Evolution - 2010.
Very nice man, looks pretty good. Congrats on the approval. ;)
Thanks a lot my friend, im inclined to be working on more mods. Ive got a lot of inspiration and ideas. :)
Nice mod would be nice to see more from you :)
Heh, thanks guys. Your friendly feedback really motivates me. O:)
Very nice! Thanks for the great mods!
Uh oh, test failure in /Themes/default/MessageIndex.template.php.
File is attached.
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.
Thanks so much, works perfectly.
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';
Thank you very much. :)
Please save languages.xml to ANSI charset and paste turkish translation to separate file, with charset UCS-2 Little Endia.
Russian translation
Updated, hopefully I got it right this time...
Still a little new to this.
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
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>';
}
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.
I have attached the fixed BoardIndex.template.php,
Same error with the BoardIndex.template file you provided.
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).
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!
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.
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.
Here's how it appears with enable on board index and posts turned off. No combination produces a single box. Disable works fine.
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.
I have updated the modification and changelog. It should work now.
I reloaded the theme and installed today's update. It's working with my installation now.
Thanks again. Great work.
I installed registration mod everything is fine even mod setting showing in admin panel.
But mod is not working.
What isnt working about it, is it showing?
If it doesnt, are you using a custom theme?
Wicked mod thanks sooo much, is there anyway to remove the red exclamation marks?
Paul
www.ozfarmer.com
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="" />'
: '';
Having problem with my ModSettings.php....I tried to do it manualy, but I still get error message. Can I get some help?
Thx.
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?
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
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.
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
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?
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
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
Im thinking of installing this, but I'm curious if there is a way to change the colors of the box and border
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.
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
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.
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
Guest Registration Notification version 1.2 is finally out!
Check the original post for more information.
Updated russian translation for version 1.2 of this mod. Please update files in package.
Thanks for your contribution!
Awesome, thanks I'll have to give it a try
Thank you for this great mod, already using it here :)
http://curefans.com
Im glad you decided to use my modification, thanks everyone.
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.
No problem, thanks for using!
it's possible to show the message in all boards except the boards index? thanks :)
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
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 :)
Great mod, installed flawlessly, and being able to change the colours in the admin panel is a massive improvement !
Thanks a lot :)
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.
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!
Can you attatch your ModSettings.php file? Its a modificzation thats interfering with GRN's installation.
Sure, here ya go. Thanks for the help.
This one is with all the edits it needs except that one.
Attatched the working file below.
That works great! Thank you :)
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.
You can use CSS to align it. Just use some padding.
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
http://w3schools.com/css/css_padding.asp
;)
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
Can I make it so this mod displays to registered members too?
If you wish to, just remove the $context['user']['is_guest'] && within the first if-statements that display the block.
Please update for RC4
Quote from: herace on December 07, 2010, 05:02:55 PM
Please update for RC4
I need this mod for RC4 too. :(
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??
Sorry for being so late guys, it should now work with all 1.1.x versions and 2.0 RC4.
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)
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.
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.
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
Use:
[iurl=http://localhost/pm_smf/index.php?action=register]Register.[/iurl]
hi, how to use CSS?? (Edit box and border CSS - Edit content title CSS) #box #border #title ????
thanks
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
i would prefer warning to appear on the top of the page, maybe even float there!
can this be made with css?
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%;
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?
Thanks for letting me know, I have just updated the modification.
Thanks project evolution for providing this mod. I'm using the mod and it's amazing!
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.
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%;
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.
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.
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?
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.
its showing up.... definitely. but not on the page im looking for. can u help me through TV please?
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?
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?
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.
i don't....... have... your msn
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..?
I did, but i never saw that msn icon lol. im sorry, sec
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
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.
thanks man ... i resolved .. nice mode.. really i like it !
Finally, I have an update. For SMF 2.0 users, Guest Registration Notification now doesnt require template edits (using integration hooks)!
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?
May I ask what theme it is?
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.
QuoteExecute Code | install_2.php |
|
| 2. | Execute Modification | ./Sources/Admin.php | Test successful |
| 3. | Execute Modification | ./Sources/ManageSettings.php | Test successful |
| 4. | Execute Modification | ./Sources/Subs.php | Test successful |
| 5. | Execute Modification | ./Themes/default/languages/Modifications.english.php | Test successful |
| 6. | Execute Modification | ./Themes/default/languages/Help.english.php | Test successful |
| 7. | Execute Modification | ./Themes/default/languages/Modifications.turkish.php | Skipping file |
| 8. | Execute Modification | ./Themes/default/languages/Modifications.russian.php | Skipping file |
| 9. | Execute Modification | ./Themes/default/languages/Help.russian.php | Skipping file |
| 10. | Execute Modification | ./Themes/default/languages/Modifications.russian-utf8.php | Skipping file |
| 11. | Execute Modification | ./Themes/default/languages/Help.russian-utf8.php | Skipping file |
Is there any solution.
Thanks.
Hey, thanks for downloading the mod. On the page I placed version 2.1 on there, you can use that in the meantime. :)
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.
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
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),
// Put HTML replacement under this comment for other themes (other than default)!
$buffer = str_replace('<div id="bodyarea">', $notification, $buffer);
Thanks for this great mod. I enjoy being able to customize the look of it. Works great.
Thanks very much :D
Working lovely now :)
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..
Take a look at this post:
http://www.simplemachines.org/community/index.php?topic=387066.msg2682459#msg2682459
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!
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.
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... :(
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.
I have no code like this -even similar- in Subs.php under Sources... :S
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?
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
I have found it, could you please attach your index.template.php file here?
Sure! I attach it from both themes (default, and theme what i use).
Give the attached Subs.php a try. By the way, make sure its installed THEN replace the file.
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)
Try the attached.
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 :) ).
I am available tomorrow! Do you mind PMing me tomorrow?
i PMd You!
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
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);
thanks a lot Project Evolution :)
the mod works just perfect; i'm so happy :D i hope this works for all dzinerstudio themes.
i have a problem with this mod
it doesnt work i installed the mod but the message doesnt show up
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?
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?
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.
Okay, so what should I do? Manually install?
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,
// Put HTML replacement under this comment for other themes (other than default)!
$buffer = str_replace('<div id="bodyarea">', '<div id="bodyarea">' . $notification, $buffer);
Thanks, that seemed to have fixed it :)
Updated to version 1.4.3! Now uses two more integration hooks to hook into the admin control panel!
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,
// Put HTML replacement under this comment for other themes (other than default)!
$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.
Can you attach your Subs.php (without the ~, there is a difference)? :)
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.
Maybe try this,
$buffer = str_replace('<div id="bodyarea">', '<div id="bodyarea">' . $notification, $buffer);
That worked! Thanks!
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,
// Put HTML replacement under this comment for other themes (other than default)!
$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
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.
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
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?
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
Give this one a try.
Give this one a try.
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?
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
Any changes to the $buffer variable need to be applied before the return statement. Attached is the updated Subs.php file.
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??
Can you attach your index.template.php file please.
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.
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). :)
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!
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> | Not an iPooL member yet? <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 <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..
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.
no problem.. :) Thanks for the new version. I've installed 1.5.1 and my xml sitemap is valid now..
Thanks for updating your mod, Project Evolution. :) These days, few devs care about their mods on SMF.
Thank you guys.
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?
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?
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?
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.
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
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.
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;
}
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.
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.
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!
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.
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?
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?
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.
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)
function integrateModifyModificationsGRN($subActions) {
function integrateModifyModificationsGRN(&$subActions) {
function integrateAdminAreasGRN($admin_areas) {
function integrateAdminAreasGRN(&$admin_areas) {/code]
Once again, thanks for the quick fix. :)
Still enjoying the conversion to SMF!!
Great mod , thanks.
where is it installed ??
not able to find the settings for this mod in Miscellaneous section also
smf 2.0.7. :-\
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
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 !!.. ???
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 !! :'(
Should be in Admin CP -> Configuration -> Modification Settings... -> Guest Reg Notification.
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 ???
Try 1.5.2.
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 !!... :-*
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...
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;
}
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
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
Fixed in v1.5.3.
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
Hey,
Is there still support for this mod.
Looking to remove the !! Tagreat at the beginning on the post if anyone can help.
Cheera