SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: tigerhood23 on July 01, 2009, 09:15:59 AM

Title: Please post ad mod for kani theme
Post by: tigerhood23 on July 01, 2009, 09:15:59 AM
this theme is the most popular theme in simplemachines.org website. does any one can help me and post ad mod for this theme?
the theme download url is below:
http://custom.simplemachines.org/themes/index.php?lemma=1695 (http://custom.simplemachines.org/themes/index.php?lemma=1695)
Title: Re: Please post ad mod for kani theme
Post by: theurge on July 11, 2009, 09:11:58 PM
I agree - I also have the kani theme installed on my board as well and would greatly appreciate someone posting the mod for this theme!

Thanks.
Title: Re: Please post ad mod for kani theme
Post by: khaleed on July 23, 2009, 11:05:04 AM
me too...Is there anybody can help us here... :'(

When I try to follow jerm instruction to modify the index.template and other files  I've got error message said parse error



Title: Re: Please post ad mod for kani theme
Post by: khaleed on July 23, 2009, 08:44:50 PM
I was able to make my ad management mod working on my site but the problem is when I put ad in 'display ads after the last post' the ad do not appear there is some kind like a boxes that you have to scroll if you want to see the full ad..Is there any file that I have to edit or add new code? :-\

here the link to the page http://klia-community.com/forum/index.php?topic=2.msg9#new (http://klia-community.com/forum/index.php?topic=2.msg9#new)


p/s - For all kani theme user who want to make the ad management mod working just follow ccbtimewiz instruction on top of the post if there an parse error that's mean either you forgot to put the ; or the echo  ' code. Read and try to make it to your specific template..

cheers...
Title: Re: Please post ad mod for kani theme
Post by: khaleed on July 24, 2009, 03:05:55 AM
I try to follow one of your advice by paste one of your instruction to replace </td> in index.template.php but I just cant find it. I attached half of the code that contain the </td> code here so maybe you can help me to solve this problem. :o

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '', $newstrip = false)
{
global $settings, $buttons, $context, $txt, $scripturl;

if($newstrip)
echo '<table cellpadding="0" cellspacing="0"><tr>';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="maintab_back">', implode('</td><td class="maintab_back">', $button_strip) , '</td>';

if($newstrip)
echo '</tr></table>';
}


?>


thanks
Title: Re: Please post ad mod for kani theme
Post by: hoodoola on August 07, 2009, 10:38:02 PM
It doesn't work, it just shows error!!
could anybody upload the edited files to here, so everybody could use it. 
Thank you very much
Title: Re: Please post ad mod for kani theme
Post by: pmf41 on August 08, 2009, 03:04:09 AM
most themes dont have the </td> just skip it but you cant put ads in the welcome user box
Title: Re: Please post ad mod for kani theme
Post by: pmf41 on August 08, 2009, 03:40:41 AM
sorry i tried to edit the theme but had no luck it works but ads dont show up