MyBB Community Forums

Full Version: Mods work on Default board but not my skin?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok i've been pulling my hair out for hours today and i could just cry at the moment! .


I've been trying to get a couple of mods to work like the overview mod and the SpiceFuse Shoutbox mod.

Couldn't get either to work at all so i switch to default board the one that comes with the board when you instal it and bingo there both there? But there not there on my Simple Red skin.

I though i'd switch all the code from my default board in index and in headerinclude of my simple red in the hope it would work but it doesn't.

Quote:**index** Simple red


<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<sf_shoutbox>
{$wm}
{$forums}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"

class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif"

id="boardstats_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$online_today}
{$birthdays}
{$forumstats}
</tbody>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"

class="tborder">
<tr>
<td class="trow1">
<table width="100%">
<tr>
<td>
<img src="{$theme['imgdir']}/on.gif"

alt="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /> <span

class="smalltext">{$lang->new_posts}</span><br />
<img src="{$theme['imgdir']}/off.gif"

alt="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /> <span

class="smalltext">{$lang->no_new_posts}</span><br />
<img src="{$theme['imgdir']}/offlock.gif"

alt="{$lang->forum_locked}" style="vertical-align: middle;" /> <span

class="smalltext">{$lang->forum_locked}</span>
</td>
<td style="vertical-align: top; text-align:

right;"><span class="smalltext">{$logoutlink}<a

href="misc.php?action=markread">{$lang->markread}</a> | <a

href="showteam.php">{$lang->forumteam}</a> | <a href="stats.php">{$lang->forumstats}</a></span>
{$loginform}
</td>
</tr>
</table>
</td>
</tr>
</table>
{$footer}
</body>
**index**


<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<sf_shoutbox>
{$wm}
{$forums}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"

class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif"

id="boardstats_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$online_today}
{$birthdays}
{$forumstats}
</tbody>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}"

class="tborder">
<tr>
<td class="trow1">
<table width="100%">
<tr>
<td>
<img src="{$theme['imgdir']}/on.gif"

alt="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /> <span

class="smalltext">{$lang->new_posts}</span><br />
<img src="{$theme['imgdir']}/off.gif"

alt="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /> <span

class="smalltext">{$lang->no_new_posts}</span><br />
<img src="{$theme['imgdir']}/offlock.gif"

alt="{$lang->forum_locked}" style="vertical-align: middle;" /> <span

class="smalltext">{$lang->forum_locked}</span>
</td>
<td style="vertical-align: top; text-align:

right;"><span class="smalltext">{$logoutlink}<a

href="misc.php?action=markread">{$lang->markread}</a> | <a

href="showteam.php">{$lang->forumteam}</a> | <a href="stats.php">{$lang->forumstats}</a></span>
{$loginform}
</td>
</tr>
</table>
</td>
</tr>
</table>
{$footer}
</body>
</html>


-------------------------------------------------------------------------------



headerinclude Simple red




<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)"

href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)"

href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<script type="text/javascript"

src="{$mybb->settings['bburl']}/jscripts/prototype.lite.js?ver=121"></script>
<script type="text/javascript"

src="{$mybb->settings['bburl']}/jscripts/moo.ajax.js?ver=121"></script>
<script type="text/javascript"

src="{$mybb->settings['bburl']}/jscripts/general.js?ver=121"></script>
<script type="text/javascript"

src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=121"></script>
<link rel="stylesheet" type="text/css" href="{$theme['css_url']}" />
<script language="Javascript" type="text/javascript">
<!--
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var newpm_prompt = "{$lang->newpm_prompt}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
// -->
</script>
{$newpmmsg}
<script type="text/javascript" src="jscripts/shoutbox.js?ver=121"></script>


Code from default board

Quote:headerinclude

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.lite.js?ver=121"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/moo.ajax.js?ver=121"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=121"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=121"></script>
<link rel="stylesheet" type="text/css" href="{$theme['css_url']}" />
<script language="Javascript" type="text/javascript">
<!--
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var newpm_prompt = "{$lang->newpm_prompt}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
// -->
</script>
{$newpmmsg}
<script type="text/javascript" src="jscripts/shoutbox.js?ver=121"></script>


------------------------------

Index

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<sf_shoutbox>
{$wm}
{$forums}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$online_today}
{$birthdays}
{$forumstats}
</tbody>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table width="100%">
<tr>
<td>
<img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /> <span class="smalltext">{$lang->new_posts}</span><br />
<img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /> <span class="smalltext">{$lang->no_new_posts}</span><br />
<img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" style="vertical-align: middle;" /> <span class="smalltext">{$lang->forum_locked}</span>
</td>
<td style="vertical-align: top; text-align: right;"><span class="smalltext">{$logoutlink}<a href="misc.php?action=markread">{$lang->markread}</a> | <a href="showteam.php">{$lang->forumteam}</a> | <a href="stats.php">{$lang->forumstats}</a></span>
{$loginform}
</td>
</tr>
</table>
</td>
</tr>
</table>
{$footer}
</body>
</html>



Can anyone help me why this is happening i'm desperate now and just don't understand this Sad .

Thanks......
Plug-ins add code to the templates do display things. You need to find out what code you need to add. I would recommend contacting the mod creater and ask what variables you use to make there plug-in work.
i added the correct code in the right place thats my point on both of them one works the other don't?

4. Edit the template 'headerinclude' and at the end, add:

<script type="text/javascript" src="jscripts/shoutbox.js?ver=121"></script>
5. Here you have an option now, follow a if you want a shoutbox only on index page, or follow b if you want a global shoutbox.

5a. Edit the template 'index' (under "Index Page Templates" template group), find:

{$header}
add below:

<sf_shoutbox>

done it just like that on both default works simple red won't work it's something more than that must be ?


Thanks
Ok i think i've solved it


I added a new template for index & headerinclude in Global Templates and then copied the working default code into it seems to be working now.

Though i still don't understand why?