|
|
Joined: Mar 2004
Posts: 118
Journeyman
|
Journeyman
Joined: Mar 2004
Posts: 118 |
How to restrict number of images and smilies in a post? $config[imgNum]=5 would be config setting [] http://www.drogart.org/ubbthreads/images/graemlins/wasntme.gif[/] I used the search function but I got only signature restriction (addpost?, editpost?). I do not know where to count img tags
Kind regards, PaNTerSan
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
You would have to build a new function and build it into the templates of Postlist and addpost
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
You can use my signature restriction hack as a guide. You'll have do extend the do_markup() function in ubbt.inc.php just as I did for the signature check. You could even use my modified version and just modify the do_markup() call in addpost.php and editpost.php as I did for the changebasic.php.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|