Sorry for the (1year old thread) bump but i need a little help with this. I follow everything and everything is running as intended but i wish to make the button to open the shoutbox in a new POPUP instead of a full page. I think i just need to edit the following bit of code:
if ((!empty($_REQUEST['page']) ? $_REQUEST['page'] : false) != 'shoutbox1')
echo ' <a href="javascript:void(0);" onclick="return fullPage()" title="Full Page">',sp_embed_image('popup'),'</a>
<script type="text/javascript">function fullPage() {window.open("'.$scripturl.'?page=shoutbox1", "Shoutbox");return false;}</script>';
else
echo ' <a href="javascript:void(0);" onclick="window.close()" title="Exit Full Page">',sp_embed_image('popup'),'</a>';
to reflect that but after so many failed tries I decided to ask for help here. I like the way it is now i just want to change the onclick= function to open a new popup and (if possible) after the popup is open the button would bring people back to the site (instead of "Exit full page").
Another thing i noticed is that using the Simpleportal "Add Page" to build the shoutbox page it will show all the theme styles (header and ect) and I just want to show the shoutbox contents. For that I've tried to make a block instead of a page and it worked. On the block it only shows the shoutbox without any theme related styles, thing is I dunno how to open the block in a popup like I do with a page (i dunno the block hyperlink if there is one...).
Maybe some of you guys can take a couple of minutes to help me out.