SMF Ads Support Forum
June 19, 2013, 08:13:10 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Version 2.3 has been released. Visit http://mods.simplemachines.org to get the most up to date version.
 
   Home   Help Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Galaxy Theme  (Read 3193 times)
0 Members and 1 Guest are viewing this topic.
Soulgirl
Newbie
*
Offline Offline

Posts: 8


« on: November 20, 2008, 01:04:11 pm »

Hi there Shocked)

I've installed your mod successfully except for the index.template.php file.

Can someone help with the positioning of the required code?  I've attached my file Smiley

Thank you so much Smiley

Karen x
Logged
Soulgirl
Newbie
*
Offline Offline

Posts: 8


« Reply #1 on: November 20, 2008, 05:29:41 pm »

I've tried to follow the instructions in the sticky but sadly I'm not able to add the code without getting parse errors all the time Sad

I can get all the code in except for the bit after template_menu(); as I don't have that and no matter what I try or where I place the code, it just doesn't work Sad

Can someone help me?
« Last Edit: November 21, 2008, 11:10:41 am by Soulgirl » Logged
ccbtimewiz
Sr. Member
****
Offline Offline

Posts: 326



WWW
« Reply #2 on: November 22, 2008, 12:13:26 am »

Post the code you're having trouble with.
Logged
Soulgirl
Newbie
*
Offline Offline

Posts: 8


« Reply #3 on: November 22, 2008, 05:10:00 am »

Thanks for replying, much appreciated.  I can't see where to put this bit of code:

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

//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);
}

When finding template_menu();  in my index.template.php file (which is attached to my first post) I can't insert the code after it without breaking it.

I'm also not sure if I got the bit of code after the </td> in the right place either so I've attached my file with the bits of code I've popped in already that haven't broken the code although I am ending up with a misplaced column advert at the bottom of the page that shouldn't be there.... they should be at the side.
Logged
ccbtimewiz
Sr. Member
****
Offline Offline

Posts: 326



WWW
« Reply #4 on: November 22, 2008, 10:36:25 am »

Find:
Code:
  <div id="toolbar">

',template_menu(),'

  </div>

Replace with:

Code:
  <div id="toolbar">';

template_menu();

// the ad code

echo '

  </div>
Logged
Soulgirl
Newbie
*
Offline Offline

Posts: 8


« Reply #5 on: November 27, 2008, 11:13:14 am »

YOU are a GOD!  Thank you so very much... really appreciate that!  Do you have anyone you would like me to make a donation to?
Logged
ccbtimewiz
Sr. Member
****
Offline Offline

Posts: 326



WWW
« Reply #6 on: November 29, 2008, 09:21:13 am »

There's a donate button at the top for the ad project.
Logged
Soulgirl
Newbie
*
Offline Offline

Posts: 8


« Reply #7 on: November 29, 2008, 11:17:55 am »

I ran into problems... probably with the placement of the other bits of code... my members complained that the font was so small it was unreadable... I give up LOL
Logged
ccbtimewiz
Sr. Member
****
Offline Offline

Posts: 326



WWW
« Reply #8 on: November 29, 2008, 11:19:23 am »

Link to site?
Logged
Soulgirl
Newbie
*
Offline Offline

Posts: 8


« Reply #9 on: November 30, 2008, 04:41:34 am »

It's www.southernsoul.info/smf but I've replaced the index.template.php file for the original one now.
Logged
SMF Ads Support Forum
   

.
 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFAds.com is not affiliated with nor endorsed by Simple Machines.