SMF Ads Support Forum

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

Title: Please post ad mod for kani theme
Post by: tigerhood23 on July 01, 2009, 08: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, 08: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, 10: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, 07: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, 02: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

Code: [Select]
// 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, 09: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, 02: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, 02:40:41 am
sorry i tried to edit the theme but had no luck it works but ads dont show up