Coinbase

Author Topic: Galaxy Theme  (Read 6756 times)

0 Members and 1 Guest are viewing this topic.

Offline Soulgirl

  • Newbie
  • *
  • Posts: 8
Galaxy Theme
« on: November 20, 2008, 01:04:11 pm »
Hi there :o)

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 :)

Thank you so much :)

Karen x

Offline Soulgirl

  • Newbie
  • *
  • Posts: 8
Re: Galaxy Theme
« 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 :(

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 :(

Can someone help me?
« Last Edit: November 21, 2008, 11:10:41 am by Soulgirl »

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Galaxy Theme
« Reply #2 on: November 22, 2008, 12:13:26 am »
Post the code you're having trouble with.

Offline Soulgirl

  • Newbie
  • *
  • Posts: 8
Re: Galaxy Theme
« 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: [Select]
//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.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Galaxy Theme
« Reply #4 on: November 22, 2008, 10:36:25 am »
Find:
Code: [Select]
  <div id="toolbar">

',template_menu(),'

  </div>

Replace with:

Code: [Select]
  <div id="toolbar">';

template_menu();

// the ad code

echo '

  </div>

Offline Soulgirl

  • Newbie
  • *
  • Posts: 8
Re: Galaxy Theme
« 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?

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Galaxy Theme
« Reply #6 on: November 29, 2008, 09:21:13 am »
There's a donate button at the top for the ad project.

Offline Soulgirl

  • Newbie
  • *
  • Posts: 8
Re: Galaxy Theme
« 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

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Galaxy Theme
« Reply #8 on: November 29, 2008, 11:19:23 am »
Link to site?

Offline Soulgirl

  • Newbie
  • *
  • Posts: 8
Re: Galaxy Theme
« 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.

SMF Ads Support Forum

Re: Galaxy Theme
« Reply #9 on: November 30, 2008, 04:41:34 am »
.

 

.