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 (http://www.reenactor.net/forums/index.php/page,17.html)) 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 (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
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>
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 (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!?)
I forgot to add, that when _I_ try to do these things, it breaks the page, thus shaking my confidence to the core :-Þ
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 ;)
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).
Nothin' huh?
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.
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?
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.
So what happens when you use the code in the code block I posted?
Quote from: WillyP on May 29, 2011, 01:23:54 PM
So what happens when you use the code in the code block I posted?
It puts it where I don't want the box -- I want it RIGHT under the banner, yet above the nav buttons. And I wish to rem the user stuff there. Hell, the thing is, this ad box WORKS where it was. Hell, I'd have not changed the theme except after the update to rc 1. the page was all "skinnied up" and i couldn't figure out how to fix that. Look at this site of mine: http://www.legioix.org (http://www.legioix.org) same kind of thing. Fussilet was going to fix the index.template but bam, he was gone and I never heard from him again. I wish I could program, but it makes my eyes glaze over and little puffs of smoke come out of my ears. :tickedoff:
I'll attach the index.template I used to use, that worked... :( After the update, it didn't. I am told this is because of how TP now uses themes, they don't need special TP coding or something. Can I take it out? What do I take out? Aaiiiiihhhheeeeeeeeeeeeeee :idiot2:
Special code edits for themes are no longer required for TinyPortal. If you have errors in your error log like those shown below then the theme still has some old code that targets TinyPortal 0.9 and would need to be removed in order for the theme to work correctly.
Quote
8: Undefined index: rightbar
8: Undefined index: centerbar
8: Undefined index: leftbar
Honestly Marsh, I know that you really, really like your old themes (can you say ancient?) but isn't it about time to admit that it might be time for you to look for some newer themes that are a little more modern, or at least themes that the author still supports, so that you can get some support for issues like this. And, if you are going to use TinyPortal, why not take advantage of it as WillyP suggested? If you really need to have this code in the header, why not look into a Mod that will let you add that kind of code there, like the Global Headers and Footers Mod. It seems that you already have it installed on your site though a newer version is available now. I don't understand why you "Want to rem, won't let me" as it would be perfect for this code and would keep you from having to ask for theme support every time you wanted to change every little thing in the theme's index.template.php.
We really don't have the time here to figure out how to make themes work that aren't even supported by their author's, even making them work for TP. We do well just to support TinyPortal most of the time without having to try to fix every little problem that every user has. The TP Team just does not have enough people to handle stuff like this. Give us a little break here Marsh.
ZarPrime
It's not that I like my old themes. They have to be ones I can work with. Each has to have the right keywords and banner for that time period. I am not wedded to TPmeadows. I would prefer to just mod the default theme as it is easier and quicker. Really. All I want to know is how to add the ad box container I have at the top of the page. Where they are in old theme; why? Well because those make MONEY. Really. Since this update, my google ad revenue has been cut in HALF. Bad me.
I came to TP because I could not make joomla work nor afford to pay someone to do it for me. That was what I tried first. Static pages take too much upkeep and my site is too big w/ too many links to manually do it. Thus my link mod. Have to have that.
Like I said, I just want to use modded default themes. Look different by changing the CSS. Yaaaay. I am not a coder. I am a web geek. I have a background in desktop publishing and am into layout and stuff. I think I have a successful website as it has two google #1's and pays for itself. How many can say that? I just need to get things to work.
Does this explain why I'm such a pain in the ass? :P A lot of stuff comes to a grinding halt until I can fix things. What do I know? Me stupid truck driver w/ slow old computer. :tickedoff: Going to Starbucks, then back to work on Roman manual. BTW, the theme on the Roman page I referenced, well, I will prob make a new one off of default, then start copying art and crap over to get it to work -- Can make some nice Roman looking buttons. I just liked what I had. And the damn thing works fine when logged-in.
Oh yeah, I get tons of errors, I have no idea what they mean. PAGES upon pages. I deleted the shout box due to that and they're still there. :-\
Come on Marsh. Did you even read my whole post above yours? The Global Headers and Footers Mod will let you do what you want to do with this Google Ad code --> http://custom.simplemachines.org/mods/index.php?mod=351
ZarPrime
I will look again, but seem to remember it didn't do like I wanted. Will look and try.
Alas, I tried it, and whilst it works, sort of, it puts the ads below the nav buttons and in between the right and left blocks. Is there a way for me to move this? I need the ad I am talking about in a specific place.
And HOW do I remove the user info area thing? Like in yonder screen capture I am attaching?
Yes, it is possible to move the ads. It is not as simple as saying open x file and add y code in location z, though. You will probably have to do some trial and error to get it just right, I know I would. Make a back-up of the file, first, and you can always go back to what you had.
Same with the user info area, open the file and take a guess as to what needs to be removed. If you get it removed, but the html is a little messed up, take a look with fire bug and you should see what is wrong.
Look, if you want a custom paint job or a souped up motor for your truck, you have two choices... pay someone to do it, or learn how and do it your self. Tiny portal is like a free souped up motor for your forum, and the themes are like a free custom paint job. Between Tiny Portal and themes and mods for SMF, you can get a modded up forum for free. There are thousands of variations you could have without doing anything more than installing and checking off some choices. But you don't like the cam that comes with the souped up engine or the pin-striping on the trick paint job offered for free. Which is fine! I respect the fact that you are dogged about getting everything exactly the way you want, but there comes a point where you will either have to settle for 'just ok', learn how to do it yourself, or hire a coder to do it for you.
I did have a coder. He's currently MIA. Why do you think I use the default theme? It's simple and works. If I mod it, it's usually easy. I have had tpmeadows now for like 3 years. I was just going to start changing the css a bit at a time. Hell, if I can get the box where I want it, I will just use the default on all of them.
I KNOW it's all a kludge and mish-mash, but for the most part, it works. It only stops working when something is updated and then all the other things don't anymore. I wish it made more $$, I'd be able to pay real money for someone to fix things. I don't have it now. Trying to get back where it was. The update to rc. 1 really made a lot of things that were working, not work. Hell, it took weeks just to find that out. I TRIED to just add the table where I thought it would go, I copied the code from other stuff and did try. Have NO IDEA where I messed up, but I am not a coder. I wish mine would reappear. :-[
Here's a simple question: How do I make something not work in the code? Isn't there a simple bit of code I can put in front of a line to make it not work? Let's start there.
Yes, you can comment out code. Html, css and php each have different methods. Commenting at random, though, won't work. The all have certain syntax that needs to be followed.
If you didn't know anything about html, for example, you might do something like this:
<div><!-- some content you don't want here</div>-->
which is invalid code, would almost certainly break your layout. Either of these would be correct:
<div><!-- some content you don't want here--></div>
<!-- <div>some content you don't want here</div>-->
but removing that div entirely or the content in it could still break your site.
So my point is that it is not enough to learn the code for commenting, you need to understand the code, at least a little, that you are commenting out. And how to troubleshoot when you get unexpected results.
Here is a site you might find useful: W3Schools Online Web Tutorials (http://www.w3schools.com/default.asp)