vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   forums problems please help (https://vborg.vbsupport.ru/showthread.php?t=74532)

Andreas 01-17-2005 11:09 PM

1. array_intersect_key() creates the intersect of n arrays, eg. an array containing the values from array1 whose keys are present in all other arrays
2. Well, in an external script you don't have $options ... (or I am completely misunderstanding you)
3. 256 = 9th bit = allow HTML as defined in init.php

miz 01-17-2005 11:15 PM

ok you got me wrong

i want to do new file f3.php

forumid = 3

so when i click on edit i get all of forum options
same as on forum.php only here forumid is defined

so i copy the things i wanted like

PHP Code:

print_yes_no_row($vbphrase['allow_html'], 'options[allowhtml]'$forum['allowhtml']);
    
print_yes_no_row($vbphrase['allow_bbcode'], 'options[allowbbcode]'$forum['allowbbcode']); 

and on save its goes to
$_POST['do'] = 'update'
and on that i got
PHP Code:

globalize($_POST, array(
        
'forumid' => INT,
        
'private' => INT,
        
'applypwdtochild' => INT,
        
'forum',
        
'options'
    
)); 

so $options is defined...

hmm got me now ?

Andreas 01-17-2005 11:18 PM

Aaaah :)
So actually you are cloning forum.php but restricted to certain forums.

So why do you use $forum = fetch_foruminfo()?
$forum will be defined by the form in add/edit.

miz 01-17-2005 11:22 PM

can it be that im stupid ?
damnn your right...
thank you very much mate
i will report on progress
damnn i still dont understand how i didnt saw it

thanx
MiZ :)

miz 01-17-2005 11:24 PM

1 more qustion ...

does build_forum_permissions(); affect all forums ?
cuse after i use the clone script i need to go to my other forums via forum.php
and do edit and update or its wont show them
not on index
and on forumdisplay im getting no premission error...

Andreas 01-17-2005 11:28 PM

Yes it does affect all forums.

miz 01-17-2005 11:30 PM

so its ++++ing something up... cuse in order to see other forums i need to do rebuild forum information via Update Counters on admin cp

and idea what might be the problem ?

miz 01-17-2005 11:36 PM

nvm
build_forum_permissions();

was inside the while loop and thats what ++++ed the things up
thank u very much for help

:)


All times are GMT. The time now is 11:14 AM.

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.01059 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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