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)

Baldilocks 07-05-2008 07:15 AM

Probably, but I wouldn't know where to begin. LOL.

lisss001 07-06-2008 03:43 PM

I will look into the RSS issue, could you give me more information please ?

ShawneyJ 07-15-2008 05:40 AM

wow what a life saver thanks, my site just got attacked with po.rn pics :D
cheers.

joelozito 07-18-2008 12:14 PM

Hi, I installed the file and it worked immediately, thanks!

The one problem I'm having is with my automatic RSS Feed poster. Once I installed this mod, the RSS Feeds stopped being automaticaly fed into my forums. It doesn't give an error, but I'm wondering if it's because the userid associated with the Feed poster has less than 15 posts. I posted 15 as that userid, but still no luck.

Any ideas?
Thanks,
Joe

joelozito 07-19-2008 03:25 PM

Hi all,

I have an update on this issue. I used TitanJeff's suggestion from 01 Jul 2008 11:14 and the RSS Poster started working.

Thanks TitanJeff!
-j

TitanJeff 07-19-2008 03:33 PM

I couldn't find the solution. What did you do? Thanks.

joelozito 07-19-2008 03:42 PM

I used the technique in this post:
https://vborg.vbsupport.ru/showpost....4&postcount=90

TitanJeff 07-19-2008 04:18 PM

Great. Where does that piece of code go? Between the <phpcode> and </phpcode>?

joelozito 07-19-2008 11:00 PM

Yep. Exactly.
-j

TitanJeff 07-20-2008 03:22 AM

I don't know what I'm doing wrong. I'm getting error codes each time I try to overwrite with the modified code. Would you mind posting you entire code? Thanks.

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

Chadi 08-22-2008 07:03 PM

Quote:

Originally Posted by pmkb (Post 1521661)
FYI - This mod is not preventing images/links from being posted in 3.7's social groups.

It might or might not be working for profile visitor comments - I'm not sure yet (haven't tested).

This is a feature that should be implemented. Its a great idea.

hjogi 08-26-2008 08:23 AM

Quote:

Originally Posted by ZombieAndy (Post 1603304)
Anyway to exclude specific members or usergroups? would be great! thanks

for member exclusion, I think that the simple way is to edit the XML in this way:

Replace
Code:

if (($vbulletin->userinfo[posts] < 10) and
with
Code:

if (($vbulletin->userinfo[posts] < 10) and ($vbulletin->userinfo[userid] <> XX)
where XX is the ID of the user that you wish to exclude from this check.


for the group exlusion, edit the XML in this way:
Replace
Code:

if (($vbulletin->userinfo[posts] < 10) and
with
Code:

if (($vbulletin->userinfo[posts] < 10) and (!is_member_of($vbulletin->userinfo, YY))
where YY is the ID of the group that you wish to exclude from this check.

I will try
hjogi

lisss001 08-27-2008 01:06 AM

Certain members have been suggesting code edits for this modification. I have tried them and they just make this product stop working. Please do not attempt any manual code edits as it may stop the product from functioning. I am open to suggestions and improvements for the further development of this modification.

Please send me any code you would like included via P.M, DO NOT post it here. I can do testing and you will be credited if your code addition is added.

Feel free to offer support, suggestions and installation advice.


Keyser S?ze 08-27-2008 01:27 AM

i just got an email saying this was updated but i dont see thaat it was

** DO NOT REPLY TO THIS MESSAGE **

* Manual Update Notification *

The following modification has been updated (by lisss001) ;

Forbid Users from Posting Links or Images if They Have Fewer than 15 Posts
https://vborg.vbsupport.ru/showthrea...hreadid=178611

Reason ;

lisss001 08-27-2008 06:52 AM

I just sent out a message stating that any users that have modified the code should immediately re-install for security reasons as the mod will not work. It's a matter of urgency. I done extensive code testing on it last night and all code modifications seem to stop it from functioning.

douffle 09-01-2008 07:14 PM

Is there a way to set the number of links to be made other than 15?

Thanks

lisss001 09-01-2008 08:57 PM

Hi, sorry this mod is designed for less then 15 only. This is all this mod is for, sorry.

douffle 09-02-2008 02:17 AM

Quote:

Originally Posted by lisss001 (Post 1612333)
Hi, sorry this mod is designed for less then 15 only. This is all this mod is for, sorry.

I changed it in the .xml from 15 to 5 and it seems to work OK.
Thanks, I'll mark it as installed.

realmr 09-05-2008 11:59 AM

Can we set it up for usergroup based permissions ? i.e Admins, mods, supermods and donors don't have the restriction

realmr 09-05-2008 12:05 PM

Quote:

Originally Posted by lisss001 (Post 1607821)
Certain members have been suggesting code edits for this modification. I have tried them and they just make this product stop working. Please do not attempt any manual code edits as it may stop the product from functioning. I am open to suggestions and improvements for the further development of this modification.

Please send me any code you would like included via P.M, DO NOT post it here. I can do testing and you will be credited if your code addition is added.

Feel free to offer support, suggestions and installation advice.


need permissions, such a way few usergroups could override the restriction

TitanJeff 09-05-2008 12:55 PM

Has the issue of this shutting down the rss feeds been addressed yet? I'd love to use this if it has.

aldamon 09-05-2008 04:14 PM

I changed this to less than 1 post because 15 is too high for our board. Thanks for the hack!

kevcj 10-01-2008 06:36 PM

Does this add an extra query to the database or any extra server load?

CtrlAltDel 10-01-2008 07:01 PM

Thank you, one of my forums got slammed today and the clean up was a PITA.

Keyser S?ze 10-01-2008 07:59 PM

would it be possible to add a block to whats called ed2k links, i had this one little bastard flooding my forums with them to things i wont mention here

most of an ed2k link is gibberish but u can also see letters inside the gibberish and all ed2k links start out like "ed2k://"

Charlie98902 10-02-2008 01:12 PM

I am wanting to use this but I want to change the amount of posts before you can use either is this possible?

Keyser S?ze 10-02-2008 08:37 PM

Quote:

Originally Posted by Charlie98902 (Post 1635595)
I am wanting to use this but I want to change the amount of posts before you can use either is this possible?

yea i did the same, i changed it to fewer than 3 posts, just to take care of bots

admincp>plug-in manage>edit the plaug-n, i think ull see it the setting is clearly there and right near the top

Charlie98902 10-02-2008 08:49 PM

Quote:

Originally Posted by Keyser S?ze (Post 1635975)
yea i did the same, i changed it to fewer than 3 posts, just to take care of bots

admincp>plug-in manage>edit the plaug-n, i think ull see it the setting is clearly there and right near the top

If I am right it is this that needed editing? Where it says 15?

Code:

global $vbulletin;
                $pagetext =& $this->fetch_field('pagetext', 'post');
                if (($vbulletin->userinfo[posts] < 15) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://')))
    {
                    //eval(standard_error(fetch_error('error_nourlallowed')));
                                $this->error('error_nourlallowed');
                                $return_value = false;
    }


Charlie98902 10-02-2008 09:31 PM

Okay that works but I can't find where I can edit the default message. If I try to post links or a pic the first time posting it says :

1. You are only allowed to post URLs to other sites after you have made 15 posts or more.

I need to be able to edit that. Anyone know how? Thanks

Keyser S?ze 10-02-2008 09:48 PM

yea, the msg go to lang & phrases, its in global i think but i dont recall the exact name


All times are GMT. The time now is 03:51 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.01425 seconds
  • Memory Usage 1,819KB
  • 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
  • (5)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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