How to add an additional field in Forum Manager (Forum Edit)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KID_1194
    New Member
    • Jun 2006
    • 2
    • 3.0.0 'Gold'

    How to add an additional field in Forum Manager (Forum Edit)?

    Dear everyone,

    I'm trying to add an additional field in Forum Manager (Forum Edit).

    I have edit forum.php and I added a code under the forum discription and it have worked fine .. the field was there but when I click on save I receive this error
    Fatal error: Field sanrss is not defined in $validfields in class vB_DataManager_Forum in Y:\www\vB384\includes\class_dm.php on line 485

    This is the code in forum.php
    PHP Code:
         /* San 2.0 Rss fees */
        
    print_input_row($vbphrase['sanrss'], 'forum[sanrss]'$forum['sanrss']);
        
    /* San 2.0 Rss fees */ 
    The point of doing this is to create a variable like: $forum['sanrss']

    If someone can help .. I will appreciate that !!


    Best regards
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24178
    • 5.7.X

    #2
    Modifying the code isn't supported on here. Please post over at www.vbuleltin.org for help with this.
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • Lynne
      Former vBulletin Support
      • Oct 2004
      • 26255

      #3
      And don't edit the code, use a plugin. Take a look at the hook locations forumadmin_edit_form (to add the form variables) and forumdata_start (to add to the $validfields array).

      As Trevster said though, vbulletin.org is the place to post regarding modifications.

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools <- awesome site for html/css help

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