[2.0.17] Quote With Or Without Images

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
4
40%
Very Good
3
30%
Good
2
20%
Fair
1
10%
Poor
0
No votes
 
Total votes: 10

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

[2.0.17] Quote With Or Without Images

Post by Extensions Robot »

MOD Name: Quote With Or Without Images
Author: poyntesm
MOD Description: This mod will make the normal quote replace a image with a link. A new quote button for keeping the image is introduced


MOD Version: 1.0.4

Download File: Quote_Mod_1.0.4a.zip
mods overview page: View
File Size: 3870 Bytes

Security Score: 0
Last edited by Extensions Robot on Mon Apr 30, 2007 12:29 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 »

MOD Validated/Released

Notes:
This MOD adds an additional icon in viewtopic, which allows posters to choose whether to quote the content with image displayed or convert it into URL.
User avatar
fazaljatoi
I've Been Banned!
Posts: 503
Joined: Wed Aug 31, 2005 8:02 pm

Post by fazaljatoi »

DEMO?
User avatar
poyntesm
Registered User
Posts: 1671
Joined: Tue Jan 18, 2005 11:19 am
Location: Dublin, Ireland
Contact:

Post by poyntesm »

fazaljatoi wrote: DEMO?


You can see it on my test site - http://www.13awingfield.com/imoc/forums/index.php

Username : test1
Password : test1
marcotics
Registered User
Posts: 58
Joined: Fri Sep 02, 2005 1:33 pm

Post by marcotics »

For those with the mod "Remove Quote Function From Guests" installed, you will see that the quote with image button will be shown. If you use the following mod, this to will be hidden.

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 

viewtopic.php

# 
#-----[ FIND ]------------------------------------------ 
# 

$quote_pic_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote_pic'] . '" alt="' . $lang['Reply_with_quote_including_images'] . '" title="' . $lang['Reply_with_quote_including_images'] . '" border="0" /></a>';

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
Capmaster
Registered User
Posts: 69
Joined: Tue Jul 05, 2005 1:26 pm

Post by Capmaster »

I posted a screen grab for the members in my feedback forum about the additional button, in case you want to see how it looks:

Image

Very handy hack. It keeps the graphic-centric threads from really getting cluttered with repeated images 8)
Image
Some mornings, it's just not worth chewing through the leather straps
User avatar
poyntesm
Registered User
Posts: 1671
Joined: Tue Jan 18, 2005 11:19 am
Location: Dublin, Ireland
Contact:

Post by poyntesm »

Cheers for the sceenshot. I should have grapped one to show you guys.

Glad you like it. It is simple but effective and has reduced clutter on my site.
User avatar
freddie
Registered User
Posts: 404
Joined: Sun Mar 31, 2002 1:40 pm
Location: Estes Park, USA
Contact:

Post by freddie »

screenshot

Image

you can change text in bold (prentje vervangen door url in quote) in lang_main
Mut
Registered User
Posts: 150
Joined: Fri Oct 21, 2005 9:09 am
Contact:

Post by Mut »

Is there a way I can take this out?
Image Replaced With URL For Quote
http://www.rolleyes.net/forums - A site for general discussion, anime, game, tv, movies, fun articles, and more. Come by and become a member.
User avatar
freddie
Registered User
Posts: 404
Joined: Sun Mar 31, 2002 1:40 pm
Location: Estes Park, USA
Contact:

Post by freddie »

replace Image Replaced With URL For Quote in your language file with " " (an empty space, nothing, spacebar ...) :)
reihome
Registered User
Posts: 5
Joined: Thu Apr 13, 2006 5:28 pm
Contact:

Post by reihome »

fazaljatoi wrote: DEMO?
aa
Willey
Registered User
Posts: 6
Joined: Thu Apr 20, 2006 12:34 pm

Post by Willey »

is there also a mod that just replaces the images in any quote for a link?

somethink like this:
user wrote: Click for image


"User" can be blank or with username (because I've read somewhere that this matters for the mod :? )

So the user is NOT given the option to include the image or not....and images will automatically will be replaced bij a link?

THANKS
craigpierce
Registered User
Posts: 70
Joined: Fri Nov 25, 2005 11:14 pm

Post by craigpierce »

ok, got this working, but i found an esoteric bug:

if the URL has the string 'img' in it, that will be replaced with 'url'...this was my test picture's URL:

http://img.alibaba.com/photo/51092517/Rain_Boot.jpg
craigpierce
Registered User
Posts: 70
Joined: Fri Nov 25, 2005 11:14 pm

Post by craigpierce »

Ok, I fixed that 'img' problem by replacing the two regular expressions with this one:

Code: Select all

$message = ( !empty($message) ) ? preg_replace('(img\])', 'url]', $message) : '';
diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re:

Post by diabolic.bg »

craigpierce wrote:Ok, I fixed that 'img' problem by replacing the two regular expressions with this one:

Code: Select all

$message = ( !empty($message) ) ? preg_replace('(img\])', 'url]', $message) : '';
The mod isn't work properly but this string really fixed the problem. Thanks craigpierce!
Post Reply

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