TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:30:26 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 336
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 335
  • Total: 335

"Read more..." = Offsite Link?

Started by anunlike, July 01, 2006, 12:00:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

anunlike

I was wondering if it's possible to be able to turn the "Read more..." link into an actual offsite link on an article by article basis?

So, say, I have an intro blurb about computer specs of a specific computer, but I want to link it up with an offsite article from the official site about that computer, for example, instead of my own article, would that be possible (on an article by article basis)?

akulion

I think for that sort of functionality it would be better if you created a center block with just html which would include:

A Heading

Some intro text
Read more link...

the next item so on and so forth....

I hope i understood u correct?

anunlike

#2
Yeah, I think you understand.

I just thought it'd be cool, even if a bit overkill, to turn the "Read more..." link into an actual offsite link, which will allow the reader to read more, just not on my site.

Though, that's not quite the same, as I see it. It may not be so important that I want it featured in any way, but just cycled through like the normal frontpage articles / forum posts.

akulion

personally what im interested in is a "news block" template

and i dont mean ur standard news block like in SMF

I am talking about a block with the following settings:

IMAGE URL: (for specifying a small image to appear)
IMAGE HEIGHT:
IMAGE WIDTH:
HEADLINE / TOPIC URL:
INTRO TEXT:

Now that may seem confusing to look at but what it will do is as follows:

Left aligned an image appears, next to it at the top the topic header, and under it is a small intro post with the Read More...<--link appearing at the end which is basically the Topic URL you originally specified.


-------------------

it would be a fast way to have a "In the news.." section on your main page

I am using something like that on my page currently >>MY PAGE but the coding for that is done in plain html so updating is a pain in the butt since I have to edit it manually everyday....

but with the above config it would be easier to just post the urls and get it over with asap making it easier to update daily



akulion

oh wow brilliant suggestions!!

thanks :D

bloc

Quote from: akulion on July 01, 2006, 01:03:13 AM
personally what im interested in is a "news block" template

and i dont mean ur standard news block like in SMF

I am talking about a block with the following settings:

IMAGE URL: (for specifying a small image to appear)
IMAGE HEIGHT:
IMAGE WIDTH:
HEADLINE / TOPIC URL:
INTRO TEXT:

Now that may seem confusing to look at but what it will do is as follows:

Left aligned an image appears, next to it at the top the topic header, and under it is a small intro post with the Read More...<--link appearing at the end which is basically the Topic URL you originally specified.


-------------------

it would be a fast way to have a "In the news.." section on your main page

I am using something like that on my page currently >>MY PAGE but the coding for that is done in plain html so updating is a pain in the butt since I have to edit it manually everyday....

but with the above config it would be easier to just post the urls and get it over with asap making it easier to update daily



Looks interesting..the texts..pulled through RSS you mean or manually updated?

Techdomain

oooh... you people posting links that us plebs cannot see!!!

I got around it by using the BB code in the forum: etc


[html]
<img src="/newspics/contents-6.jpg" align="right"></img>
[/html]Overclockers Online Reports:
The Ultra-120 is another "stand-up" cooler that detours away from the design that has made Thermalright famous with the heatpipes curling back overtop of base coming perpendicular to the CPU surface. Their most recent designs, like the Ultra-120, bend the heatpipes straight up into an array of aluminum fins to do the cooling. This leaves a somewhat smaller footprint while still allowing a massive 120mm fan mount. It also eliminates that downward air movement that helps cool motherboards, PWM areas, and memory like their more traditional design of the XP-120/90 so there is some draw back. I am excited to see the difference between the Ultra-120 and an XP-120 but there is plenty more to look at before testing.

Link: [url=http://www.overclockersonline.com/index.php?page=articles&num=395]Overclockers Online[/url]


which creates entries on my site http://www.techdomain.com.au

not exactly "read more" but it does the job, and if people want to comment on the item, then they can!

iwyen

In respond to anunlike and akulion's suggestions, IMHO, I think it would be great to have the flexibility to set our own fields when writing articles and maybe the type of fields, such as text, image or hyperlink field so that when we use an image field, it will automatically add the image tags (like BBC codes) or link tags for hyperlink field. Something like those SMF's mods that add extra fields when writing a post or to the profiles. I would add silly fields like mood or song and use a category of the articles for a blog  :)

If anyone uses Yahoo!'s (taiwan) blog, the index lists each blog with an image and a little intro and that's probably like what akulion has done for his site (which looks really great btw ;) ).

bloc

Not a bad idea really..I have been planning a link-to-topic-feature next to comments in articles, but haven't got around to looking at it yet. Adding more fields could be something in this though. I see one problem..should such fields be global? ...or per-article-based?

iwyen

Quote from: Bloc on July 03, 2006, 05:53:14 PM
Adding more fields could be something in this though. I see one problem..should such fields be global? ...or per-article-based?

Oophs.. I'm lost. Would "if it's empty, don't show it" work?

I don't know how others would use it, but I would actually prefer to set it within a category. The "same type" of articles probably uses the "same type" of fields. Just like the way we set post icons in SMF to specific boards when those icons don't fit other boards. But that doesn't flow with how things work now since we don't choose a category before writing.


G6Cad

The link works fine, but the board they are linking to is off limits to every one exept the staff and the Alpha testers on TinyPortal.

Muziek4um

 :o Oooooow! :oThats the point :(

Thanks for telling me.

;)

Muldoon

#14
Ok, I must be an idiot...where is the 'read more' link function at. I can't seem to find it  :(

JPDeni

Quote from: Muldoon on November 10, 2006, 08:11:28 PM
Ok, I must be an idiot...where is the 'read more' link function at. I can't seem to find it  :(
No, not an idiot. :) Those things are not easy to find.

The place where the link prints out is in TPortalBlocks.template.php:


echo $story['introtext'];
echo '
     <div class="smalltext" style="margin-top: 1ex; font-weight: bold;"><a href="' .$story['href']. '">'.$txt['tp-readmore'].'</a></div>';


The link ($story['href']) is defined in TPortal.php.