vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - CES Parser Permissions (https://vborg.vbsupport.ru/showthread.php?t=138476)

thincom2000 04-18-2007 10:48 PM

I was able to restore most original functionality (I believe). Unfortunately, getting the WYSIWYG editor to mirror the permissions does not seem possible with vBulletin's current code structure. I have been investigating this and I'm not sure I see any way around it, since WYSIWYG seems to make direct text replacements in functions separate from the BB-code parser - thus not running the text through the parser as well as no well-placed hooks in the WYSIWYG functions.

carmichael1973 05-16-2007 02:35 AM

I just installed this hack. This is what happens when I view a profile page:

"This error appears before the header of my profile pages"

Code:

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

Any help here would be nice. Thanks!

carmichael1973 05-16-2007 04:06 AM

O.K. ... It's late and I'm going code crazy.. I had another parser plugin active that was causing this error... All is good in the land of parsing! Installed & Working on 3.6.5

Thanks guys!

thincom2000 05-18-2007 04:27 PM

I'm glad you are having success thus far.

I'm not exactly positive if I uploaded the build I am currently running, which fixes a few bugs in 3.6.6, so let me know if anyone running 3.6.6 experiences any problems.

carmichael1973 05-21-2007 12:31 PM

Having a major issue. How can I have this ONLY control the profile fields? The reason is I have CES [Anything] BB-Code hack installed which requires Advanced BB-Code Permissions for it to work. If I have both CES Parser Permissions and Advanced BB-Code Permissions installed, I get no parsing at all on my posts. With the exception of the quick reply box. No idea why it works only there.

I can disable my CES Parser Permissions and my posts work fine, but my Profile Fields don't get parsed.

Any ideas which way I should go here? I'll be honest, the only reason I have CES [anything] installed is to parse the Comments on my user Profiles. Any way to just add parsing those comments to this hack? Then I could remove the other two and just have this one!

I've tried having the text editor of the comments section convert the text, but it doesn't work on all the codes my users enter. As a matter of fact it doesn't work on most any html code. I just end up with alot of garbled text in everyones comments.

carmichael1973 05-21-2007 06:51 PM

Will pay someone to fix this for me or give me advice on how to fix it.

Thanks!

thincom2000 05-22-2007 02:00 AM

I had this same issue, I will look into what I did to fix it.

EDIT: Apparently I was sitting on an update for the past week and just forgot about it. The fix revolved around wrapping one line of code in a conditional, and moving the execute order of one of the plugins.

thincom2000 05-22-2007 02:25 AM

ATTENTION! Users of ADVANCED BB-CODE PERMISSIONS... There is a conflict that arises when a postbit has profile fields that are parsed:

To parse the profile fields in the post, the function do_parse() is called directly, skipping the hook location bbcode_parse_start. As a result, the BB-code tag list is not saved in memory, and when bbcode_parse_complete is executed thereafter, it restores an empty tag list, resulting in nothing being parsed from that point onward.

To fix this error, make sure you are running the most recent build of CES Parser Permissions, and modify the Advanced BB-Code Permissions plugin for the hook bbcode_parse_complete.

Replace the code with:
PHP Code:

if (!empty($this->bbcode_tag_list) AND (THIS_SCRIPT != 'misc'))
{
    
$this->tag_list $this->bbcode_tag_list;



Sychev_S 05-23-2007 07:12 AM

I get this error after upgrade:
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3553

please help!!!

thincom2000 05-23-2007 04:17 PM

That doesn't make much sense. This sounds like what would happen if the Usergroup Permissions for this hack don't even exist, but I can't find the line where your error is occurring. What page are you getting this error on? And what version of vBulletin are you running?


All times are GMT. The time now is 04:04 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.01332 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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