![]() |
Users can not use IMG tag if they have less than 20 posts
This hack will prevent new users from posting any images using the UBB IMG
tag until they have 20 posts. This hack was requested by Remi. New templates: 1 --> error_noimagesallowed Modified files: 2 --> newthread.php and newreply.php ################################################## #################### Create a new template by the name of: error_noimagesallowed Copy the following information in it: Quote:
In newthread.php: Look for: PHP Code:
PHP Code:
Look for the following code: PHP Code:
PHP Code:
|
Works fine! Thanks a lot! I was needing this!
|
I'd replace the [img] tag with "I am a fool", but that's just me. ;) Good work.
|
^^LMAO
|
Zzed
YOU are GREAT https://vborg.vbsupport.ru/external/2011/01/19.gif https://vborg.vbsupport.ru/external/2011/01/19.gif Thank you very much, this is wounderfurll :D |
Thanks for the hack. Great job on it!
|
Thank you guys for all the kind words. :)
|
I think I am sure, but what would you have to change ezactly to make it count for other VbTags??
|
One big problem - it doesn't allow users to post normal smilies too.
Any way around this? |
Sorry. :( I'll work on it.
|
Thanks!
|
You don't need to check the parsed message for [img] code, you can do that right in the source:
Code:
$posts_needed_for_img = 20; |
Perfect. :)
But I would recommend using stristr() instead. ;) Thanks FireFly. :) |
Quote:
|
Firefly, you're right.
It works like a charm. The master has done it again. :D |
All times are GMT. The time now is 05:59 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:
|