# vBulletin Mods

The Official vBulletin Modifications Site

 edyy 05 Jun 2011 14:55

I've tried the exact example and the date still isn't spit out in the article page.

Hi lynne,
I have the same problam,
I managed to save it but not to spit it out.
I didn't quiet understood number 5 -
To get the field to spit out, you must add it to the vbcms_content_article_page somewhere (this is rough, you'll have to add your own class/styling).

HTML Code:
<div>Custom Field:{vb:raw FIELDNAME}</div>

and nothing..

any help?

 charlesr 03 May 2012 09:47

I'm desperate for custom article fields and ways to manage the CMS better - if this existed, it would make the CMS amazing. Currently I'd just describe the CMS as functional, albeit simple and easy to use.

We have spent a lot of time making the VB4CMS look fantastic, and now just need it to BE fantastic! I can't spend time manually making new fields in the database - the long term implications are just too tricky.

 firebrand media 03 May 2012 15:26

Quote:
 1. Create a new field in cms_node
Off to a bad start since I don't even understand step 1.
Could someone explain?
Is this something I do in the control panel?
Do I need to create a plugin?
Modify a template?

 kh99 03 May 2012 15:55

Quote:
 Originally Posted by firebrand media (Post 2325844) Off to a bad start since I don't even understand step 1. Could someone explain? Is this something I do in the control panel? Do I need to create a plugin? Modify a template?

These instructions involve manually modifying the database and editing vb files as well as template modifications and creating plugins. It took me a bit to understand that the first step is to add a column to the cms_node table in the database (could probably use some clarification there).

 firebrand media 03 May 2012 23:17

Ah...
So I just add a column to the cms_node table?
Easy enough.

This is my first foray into vBulletin modding and I just get nervous about operating with a chainsaw. :)

--------------- Added 03 May 2012 at 23:37 ---------------

Sorry for the noob questions.
Quote:
 2. Open packages\vbcms\item\content.php and find:
If I edit conten.php, isn't the change going to get blown away when update vBulletin?

 kh99 04 May 2012 01:23

Quote:
 Originally Posted by firebrand media (Post 2325997) If I edit conten.php, isn't the change going to get blown away when update vBulletin?
Yes. That's why it's good to use plugins when possible, but there isn't always a hook location in place to do what you want to do.

 Lynne 04 May 2012 02:29

And this is why you should always keep notes when editing your site.

 ragtek 04 May 2012 19:56

anybody got this running without editing the files?

 charlesr 05 May 2012 08:24

I don't think it's possible because there is no hook location to call via a plugin product.

 ragtek 05 May 2012 11:39

1. edit isn't necessary => hook vbcms_content_publish_editor

but everythng else seems to be impossible
shame that they still didn't change this:(

 Yellow Slider 27 May 2012 18:20

Quote:
 Originally Posted by ragtek (Post 2326414) 1. edit isn't necessary => hook vbcms_content_publish_editor 2. template edit is fine, who cares about this ( tms^^ ) but everythng else seems to be impossible shame that they still didn't change this:(
Yep, it took a year but they finally added the hook. I've updated the relevant step.

I guess I should have asked them to add some other hooks back then, cause if I open a new hook request now, vB 5 would be out by the time the hooks get added :)

 christleo 22 Dec 2012 14:08

Quote:
 Originally Posted by HouseAddict (Post 2154482) And that's a short guide? Geez... I just spent almost an hour going through it and trying it out without any success. Tsk, why does this have to be so darn complicated... Hmm, how can I extend that $pub_view array to be available to other templates, not just vbcms_edit_publisher (as defined in content.php) in an easier manner... --------------- Added 25 Jan 2011 at 20:07 --------------- It seems that I am having some issue with spitting out the value in the front-end as well... adding that code to vbcms_content_article_page prints out nothing. Seems the root of the problem is$view->FIELDNAME = $this->content->getFIELDNAME(); in the plugin attached to vbcms_article_populate_start... as if I change that$view->FIELDNAME value to a constant, I get a value out on the front-end and in all the other templates (weird). If I leave it as $this->content->getFIELDNAME(), it ends up blank. Having the same issue...$this->content->getFIELDNAME() seems like giving me blank too...

 pczone 25 Apr 2014 09:38

I also blank too , I try to fixed and works.

edit:
packages/vbcms/item/content/article.php

find:

 Block Disabled:      (Update License Status) Suspended or Unlicensed Members Cannot View Code.

add node.FIELDNAME, at the end of the line:

 Block Disabled:      (Update License Status) Suspended or Unlicensed Members Cannot View Code.

 BlackxRam 07 Jun 2015 03:12

Can anyone confirm that this mod still works? How many custom fields does this add to articles in your CMS?

All times are GMT. The time now is 09:37.