Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SnappaGuy on August 25, 2011, 11:38:43 AM

Title: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on August 25, 2011, 11:38:43 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3107)

IMIYF



Every forum webmaster would be over the moon if they could convert even just a small percentage of their guests to registered users, would that be a correct assumption?

This little mod displays a floating window (non modal) to guests (and presently users not logged in), extolling your forums virtues, encouraging them to register and taking them to your registration page when clicked, although it could be used to display almost any message you desired.

From the admin area, you can enable the mod, edit the text to display, nominate a time to auto close the window, turn 'sticky' mode on or off, select an area to display the window i.e top right/left,  bottom right/left and center positions and enable sound notifications.


The mod uses jQuery, in noConflict mode and the jGrowl library.


Whilst the mod is directed at current SMF versions, it should/could work with earlier versions (perhaps by emulation) however we strongly advise updating to the latest iterations of SMF to address any bug fixes and to take advantage of improvements in the areas of features and security.


Languages supported in version 0.4.1 are:  english, english-utf8.


Please feel free to checkout the demo for V2.0.15 at https://imiyf-demo1.budcomsol.com (https://imiyf-demo1.budcomsol.com) and the demo for V2.1 RC2 at imiyf-demo2.budcomsol.com (http://imiyf-demo2.budcomsol.com) !






Version History.


0.4.1: Cosmetic changes, address an omission in 0.4.0, add optional sound notification.
0.4.0: Cosmetic changes, update jQuery/jGrowl libraries, remove single quotes from output text, added cookie session support,
          remove support for languages other than English, download now offered in .zip format, added SMF version checking.
0.3.2: Bug fixes for jquery.jgrowl actualization.
0.3.1: Several changes regarding package structure.
0.3.0: Mod configurable in the admin area, thanks Diegorixo, Miss All Sunday, SMF Customization Team and all offering advice.
0.2.3: Several changes in package structure.
0.2.2: Non default themes compatibility improved.
0.2.1: Updated to 2.0 Gold.
0.2.0: Solved issues regarding non default themes.
0.1.0: Initial release, the creature is alive!






The MIT License


Copyright <2019> <BUD's Computer Solutions>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.




Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Sudhakar Arjunan on August 28, 2011, 04:17:36 PM
Hey admin,

Good mod, just searching for it.

Installing and worked fine.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on August 28, 2011, 09:27:54 PM
Its great you find it useful!
Thanks for share it
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Sci-Fi_Fan on September 04, 2011, 08:04:41 AM
Hi, the display box itself works fine but when it is clicked, I get the following error:

Quote
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /-removed-/-removed-/public_html/forum/Sources/Register.php on line 875

Any ideas?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on September 04, 2011, 11:50:24 AM
Quote from: Sci-Fi_Fan on September 04, 2011, 08:04:41 AM
Hi, the display box itself works fine but when it is clicked, I get the following error:

Quote
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /-removed-/-removed-/public_html/forum/Sources/Register.php on line 875

Any ideas?

Well, this mod do not change anything on that file... do you have installed other mods that touchs it? wich ones?
Can you attach that Register.php file?

For example, my Register.php file have 849 lines...
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Sci-Fi_Fan on September 04, 2011, 11:55:50 AM
Quote from: luuuciano on September 04, 2011, 11:50:24 AM
Quote from: Sci-Fi_Fan on September 04, 2011, 08:04:41 AM
Hi, the display box itself works fine but when it is clicked, I get the following error:

Quote
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /-removed-/-removed-/public_html/forum/Sources/Register.php on line 875

Any ideas?

Well, this mod do not change anything on that file... do you have installed other mods that touchs it? wich ones?
Can you attach that Register.php file?

For example, my Register.php file have 849 lines...

I did have the referrals mod installed, but I thought I removed that. However, I'm not an expert at php coding so I could be mistaken.

