vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   How to add a new field to the CMS (https://vborg.vbsupport.ru/showthread.php?t=257589)

Miss T 02-04-2011 08:32 AM

hey Yellow :)

cant you please check you PM inbox - you qouta is up and the reply you asked me for cannot be sent to you :)

edyy 05-11-2011 06:09 PM

I can't manage to make this to work, I've made everthing it says in here but when I put the data into the fields and push SAVE I get this error
Code:

Invalid SQL:
UPDATE for_cms_node
SET url_prod = 'test1',
url_image = 'test2',
WHERE nodeid = 21;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE nodeid = 21' at line 4
Error Number  : 1064


Lynne 05-11-2011 07:22 PM

That's because you have a comma right before the WHERE line which isn't supposed to be there.

edyy 05-12-2011 01:30 PM

The problem it is as you said a comma, thank you verry much for the help. Now i have the same problem as HouseAddict, the date is inserted into the database but is not spit out on the article page. Can you help me fix that problem too ?

Thanks again for the help.

Lynne 05-12-2011 09:57 PM

I haven't any need for adding a new field to my CMS, so I haven't looked into this in anyway past what I posted for Yellow Slider.

edyy 06-05-2011 01:55 PM

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

ohadpartuck 04-11-2012 11:32 AM

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>

I have added <p>{vb:raw articlesource}</p>
and nothing..

any help?

charlesr 05-03-2012 08:47 AM

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.

Anyone else reading this thread, please vote and watch and comment here: http://tracker.vbulletin.com/browse/VBIV-10048

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 05-03-2012 02:26 PM

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 05-03-2012 02:55 PM

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).


All times are GMT. The time now is 03:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01089 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete