Skip to main content
Topic: A forum without a portal is like pizza without cheese (Read 11888 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: A forum without a portal is like pizza without cheese

Reply #15

There is a very good point here, cross-posts in this thread. (even when you folks seem to disagree :) )

We move towards extracting commonalities between kinds of content. Create better prototypes of a 'post' or 'article', refactor or write/rewrite their functionality in terms of an API, and allow the prototype(s) to serve both, but distinguish their available features.

Some of it might be part of our current refactoring. (or might not enter; we don't really plan on which item, with a few exceptions, we want to work, but in general on 'items that have redundant code, etc', so we might get to a specific case or not).


We will be back on this after 1.0 stable release, be sure.

For the moment, lets clarify one thing here, please:
Portals (and SMF mods) are easy to update to Elk. The issue "do we have portals" is a non-issue. Yes.

On the other hand, personally, more than a simple update, I understand an integration in Elk or a full refactoring of portals isn't a good idea nor an interesting idea to people. That's okay.
I suggest we make a few test runs soon - say in a couple weeks, to test and update them. TP is on github, find it, test it, propose a pull request, report issues to Brad. ;)
The best moment for testing your PR is right after you merge it. Can't miss with that one.

Re: A forum without a portal is like pizza without cheese

Reply #16

Quote from: TestMonkey – There is a very good point here,..........
I assure you that was completely unintentional, and wont happen again. :P
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: A forum without a portal is like pizza without cheese

Reply #17

Quote from: Antechinus –
Quote from: TestMonkey – There is a very good point here,..........
I assure you that was completely unintentional, and wont happen again. :P

lol.  Well at SMF this would have already been a drama topic that reached page 10 at this point in any discussion about such things. So to see this kind of discussion from reasoned individuals is a bit of fresh air if you ask me. Would be great to have a createPost() function that could be wrapped into the API to post articles. Things like that would make portals have a little less code. :D
Success is not the result of spontaneous combustion, you must set yourself on fire!

Re: A forum without a portal is like pizza without cheese

Reply #18

How do you envisage that function working, in rough terms?
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: A forum without a portal is like pizza without cheese

Reply #19

Well I hadn't fleshed out the idea yet really. But can definitely use it to do a BBC article. Even an html article. And even though I'm no veteran coder, it would be nice to see it be able to handle more parameters for article options, that could use call back functions to handle such things. If that makes any sense to anyone. For all I know I could be speaking Taiwanese... ;)
Success is not the result of spontaneous combustion, you must set yourself on fire!

Re: A forum without a portal is like pizza without cheese

Reply #20

Quote from: Antechinus – Several ways. For a start, you don't have all the crap associated with posts. Userarea area, sigs, etc. This means cleaner presentation of content, which is important sometimes.
Different theme.
 emanuele whistles innocently.

Quote from: Antechinus – Also, since an "article" is basically just a wrapper for a custom html page, you can do what you damned well like on it.
Ohh...then you are talking about posting HTML, not about "an article system".

Quote from: Antechinus – Also, if you give a rat's, it's far cleaner in terms of code and performance because you're not running everything through parse_bbc.
And far less secure unless you sanitize the code (and remove anything that is not simple html, already allowed in posts too using the html tag).

Quote from: Antechinus – Could the same content be presented as a series of forum posts? Sure it could, but for some purposes it would be a crappier format.
I agree that in order to be able to have easy and nicely formatted pages, some tags are missing,
Having some more tags (for example h2/3/4/5/6) we could even create TOCs the way wikimedia does, or just some more attributes to existing ones would allow better formatting (float for images, width for tables, etc.).
Bugs creator.
Features destroyer.
Template killer.

Re: A forum without a portal is like pizza without cheese

Reply #21

No, not a different theme. People don't want to have to code and install more themes when they want a couple of portal pages. :P

HTML includes articles. They can be HTML or PHP. They can be used for what you'd think of as articles, or for custom pages, or both.

Not less secure, if done properly.

Why more tags? That's just bringing you back to running everything through parse_bbc.

And you're still not talking about all the other stuff portals do. :P
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: A forum without a portal is like pizza without cheese

Reply #22

