The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
I'm now well into my second custom content type and these are my experiences so far:
The framework is very object oriented and hierarchic in a sense that almost all classes inherit behaviour from parents. This is great since you get to write less code, but at the same time it makes it harder to get a complete view of what functions are availible and what versions you have availible in your class. You often have to do a lot of file-searching to find out what happens when you call a specific function. When you get the hang of it this is mostly a good thing, but it takes a bit of time to get the big picture... Also, some of the features aren't as straight forward as you might think and even vB's own content types aren't 100% streamlined, so don't trust that copying them will get you a perfect base to stand on. For example the getContentQueryFields() & getContentQueryJoins() functions in /packages/vbcms/collection/content/article.php are never used since they are overridden by the custom query in getLoadQuery() in /packages/vbcms/item/content/article.php. Don't get me wrong - basing your content type on one of vB's contenttypes is clearly the best way to go, but don't trust that everything is perfect and 100% correct. =) It's hard to give you tips just out of the blue, but this is the way I would recommend you would go when creating your own content type:
Small steps and then test would be my general recommendation, so you don't get stuck somewhere and have lot's of code to check. --------------- Added [DATE]1312462546[/DATE] at [TIME]1312462546[/TIME] --------------- The framework is nice and quite flexible, but there are a few points where it is lacking: - Quite complex to create your own content types - you really have to familiarize yourself with vB's way of thinking and the frameworks structure - The rights management structure is really lacking. The different levels are too broad and inherit rights from each other. For instance if the user has the rights to publish she also has the rights to edit the section itself - not really ideal... There is also no possibility to pinpoint the permissions more precisely to an individual content type for example (if the user is allowed to create and publish content she will also be able to create articles for example) |
Благодарность от: | ||
Alfa1 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|