Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Allow HTML in Textarea
Old 07-09-2008, 05:46 PM Allow HTML in Textarea
Average Talker

Posts: 28
Name: Dario
Trades: 0
As you can see HERE this is a script for adding videos on joomla. But what I want. When you upload your videos there is a input text field, but when you try to edit that video you can see textarea like HERE
How Can I allow users to put there their adsense code so adsense ads shows up?

Here is PHP Code
http://www.sendspace.com/file/xpvho3

Last edited by Dario; 07-09-2008 at 05:47 PM..
Dario is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-09-2008, 11:35 PM Re: Allow HTML in Textarea
Skilled Talker

Posts: 71
Trades: 0
You can do this two easy ways:

1. go to line 580
PHP Code:
$striptheviddetails=strip_tags($theviddetails); 
The strip_tags function removes all HTML tags. You can remove this line to disable this. If you do that, then you have to modify line 581.

Change:
PHP Code:
$mainframe->prependMetaTag'description'$striptheviddetails ); 
To:
PHP Code:
$mainframe->prependMetaTag'description'$theviddetails ); 
OR

You can change the strip_tags function, to allow certain tags. Going back to line 580 for an example:

PHP Code:
$striptheviddetails=strip_tags($theviddetails,'<b><a>'); 
This will allow the bold tag, <b>, and the anchor tag, <a>. Just put whatever takes you want between the two single quotes.

Hope that helps.
CrazeDizzleD is offline
Reply With Quote
View Public Profile
 
Old 07-10-2008, 06:32 AM Re: Allow HTML in Textarea
Average Talker

Posts: 28
Name: Dario
Trades: 0
hmm, it doesnt work, maybe I need to change some other options in some other files?
there are a lot of files. Maybe this one http://www.uploading.com/files/36H7NCQU/seyret.php.html

Sorry for this long code, but It is very important. Please help me. Thanks

Last edited by Dario; 07-10-2008 at 11:58 AM..
Dario is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Allow HTML in Textarea
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26505 seconds with 12 queries