Source link?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Source link?

Post by Nintendo Gal »

Hey again!

I think this is a newbie question, but a search for it returned nothing that I was looking for.

Basically what I'm looking to do is have a "Source" link on the bottom of my posts, without having to manually type in "Source - " as I always do. Something like an event plugin is what I think it'd be where you type in the URL before making a post and it shows up as "Source" or "Link" or something to that reguard.

I wondered if there was any plugin that did that as I searched through but didn't find anything. (maybe I'm using the wrong search terms).

Sorry if this is really easy to answer and I'm just being a dope!
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

It can be done using plugins, and I haven't done it so I'm not sure how well it would work. Install the extended properties plugin and then change one of the customfields to say 'source'. Then every entry that needs a source could have the url placed in that textbox just before you save your entry. Hope that gets you started.

Carl
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

Thanks! I'll try that out! :)

EDIT -

How would I go about editing entries so it shows up before the "Post by" ?

I tried
{if $is_single_entry}
<a href="{$entry.properties.ep_source}">{$entry.properties.ep_source}</a>
{$CONST.ENTRY_POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} {$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {$CONST.AT} {$entry.timestamp|@formatTime:"%H:%M"}.
{if $entry.categories}
I have a feeling though that that's way off.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

No, that's spot on. You'll probably want a <br> after the link, though.
Judebert
---
Website | Wishlist | PayPal
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

Hmm.. I put that in and nothing happened.

At least nothing visable that I can detect.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Are you looking at a single entry? If not, that'll never get called (because of the {if} statement above it). Sorry I didn't mention that earlier. Look in entries.tpl for the other entry.author line and add it there, too.
Judebert
---
Website | Wishlist | PayPal
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

Ahh! Found it, it works like a charm! Thank you very much for the help! :)
Post Reply