Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

September 24, 2022, 04:06:26 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 193513
  • Total Topics: 21092
  • Online today: 38
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 25
Total: 25

Author Topic: Recent Topics Block  (Read 7343 times)

0 Members and 1 Guest are viewing this topic.

danolie

  • Guest
Recent Topics Block
« on: February 23, 2005, 07:13:46 PM »
I read on the simplemachines website that you used the html block and ssi to put up your recent topics block here.

Would you please expound on how to do that?? What is the code I need to insert?? Thanks!!!

Dan

Bjørn

  • Guest
Re: Recent Topics Block
« Reply #1 on: February 24, 2005, 01:10:47 PM »
Not exactly..the "recent posts" is a special built-in block..but I have added 2 new block types:
- a javascript/html block allowing for use of javascript as well as html.(see the "shellcity.net" block here - its a one-liner javascript fetching news from that site.)

- a php code block, where you can write direct php code. Even html would have to be in an echo statement, but you get more freedom with it. Of course..its also quite easy to make mistakes with it, so I am doing a preview function for that, in another window..to check if it "breaks" before showing it in the forum.

Also, new blocks will now be set to "off" upon creation...to give you time to check it before setting it "on".

danolie

  • Guest
Re: Recent Topics Block
« Reply #2 on: February 24, 2005, 01:26:01 PM »
so.. is there an 'easy' way to use the html block as is to do a recent topics feature using ssi??

Bjørn

  • Guest
Re: Recent Topics Block
« Reply #3 on: February 24, 2005, 03:58:04 PM »
Not in beta 4, but in beta 5, yes. Just use a php type block there and do a call to a SSI.php function. But as I said, the "recent topics" has already been done for you in that beta. Basically it collects data from the function and output them in a compact way, because just letting the function do the rendering itself(default behavouir) will make it too big to fit in a block - in width.

Treviño

  • Guest
Re: Recent Topics Block
« Reply #4 on: February 27, 2005, 06:29:04 PM »
I'm really intrested in this feature (like in php block as I said in another post)... I could also do it by me but not well as you, so, have you planned a release-date for beta 5?

Bjørn

  • Guest
Re: Recent Topics Block
« Reply #5 on: February 27, 2005, 06:45:59 PM »
Well, any day now. I am just doing all the major changes first, and double-checking.

danolie

  • Guest
Re: Recent Topics Block
« Reply #6 on: February 28, 2005, 10:19:15 AM »
Alright!! :-) Looking forward to the next release

~a big fan.  8)