Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2010, 08:24 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Has anyone succesfully managed to create a CMS content type?

Edwin Brown posted a blog on Programming your own CMS Content Type.

I wonder if anyone managed to add one. I'd love to see it.

I have searched vb.org but AFAIK there is no hack here that introduces a new CMS content type.
Reply With Quote
  #2  
Old 05-15-2010, 10:03 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has been a few months since this thread has been opened. Has anyone succeeded in creating a CMS content type?
Reply With Quote
  #3  
Old 05-16-2010, 07:47 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did a Proof-of-Concept implementation last september with Alpha 2 but never released it.
Reply With Quote
  #4  
Old 05-08-2011, 01:47 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Andreas, could you share that proof of concept?

As we are a year later now, I wonder if anyone else managed to create a custom content type?
Reply With Quote
  #5  
Old 05-12-2011, 11:20 AM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
Andreas, could you share that proof of concept?

As we are a year later now, I wonder if anyone else managed to create a custom content type?
I did half a proof of concept about a year ago. From what I recall, the blog post wasn't much help, so I copped a lot of it from the code within the article content type and reading through the abstract classes.

As I recall, the process was about twice as involved as I'd imagined it needed to be. The more I hacked away at it, the more I began to realize why they made certain decisions, but I don't remember if I agreed with those decisions or not.

Ultimately, I quit because there was a bit of effort involved (learning + doing) for what was essentially a proof of concept that I didn't have a use for. Didn't want to keep going on something that I wasn't going to actually use.

I'm going to start a very simple content type (stores TV program description, meta data on those shows, and a basic review) over the next few weeks. Or, at least after I get my current project off my to-do list.
Reply With Quote
  #6  
Old 05-12-2011, 10:50 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please let me know when you have more information about CMS content type creation to share.
Reply With Quote
  #7  
Old 05-20-2011, 02:51 PM
arvid arvid is offline
 
Join Date: May 2003
Location: Stockholm, Sweden
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But there is an example in the blogpost you linked to in the first place? What more do you hope to get out of someone else's proof of concept? I'm just in the middle of creating my own content type, but sadly I cannot share it due to contract regulations...
Reply With Quote
  #8  
Old 05-20-2011, 04:05 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have yet to see one working custom content type. Various addon coders had planned to make their addon into a custom content type but none actually did this.
Dead Eddie found the blog post to be of little help and he had to study the article content type. So that explains a bit.

I need to create at least 6 new content types and these will become my big board its main content. It will grow big and active so I really need it planned well.
My main concern is if vbCMS has the needed architecture to be effectively contain complex content types and the associated comments. Do you consider vbCMS a solid foundation to build upon?
Reply With Quote
  #9  
Old 05-20-2011, 05:49 PM
arvid arvid is offline
 
Join Date: May 2003
Location: Stockholm, Sweden
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So far into the project I find everything solid, but I'll try to get back to you here to write about any hickups or thoughts as the project moves on.

I haven't come that far yet though - started researching yesterday and building initial proof of concept half through today. Hoping to have my basic proof of concept ready sometimes early next week.

This far though I find the linked article quite useful.
Reply With Quote
  #10  
Old 05-27-2011, 02:41 PM
arvid arvid is offline
 
Join Date: May 2003
Location: Stockholm, Sweden
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, now a week later I have a first draft of the content type I wanted to create.

My thoughts this far:

- The framework is great and seem quite solid
- The code commenting of the current content types are sometimes a bit lacking and/or outdated
- The blog Edwin wrote is really nice and helps alot, but some parts are referencing outdated names / functions
- If you're not used to object oriented PHP programming, the learning curve of programming your custom content type would be quite steep
- If you have experience in coding custom widgets it helps since some parts of the process are overlapping
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05241 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete