| | |
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Autor | Správa |
---|
Registrovaný: 01.05.05 Príspevky: 13342 Témy: 1494 Bydlisko: Bratislava | Napísal JanoF: 13.10.2006 9:29 | |
|
Kód: ############################################################## ## MOD Title: remove_images.mod ## MOD Author: Blankety Blank Man < blanketyblankman@gmail.com > (Brian Shields) http://edos.siteburg.com/phpBB2/index.php ## MOD Description: Removes images from signatures in chosen forums (removal of avatars is optional), ## or replaces them with something else. ## MOD Version: 1.0.2 ## ## Installation Level: Easy ## Installation Time: ~1 Minute ## Files To Edit: viewtopic.php ## Included Files: N/A ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/ ############################################################## ## Author 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. ## ## Selecting the forum: ## At the line 'if($forum_id == 1)' replace the 1 with the forum id (viewforum.php?f=[ID]) ## of the forum you wish to affect. ## ## Selecting multiple forums (less than half of total): ## If you have more than one forum you wish to remove images from, change the 'if($forum_id == 1)' ## to 'if($forum_id == 1 || $forum_id == 2)' for $forum_id's 1 and 2, ## 'if($forum_id == 1 || $forum_id == 2 || $forum_id == 3)' for $forum_id's 1, 2, and 3, etc. ## ## Selecting multiple forums (more than half of total): ## If you want to remove image from more than half of your forums, do the above for the forums ## that _will_ have images, but instead of '==' use '!=', because this way you have less to ## actually type. ## ## Removing avatars: ## At the line '//$poster_avatar = '';' remove the comment slashes (//) in order to remove ## avatars. ## ## Replacing avatars: ## Uncomment the '//$poster_avatar = '';' line, and place something between the quotes in order to ## replace the avatar with something of your own. example: ## $poster_avatar = '[No avatars allowed in this forum]'; ## ## Replacing images: ## Rather than removing the images entirely, you can replace then with something else by ## changing the line '$replace = '';' with what you want to replace. I you want to use HTML, ## HTML will have to be enabled on your board and the user will need HTML to be enabled. ## If you want to use BBCode, you'll have to add the id to the tag. example: ## $replace = '[img:'.$user_sig_bbcode_uid.']noimgsallowed.gif[/img:'.$user_sig_bbcode_uid.']'; ## ## Replacing images with the image url: ## If you uncomment the line '//$replace = '\\1';', then only the [img] and [/img] will be removed, ## not the url of the image. So, '[img]http://mysite.com/myimage.gif[/img]' will become ## 'http://mysite.com/myimage.gif' ############################################################## ## MOD History: ## ## 2005-04-25 - Version 1.0.1 ## - v1.0.0 EasyMOD and security rejection problems (hopefully) fixed ## - Sped up script by a minute amount -- unoticeable, but something ## ## 2005-04-16 - Version 1.0.0 ## - Mod created and (if you're reading this) probably validated :D ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##############################################################
# #-----[ OPEN ]------------------------------------------ # viewtopic.php
# #-----[ FIND ]------------------------------------------ # around line 1051 $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid'];
# #-----[ AFTER, ADD ]------------------------------------------ # if($forum_id == 1) { $regex_pattern = "#\[img:$user_sig_bbcode_uid\]([^\[]*)\[/img:$user_sig_bbcode_uid\]#"; $replace = ''; //$replace = '\\1'; $user_sig = preg_replace($regex_pattern,$replace,$user_sig); //$poster_avatar = ''; }
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Podobné témy | Témy | Odpovede | Zobrazenia | Posledný príspevok |
---|
| Restrict images in signatures v Redakčné systémy | 0 | 400 | 14.10.2006 15:11 JanoF | | blood 2 the chosen nightmare levels v Počítačové hry | 4 | 498 | 03.02.2011 21:11 radoDM | | Simple Sub Forums error v Redakčné systémy | 2 | 643 | 10.10.2008 19:51 Risho_rk | | Chyba Easy Sub forums v Redakčné systémy | 8 | 556 | 12.09.2007 20:22 pepek92 | | Removes number of times a post is edited v Redakčné systémy | 0 | 717 | 13.10.2006 9:26 JanoF | | images v HTML, XHTML, XML, CSS | 9 | 548 | 24.11.2009 15:44 Svolo | | images upload v PHP, ASP | 8 | 812 | 20.07.2006 13:57 scooby | | background+images v HTML, XHTML, XML, CSS | 1 | 292 | 12.07.2013 17:17 shaggy | | Remove Images MOD v Redakčné systémy | 0 | 2502 | 14.10.2006 15:21 JanoF | | Problem s images v Počítačové hry | 14 | 1237 | 25.07.2008 21:10 eXistenZ | | java - SimpleWindow a Images v Assembler, C, C++, Pascal, Java | 2 | 326 | 27.11.2011 20:07 mack0 | | CSS Multi Backrounds images v HTML, XHTML, XML, CSS | 4 | 350 | 05.02.2014 12:37 F3RY | | Scripty pre Images hosting v Ostatné | 0 | 986 | 02.11.2006 13:07 Exodus | | Niečo ako preload images ale text v JavaScript, VBScript, Ajax | 7 | 619 | 08.09.2011 11:58 camo | | From Dust v Počítačové hry | 1 | 426 | 20.08.2011 22:52 InVader | | boot from cd v Notebooky a netbooky | 3 | 283 | 20.02.2013 20:06 lukac |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|