vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Forbid Users from Posting Links or Images if They Have Fewer than 15 Posts (https://vborg.vbsupport.ru/showthread.php?t=178611)

joelozito 07-20-2008 04:00 PM

I'm not sure if there are legal issues around posting the entire code, so here are the details: In the XML file, there are two code blocks surrounded by <phpcode> ... </phpcode>. In both those code blocks, you need to do the following:

Replace
<phpcode><![CDATA[
global $vbulletin;
...

With
<phpcode><![CDATA[if(!SKIP_SESSIONCREATE)
{
global $vbulletin;
...

And replace
$return_value = false;
}
]]></phpcode>

With

$return_value = false;
}
}]]></phpcode>

lisss001 07-20-2008 09:15 PM

I will add this to the mod once I have tested it and update for you guys ;)

BucWiLd 07-21-2008 01:59 AM

installed, ty much

TitanJeff 07-21-2008 07:52 AM

Quote:

Originally Posted by joelozito (Post 1579902)
I'm not sure if there are legal issues around posting the entire code, so here are the details: In the XML file, there are two code blocks surrounded by <phpcode> ... </phpcode>. In both those code blocks, you need to do the following:

Replace
<phpcode><![CDATA[
global $vbulletin;
...

With
<phpcode><![CDATA[if(!SKIP_SESSIONCREATE)
{
global $vbulletin;
...

And replace
$return_value = false;
}
]]></phpcode>

With

$return_value = false;
}
}]]></phpcode>

Thanks for detailing that info for me. I've got it in place now so I'll give it a go.

TLCTugger 07-29-2008 03:23 AM

Installed. Exactly what I needed, thanks.
-Ron

TitanJeff 07-30-2008 06:32 PM

The RSS works but this hack does not on my board. Must be a conflict with something.

baktabul 08-04-2008 01:49 AM

Thank you excellent!

Rebecca217 08-17-2008 04:09 PM

This is exactly what I needed. Thank you! :)

Rebecca

Octane1 08-20-2008 05:10 PM

Does this hack work for private messages also?

ZombieAndy 08-20-2008 09:25 PM

Anyway to exclude specific members or usergroups? would be great! thanks


All times are GMT. The time now is 11:55 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.01203 seconds
  • Memory Usage 1,733KB
  • 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_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