My file is attached. I'd really appreciate any help you can provide with this as it is a good mod.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on September 04, 2011, 12:19:01 PM
That file is broken, it is not the 100%... edit it and watch the end
Quote{
      require_once($sourcedir . '/Subs-Members.php');
      $context['valid_username'] &= isReservedName($context['che

Why is that? do you edited it and upload it wrong?

and the file have pieces of referral mod (and another one about "country" things?)... you will have to restore that file... and look the parse of that mod to do the reverse of install it (in every file touched)

or try changing it to this

{
require_once($sourcedir . '/Subs-Members.php');
$context['valid_username'] &= isReservedName($context['checked_username'], 0, false, false) ? 0 : 1;
}
}

?>


but, no idea if your register file had other codes between that and ?>
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Sci-Fi_Fan on September 04, 2011, 12:21:10 PM
Quote from: luuuciano on September 04, 2011, 12:19:01 PM
That file is broken, it is not the 100%... edit it and watch the end
Quote{
      require_once($sourcedir . '/Subs-Members.php');
      $context['valid_username'] &= isReservedName($context['che

Why is that? do you edited it and upload it wrong?

and the file have pieces of referral mod... you will have to restore that file... and look the parse of that mod to do the reverse of install it (in every file touched)

I don't know. I haven't touched it, but it may have happened when I uninstalled the referral mod. I'll attempt to sort it out.

EDIT: OK, I removed the referral mod from all files associated with it. How can I restore the rest of the code that's missing?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on October 12, 2011, 02:22:43 AM
Quote from: Sci-Fi_Fan on September 04, 2011, 12:21:10 PM
EDIT: OK, I removed the referral mod from all files associated with it. How can I restore the rest of the code that's missing?

If you have no other mods touching Register.php just download the smf full pack (installer/update/upgrade, any of them.... the same version you are using), unpack it locally and upload just that file (Register.php)...
If you have other mods touching that file... look at /Packages/backups for the latest working backup and try the file in there... if not, do the previous option, do a parse on mods touching that file, inser/change codes, upload...
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: PLAYBOY on November 14, 2011, 02:49:20 PM
Very nice mod. Easy to use and custom theme friendly. Thank you very much.

I think it would be very nice (and useful) if you can add an option which will make the popup show only once to a person/to an ip/to a session. I mean it could be cookie based or ip based or whatever. But my visitors are complaining that the popup message appear everytime they visit the site and it gets pretty annoying.

Also it would be nice, if we could customize the hyperlink of the popup. My forum has an invitation system and i dont people to be directed to register.php

I would really appreciate if you can add these features.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: SimpleGost on January 05, 2012, 08:56:31 AM
When user close the notification, on next page it shows again! FIX IT!
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: GlitchPC on January 05, 2012, 09:16:36 AM
Quote from: InternetFazoni on January 05, 2012, 08:56:31 AM
When user close the notification, on next page it shows again! FIX IT!


...so, you think if you demand it to be fixed, it'll get fixed?  Sheesh!
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on January 05, 2012, 09:49:50 AM
Quote from: InternetFazoni on January 05, 2012, 08:56:31 AM
When user close the notification, on next page it shows again! FIX IT!

Currently its like that, no time to do more improvements...
You do not like it? do not use it / modify it
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: SimpleGost on January 05, 2012, 10:28:57 AM
My english is bad, i don't want from you to modify your mod, tell me how to do that? When user close it, not be shown on other page
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on January 05, 2012, 11:56:08 AM
First, to clarify a bit, it is not broken, so it will not get fixed... I have no time to do more improvements on it rigth now

Quote from: InternetFazoni on January 05, 2012, 10:28:57 AM
My english is bad, i don't want from you to modify your mod, tell me how to do that? When user close it, not be shown on other page

There is no change to "fix" that, the mod have to be improved (adding some cookies handling, or something else)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: SimpleGost on January 05, 2012, 12:11:43 PM
Key is in Cookies, but i dont know how to do that  :'(
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on January 05, 2012, 12:22:16 PM
Anyway, why you care about non registered people?
If they feel annoyed by that message, they can register and login...
Do not you want that? it is not that this mod purpose? why are you using it?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: French on January 05, 2012, 12:36:17 PM
luuuciano thanks a lot for IMIYF Mod,it´s attend visitors to the sector register in a neatly way  ;)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: BCK on January 20, 2012, 07:11:22 PM
isnt the whole point to either get to register or leave??? lol
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on January 20, 2012, 07:21:41 PM
Well, that behavior happens on mods where you can not see replies, or can not see links, for example... this is more friendly, a little annoying true, if you browse more than 3 or 5 pages, but friendly :)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: simon36 on March 31, 2012, 03:11:19 PM
Hi, I really like this mod and would like to know if I can display the message without the ' at the beginning and end of the message.

Thank you.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on March 31, 2012, 07:28:36 PM
Download your load.php and search for

  $.jGrowl("<a href=\'' . $scripturl . '?action=register\'>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>", { life: '.(empty( $modSettings['imiyf_life']) ? 10000 : $modSettings['imiyf_life']).', sticky: '.$modSettings['imiyfsticky'].' });

and change it to


  $.jGrowl("<a href=\'' . $scripturl . '?action=register\'>' . $modSettings['imiyf_txt'] . '</a>", { life: '.(empty( $modSettings['imiyf_life']) ? 10000 : $modSettings['imiyf_life']).', sticky: '.$modSettings['imiyfsticky'].' });

(erasing JavaScriptEscape( .... ) )

Then upload it...

Always do a backup first! :)

the load.php file in this case
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: simon36 on April 01, 2012, 01:37:12 AM
Hi, thanks for the reply. When I upload the amended load..php no message to register is displayed at all.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on April 01, 2012, 01:51:54 AM
Can you atach your modified load.php file?
It should work.... maybe something changed wrong
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: simon36 on April 01, 2012, 11:51:50 AM
File attached, thanks for your help.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on April 01, 2012, 03:07:33 PM
Well, it looks ok... I have tested it on our forum, and it shows the message (without the ' ')
No idea... maybe http://www.imdb.com/title/tt0070047/ would help
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: MrMike on May 10, 2012, 05:01:51 PM
Luuuuciano,

Would it be possible for you to provide some sample CSS here that would show the bar full-width on the screen, or centered at say, 95% width?

I've been trying to alter the css to show it like that way without any luck.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 10, 2012, 06:45:06 PM
MrMike, on jquery.jgrowl.css file

Find the line div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {

look at the width: XXX; line inside that

Try width: 95% !important;

On smf admin, IMIYF options use center...

You mean something like that?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: MrMike on May 10, 2012, 09:46:50 PM
I guess actually I'm trying to get it to look like like the RegBar mod....full width, centered, very little padding, possibly with an icon on the far left, and so on.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Eambo on June 18, 2012, 03:44:53 AM
This mod is awesome :-) I was wondering two things:

- Is it possible to have this show for registered members, instead of unregistered?
- Is it possible to change the 'register' link (when you click) to another page (IE: Instructions or rules?)

Many thanks for this awesome mod :-)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on June 18, 2012, 08:20:18 AM
Thanks Eambo, it is good to know you find it useful

About your question, look at Load.php, search for
if($context['user']['is_guest'] && !empty($modSettings['imiyf_enable']) && $context['current_action'] != 'register')

and try !$context['user']['is_guest'], that ! added should "reverse" the condition and show the message to registered users

Then, a few lines below look for
<a href=\'' . $scripturl . '?action=register\'>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>

Change the href section to your needs. something like href="http://www.simplemachines.org/"


Having to see that message as a registered user, all the time, will be a bit anoying, uh?
If you have to show helping messages, FAQs, links, etc... watch this options:
http://spyrestudios.com/how-to-create-a-sexy-vertical-sliding-panel-using-jquery-and-css3/
http://web-kreation.com/tutorials/nice-clean-sliding-login-panel-built-with-jquery/

So, members will have the option to show/hide it, and you will have space to add more useful information (anyway, it is just an idea,,,)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Eambo on June 18, 2012, 11:28:30 AM
Thank you for your response! I will definitely check those out - I like the look of the 'top dropdown' menu more, but the download link is broken at the moment :-(
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on June 18, 2012, 11:50:20 AM
Well, you can find codes and files looking at the demo... no idea if someone have found a mirror, look at comments (and try sending a message to them)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: SimpleGost on June 19, 2012, 02:16:59 PM
:(
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on June 19, 2012, 04:43:27 PM
Quote from: Luka Paunović on June 19, 2012, 02:16:59 PM
:(

8-)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ApplianceJunk on July 05, 2012, 11:13:07 AM
Awesome mod, thanks!

I'm also trying to change the link to something other then, register.

I read your reply to Eambo on how to do this.

Quote

Then, a few lines below look for

<a href=\'' . $scripturl . '?action=register\'>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>

Change the href section to your needs. something like href="http://www.simplemachines.org/"

Could you post the code with http://www.simplemachines.org as a example of just how it's changed?
I have tried to change the a href to something other then register and keep getting errors.
I must not be doing it correctly.

thanks,

Edited to add:

Got it, lol...

Changed this.
<a href=\'' . $scripturl . '?action=register\'>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>

to this...

<a href=http://www.simplemachines.org>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ApplianceJunk on July 05, 2012, 04:25:38 PM
How could I have this show for guest and regular members at the same time?

How about for any special member groups I have?

Thanks,
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on July 05, 2012, 06:14:27 PM
Quote from: appliancejunk on July 05, 2012, 04:25:38 PM
How could I have this show for guest and regular members at the same time?

How about for any special member groups I have?

Thanks,

For the 1st thing try something like


if(!empty($modSettings['imiyf_enable']) && $context['current_action'] != 'register')



For the second thing try reading this http://www.simplemachines.org/community/index.php?topic=330834.0;all
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: shigoxin on July 06, 2012, 06:24:41 AM
hello, does this mod work with 2.0.2 ? Any conflict? Thank you.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on July 06, 2012, 12:04:53 PM
It works, emulate 2.0 on mod install section
The only conflict you may have is with other mods that uses jquery, you will have to touch code to have just one call
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ApplianceJunk on July 06, 2012, 12:37:03 PM
Thanks for the reply,

Quote from: shigoxin on July 06, 2012, 06:24:41 AM
hello, does this mod work with 2.0.2 ? Any conflict? Thank you.

I installed it on SMF 2.0.2 without having to emulate it and did not have any problems.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: shigoxin on July 08, 2012, 07:03:07 AM
thank you appliancejunk, it also works with me too.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: hawkman on February 28, 2013, 09:39:05 AM
Does this work for SMF 2.0.2 and why don't I see it on the "Download Packages" tab under Package Manager?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on February 28, 2013, 06:30:28 PM
It should work without problems, just emulate 2.0
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: hawkman on March 01, 2013, 11:45:44 AM
Well, It works, but in Modification Settings all the fields are blank so I have to grope my way through the settings.

Hawk
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on March 01, 2013, 09:24:14 PM
uh? Do you want me to set it for you?

You just have to see the field descriptions, think for a while and enter values/strings that fits "your needs"... it was hard to do?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: hawkman on March 01, 2013, 10:16:03 PM
I figured it out.  I looked at the image from the download page to figure out what each line of the setup was.  It works fine other than the descriptions on the Modification Settings page are blank.  Emulating 2.0 did not help but as I said.  I figured it out and I like it a lot.  Thanks.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on March 01, 2013, 10:42:50 PM
Wich language are you using?

The mod installs text strings to Modifications.english-utf8.php Modifications.english.php as well to the spanish ones
Beside that, if you are not using any of those languages, you should be able to see the english text strings (or maybe you deleted that language? do no look like a good idea...)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: hawkman on March 02, 2013, 11:18:26 AM
I am only using English and there is no way I could have deleted the text strings.  All I did was:
Download the file
Upload the file
install  it
Go in to Modification Settings

Every word of text that is in this image below Miscellaneous  is missing. http://custom.simplemachines.org/mods/index.php?action=download;mod=3107;id=184042;image

All descriptive text was missing from page.  The left side was blank and the right side had boxes for text and position of the floating window.  But..even on the left side, there is no text inside of the selection box for position of the window, all that is blank also.  I had to just select different blank places in the selection box and then log out to see where the floating window would be.

NO text was there, not even "Do you want sticky OFF?", "yes", "no", there is NO text.....but it works fine.  I just click on the blank areas where "yes" or "no" is supposed to be.

Hawk
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on April 12, 2013, 01:46:20 PM
That is really strange... but I have seen reports in other mods, that uses hooks too, of things like this (strings missings, options, etc)... I have no clue
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 09, 2013, 07:20:58 PM
Hi,

I am using MLM's Vertex Theme and when I go on as a guest the message didnt show up on the site. Is there a reason for this?

Thanks
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: TheListener on May 09, 2013, 07:24:46 PM
Quote from: DomesticCricketForum on May 09, 2013, 07:20:58 PM
Hi,

I am using MLM's Vertex Theme and when I go on as a guest the message didnt show up on the site. Is there a reason for this?

Thanks

Have you tried the permissions?

Any errors in the error log?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 09, 2013, 08:45:42 PM
Quote from: DomesticCricketForum on May 09, 2013, 07:20:58 PM
Hi,

I am using MLM's Vertex Theme and when I go on as a guest the message didnt show up on the site. Is there a reason for this?

Thanks

What website? can you ad an URL to see it?
DO you have any other "something" using jquery?

BTW, do you see the text strings on the mod configuration?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 10, 2013, 03:59:43 PM
This is my website http://www.domesticcricketforum.com/index.php (http://www.domesticcricketforum.com/index.php) , I think all the permissions are set up ok so any other advice will be appreciated
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 10, 2013, 04:36:13 PM
Your theme, or a mod installed, is loading jquery...

Look in your Sources/Load.php (backup!) for
   <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
then erase it... upload it... it works?

If do not work... probable you have another js conflict

And... on the text string to show, do not use quotes "
And you do not need to add any link, the whole text string will be a link to the register section... if you do not like that way, you will have to change codes to whatever you need to
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 10, 2013, 04:54:31 PM
OOPS.... I realized that it is not showing on my website too... tried to find an error using firebug...

Found this:
TypeError: $.browser is undefined
Generated on the jquery.jgrowl_compressed.js file

And I found this recent jquery issue: http://stackoverflow.com/questions/14337859/jquery-browser-javascript-uncaught-typeerror

And... I have to go out now! can not continue testing & trying things until a return...

TO BE CONTINUED... (?)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 13, 2013, 06:03:16 PM
Ok!
Invitation Message In Your Face [IMIYF] is now 0.3.2

Please, if you have a non working IMIYF installed, uninstall it, then install the latest version...
I have tested it, it works amazing (?)

Good luck, and send me some beers!
(?)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: DEEPSNUYB on May 18, 2013, 11:09:03 PM
Hi I download the file and unzipped it as I like to do manual installs.  The only file in there is this

Invitation Message In Your Face 0.3.2 and the file extension is .2

?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: TheListener on May 18, 2013, 11:11:57 PM
Try using the package manager.

Have you looked at the parser to see which files are changed?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 18, 2013, 11:53:11 PM
Quote from: DEEPSNUYB on May 18, 2013, 11:09:03 PM
Hi I download the file and unzipped it as I like to do manual installs.  The only file in there is this

Invitation Message In Your Face 0.3.2 and the file extension is .2

?

Unziped?? it is a tar.gz file... how you did it?
Try using a better method
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: DEEPSNUYB on May 18, 2013, 11:56:02 PM
Well usually files have the ZIP extension so you can just unzip it using Windows default zip program.  Since you used the gz extension, I had to download WinZip and that is what is in your gz file.

Maybe just ZIP it instead like everyone else?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 19, 2013, 12:02:08 AM
I use linux... should I use windows, as everyone else?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Arantor on May 19, 2013, 09:48:35 AM
.tar.gz files end up smaller than .zip files because they compress all the content into a single file first (.tar) then compress that which allows it to compress it better.

If you open the .gz file you end up with a tar file, open the tar file to find all the content.

Also, there's no need to be rude and suggest that someone does more work for your convenience rather than you doing a few more mouse clicks.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 19, 2013, 01:43:58 PM
I have uninstalled the old version and installed the new version, but the same problem has persisted and there is still nothing showing up on the website when I go on as a guest. So could it be to do with a conflict?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 19, 2013, 05:17:15 PM
Quote from: DomesticCricketForum on May 19, 2013, 01:43:58 PM
I have uninstalled the old version and installed the new version, but the same problem has persisted and there is still nothing showing up on the website when I go on as a guest. So could it be to do with a conflict?

Well... it looks like your forum is calling jquery twice... you may try to delete one of the calls, or update the first one (and delete the last one)

And... do not use links inside the text string to show, all the text shown will be a link the registration page

And... try not using quotes " on the text string... ("Introduce Yourself Here")... or try using \"Introduce Yourself Here\"

And... maybe you have a jquery conflict with libraries used on your theme... but its odd, because IMIYF uses the jQuery.noConflict(); way to do it...
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 20, 2013, 03:39:33 PM
Right ok, I take it that it is the way the theme is written, how would I go about editing it to try to get it to work?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 20, 2013, 03:47:03 PM
First, try with a TEST text string, just TEST... it works?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 20, 2013, 04:01:17 PM
To be honest I wouldnt know where to begin :-\
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 20, 2013, 04:36:43 PM
Quote from: DomesticCricketForum on May 20, 2013, 04:01:17 PM
To be honest I wouldnt know where to begin :-\

In the mod configuration... the place where you add the text string... just put TEST, without quotes, etc... just a simple text
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 21, 2013, 03:25:32 AM
Right that worked so I will have a play around and see what causes it to stop working

Edit- Is there a way to turn the background black and the text white? As at the moment it doesnt really stand out due to the colour scheme of my forum
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 21, 2013, 06:18:41 AM
Quote from: DomesticCricketForum on May 21, 2013, 03:25:32 AM
Right that worked so I will have a play around and see what causes it to stop working

Edit- Is there a way to turn the background black and the text white? As at the moment it doesnt really stand out due to the colour scheme of my forum

Great!

On jquery.jgrowl.css change the color setting on

div.jGrowl {
padding: 10px;
z-index: 9999;
color: #000;
font-size: 12px;
}


and background-color on

div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
background-color: #fff !important;
opacity: .85;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
zoom: 1;
width: 235px;
padding: 10px;
margin-top: 5px;
margin-bottom: 5px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 1em;
text-align: left;
display: none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 21, 2013, 08:40:52 AM
Quote from: luuuciano on May 21, 2013, 06:18:41 AM
Quote from: DomesticCricketForum on May 21, 2013, 03:25:32 AM
Right that worked so I will have a play around and see what causes it to stop working

Edit- Is there a way to turn the background black and the text white? As at the moment it doesnt really stand out due to the colour scheme of my forum

Great!

On jquery.jgrowl.css change the color setting on

div.jGrowl {
padding: 10px;
z-index: 9999;
color: #000;
font-size: 12px;
}


and background-color on

div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
background-color: #fff !important;
opacity: .85;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
zoom: 1;
width: 235px;
padding: 10px;
margin-top: 5px;
margin-bottom: 5px;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 1em;
text-align: left;
display: none;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}


Again  being an absolute novice, I've looked all over for this but I cant see it. Ive looked all over the modify theme section but cant find the bit you are talking about.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on May 21, 2013, 08:50:12 AM
It is a file located on /Themes/default/css/jquery.jgrowl.css
You will have to download, edit, upload using a FTP application... or use any online file edit something your host may provide

And you may check this too http://www.w3schools.com/cssref/css_colors.asp
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: ViewFromTheBoundary on May 21, 2013, 09:18:36 AM
No wonder I couldnt find it where I was looking then! ;D

Edit: Is it possible to get it in the middle on the right, rather than the bottom?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Skylined on September 14, 2013, 10:31:07 PM
Thank you for this great mod! :)



I've tried this, but the box won't appear after the line is replaced with what you've said. :(


Quote from: luuuciano on March 31, 2012, 07:28:36 PM
Download your load.php and search for

  $.jGrowl("<a href=\'' . $scripturl . '?action=register\'>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>", { life: '.(empty( $modSettings['imiyf_life']) ? 10000 : $modSettings['imiyf_life']).', sticky: '.$modSettings['imiyfsticky'].' });

and change it to


  $.jGrowl("<a href=\'' . $scripturl . '?action=register\'>' . $modSettings['imiyf_txt'] . '</a>", { life: '.(empty( $modSettings['imiyf_life']) ? 10000 : $modSettings['imiyf_life']).', sticky: '.$modSettings['imiyfsticky'].' });

(erasing JavaScriptEscape( .... ) )
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on September 14, 2013, 11:03:00 PM
Skylined, nice to know you found it useful.

Can you add an url? so we can see what is wrong (or try, at least)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Skylined on September 15, 2013, 10:43:25 AM
Sure

http://www.mtb.com.uy/foro/
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on September 15, 2013, 01:18:10 PM
En el string de texto tenés un salto de línea luego de "comunidad,"?
No se me ocurre qué otra cosa puede ser... probá ponerlo todo en 1 línea y fijate si anda
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Skylined on September 15, 2013, 05:55:03 PM
You might want to write what you told me in english, just in case someone else has this same problem.

Yeap, that was it, it's working now, thank you very much. :)


Just one more question, is there a way to insert a line break?
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Biology Forums on September 15, 2013, 06:01:12 PM
Idea: It should has a cookie that remembers when the close button was activated, that way it doesn't appear on every page load.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on September 15, 2013, 06:21:29 PM
Quote from: Skylined on September 15, 2013, 05:55:03 PM
You might want to write what you told me in english, just in case someone else has this same problem.

Yeap, that was it, it's working now, thank you very much. :)

Just one more question, is there a way to insert a line break?

Try using \n where you need the line break

Quote from: Liam_michael on September 15, 2013, 06:01:12 PM
Idea: It should has a cookie that remembers when the close button was activated, that way it doesn't appear on every page load.

Nice feature, but sadly I have no time for improvements... anyway, If someone wants to takeover the mod, just ask
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: Skylined on September 19, 2013, 08:27:58 PM
I've tried the \n but it doesn't work.
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on September 20, 2013, 11:23:04 AM
Here you have a few hints http://stackoverflow.com/questions/4768118/how-to-break-line-in-javascript
Do not forget to tell us if any of them worked :)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: radu81 on December 20, 2013, 05:04:28 AM
thank you for this mod!
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on December 20, 2013, 10:58:23 AM
Your welcome radu81!
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: cykes on December 27, 2015, 11:05:08 AM
Works fine on SMF 2.0.11 with a custom theme and in Portuguese!

