Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 11:21 am EST
Geeklog Forums
autotags formatting
DiRT
Anonymous
I'm trying to get auto tags installed so that I can post YouTube and Revver content. I'm having one problem though...
It installs fine and tries to work, but the formatting gets screwed up every time I save. for instance, the default YouTube entry looks like this:
If I enable it and hit save, it turns into this:
This happens to any and all entries I submit. Everything looks fine until I hit save and these \ appear.
It installs fine and tries to work, but the formatting gets screwed up every time I save. for instance, the default YouTube entry looks like this:
Text Formatted Code
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/#1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/#1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>If I enable it and hit save, it turns into this:
Text Formatted Code
<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/#1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/#1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>This happens to any and all entries I submit. Everything looks fine until I hit save and these \ appear.
10
9
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Status: offline
DiRT
Forum User
Newbie
Registered: 04/13/08
Posts: 13
Thanks. I had searched and found nothing on my own.
Just so you know, it was this code:
$display = saveautotags($tag,
COM_applyFilter($_POST['old_tag']),
COM_applyFilter($_POST['description']),
COM_applyFilter($_POST['is_enabled']),
COM_applyFilter($_POST['is_function']),
COM_stripslashes($_POST['replacement']));
that fixed it.
This code:
$subject = stripslashes($record['replacement']);
seemed to have no effect.
Just so you know, it was this code:
Text Formatted Code
$display = saveautotags($tag,
COM_applyFilter($_POST['old_tag']),
COM_applyFilter($_POST['description']),
COM_applyFilter($_POST['is_enabled']),
COM_applyFilter($_POST['is_function']),
COM_stripslashes($_POST['replacement']));
that fixed it.
This code:
Text Formatted Code
$subject = stripslashes($record['replacement']);
seemed to have no effect.
11
11
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
It's fixed in my local SVN repository. I just need to finish a couple things and repackage it.
11
10
Quote
All times are EST. The time is now 11:21 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content