2013-02-12, 09:13 AM
2013-02-12, 10:03 AM
Create your page using PageManager and call the page in popup this way:
<a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?page=mypage', 'myPopup', 500, 500);">Link to open popup</a>
<a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?page=mypage', 'myPopup', 500, 500);">Link to open popup</a>
2013-02-12, 04:44 PM
I still dont know where to add that codes.
Can you specify the path?
Can you specify the path?
2013-02-12, 11:51 PM
Like effone says, u need to use page manager and create with that plugin a own page and use the code inside your created page. The plugin u can find here: http://mods.mybb.com/view/page-manager
AndroiDer
AndroiDer
2013-02-14, 05:20 PM
will it create pop-up box at index page where i can use my own codes that will show in the pop-up box?
2013-02-14, 05:55 PM
If you use the code effone supplied and put it on the index then that will form a link to the "custom page".
Install and activate Page Manager. (Admin CP -> Configuration -> Plugins)
Now create your pop up page: Admin CP -> Configuration -> Page Manger -> Add New Page
<a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?page=myPopup', 'myPopup', 500, 500);">Link to open popup</a>
Install and activate Page Manager. (Admin CP -> Configuration -> Plugins)
Now create your pop up page: Admin CP -> Configuration -> Page Manger -> Add New Page
- Name: Choose your name for the page
- URI parameter:
Quote:myPopup
- Use MyBB Template?: Would be wise to disable it if you have a wide header and/or footer.
- Page content: This is where you will add your HTML
- Show in "Who is Online"?: I recommend setting this to no, as it is a popup.
Quote:No
- Page enabled?:
Quote:Yes