vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Moderators Functions - Z - X Posts Before Links (https://vborg.vbsupport.ru/showthread.php?t=232061)

Zaiaku 01-06-2010 03:18 PM

To everyone getting the parse error I think I got it figured out what's going on and have been able to fix it although I'm been like hell trying to reproduct this error and I can't. So give me a bit of time to go through a few things.

linuxututs 01-06-2010 07:58 PM

Thanks again Zaiaku,

I got faith in you. :)

Thanks,

Boots 01-06-2010 09:06 PM

I looked at your code and see the error:

Code:

                        <hookname>threadfpdata_presave</hookname>
                        <phpcode><![CDATA[// Zaiaku needs data
global $vbulletin;
$pagetext =& $this->fetch_field('pagetext', 'post');
if (($vbulletin->userinfo[posts] < $vbulletin->options['z_xpbl_amount'])) and (stristr($pagetext,'[url') or stristr($pagetext,'://') or stristr($pagetext,'[URL') or stristr($pagetext,'www.')))
        {
        // Zaiaku doesn't give you permission yet
        $this->error('z_xpbl_error');
        $return_value = false;
}]]></phpcode>

You have an extra parenthesis in there (highlighted in red) and it's messing up the if statement. Basically you are terminating the if statement and then continuing on with the logical operator which is why PHP throws the error.

I've attached a fixed copy. I'll remove it when you get yours updated.

edit: removed

linuxututs 01-07-2010 12:01 AM

That fixed it "Zaiaku" !

"Errors
The following errors occurred with your submission
You are not allowed to post any kinds of links, images or videos until you post a few times."

Freaking A ! Great!

Thank you to "boots" for finding the error in the code to. :)

Thanks,

P.S. Amazing what people can do when they work together......

Zaiaku 01-07-2010 12:31 AM

That's what I noticed earlier was that extra ")" wierd that it was there. I should have another version of this up tonight, I've been working on my first post artyle mod for vb4 for today.

linuxututs 01-07-2010 01:18 AM

Looking forward to it. :)

Thanks for all your hard work,

Zaiaku 01-07-2010 03:13 AM

Version 1.1 is up but I was hoping to get version 1.2 up tonight but for some reason isn't working properly for some odd reason. 1.1 fixes the error people was getting with the Parsing.

Zaiaku 01-07-2010 04:09 AM

OK Version 1.3 is now available. This can now be assigned to multiple usergroups. I got determined to fixing this so should be good to go.

1.2 was not released publicly becuase it has alot of extra features so it went to a whole other project.

linuxututs 01-07-2010 04:46 AM

Ok, I'll test it for you. :)
Gladly, and thanks for the option's.
Perfect Mod, can't get any better as far as I can tell......

Thanks,

MOTM !

UPDATE: Tested and working 100% !

Love that error message...
Quote:

Errors
The following errors occurred with your submission
You are not allowed to post any kinds of links, images or videos until you post a few times.

rajubd 01-07-2010 05:39 AM

also add mail address in to it bro because some seller spaming with there mail address


All times are GMT. The time now is 03:12 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.01138 seconds
  • Memory Usage 1,735KB
  • 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_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