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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 360
  • Total: 361
  • tino

Multifunction Article Snippet [Version 1.1 out]

Started by Megaforum, November 24, 2007, 07:56:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FERNSIDEâ„¢

Very nice Dragooon :)
At the moment, I have no use for it, but it's sitting there waiting  to be switched on.
Nice work aswell lebisol.:)

Spasm

Great snippet!  Thanks! One question though...


For the top rated option, is there a way to display it from highest to lowest of the top 5?  It's showing the top 5 which is great, but it shows an article rated in this order:

1 - Rated 9
2 - Rated 8
3 - Rated 9
4 - Rated 7
5 - Rated 10

When I think it should be...

1 - Rated 10
2 - Rated 9
3 - Rated 9
4 - Rated 8
5 - Rated 7

koolaid

I use the top rated option too and the same thing happens to me. It displays it as:

1 - Rated 5
2 - Rated 4
3 - Rated 5

Dragooon

I thought it would do something like that, I'll try to find a solution.

Spasm

Quote from: Dragooon on March 14, 2008, 07:31:25 AM
I thought it would do something like that, I'll try to find a solution.

Great, thanks for considering!

Dragooon

Meh, No luck so far. I am still trying what I can do lol.

Spasm

Quote from: Dragooon on March 16, 2008, 04:01:05 AM
Meh, No luck so far. I am still trying what I can do lol.

Yea, it's weird because now a different article came up, rated 7 (first rate) and replaced the one that was a 10 :)... 

osu searles

Great Snippet!

Is there a way to include the intro text with the article?

What I would really like to do (and I'm not sure this is the right snippet to be doing it in) is to post the intro to a random article from a single catagory (so one intro displayed at a time).

Thanks.

koolaid

#58
would it be possible to use this in an article?

What I have is a table of all the articles and i would like to the post info (# of comments, rating, views) for each article beside it.

I tried it in a php article and it didn't work. I just pasted the code from the first post (block code) and got some errors. I tried to solve it by removing what was causing an error but it never resolved.


JPDeni

You might post the code you used and we could see if we could help find the problems with it.

This website is proudly hosted on Crocweb Cloud Website Hosting.