MyBB Community Forums

Full Version: Pop-Up in Index?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to create a pop-up where I can use my own HTML codes at my index page.
Is there any way how I can create that kind of pop-up box?
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>
I still dont know where to add that codes.
Can you specify the path?
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
will it create pop-up box at index page where i can use my own codes that will show in the pop-up box?
If you use the code effone supplied and put it on the index then that will form a link to the "custom 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