This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Using CSS with Storyteller


avatar
LRACMS 0
From: -
Using CSS with Storyteller

I edited the story.tmp.php file (and the site_header.tmp.php files to use CSS instead of HTML formatting, but nothing changed, not even the <td bgcolor = "#008000:> color which was deleted. Shouldn't that be 008800? BTW

The CSS file in in the images directory.

<link rel="STYLESHEET" type="text/css" href="https://www.contentteller.com/images/toh-main.css">

Suggestions?

- Louis Andrews

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

"news" is the template for the main news page (e.g. index.php)

"story" is used for the story pages (e.g. story.php?id=xx)
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

Thanks! I'll try that. What is the difference between News and Story? The templates are almost identical and use the same db fields.

- Louis Andrews
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

Found it Hushed Face. You edited the wrong template.

The main news template is news, the story page template is story
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

Please open a trouble ticket and provide your admin login. I'll take a look.
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

Philipp,

Yes, it is the modified template and looks the same as it does via Storyteller/Template/Edit. Frankly, I don't understand how this can be happening. I even checked the story.bak.php and it is also the modified version.

- Louis Andrews
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

Please download the template story.tmp.php with your FTP client and check it out. Is it the old or new template?
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

Done, no change. No main cached file in cache/news/ any longer.

Same as before. I did not delete the small header and footer cached files.

- Louis Andrews
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

Turn off the cache on the main site and delete the file again.
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

Deleted it and it rebuilt the same without the new template changes. Must be a poltergeist! Same as with cache turned off on the test site, no template change reflected.

Any other suggestions?

- Louis Andrews
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

Yes, just delete the file.
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

That's odd . Can you clear the cache via FTP?

The main news cache file is located at /cache/news/mainnews.cah.php
-----------------------------------------------------------
Philipp,
On the test site with the cache off that file doesn't exist, but it does on the real site with the cache on. How do I clear it via FTP, just delete it?

- Louis Andrews
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

That's odd Slightly Frowning Face. Can you clear the cache via FTP?

The main news cache file is located at /cache/news/mainnews.cah.php
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

I have it listed thus at the site. The new URL  http://theoccidentalherald.com will be available later today at the same physical location.

Other/Websites => Edit => Website URL
Now:  http://theoccidentalquarterly.com/news/

I also have a test site (where I make template changes first to see their affect) at  http://LRAINC.COM/news and have the same problem there and the url is entered thusly. Also the cache is turned off there.

The template changes are in effect on both with no results.

- Louis
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

I think I know what the problem is. Your installation is installed in the /news directory.

Did you add the full path (e.g. yourdomain/news) at Other/Websites => Edit => Website URL?
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

Not sure what the problem is here, but I have cleard the cache and even turned it off without effect. Here is an actual copy of the source from the browser after doing both. The first is what the browser is reading and the second is copied via Storyteller from the template. Note that even the old <!-- Template news --> informational header remains even though I changed it to read
<!-- Template story LRA 10-14-2003-->

I did a global search and <!-- Template news --> only exists in story_tmp.php. Using standard 1.31.

- Louis Andrews
-------------------------------------------------------------------

The Source reads:

<!-- Template news -->

<table cellspacing="0" cellpadding="0" width="100%" align="center" bgcolor="#000000" border="0">
<tr>
<td>
<table cellspacing="1" cellpadding="3" width="100%" border="0">
<tr>
<td bgcolor="#008000">
<font face="Arial" color="#ffffff" size="2">
<b>Hammer of the Occident</b>
</font>
</td>
</tr>
<tr>
<td bgcolor="#ccffcc">
<font face="Arial" size="1">

Revised template reads:

<!-- Template story LRA 10-14-2003-->

<table cellspacing="0" cellpadding="0" width="100%" align="center" bgcolor="#000000" border="0">
<tr>
<td>
<table cellspacing="1" cellpadding="3" width="100%" border="0">
<tr>
<td class="storyheader"> <!-- LRA 10-13-2003 was #008000 -->
<b>$insert[story_title]</b>
</td>
</tr>
<tr>
<td class="storybyline">
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

Originally posted by LRACMS
There is no "clear cache" for templates.


You need to clear the news cache (News => Clear Cache) because story is a news template.

There is also an option under Other/Config where you can turning off the caching system temporary.

Originally posted by LRACMS
Should I dl the 1.4 version and update my site then add back all of the templates that I have changed? How does (or does it) not overwrite changes?


Upgrading to 1.4 is fairly easy. Just upload the updated files (see 1.4 announcement in the news forum for a file change log) and run cadmin/cupgrade.php

Only 8 of the older templates has been changed:
download_details
faq_categories_footer
poll_list_footer
review_header
review_list_footer
site_header
submit_download
submit_news

You might want to compare these against your edited templates.

Important: Make a backup (files and database) before you upgrade
1 Re: Using CSS with Storyteller
avatar
OP 0
From: -
Using CSS with Storyteller

There is no "clear cache" for templates. I did all the others but it made no difference. BTW, I am changing the code outside of the program and ftping it back in. The template view in Storyteller does show the changes, which work for the Site templates, but not for the Story template. It still writes <td bgcolor="#008000"> instead of my change to <td class-"storyheader"> for example.

Should I dl the 1.4 version and update my site then add back all of the templates that I have changed? How does (or does it) not overwrite changes?

- Louis Andrews
1 Re: Using CSS with Storyteller
avatar
Administrator
1340
From: Vienna, Austria
Using CSS with Storyteller

You need to clear the cache after a template modification in Storyteller v1.3 and below.

This has been recently changed in the new v1.4 release.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.