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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 90
  • Total: 90

Add code between articles on frontpage

Started by hsdk, November 02, 2006, 01:59:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hsdk

On my frontpage i only show articles. But i would like to add some php-code between article one and two. In wich file, and where can i add my code? :)

Andreas

Assistance

make an article with that code then pin it

hsdk

How do i pin an article to always be number two?

Assistance

have article 1 pinned, and article 2 set to a less recent date then the middle article

so the article u want in the middle is set to the future

hsdk

#4
That sounds kind a "stupid"  :), i want my articles to have their appropriate date, and it makes you have to unpin the old and pin a new article every time you write a new one to make it come out on top.

Can anyone point me to where in the source I have to add my own code in such a way that it comes between article one and two? :)


Best Regards
Andreas

Assistance

sorry if it sounds stupid to you as it did to me aswell

but this the reply I get.............
(note its from Aug, so just imagine how many and often I have to edit articles)

Quote from: Bloc on August 06, 2006, 11:48:08 AM
I see the point though..to make the others appear high up. But with the day/month and present year timespace it should be quite possible to shuffle around.

I have however looked at making articles "sticky" - as in appear AFTER featured (this HAS to be just one article since its tied up against frontpage- show single article option) - sorted on date there as well. So you essentially could sticky thsoe you want high up and just set dates for the positions between them.

I think that will be more versatile in terms of having more than one "featured" article. Its essentially sticky + one super sticky lol. :)

hsdk


Assistance

i wouldnt say impossible.......... if Tom Cruise can complete a mission


hsdk

Mayby some hardcore coder, can enlighten us? :)


A

JPDeni

You could put your featured article into a frontpage article block, followed by your php block (also a front page block) and then follow that other article blocks for the others you want to include. You would change your settings so that you would only show Front Page Blocks on the front page. At that point, you would have complete control over the order that your articles and php appear in.

This website is proudly hosted on Crocweb Cloud Website Hosting.