vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Add options per forum (https://vborg.vbsupport.ru/showthread.php?t=93445)

Code Monkey 10-02-2005 05:07 PM

Quote:

Add the option in the ACP
To add this new option in the ACP we need to create a new hook and add some code to that hook.
How and where do I do that?

Rebecca217 10-11-2005 11:02 PM

Thank you so much for this tutorial. I found it very helpful! :)

Rebecca

JimNY 10-12-2005 02:05 AM

Hi everyone,

i am new to this but i like know how to add the following pages to my site.

home --><--forum---><--Link Page--> <--Resources--><--etc-->

How do I go about doing just that? Any help would be appreciated.

JimNY 10-13-2005 11:13 AM

Hi Everyone,

Can some help me please?

Evil X 10-20-2005 01:25 AM

I want to make make it so when users post in my graphic forum, it has a drop down below the title were it will say Experience: and they can choose from noobie or pro or basic and then it will add it to the title... (ie they put pro as thier graphic experience) so it would say something like this in the title- Check out this new design!!![PRO]

akanevsky 10-28-2005 11:21 PM

Dude, this is vBulletin 3.5, and the stuff in this tutorial could be done via XML...
HINT: <group name="misc"><group name="forumoptions">...</group></group>

badnans 11-17-2005 08:53 AM

How do I allow end users to ADD A NEW FORUM? By end users, I mean, registered users who are neither administrators, nor moderators. I am trying to look for a complete example using vB_DataManager_Forum.

Marco van Herwaarden 11-17-2005 06:44 PM

Could you please try to explain what you want to achieve. This sounds like it is getting very close to the borders of the license agreement.

badnans 11-18-2005 10:33 AM

Quote:

Originally Posted by MarcoH64
Could you please try to explain what you want to achieve. This sounds like it is getting very close to the borders of the license agreement.

Was that message for my query? If a registered user has to create a Forum Topic, is it violation of vBulletin Agreement??? :surprised:

By the way, I figured it out:
Code:

$forum = array(
        'title' => 'My Forum Topic,
        'description' => '',
        'link' => '',
        'displayorder' => 1,
        'daysprune' => -1,
        'parentid' => 1,
        'newthreademail' => '',
        'newpostemail' => '',
        'options' => array(
                'moderatenewpost' => 0,
                'moderatenewthread' => 0,
                'moderateattach' => 0,
                'warnall' => 0,
                'styleoverride' => 0,
                'canhavepassword' => 1,
                'cancontainthreads' => 0,
                'active' => 1,
                'allowposting' => 0,
                'indexposts' => 0,
                'allowhtml' => 0,
                'allowbbcode' => 1,
                'allowimages' => 1,
                'allowsmilies' => 1,
                'allowicons' => 1,
                'allowratings' => 0,
                'countposts' => 0,
                'showonforumjump' => 1),
        'styleid' => -1,
        'password' => '',
);
$forumdata =& datamanager_init('Forum', $vbulletin, ERRTYPE_CP);
        foreach ($forum AS $varname => $value)
        {
                if ($varname == 'options')
                {
                        foreach ($value AS $key => $val)
                        {
                                $forumdata->set_bitfield('options', $key, $val);
                        }
                }
                else
                {
                        $forumdata->set($varname, $value);
                }
        }

$forumid = $forumdata->save();


Marco van Herwaarden 11-18-2005 03:54 PM

Yes that question was for you, but since you didn't answer what you want to achieve, i can also not anwer if it is a violation of the user agreement.


All times are GMT. The time now is 02:23 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.01192 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)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