Thanks! ;)
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: luuuciano on December 28, 2015, 11:09:46 AM
That is great cykes! good to know
Title: Re: Invitation Message In Your Face [IMIYF]
Post by: SnappaGuy on February 17, 2019, 08:14:37 AM
Hello Luuuciano,

Sorry, I'm a few years late, but reading this thread you suggested at one point, you would be interested in someone taking over this mod from you.

Is that still the case, as I have some interest in doing so and updating it to accommodate current versions of SMF.

Regards ... SnappaGuy.

Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on February 27, 2019, 09:27:39 PM
Howdy Everyone,


Firstly, thanks to luuuciano for allowing me to take over this kewl mod, without him, we would not be here.  :)

Secondly, a new version (0.4.0) is available from the downloads area which its believed, addresses those shortcomings users made reference to in the comments here.

I am talking about things that could be construed as problems faced by its users and less about additional features requested, although I am considering addressing some of those requests going forward.

Changes in this version include some cosmetic changes, updating the jQuery/jGrowl libraries, removing single quotes from output text, adding cookie session support, removing support for languages other than English, offering the download in .zip format and adding SMF version checking.

Please feel free to check out the demos, whose links are found on the mods page and leave any bug reports, suggestions and feedback here if you feel inclined.


Regards ... The IMIYF Team.


