[solved] CREATIVE TAB...BIG PROBLEM??

17 years 4 months ago #25671 by Styles
Replied by Styles on topic Re:CREATIVE TAB...BIG PROBLEM??
Ok...solution found

make sure that, when adding flash to
a creative tab, the EMBED line of code is all on one line

EVEN IF THE HTML CODE TO EMBED FLASH IS GENERATED BY A THIRD PARTY...I HIGHLY RECOMEND REDOING THE CODE USING DREAMWEAVER

Hey!? I want karma too :(
____________________________________________________________

There's a reason they call me Styles with an S
www.stylesmedia.ca - www.sm-music.com - www.perfect-light.com
Want more? Got more!

Please Log in to join the conversation.

17 years 4 months ago #25677 by trail
Replied by trail on topic Re:CREATIVE TAB...BIG PROBLEM??
great to hear its solved :)

DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age , Starsign Matchmaking Horoscope , My Visitor , My Highscores , My ProfileID ,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many :)

Please Log in to join the conversation.

17 years 4 months ago #25768 by cgraham149
Replied by cgraham149 on topic Re:[solved] CREATIVE TAB...BIG PROBLEM??
I am having a very similar problem with my users signature tab.

Before, users could place code like this:

[code:1]<font face="Arial, Helvetica, sans-serif"> <strong>Name</strong><br />
<a target="_blank" href="www.linkedin.com/path_to_profile">
<a target="_blank" href="www.YourDomain.com">Company Name

Address<br />
City, State Zip<br />
Phone1<br />
Phone2<br />
<a target="_blank" href="email@domain.com">email@domain.com [/code:1]

Now, instead of showing nicely formatted HTML, all they see is the actual code.

I tried removing the "HTML" from the inputfilter.php file as well as modifying the ue_config.php.

Any ideas?

Please Log in to join the conversation.

17 years 4 months ago #25789 by beat
Replied by beat on topic Re:[solved] CREATIVE TAB...BIG PROBLEM??
cgraham149 wrote:

I am having a very similar problem with my users signature tab.

Before, users could place code like this:

[code:1]<font face="Arial, Helvetica, sans-serif"> <strong>Name</strong><br />
<a target="_blank" href="www.linkedin.com/path_to_profile">
<a target="_blank" href="www.YourDomain.com">Company Name

Address<br />
City, State Zip<br />
Phone1<br />
Phone2<br />
<a target="_blank" href="email@domain.com">email@domain.com [/code:1]

Now, instead of showing nicely formatted HTML, all they see is the actual code.

I tried removing the "HTML" from the inputfilter.php file as well as modifying the ue_config.php.

Any ideas?


Nothing to do with HTML filtering, but with the fact that textArea fields were wrongly typed.

You need to change the type of that field from textArea to EditorArea to get the same behavior. You can do this only in SQL (phpMyAdmin), as CB doesn't allow to change field types afterwards. Backup first in all cases.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

17 years 4 months ago #25814 by p9939068
Replied by p9939068 on topic Re:CREATIVE TAB...BIG PROBLEM??
Styles wrote:

Ok...solution found

make sure that, when adding flash to
a creative tab, the EMBED line of code is all on one line

EVEN IF THE HTML CODE TO EMBED FLASH IS GENERATED BY A THIRD PARTY...I HIGHLY RECOMEND REDOING THE CODE USING DREAMWEAVER


This is a rather "absurd" solution (sorry to use such a strong word). Most users have no idea as to how to "re-arrange" the html tags, and most, if not all will just know how to copy and paste from, say, the embed code of YouTube.

I'm still looking through the changes in 1.0.2. Hopefully i'll find something...


Mike Feng
Creator of SIMGallery, SIMAnswers, and ParaInvite
www.simbunch.com
twitter.com/simbunch

Please Log in to join the conversation.

17 years 4 months ago #25820 by p9939068
Replied by p9939068 on topic Re:CREATIVE TAB...BIG PROBLEM??
and yes i did find something. i don't know about you guys, but i allow my users to enter their video embed codes into a textbox. There are basically 2 ways of doing this:

First, go to comprofiler.class.php and search for "$badHtmlFilter->tagBlacklist". You will get results from 2 chunks of codes, both of which are CASE statements. You will also realise that both CASE statements are for 'editorta', which represents input through your WYSIWYG editor (eg JCE,TinyMCE). You will need to copy the codes from the 'editorta' CASE and replace the codes inside the 'textarea' CASE. Remember to use the codes from the respective chunks of codes, ie replace the 'textarea' at line 1500+ with the 'editorta' codes at 1500+, and similar for the one at line 4200+ with the editorta at line 4200+

The second method involves hacking the database. First, go to your database and view the table jos_comprofiler_fields. Edit the field you have created to let your users enter the embed codes. eg cb_youtube. Change the field "type" to a unique value, eg "youtube". (the original value of type should be textarea or text or whatever you chose to use)

Then, go to comprofiler.class.php. This time, instead of replacing any codes, simply add 'youtube' into the cases. Search for CASE 'editorta': and you will get 4 results. add the line CASE 'youtube': above the CASE 'editorta': on lines 640+, 1580+, and 4250+. The lines will look like this:
[code:1]
CASE 'youtube':
CASE 'editorta':
[/code:1]

Now, move on to the CASE 'editorta': on line 2170+. You will see a CASE 'textarea': above it. Add the line CASE 'youtube': Just above it so it looks like
[code:1] CASE 'youtube':
CASE 'textarea':
$oReturn = "<textarea class=\"inputbox\" $pReadOnly mosReq=\"".$oReq."\" oriReq=\"".$oReq."\" $pMax mosLabel=\"".getLangDefinition($oLabel)."\" $pCols $pRows name=\"".$oName."\">".htmlspecialchars($oValue)."</textarea>";
break;[/code:1]

Remember to re-save your fields for both methods. Personally I prefer the second method, even though it's slightly more complicated, but it's for obvious reasons. With the second method, users can only enter embed in the field specifically specified by you to be "youtube" in the database, whereas with the first method, your users can enter embed codes on ALL textareas, which is probably not a good idea.

Hope this helps.

Regards, Mike


Mike Feng
Creator of SIMGallery, SIMAnswers, and ParaInvite
www.simbunch.com
twitter.com/simbunch

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.244 seconds

Facebook Twitter LinkedIn