Edit Header

Started by ericsson, August 01, 2005, 09:49:29 AM

Previous topic - Next topic

ericsson

Hi, how can I edit the header?

Ivan Minic

Edit index.template.php in /Themes/default/.
If you don't know how to work with this, be more specific about what you want to change

[Unknown]


ericsson

I wanted to put an adsense banner in the header.

ericsson

How can I put the banner in the header?
Thanks

kittykatt

I would like to know this as well please.
I have 1.1.7 version

xenovanis

Please use the searchoption. This has been discussed many times before.
"Insanity: doing the same thing over and over again and expecting different results."

ericsson

I searched but couldnt find it.

kittykatt

Why not make a forum with all "many" times subjects and just have links there so we dont have to seach and look for something that might not come up...


What do I search for when edit header not showing?
I have 1.1.7 version

xenovanis

add banner
change banner
adding banner
banner

add banners
change banners
adding banners
banners

adsense
ad-sense
google adsense
"Insanity: doing the same thing over and over again and expecting different results."


ericsson

I put my adsense code under:
// The main content should go here.  A table is used because IE 6 just can't handle a div.

and got this error:

Template Parse Error!
There was a problem loading the /Themes/amdgreenblue01/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

How can I fix it?
Thanks

[Unknown]

How exactly did you add it?

-[Unknown]

ericsson

Do you mean what program? Dreamweaver.

1MileCrash

just use a text editor. Dreamweaver has been known to "f'up" php files. I use Edit Plus 2.
The only thing php can't do is tell you how much milk is left in the fridge.



ericsson

I still get the same error.

[Unknown]

Quote from: ericsson on August 06, 2005, 11:41:14 AM
Do you mean what program? Dreamweaver.

That's not what I meant.  Since you are getting a parse error, it means that the file is no longer properly set up.  I would like to know precisely what lines you changed in the file (ideally with context a few lines above and below, unchanged) so I can see what change invalidated the entire file.

-[Unknown]


[Unknown]

What code did you add?

Can you just post 10 lines above and 10 lines below that line you quoted?

-[Unknown]

ericsson

// Show the menu here, according to the menu sub template.
template_menu();

echo '
</div>';

// The main content should go here.  A table is used because IE 6 just can't handle a div.
<script type="text/javascript"><!--
google_ad_client = "pub-9386726515131158";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_page_url = document.location;
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 30px 2ex 30px;">';

}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '</td>
</tr></table>';

// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
echo '

[Unknown]

You want:

// Show the menu here, according to the menu sub template.
template_menu();

echo '
</div>';

// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<script type="text/javascript"><!--
google_ad_client = "pub-9386726515131158";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_page_url = document.location;
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 30px 2ex 30px;">';

}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '</td>
</tr></table>';

// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
echo '


-[Unknown]

Britney Spears

Is there anyway I can change the banner in the admin panel?
Sorry, I'm not at liberty to answer certain questions.
Hope you can understand.

-Britney XOXO

1MileCrash

if you edit index.template.php through the admin panel...
The only thing php can't do is tell you how much milk is left in the fridge.



Advertisement: