(2012-12-18, 04:48 PM)Kylin Wrote: Ah, that makes sense. Now I just gotta find which template file the issue is in.
templates > global templates > portalezgallery_image
Quote:As for the second issue, the current index template looks like this at the moment:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/shoutbox.js"></script>
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$indexezgallery}
{$forums}
<sf_shoutbox>
{$boardstats}
<br style="clear: both" />
{$footer}
</div>
</body>
</html>
Always nice to see a plugin not using the template system.. :/ makes peoples lives so much easier.
I have looked at the plugins code but i see no easy way to actually make that work.. in any way the variables from that plugin are echo'ed out directly and completely avoid the whole templates.
Maybe.. maybe this works:
$sbwelcome,$sbpms,$sbsearch,$sbstats,$sbwhosonline,$sblatestthreads,$gobutton,$lastvisit,$sbaddbox1,$sbaddbox2;
Those are the variables for the boxes you could try to grab the ones you wish from those like currently it is:
Quote:$sblatestthreads , $sbaddbox1, $sbsearch those three boxes (i think you use).
Maybe this would work no promises though replace index with:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/shoutbox.js"></script>
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
<table width="100%" border="0">
<tr>
<td width="180px" valign="top">
{$indexezgallery}
{$sblatestthreads}
{$sbaddbox1}
{$sbsearch}
</td>
<td width="auto" valign="top">
{$forums}
<sf_shoutbox>
{$boardstats}
</td>
</tr>
</table>
<br style="clear: both" />
{$footer}
</div>
</body>
</html>
If the above does not work (which i have a feeling it wont).
Then i think to do this.. you are almost forced to use a different sidebox plugin. Since the current one is not compatible in anyway and there is not very much that can be done to actually make it compatible.
The sidebox plugin should have been written more or less as a copy from the portal page. With variables etc in the templates instead of going all around the whole template system making any customization impossible.