Quote from: Antechinus – No, not a different theme. People don't want to have to code and install more themes when they want a couple of portal pages. :P
If you create a different theme and make it so the topic is shown as a "page", 99.9% of the people will not notice the difference.
You said that people don't care about the back-end (Nov. 2012 :P), and I can add they just want to see what they think they want.
Heck, I have to finish the "building_blocks" branch.

Quote from: Antechinus – HTML includes articles. They can be HTML or PHP. They can be used for what you'd think of as articles, or for custom pages, or both.

Not less secure, if done properly.
Then you have to maintain: preparsecode, parse_bbc and another parallel code to "properly cleanup" HTML (and you have to remove several...well, you have to leave in place only few things if you want to do it properly).
Apart from the fact that PHP will never ever be secure, but that's another issue.

Quote from: Antechinus – Why more tags? That's just bringing you back to running everything through parse_bbc.
Oohhh...FFS!
Do you know how many times parse_bbc runs in a normal topic page?
I'll give you a hint:
1 time for the news
1 time for each message,
* 1 time for each signature (one for each user).
If you have 20 messages from 20 different user it means 41 times.
You are talking about 1 (one) message (it may be long, but that' doesn't make much difference) alone in a page. How much do you think it will impact on the server load? I'll give you a hint: less then 1 (one) single query of 1 (one) single member running unread replies with a week of unread messages.
And you have the advantage of consistent styling (no need to re-define styles for articles when links wouldn't have the "bbc_link" class attached, for example), you don't have to care about cleaning up the HTML (preparsecode will do it just fine for you us), you now even have a good WYSIWYG editor (so styling is not an issue).

So, the only thing missing is some fancy styling of some part of the text if you need it.

Dunno...I see a slightly more flexible parse_bbc would be much more helpful than HTML, but that's just me. :P

Quote from: Antechinus – And you're still not talking about all the other stuff portals do. :P
I'm not arguing against portals, that's why I'm not talking about other things. :P
I'm trying to understand what an "article" is in your head. O:-)
Bugs creator.
Features destroyer.
Template killer.

Re: A forum without a portal is like pizza without cheese

Reply #23

I can't see the "different theme" working at all. Obvious scenario: a site that offers more than one theme. If you can come up with a way of automatically assigning consistent styling regardless of which theme the user has selected, then I'll consider "different theme for articles". Otherwise, it's a dead duck.

QuoteThen you have to maintain: preparsecode, parse_bbc and another parallel code to "properly cleanup" HTML
Ok, but since portals already have this code anyway.........................................

QuoteOohhh...FFS!
Do you know how many times parse_bbc runs in a normal topic page?
I'll give you a hint:
1 time for the news
1 time for each message,
* 1 time for each signature (one for each user).
If you have 20 messages from 20 different user it means 41 times.
You are talking about 1 (one) message (it may be long, but that' doesn't make much difference) alone in a page. How much do you think it will impact on the server load? I'll give you a hint: less then 1 (one) single query of 1 (one) single member running unread replies with a week of unread messages.
And you have the advantage of consistent styling (no need to re-define styles for articles when links wouldn't have the "bbc_link" class attached, for example), you don't have to care about cleaning up the HTML (preparsecode will do it just fine for you us), you now even have a good WYSIWYG editor (so styling is not an issue).

So, the only thing missing is some fancy styling of some part of the text if you need it.

Dunno...I see a slightly more flexible parse_bbc would be much more helpful than HTML, but that's just me.
Ok, now you're starting to make sense.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: A forum without a portal is like pizza without cheese

Reply #24

https://bitbucket.org/spuds_/elk_simpleportal
Bugs creator.
Features destroyer.
Template killer.

Re: A forum without a portal is like pizza without cheese

Reply #25

By the by, SP is definitely changing our license for the next release to be friendlier. Stay tuned.

Re: A forum without a portal is like pizza without cheese

Reply #26

Great work! Really glad to see Elk SP.

The portal was one of the core needs for Elk. The sky is the limit now. ;)

As I said elsewhere, I suggest to make a github clone. Git hooks can keep synchronized.
The best moment for testing your PR is right after you merge it. Can't miss with that one.

Re: A forum without a portal is like pizza without cheese

Reply #27

This thing needs tableless markup. :)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P