Page 1 of 1

not sure how to do this, seems simple but...

Posted: Tue Oct 07, 2008 9:09 am
by wynterborn
I need to know what files and lines to edit to:

-- include a .css stylesheet externally (or internally)
-- included in that css incorporate a no-repeated background. (S9y will be displayed within a frame or iframe)
-- add a HR at the bottom of each event automatically as well as post date and not jsut time.
-- remove link from: user name, post title, and post time.

I did this all before on a previous version but it was some years ago and I cant for the life of me remember how I did it. Any input/solutions are welcome.

Re: not sure how to do this, seems simple but...

Posted: Tue Oct 07, 2008 1:23 pm
by garvinhicking
Hi!

You can do everything in the index.tpl file of your template directory. If your template doesn't have that file, copy over templates/default/index.tpl to your directory.

If you insert code there, remember that you need to replace { with {ldelim} and } with {rdelim} to prevent smarty parse errors.

Entry dates etc. can be edited inside the entries.tpl template file, search for {$entry.timestamp} to get near the time. Same applies to removing links. This is basically all HTML that you can modify.

Regards,
Garvin

Posted: Tue Oct 07, 2008 11:34 pm
by wynterborn
Thank you, but it still won't recognize or incorporate:

-- include a .css stylesheet externally (or internally)
-- included in that css incorporate a no-repeated background. (S9y will be displayed within a frame or iframe)

I get a unrecognized line error when inluding link or style.

In addition to the above I realized that I also need to make sure that all posted links are target=_blank or some such so they dont reuse window (since it will be embedded)

many thanks for the help Ive already recieved.

Posted: Tue Oct 07, 2008 11:54 pm
by sonichouse
Add the following html tag in your head to force openning

Code: Select all

<base target="_blank">
Not sure that this strict compliant though.

Posted: Wed Oct 08, 2008 1:46 am
by wynterborn
Billiant and simple. Can't believe it eluded me. added this to the 'entries.tpl' and viola, all links are now targeted external.

many thanks Sonic.

-----

Above CSS/Link issues still persist.

.

Posted: Wed Oct 08, 2008 4:05 am
by wynterborn
Logically following the installed directory file 'serendipity.css.php' it basically says to put the external stylesheet in the installed directory, not the template direcoty or index.tpl/entries.tpl.

placing the .css there it works. custom styles loaded.

thanks much to the efforts of above.