Customizing SMF > Modifications and Packages
SimplePortal - 2.3.5 Released!
NBK*Twitch:
--- Quote from: AngelinaBelle on May 22, 2012, 01:24:07 PM ---nbktwitch, can you let me see, from your theme, in index.template.php, the contents of the following functions:
* function template_body_below()
* function template_html_below()
Thanks
--- End quote ---
html above =
--- Code: ---function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<><>
';
global $modSettings;
if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);
(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';
echo '</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;
// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;
echo '
<div class="navigate_section">
<ul>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';
echo '
</li>';
}
echo '
</ul>
<>';
$shown_linktree = true;
}
--- End code ---
body below
--- Code: ---
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<>
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
// Show the load time?
if ($context['show_load_time'])
echo '
<br />', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'];
echo '
<>';
}
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<><>
';
global $modSettings;
if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);
(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';
echo '</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;
// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;
echo '
<div class="navigate_section">
<ul>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';
echo '
</li>';
}
echo '
</ul>
<>';
$shown_linktree = true;
}
--- End code ---
AngelinaBelle:
Here's your problem.
The line
--- Code: ---<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
--- End code ---
My advice is to change this -- this change will probably fix your problem.
--- Code: ---<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
--- End code ---
or else remove the Simple Portal credit line from your them altogether -- this probably won't fix your problem until you fix something else. Please see below
--- Code: ---<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
--- End code ---
But, given what you have in that theme and what shows on your forum, I would have expected the Simple Portal credit line to be seen 3 times, not 2 times Twice on the line with "Simple Machines". Please look at Subs-Portal.php. What Software Version: of Simple Portal appears at the top of the file?
Edit: Corrected myself.
AngelinaBelle:
This really depends on your theme. Can you provide a link to your site?
NBK*Twitch:
--- Quote from: AngelinaBelle on May 23, 2012, 12:49:49 AM ---Here's your problem.
The line
--- Code: ---<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
--- End code ---
My advice is to change this -- this change will probably fix your problem.
--- Code: ---<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
--- End code ---
or else remove the Simple Portal credit line from your them altogether -- this probably won't fix your problem until you fix something else. Please see below
--- Code: ---<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
--- End code ---
But, given what you have in that theme and what shows on your forum, I would have expected the Simple Portal credit line to be seen 3 times, not 2 times. Please look at Subs-Portal.php. What Software Version: of Simple Portal appears at the top of the file?
--- End quote ---
SimplePortal 2.3.5
OFRD_GRL:
http://coloradohorseforum.com/forum/index.php
I have a shout-box setup as block in the header....
I have simple portal set to "integration"
But nothing is showing up :(
I don't want an individual portal page, as I have a webpage built custom for an index page.
Any tips are hugely appreciated.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version