After successful UNZIP of the file AutoOnPageLoadPopup_UNZIP you will find the module zip file and the ReadMe.txt file inside the folder.
- For Joomla 3.x install : mod_onpageload_popup3..x_vX.x.zip
Go to Extensions > Extension Manager and click on the Upload Package File Tab.
Click on browse to choose the correct installation file and click on "Upload and Install"
After installation go to Extensions > Module Manager and open Auto Onpageload Popup. You will find the following options in the first tab.
- Change the "Title of the module if you want.
- Set show title to Hide
- Select an existing template position
- Choose the Status to Published
Which position should you activate the Auto OnpageLoad Popup?
You can activate the extension in any of the existing positions of your template. It is recommended to activate the module in "debug" position if available.
- OnPage Load :The popup will open automatically when page is loaded.
- OnPage Scroll : The popup will open when the page is scrolled. The Scroll Amount can be defined in the Advanced Settings of the module parameters. It will open once when the page is scrolled down.
- OnPage Exit : It used Exit Page intent technology. When user tries to move the cursor towards the close button of the browser the popup will open automatically.
- OnScroll to Bottom : When user completely scrolls down to the bottom of the page the popup will open once.
- OnClick : The popup will open on clicking the link or image. You can set the link or image for the popup and publish it in a module position. Set Popup Link Parameters to Show.
- Popup Link : You can show or hide the popup link which appears in the module position. The popup can only be linked to a text or image inside a module or article using loadposition. It can't be linked to a Menu item or other module.
- OnClick Element/Link : The onclick element can be an image or any HTML text. You can add your own HTML and stylize it by adding css to the extra CSS parameters in the advanced settings.
- OnClick Text : You can add simple text or add any HTML with class, id and different attributes.
- Select an Image : Option to select an image from the media gallery and link it to the popup.
- Test Mode : If the test mode is set to ON cookies/session doesn't get stored in the browser. Once you have completed all the settings you can set it to OFF. The feature is provided to complete all the settings properly before the cookie or session is set for the browser and you don't have to clear your browser cookie to complete the correct settings again and again. If you want the popup to open again and again for every single visit then you can set it to ON, the cookie or session won't get stored.
- Auto Popup Open Timer: Using this feauture you can delay the popup to open on the page after few seconds. Suppose you want it popup to open after 10 seconds then set the Popup opens automatically after parameter to 10000 (10 second = 10000 ms). If you want the popup to open immediately then select Default instead of Assign Value
- Auto Close Timer: After the popup has been opened if you want to close the popup automatically after say 5 seconds then you can set choose Enable and set the Popup Automatically closes after parameter to 5000 (5 seconds = 5000ms) .If you don't want to close the popup automatically then set it to Disable
- Height of Popup Box : Set the height of popup box in pixels. For example if you want to set the height as 500px, then mention 500. The extension is responsive, if you don't have contents which will need 500px height, then it will automatically resize to smaller.
- Width of Popup Box : Set the width of the popup box in pixels. This will be the maximum width of the popup. It will automatically resize according to screen size. Set 800 if you want maximum width of the popup box as 800px.
- Use : You can either Use Cookie or session mode depending upon your requirements. If your use mode as session then the popup will show again when you restart the browser but if you set as Cookie it will show after the minutes/hours/days mentioned in the "Cookie Expired Time". This will work only when the test mode is set to OFF.
- Hide Popup Link : You can hide the popup link once the cookie/ session is set. If you don't wish to hide it then the link will be inactive.
- Cookie Expire : You can only see this option when you set Use to Cookie in the module parameters. You can set this to Minutes, Hour or Day depending upon your requirements.
- Cookie Expire Time : This accepts numeric value for example you want cookie to expire in 15 mins, so you can just set 15 in this field. For 30 days you can set 30 and similarly for 2 hours you can set it to 2.
- Set Cookie or Session On : Cookie/Session can be set either on clicking the close(X) button (On Closing Button) or just on a single page load (On page Load)without client interaction.
- Close Button : You can set the close button to ON or OFF depending on your requirements. Close button is generally set to OFF if you want to force the user to check our the popup contents for a while and close the popup automatically using Auto Close Timer
Inside the popup you can add :
- HTML or Plain Text - For HTML or plain text you can use both the methods. HTML or Text Input or Joomla Articles.
- Image - For image you can use the following HTML text <img src="/YOUR_Path"/> and add it into the HTML or Text Input (Message Above or Message Below) or directly insert the image into an article and select and article in the module parameters.
- Module : To add another module inside the popup you have to mention the Module ID inside the module parameters. The module which has to be shown in the popup may or may not be set to published to any module position.
- Iframe : To add iframe inside refer : http://www.w3schools.com/tags/tag_iframe.asp
- Message Input Method : You can use HTML or Text Input or Joomla Articles.
- Module ID : Enter the module ID of another module which you would like to show inside the popup.
- Media URL : When a media URL is entered parameters like Message Above, Module ID and Message Below will not work.
The Media URL field supports the following :
- Google maps
- Background Color : Select the background color of the popup using the color picker. If you don't want any background color then set Background Color Opacity to 0.
- Background Color Opacity : The opacity ranges from 0 to 1. 1 is opaque and 0 is transparent.
- Background Pattern Style : Choose a pattern from a list of 10 predefined pattern styles. Set to none if you don't want any background patterns.
- Popup Background Color: Option to choose the background color of the popup using color picker.
- Popup Text Color: Choose the color of the text inside the popup.
- Close button Style: Choose close button style from the list of 10 predefined styles.
- Include JQuery Files : Incase of any jQuery related issues it is recommended to load the JS in body instead of head.
- Popup Content Padding : Padding around the popup content box.
- Popup Margin Padding : Margin around the popup content box.
- Trigger Scroll Amount : Add the height after which the popup will open upon scrolling the webpage.
- Disable for Mobile Devices : Set to Yes if you want to set the popup disabled for mobile devices
- Disable after Login : Set to Yes if you want to disable the popup after Joomla login. This feature can be used to popup joomla login module and the close upon successful login.
- Scroll Webpage : Set to Yes if you want the webpage to scroll when the popup is open.
- Overlay Close : Set to disable if you want to stop the popup to close on clicking on the overlay.
- Add Extra CSS : You can add extra css directly by adding into this field.
How to change or remove padding and margin around the popup?
Go to Advanced settings tab in the module parameters and change Popup Content Padding and Popup Content Margin. Set it to 0 if you dont want padding or margin around the popup.
How to add own button style and background?
If you want to add your own button image and background then you have to replace one of the images with your images at modules/mod_onpageload_popup/tmpl/images/. Suppose you replaced the file close_button_1.png with your image then in the module parameter choose button style to Style 1 so that you can see the image you replaced. Same is for background patterns.
How to get the module ID of a module ?
Go to Extensions > Module Manager parameters. You can find the list of modules that has been setup. On the extreme right you can find the ID of the modules.
How to add a close button inside the popup?
<a href="#" class="closePopup">Close Button Text</a>
How to disable popup for mobile devices?
To disable the popup for mobile devices go to Advanced tab and set Disable for mobile devices to "Yes"
- If the popup doesn't load then in the Advanced tabs first try to set the Include Js file to Body instead of head and see if it starts working.
- Check properly that you have activated the module in an existing template position.
- If you are using firefox or google chrome the right click on your webpage and click on view page source. In the source code see if file like jquery.ifancybox.js and jquery.ifancybox.css are loading. If the files aren't loading then it will make sure that module isn't activated on the page.
- If the joomla cache is activated try to clear it once after you make the changes to the module parameter settings.