Title: Re: Invitation Message In Your Face - IMIYF
Post by: TurtleKicker on February 28, 2019, 01:50:59 PM
Thanks for this useful mod. I must be missing something, however. What exactly does "sticky" mode do? I tried toggling it on and off but didn't see any change in behavior.
Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on February 28, 2019, 07:51:40 PM
Quote from: TurtleKicker on February 28, 2019, 01:50:59 PM
Thanks for this useful mod. I must be missing something, however. What exactly does "sticky" mode do? I tried toggling it on and off but didn't see any change in behavior.

Thanks for the thanks and your trying the mod.


Having 'sticky' mode toggled off, will cause the window to auto close after the time nominated in your settings expires.
Having 'sticky' mode toggled on, will cause the window to remain open until it is manually closed by that person viewing it.


Hoping this explanation goes some way to answering your question.
Title: Re: Invitation Message In Your Face - IMIYF
Post by: luuuciano on February 28, 2019, 08:06:31 PM
Quote from: The IMIYF Team on February 27, 2019, 09:27:39 PM
Howdy Everyone,
Firstly, thanks to luuuciano for allowing me to take over this kewl mod, without him, we would not be here.  :)
Secondly, a new version (0.4.0) is available from the downloads area which its believed, addresses those shortcomings users made reference to in the comments here.

