Another 101 question

Creating and modifying plugins.
Post Reply
Inner_space_70
Regular
Posts: 6
Joined: Tue Nov 11, 2008 3:48 pm

Another 101 question

Post by Inner_space_70 »

B4 you wonder if I had read the old posts, I have. There just seems to be something different.

Couple of questions:
I want to modify the very top banner and was told to look for the index.tpl file. However all I can find is a file called newspaper^%%30^305^30542689%%index.tpl.php
Where is it supposed to be?

I also wanted to add a google adsence. Ive used the widget but it dosent put the style I was looking for. Ive inserted the google code into a HTML Nugget but it sends my frames wacky. Then I tried inserting the code inside a table cell inside the html nugget. What is the suggested way to do this?

I read in a post about a top banner nugget? Where can I find this? I dont see it in the plugin list.

Thanks--
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Unfortunately, the template you're using is outdated. It uses an old method of layout, before we implemented Smarty and the index.tpl file.

Sorry for the confusion.

The file you need to use, if you intend to keep this template, is layout.php. There you'll find a <div> with the id "serendipityBanner". You can make changes there. If you want to make changes to the CSS, look in style.css.

We expect HTML Nuggets to work with every template. It should simply insert the HTML you specified; you might want to check your page source and see what's actually being output. If JavaScript was involved, there can be problems with the curly braces { and }. You can replace them with {ldelim} and {rdelim}, respectively, to eliminate those problems. You might also want to verify that the page validates before the nugget is inserted, then see if it validates afterwards.

If there's a problem with the template, we'd like to know what it is, so we can correct it; could you point us to your page with the nugget installed, so we can figure out what's going on?

The "top banner nugget" is actually the Template Header/Logo Imageevent plugin. It might do the job; I'm not certain, because I don't know how the old templates interact with plugins. You can always give it a try; it shouldn't hurt anything.

We'll be happy to help out with any further questions you have, too.
Judebert
---
Website | Wishlist | PayPal
Inner_space_70
Regular
Posts: 6
Joined: Tue Nov 11, 2008 3:48 pm

So the 'right' answer is..

Post by Inner_space_70 »

I just started working with a newer theme..

:lol:
Inner_space_70
Regular
Posts: 6
Joined: Tue Nov 11, 2008 3:48 pm

Ive added a logo but nogo..

Post by Inner_space_70 »

Ive changed my theme and added this image.
http://www.thesadtruthis.com/sb/uploads/eagle1.jpg

to the Event header/logo plugin but it dosent appear. It says I must be using the 'default' template. What do they mean by defaut?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I've got to admit to a little confusion at this point. I'm going to make some assumptions, and if any of them are wrong, you can just clarify for me and I'll get you a better answer.

I'm assuming you're talking about the Template Header/Logo Image plugin. In that case, you enter the file's HTTP URL in the "Image" box (preferably after you upload it to your own server, which you seem to have done), choose the type of template you're using (which defaults to "Default Template"), and choose an orientation for the header image. Then you clear your browser cache and revisit your home page, where you find that the new image is substituted for the old one in the banner.

If it's not there, you change to a different template type and try again. The different types are necessary because templates can use different IDs and CSS methods for their banners; the Default Template is the most common.

You can test whether the plugin is working by switching the plugin to "Default Template" and switching your template to the default under "Manage Styles". That'll show you a list of templates, ordered by directory name; zip on down past the Cs (carl_contest, costa, etc) until you find the one that has "default/" in the name when you hover over it. Make that your style, and you should see the eagle in your banner. If so, the plugin is working, it just doesn't work with your template. If not, the plugin isn't working, and we need to know why so we can fix it.

What template are you using, anyway? If you can tell us, we might be able to tell you what's up.
Judebert
---
Website | Wishlist | PayPal
Inner_space_70
Regular
Posts: 6
Joined: Tue Nov 11, 2008 3:48 pm

oh geeze.. ;-)

Post by Inner_space_70 »

You think being a person that works on computers for a living I would have at liest tried the obvious before posting.. hehe

I set the template to Kubrick and it works fine.

Question: Why when I paste in a script from Amazon in the 'source' of a HTML Nugget then save it. Ill go back to look at it and the code has changed.

ORIGINAL: --- removed
SAVED VER: ---removed

Thanks.. Ill open a new post. ;-)
Last edited by Inner_space_70 on Thu Nov 13, 2008 9:45 pm, edited 1 time in total.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

That's a new one on me. Better open a new topic on the forum, so somebody can answer more intelligently.
Judebert
---
Website | Wishlist | PayPal
Post Reply