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

Recent

Welcome to TinyPortal. Please login or sign up.

May 20, 2024, 04:35:16 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,195
  • Total Topics: 21,220
  • Online today: 114
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 77
  • Total: 77

[Discussion] Random topic

Started by JPDeni, May 05, 2009, 04:33:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mariusfv

Hi Freddy !

I test as admin that code(first code because I'm not interested to show avatars) in a .php article for front page, after I see is possible with a replacement to show from a specific board instead of category.

I have 2 questions :

1. Is possible after the topic appear to be the title of topic click able and linked ?... when user click the title of topic what appear in article to go to that topic ?(now is possible only if click at comments....down article page-> ugly)

2. Is possible to show random from specific boards not only 1 board( Ex: board 12, 15 etc;  ? )

I must first test as admin...before to make it for all users.

10x in advance !

Freddy

So you want to remove the 'x Comments | Write Comment' bit  and instead put the link into the topic title.... yes I can do that.

When you say 'boards' you really do mean boards and not categories ?

I am assuming you are on SMF 1 ?

MrCare

Can this code suitable with smf v2?

Freddy

Not yet, I will try and convert it.  Back later ...

Freddy

I've put the new version for SMF 2 in the new block area here :

http://www.tinyportal.net/index.php?topic=33286

It's producing no errors for me.   Test it out and let us know how you get on :)

MrCare

yes.. nice.. but how to make clickable subject link?

MrCare

I find it.. tq..

Now im using a simple code
  // Display it all...
   echo '
     <div style="width:100%;display:table">
         <img src="http://myweb/bullet.png" alt="" style="margin: 0pt 2px 0pt 0pt;" border="0"><a href="', $news['href'], '">', $news['subject'], '</strong>
       
   ';   
}

mysql_free_result($result);


i want to show 8 topics with to colums... how can i get it?

Freddy

I'm away for a few days now,  See if you can figure it out.  Have fun.

MrCare

hope there is a way to limit subject character. tq

MrCare

Quote from: QUBBAH on October 20, 2010, 06:49:47 AM
hope there is a way to limit subject character. tq

Hope anybody can help.