Great news! thanks a lot for continue updating the mod!

Quote from: The IMIYF Team on February 28, 2019, 07:51:40 PM
Having 'sticky' mode toggled on, will cause the window to auto close after the time nominated in your settings expires.
Having 'sticky' mode toggled off, will cause the window to remain open until it is manually closed by that person viewing it.

I think it should be the opposite? sticky mode ON to remain there for ever (until someone closes it)... that is "sticky"... I mean, the word...
Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on February 28, 2019, 08:31:48 PM
Quote from: luuuciano on February 28, 2019, 08:06:31 PM
Quote from: The IMIYF Team on February 27, 2019, 09:27:39 PM
Howdy Everyone,
Firstly, thanks to luuuciano for allowing me to take over this kewl mod, without him, we would not be here.  :)
Secondly, a new version (0.4.0) is available from the downloads area which its believed, addresses those shortcomings users made reference to in the comments here.

Great news! thanks a lot for continue updating the mod!

Quote from: The IMIYF Team on February 28, 2019, 07:51:40 PM
Having 'sticky' mode toggled on, will cause the window to auto close after the time nominated in your settings expires.
Having 'sticky' mode toggled off, will cause the window to remain open until it is manually closed by that person viewing it.

I think it should be the opposite? sticky mode ON to remain there for ever (until someone closes it)... that is "sticky"... I mean, the word...

