Recent Topics

Members
Stats
  • Total Posts: 10,761
  • Total Topics: 1,376
  • Online today: 29
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 40
Total: 40

help with adding a mod.

Started by Sispro, Jan 07, 11, 12:25:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sispro

i have your theme SMF Division and have been trying to add the ad mod here is what it is asking for and i can't seem to find it anywhere.

here is my  index

here is the parts that need to be added.

/Themes/default/index.template.php
Find: [Select]

', theme_copyright(), '

Replace With: [Select]

', theme_copyright(), '<br /><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a>


Find: [Select]

<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

Add After: [Select]


';
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '


Find: [Select]

template_menu();

Add After: [Select]


//Below the menu ads
if (function_exists("show_indexAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Find: [Select]

<div id="content_section"><div class="frame">
<div id="main_content_section">';

Add After: [Select]


if (function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}


Find: [Select]

echo '
</div>
</div></div>';

Add Before: [Select]


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

also how do i fix this i like to see the theme wider here is what it looks like.



[attachment deleted by admin]

willemjan

Please attach your index.template.php and your index.css. I'll have a look at it for you.

Crip

I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

willemjan

#3
There seem to be a few things missing. But I don't have my software at hand, so can't help you atm. If no-one has helped you by tomorrow, I'll get back at you. Because then I do have the software I need ;)

I still need index.css ;)

Maxx

#4
Just a FYI, as far as I know many are have problems with the Ad mods, and I wound think real hard and read up before adding any type mod to your form system. There are several other simpler mods, that will allow you to place ads, we have discussed this before here,

Allot of mods are not even ready for RC4 unless you  do some hard coding changes like you asking and this will be a contiguous problems for you in the future and or if you ever want to change/update themes.

although this not a mod support site, I have allot of experience with mods as others here do and, please read up before you jump into to this.

I would also let us or others know what it is you are trying to do exactly, so we can  try to save you some serious troubles or problems!

I don't mod any theme to fit a mod!

regards,
maxx

willemjan

I agree with you on that one. I tought that the package manager gave an error in index.template.php, and thats why he couldn't install it. So then it's just some adding of code in the right place.

Did you install it allready, or not?

Sispro

the only thing i use this mod for is to add my banner logo at the top of the site nothing else

if there is a way to add it with out the mod please let me know cause i'll take it out righ away.

also here is my index.css



[attachment deleted by admin]

Maxx

You can place ad banners in the New fader if they are not too large like 648X60 and try to keep them the same size, you can also place google ads there!

in your admin under News and News letters, you will need to add center code to them all!

Another way is visit the SMF site and pick up a small mode called Global headers and footer mod or something like that it's named. To place ads at the top and bottom center.

The other way is to use a portal system to ad them on the side and center panels!

Yes there are ways, but please read and learn some before doing it and always back up your stuff first! if not sure then give details and ask!

regards,
Maxx

Sispro

Quote from: Sispro on Jan 07, 11, 12:25:31 AM
i have your theme SMF Division and have been trying to add the ad mod here is what it is asking for and i can't seem to find it anywhere.

here is my  index

here is the parts that need to be added.

/Themes/default/index.template.php
Find: [Select]

', theme_copyright(), '

Replace With: [Select]

', theme_copyright(), '<br /><a href="http://www.smfads.com" target="_blank">SMFAds</a> for <a href="http://www.createaforum.com" title="Forum Hosting">Free Forums</a>


Find: [Select]

<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

Add After: [Select]


';
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '


Find: [Select]

template_menu();

Add After: [Select]


//Below the menu ads
if (function_exists("show_indexAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Find: [Select]

<div id="content_section"><div class="frame">
<div id="main_content_section">';

Add After: [Select]


if (function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}


Find: [Select]

echo '
</div>
</div></div>';

Add Before: [Select]


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

also how do i fix this i like to see the theme wider here is what it looks like.

okay then now what about the theme it self if you look at the theme home page that i have attch. here you have to look very closely but you can see where it says my bookmarks and so on. how do i fix that so all the words or links what ever you want to call them so they are at the top with the rest of them

Sispro

almost forgot how do i make this theme wider then what it is
kinda like to make it a full page theme is there any way of doing this.