Coinbase

Author Topic: Please post ad mod for kani theme  (Read 5178 times)

0 Members and 1 Guest are viewing this topic.

Offline tigerhood23

  • Newbie
  • *
  • Posts: 1
Please post ad mod for kani theme
« 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

Offline theurge

  • Newbie
  • *
  • Posts: 1
    • Email
Re: Please post ad mod for kani theme
« Reply #1 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.

Offline khaleed

  • Newbie
  • *
  • Posts: 3
Re: Please post ad mod for kani theme
« Reply #2 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




Offline khaleed

  • Newbie
  • *
  • Posts: 3
Re: Please post ad mod for kani theme
« Reply #3 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


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...
« Last Edit: July 23, 2009, 07:53:33 pm by khaleed »

Offline khaleed

  • Newbie
  • *
  • Posts: 3
Re: Please post ad mod for kani theme
« Reply #4 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

Offline hoodoola

  • Newbie
  • *
  • Posts: 1
    • Email
Re: Please post ad mod for kani theme
« Reply #5 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

Offline pmf41

  • Jr. Member
  • **
  • Posts: 34
Re: Please post ad mod for kani theme
« Reply #6 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

Offline pmf41

  • Jr. Member
  • **
  • Posts: 34
Re: Please post ad mod for kani theme
« Reply #7 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
« Last Edit: August 08, 2009, 11:14:57 am by pmf41 »

SMF Ads Support Forum

Re: Please post ad mod for kani theme
« Reply #7 on: August 08, 2009, 02:40:41 am »
.