Our bad luuuciano, your quite correct and I have edited the earlier post, sorry for any confusion.  :)
Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on February 28, 2019, 11:01:27 PM
Well its taken almost eight years but IMIYF has just clocked over it's 3000th download.

Thank you to all those people who acquired a copy, here's hoping the next 1000 go by in the next eight MONTHS!  :laugh:
Title: Re: Invitation Message In Your Face - IMIYF
Post by: gman123 on March 28, 2019, 04:48:36 PM
Fatal error: Can't use function return value in write context in /home3/site/public_html/WEBSITE/Sources/Load.php on line 1877
2.0.15 or w/e. Appears to break on install.
Title: Re: Invitation Message In Your Face - IMIYF
Post by: Arantor on March 28, 2019, 04:56:21 PM
What version of PHP?
Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on March 29, 2019, 03:57:27 AM
Quote from: gman123 on March 28, 2019, 04:48:36 PM
Fatal error: Can't use function return value in write context in /home3/site/public_html/WEBSITE/Sources/Load.php on line 1877
2.0.15 or w/e. Appears to break on install.

As per Arantor, what version of PHP please?
Title: Re: Invitation Message In Your Face - IMIYF
Post by: Biology Forums on March 29, 2019, 09:48:45 AM
What this needs is a cookie to remember when the end-user exits the message.
Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on March 29, 2019, 10:25:01 PM
Quote from: SnappaGuy on March 29, 2019, 03:57:27 AM
Quote from: gman123 on March 28, 2019, 04:48:36 PM
Fatal error: Can't use function return value in write context in /home3/site/public_html/WEBSITE/Sources/Load.php on line 1877
2.0.15 or w/e. Appears to break on install.

