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: 219
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 102
  • Total: 102

PHP type of article

Started by Lesmond, September 28, 2005, 06:22:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bloc

Check out an example of an article type that only use PHP code here:

http://www.tinyportal.net/smf/index.php?page=11

It should cover all the cases where you need something dynamic among the html bits. the feature is new for 0.7.3 release, and will perhaps need more polishing, but initally it seems to be working.

IchBin

Wow.... that is great Bloc. I can't believe how much you accomplish in this mod in the little amount of time you've had. Every little option that you seem to add make your portal so much more versatile. IMO, when you are done this thing is going to make Portals like Mambo or MKPortal look bad. I'm glad that I am here. :)

Nokonium


bloc

Learned a lot from SMF itself..its just so versatile even as a forum. All the member functions etc. is already there. Why re-invent the wheel? ;D imo thats what makes Mambo and other CMS systems so cumbersome when used with SMF, they do in many repects the same as SMF itself.

iowamf

Awesome progress - I love the flexibility of articles (but potentially not the name "articles").

I'm coming from Drupal and I really wanted to use that ... Drupal/CivicSpace revolutionized the American political system and has an army behind it ... but Drupal's forums are a 3 cyclinder yugo hitting on one with no bridge (or desire for a bridge) to another forum.

Unfortunately, SMF's native capabilities for mimicking feature-rich blogging-based CMS's are poor . I'd be happy with rudimentary blogging via native SMF - but this is what I've got so far over there looking for input:

http://www.simplemachines.org/community/index.php?board=2.0


creating a category of boards to stay in chronological order (blog) iowamf 0  12
configuring a category with individual boards for blogging              iowamf  0  19


Searching for a blog mod at SMF proved fruitless as well.

Forums seem to be an after-thought for most CMS's - how unfortunate (unless your Bloc or one of us). 

Stay the course Bloc - SMF needs to figure out rudimentary blogging features quick though.

Sure, implementing a forum moderated by one person is "~OK" - but when someone responds to a year old post with a bogus comment and that goes to the top of the list - ouch. I'm hoping I'm a SMF configuration fool - but I can't see how to stop something so egregious as that ... bloggers won't put up with that even once. If I'm such a fool - I wonder why I'm an 0'fer on the SMF boards?

Moocat

amazing ;D a very useful feature i can't wait to use :P

bloc

iowamf, this can be done with the template actually - I recently used this in a project - by making sure the link to the board is index.php?board=xx;sort=first_post. It will then sort the threads on when they were created, not by last post.

Its not used too much in templates, but the option is there. So in the Boardindex.tempalte you could simply check which boardID is displayed and add a ;sort=first_post to those that match. :)

Actually my project was a wiki-like theme, where it needed to be sorted on subject - not on last post, but the outcome works fine. of course, one can just take away the sort=xxx and get the baord sorted on last_post again, but this way you 1.) dont have to mess with any mods 2.) total control over what you actually see. The theme could hide any of the fields for example, I removed all in messageindex but the subject in fact..

iowamf

outastanding suggestion on chronological order listing  - I'm going to jump all over it & give it a try  - thank you very much.

less is more - that is one step closer to making a category a blogroll.

iowamf

Thanks for the sorting tip ... but in the quest for clarity I'll add that I'm trying to do the exact opposite.

Yes, ;sort=first_post is close - but I want the exact opposite.

You would think that ;sort=last_post would do the exact opposite of ;sort=first_post ... but it does not (because of comments).

This is not your issue - I've got questions into SMF for resolution as this seems so basic.

Please keep up the good work with your portal & thanks again.

fca07

Quote from: Bloc on September 28, 2005, 06:22:49 PM
Check out an example of an article type that only use PHP code here:

http://www.tinyportal.net/smf/index.php?page=11

It should cover all the cases where you need something dynamic among the html bits. the feature is new for 0.7.3 release, and will perhaps need more polishing, but initally it seems to be working.
i can't see anything at the page...
what should i see????

This website is proudly hosted on Crocweb Cloud Website Hosting.