[2.0.15] remove_images

The cleanup is complete. This forum is now read only.
Post Reply

Rating:

Excellent!
0
No votes
Very Good
1
33%
Good
2
67%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 3

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29220
Joined: Sat Aug 16, 2003 7:36 am

[2.0.15] remove_images

Post by Extensions Robot »

MOD Name: remove_images
Author: Blankety Blank Man
MOD Description: Removes images from signatures in chosen forums (removal of avatars is optional), or replaces them with something else.


MOD Version: 1.0.4

Download File: remove_images_1_0_4.mod
mods overview page: View
File Size: 4426 Bytes

Security Score: 0
Last edited by Extensions Robot on Mon Apr 30, 2007 12:27 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost »

MOD Validated/Released

Notes:
Removes images from signatures in select forums through a selection process that's hard-coded in viewtopic.php.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Post by 3Di »

that's nice. indeed.

looking forward to watching all the feedback.

Greets.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Blankety Blank Man
Registered User
Posts: 881
Joined: Wed Mar 30, 2005 3:54 am

Post by Blankety Blank Man »

Thanks, 3Di :)
It's my first mod, and I finally got it accepted. I will be watching this topic for questions and problems (of course), and I'm thinking about maybe making an ACP module for this, but I don't know if I'll get around to it, since I'm always switching projects, and often working on 3 at a time ;)

PS: Even though I'll be watching this topic for replies, I'm out of town a lot this summer, and may not be able to reply quickly (I am leaving for Costa Rica on Saturday for 3 weeks, and probably won't have internet access). I apologise in advance for any problems my absences (I have multiple trips) may cause :)
agent00shoe
Registered User
Posts: 373
Joined: Sat Feb 12, 2005 9:39 pm

Post by agent00shoe »

Great idea! This will definitely come in handy for hiding raunchy AVs in some of our work-safe forums.
snafumaster
Registered User
Posts: 77
Joined: Wed Jun 23, 2004 11:07 am
Location: S. of Boston
Name: Matthew Gendreau
Contact:

Post by snafumaster »

agent00shoe wrote: Great idea! This will definitely come in handy for hiding raunchy AVs in some of our work-safe forums.
I know what you mean dude :wink:
dehead
Registered User
Posts: 1
Joined: Thu Jan 26, 2006 6:08 pm

Post by dehead »

Is this mod a global setting or can users define if they want to see avatars?
Blankety Blank Man
Registered User
Posts: 881
Joined: Wed Mar 30, 2005 3:54 am

Post by Blankety Blank Man »

neither - this mod removes images from specific forums for all users. Reading the authors notes:
My first mod, made by request of one of hte moderators on my forum, to remove
images from the signatures in the Trade Forum so that users could not create flashy
signatures to draw people to thier trade topics.


It was designed so that there are NO images chosen by the user for the forum. For that and other reasons (esp. my working on other MODs), I have no plans of expanding it.
DimmisMC
Registered User
Posts: 5
Joined: Mon Sep 25, 2006 8:37 am
Location: Greece

Post by DimmisMC »

Nice mod i'd say!

Just one question...

Is there a way to remove both phpbb and html sigs code, since this Mod is written only for phpbb signatures tags?


I quess this is the value that has to be changed...

$regex_pattern = "#\[img:$user_sig_bbcode_uid\]([^\[]*)\[/img:$user_sig_bbcode_uid\]#";

Thanks in advance! :)
Blankety Blank Man
Registered User
Posts: 881
Joined: Wed Mar 30, 2005 3:54 am

Post by Blankety Blank Man »

$user_sig_bbcode_uid is a variable stored in the database to ensure that opening and closing tags match. If you wanted to remove HTML image as well as BBCode ones, use something like:

Code: Select all

$regex1 = "#\[img:$user_sig_bbcode_uid\]([^\[]*)\[/img:$user_sig_bbcode_uid\]#";
$regex2 = "#<img .*?src=[\"'](.*?)[\"'].*?>#";
$replace = '';
$user_sig = preg_replace($regex1,$replace,$user_sig);
$user_sig = preg_replace($regex2,$replace,$user_sig);
That's just off-the-cuff code, you understand, and may not be perfect, but it's closer than just changing $user_sig_bbcode_uid would get you (only changing $user_sig_bbcode_uid would not remove HTML images, but it would stop removing BBCode ones)
DimmisMC
Registered User
Posts: 5
Joined: Mon Sep 25, 2006 8:37 am
Location: Greece

Post by DimmisMC »

IT WORKS PERFECT FOR ME! :D

Thank you Blankety Blank Man. :wink:
Post Reply

Return to “[2.0.x] MOD Database Cleanup”