TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 103
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 116
  • Total: 116

Adding a table to index.template

Started by sturmkatze, May 22, 2011, 03:02:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sturmkatze

Link to my site: http://www.reenactor.net/forums/index.php
SMF version: 1.1.13
TP version: 1.0 RC1
Default Forum Language: English
Theme name and version: primary theme: TP Meadows
Browser Name and Version: Firefox 4
Mods installed: Below at bottom of page

So, here we go... I have Rebel Rose's TPMeadows theme as my main theme. Works okay, as i can adjust the width in the admin. However, I used it for another time area (here) and it got all skinnied up and lo, I could not figure how to fix it. (Rose is way too busy w/ life to do web stuff now). Anyway, I just dumped a modified default index.template file there and it works fine, except... I need to have the box (w/ the google ads) below my banner that I have on the main pages using the tpmeadows theme: http://www.reenactor.net/forums/index.php. I gave up trying to mod the tpmeadows file, as it has the banner somewhere else and after a couple hours playing w/ firebug, I went to bed.

Before giving up in abject failure, I tried adding the code to the default like it was in the tpmeadows theme, even copying the echo comments (I thought) as this:

// denarii block
echo '<center>
<table width="950" height="91" cellspacing="0" cellpadding="0" border="0" bgcolor="#f8f4ed">
<tr>
<td><script type="text/javascript"><!--
google_ad_client = "ca-pub-2066079196933121";
/* WW2_upper_LB */
google_ad_slot = "9871766763";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>
</center>

        ;

Anyway, I attached that file as it just broke the page. Where, oh where did I go wrong? I thought I did good cut and paste. I guess it doesn't help I don't understand php really. :idiot2:

P.S. I want to kill the log-in. avatar, news, etc. box that resides there now. Aaaiheeeeeeeeeeeeeeeeeeeeeeeee!

Mods installed:
1.    Ad Managment    2.3
2.    Amazon ISBN & ASIN Mod    1.1 Want to rem, won't let me
3.    Auto Embed Video Clips    1.2
4.    SMF 1.0.16 / 1.1.8 Update    1.0
5.    Buy Me A Beer    1.1
6.    Custom Profile Field Mod    3.19
7.    Favicon    1.0    [ List Files ] [ Delete ]  Want to rem as it doesn't work, won't let me
8.    FontandSizeDropdown_1.2    1.2
9.    Global Announcements    1.0
10.    Global Headers Footers    1.3 Want to rem, won't let me
11.    Lots_o_Smileys    1.0
12.    Member Awards    1.0.2
13.    Member Color Link    2.0.0
14.    Moderator Activity Report for SMF1.1.2    1.2
15.    MySpace Field    2.4
16.    Redirection Boards    2.01
17.    Registered Images ENG    2
18.    Repeating Calendar Events v1.2.6    1.2.6
19.    SMF Gallery Pro Upgrade    1.4.2
20.    SMF Gallery Pro Upgrade    1.4.3
21.    SMF Staff Page    1.5.1
22.    SMF 1.1.2 Update Package    1.1.2
23.    SMF Gallery Pro    1.3.21
24.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0
25.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0
26.    SMF 1.0.14 / 1.1.6 Update    1.0
27.    SMF 1.0.15 / 1.1.7 Update    1.0
28.    SMF 1.0.11 / 1.1.3 Update    1.1
29.    Spam Me Not Mod    1.02
30.    TinyPortal    1.075
31.    Users Online Today Mod    1.4.0
32.    SMF Gallery Pro Upgrade    1.4.5
33.    Ultimate Profile    0.8.5  Want to change to v.9, but won't let me uninstal this one to do so >:-(
34.    Social Bookmarks    1.1
35.    Links    1.0
36.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0
37.    TinyPortal    1.083
38.    SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1
39.    FCKEditor4TP    1.0
40.    SMF 1.0.19 / 1.1.11 Update    1.0
41.    SMF 1.0.19 / 1.1.11 Update    1.0
42.    SMF 1.0.19 / 1.1.11 Update    1.0
43.    SMF 1.0.19 / 1.1.11 Update    1.0
44.    SMF 1.0.19 / 1.1.11 Update    1.0
45.    Ultimate Profile    0.9     [ List Files ] [ Delete ]
46.    SMF 1.0.19 / 1.1.11 Update    1.0
47.    TinyPortal    1.102
48.    SMF 1.0.19 / 1.1.11 Update    1.0
49.    SMF 1.0.20 / 1.1.12 Update    1.0
50.    SMF 1.0.21 / 1.1.13 Update    1.0
51.    PM On Registration    1.0

WillyP

Try adding just the html part to an html block.

<center>
<table width="950" height="91" cellspacing="0" cellpadding="0" border="0" bgcolor="#f8f4ed">
<tr>
<td><script type="text/javascript"><!--
google_ad_client = "ca-pub-2066079196933121";
/* WW2_upper_LB */
google_ad_slot = "9871766763";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>
</center>

sturmkatze

#2
I wanted it in the template, vs. as a block. Plus, I wish to DX the user area w/ the avatar, welcome text and news, etc. on all the time area (theme) pages. I DO want news on main page, etc, but that's all. I really need a new theme... just something easy to mod and that looks like what I kinda had before http://www.reenactor.net/index.htm I know, puking colour, but peoples seem to like it (well, not graphic artists, but reenactors do and that's all that's important, right!?)

sturmkatze

I forgot to add, that when _I_ try to do these things, it breaks the page, thus shaking my confidence to the core :-Þ

sturmkatze

Here, attached, is a screen shot of how the front page looks... I will do one of another page I wish to mod. Does this help? I prefer to just do it myself and you guys help me do that ;)

sturmkatze

And here is another screen shot, this time of a page I wish to mod. Mainly getting rid of the welcome box and (when logged in) user box (or whatever it is called).

sturmkatze


WillyP

I think these are all theme issues. Basically, you are asking for a custom theme. I won't have time time to look in depth at this until it rains.

WillyP

Ok, let's take one issue at a time. You want to add a script below your banner. Do I understand you have this script working somewhere on your site? If so, can you post a link to that page? And what page do you want it to show on?

sturmkatze

Really, I just want to add a table w/ the google script in it. Sure I have it on the site. All I want to do, is add a table like is on my main page at www.reenactor.net/forums/index.php see ad box right below the banner... I want to make something like this, that I can paste into the index template of all my themes. I have a lot of themes for each time area... it allows me to have diff keywords and such for each. It works for what I do... Anyway, I thought it would be easier than it appears. The theme I have n the main page, tpmeadows, is way more complicated. WAY.

This website is proudly hosted on Crocweb Cloud Website Hosting.