|
|
Joined: Feb 2007
Posts: 329
Yarp™
|
Yarp™
Joined: Feb 2007
Posts: 329 |
This mod replaces any image tags in a quote and replaces them with url tags. open /scripts/quickquote.inc.php Find: Add after: $post_body = preg_replace('%\[(img|img:left|img:right|img:center|image|image:left|image:center|image:right)\]%i', '', $post_body); $post_body = preg_replace('%\[(/img|/image)\]%i', '', $post_body);
open /scripts/newreply.inc.php Find: add after: $RawBody = preg_replace('%\[(img|img:left|img:right|img:center|image|image:left|image:center|image:right)\]%i', '', $RawBody); $RawBody = preg_replace('%\[(/img|/image)\]%i', '', $RawBody);
That's it. I also have a line that replaces youtube with a link. that you could implement that also for other video's you might embed. Above works for [youtube]url or id[/youtube].
Last edited by blaaskaak; 03/21/2009 2:26 PM.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
I like it, heres a vote to make it in the next build :x...
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Oooo... good idea! ![[Linked Image]](https://www.drumlines.org/threads/images/graemlins/default/70409-waytogo.gif)
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
|
|
|
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: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|