![]() |
can you add no PM to this too?
|
You could, but I'm not going to because I don't need that feature.
|
Quote:
|
Quote:
|
I don't use articlebot. It's going to be up to a user who uses both of these mods to find a fix.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
******************HACK*******************
If you are using my Articlebot hack you will need to implement this hack to amykhar's so that the two can coexist. You should probably implement it if you want to ensure it will not interfere with any automated posting script. Simply change the plugins so they are wraped in this if clause that checks if the post/thread is being made by human or bot. replace the code in the plugins with: PHP Code:
Jump |
Quote:
|
Future release maybe inline address bypass :) Because message says
You are only allowed to post URLs to other sites after you have made 15 posts or more. But not accept normal forum address :) Thanks |
Thanks a lot Amy x]
|
Many many thanks for the incredibly useful product. Ah, think of the trouble I'd've saved if I'd only had this over the past seven years of my site ... !
|
Anyone know if this works in 3.5.4? Thanks.
|
Quote:
|
This stops smilies from working as well, can this be fixed ?
|
I don't think this has been addressed...
For my site, when a member with less than 15 posts tries to log on, instead of the "you've logged on" page, they get the "users with too few posts cant post links" page. They still log on successfully, but it doesn't redirect them, and could cause confusion. EDIT: Hmmm, apparently, it only happened once, with an admin-created account. Odd. |
Quick question, and a newbie one at that. Can I modify this to require a minimum amount of User Reputation instead of a minimum number of posts? What would I need to change to do this? Thanks.
|
Nice. Just what I was looking for. Clicks install :D.
|
@amykhar
This Hack has a serious bug which causes issues with other Hacks that automatically create threads (and are using others users for this): You check the posts for the viewing user, instead of checking the posts for the user that makes the post. Corrected Plugins: postdata_presave PHP Code:
PHP Code:
|
This causes an error on my board for anyone replying to a thread:
Warning: Missing argument 1 for fetch_userinfo() in /includes/functions.php on line 998 Quote:
|
sandman, the parameter for fetch_userinfo is $userid.
|
I knew I would mess up something ^.^
Though, it was just the missing userid as amy already pointed to - edited the post. |
Thanks!
|
Title is ......Fewer than 15 Posts but here is (($userinfo['posts'] < 2) It must be 15 I think :)
|
Quote:
|
Quote:
|
Mod is great However, amykhar is there a way to disable it for certain forums. For example this would conflict with the Reported Posts mod since members with less then 15 posts would not be able to report posts.
I tried the following but it didnt work. if (($vbulletin->userinfo[posts] < 15) and ($vbulletin->forum[forumid]!=X) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) { |
Is there a way to let the users who has less than 15 posts be able to post Smiley faces? Right now if a user types in a message and uses a smiley faces it doesn't let them post. Frankly I don't mind the smiley faces...? Anyone know how to change this?
Thanks!!! |
the whole $vbulletin->forum[forumid] bit is your problem. First, you need to see if the forumid is in scope for the plugin. If it is, you're probably supposed to be checking $foriuminfo[forumid] or $forum[forumid] , leave off the vbulletin part.
|
Ok, I am showing my complete ignorance...but I would rather do it right than screw it up.
1) where in the cp panel to I upload the xml file to? (styles/templates?) 2) I am running 3.0.7...will it work on this version. Thanks for your assistance. |
sitetutor, you need to use mods in the 3.0 section NOT the 3.5 section
|
This code worked perfectly for me until I added ArticleBot. I then was told to change this code to:
if(!SKIP_SESSIONCREATE) { 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_nourlallowe d'))); $this->error('error_nourlallowed'); $return_value = false; } } Now it's not working. I can't seem to figure out the problem. Any suggestions? Thanks. |
Okay so the XML code is below... what would I do to change to so that the user would be able to post images such as smiley faces?? Anyone know
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="amykhar_09082005" title="No Links or Images Allowed for People with Fewer t" description="Throws an error message for spammers." version="1.1" active="1"> <codes> </codes> <templates> </templates> <plugins> <plugin active="1"> <title>No Links for People with fewer than 20 posts.</title> <hookname>newthread_post_start</hookname> <phpcode><![CDATA[$pagetext = $vbulletin->GPC['message']; if (($vbulletin->userinfo[posts] < 20) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) { eval(standard_error(fetch_error('error_nourlallowe d'))); }]]></phpcode> </plugin> <plugin active="1"> <title>No Links for People with fewer than 20 posts.</title> <hookname>newreply_post_start</hookname> <phpcode><![CDATA[$pagetext = $vbulletin->GPC['message']; if (($vbulletin->userinfo[posts] < 20) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) { eval(standard_error(fetch_error('error_nourlallowe d'))); }]]></phpcode> </plugin> <plugin active="1"> <title>No Links for People with fewer than 20 posts.</title> <hookname>editpost_update_start</hookname> <phpcode><![CDATA[$pagetext = $vbulletin->GPC['message']; if (($vbulletin->userinfo[posts] < 20) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) { eval(standard_error(fetch_error('error_nourlallowe d'))); }]]></phpcode> </plugin> </plugins> <phrases> <phrasetype name="Front-End Error Messages" fieldname="error"> <phrase name="error_nourlallowed"><![CDATA[You are only allowed to post URLs to other sites after you have made 20 posts or more.]]></phrase> </phrasetype> </phrases> <options> </options> </product> |
It's not blocking smilies for new users on my site. At least not from my experience. It would stop them from posting remote smilies, but it doesn't seem to impact the local ones.
|
can i modify this so that i can block certain user groups from posting pics regardless of their post count??
|
Yes. you could.
|
man that was fast! haha....would i just add a conditional in front of it with the usergroupid??
|
Trying to make one more appeal here since I enjoyed this hack.
This code worked perfectly for me until I added ArticleBot. I then was told to change this code to: if(!SKIP_SESSIONCREATE) { 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_nourlallowe d'))); $this->error('error_nourlallowed'); $return_value = false; } } Now it's not working. I can't seem to figure out the problem. Any suggestions (besides dumping AB)? Thanks. |
All times are GMT. The time now is 06: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|