As per Arantor, what version of PHP please?

Also which theme are you using?
Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on March 29, 2019, 10:39:11 PM
Quote from: Study Force on March 29, 2019, 09:48:45 AM
What this needs is a cookie to remember when the end-user exits the message.


Is this comment as a result of any recent experience with the mod, please elaborate on what your meaning?

From version 0.4.0 onwards, a cookie is set whereby the popup appears only once (*) per browser session, do you mean something else?

* A small caveat, is that with sound notification enabled and using those browsers now prohibiting autoplay in some form, you may see the popup twice, after which it's done with for that browser session.

It gets in your face a little but no longer leaves you with a bloody nose. :)
Title: Re: Invitation Message In Your Face - IMIYF
Post by: TurtleKicker on April 11, 2019, 01:31:14 PM
Has anyone tried this on SMF 2.1 RC2?
Title: Re: Invitation Message In Your Face - IMIYF
Post by: SnappaGuy on April 12, 2019, 04:39:46 AM
Quote from: TurtleKicker on April 11, 2019, 01:31:14 PM
Has anyone tried this on SMF 2.1 RC2?

There is now a demo (check the mod page) using IMIYF-0.4.1 and SMF 2.1 RC2, installs and works as expected ... cheers.
Title: Re: Invitation Message In Your Face - IMIYF
Post by: -Rock Lee- on April 12, 2019, 09:28:40 AM
I thought that I had left the translation to Latin Spanish :P but I leave the files for branch 2.0 and 2.1 anything send me a message :).


Regards!
Title: Re: Invitation Message In Your Face - IMIYF
Post by: TurtleKicker on April 13, 2022, 09:11:14 PM
Is an update for SMF 2.1.1 on the radar?