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

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
wynterborn
Posts: 4
Joined: Tue Oct 07, 2008 9:04 am

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

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
wynterborn
Posts: 4
Joined: Tue Oct 07, 2008 9:04 am

Post 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.
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post 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.
Steve is occasionally blogging here
wynterborn
Posts: 4
Joined: Tue Oct 07, 2008 9:04 am

Post 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.

.
wynterborn
Posts: 4
Joined: Tue Oct 07, 2008 9:04 am

Post 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.
Post Reply