Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 01:15 pm EDT

Geeklog Forums

WYSIWYG Editor help


ViperStrike

Anonymous
I installed the WYSIWYG editor and I cannot get any of my images to work. I allow the img and image tags in my config but when I try to post an image all it does is change everything to

I am using the latest version of geeklog.

Thanks
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Change everything to... what?
 Quote

ViperStrike

Anonymous
ahh the Filter must have gotten it.
It changes everything to IMG with the
 Quote

ViperStrike

Anonymous
ugh it filters out the greater and lesser symbols.
basicly the IMG html tag.
 Quote

Status: offline

vbgunz

Forum User
Full Member
Registered: 01/24/03
Posts: 169
When you say "the" what do you mean? There are more than a few dozen editors out there, I am certain clearling it up will get you help a lot quicker...

Good luck!
Victor B. Gonzalez -
http://aeonserv.com
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Quote by ViperStrike: ugh it filters out the greater and lesser symbols.
basicly the IMG html tag.


Use text mode or the [ code ] bb tags to not filter out your information. Then you can enter any HTML that you need to show. Otherwise the forum is thinking you are entering HTML formatting commands like
Text Formatted Code
 <b>This would normally be in bold</b> but it's not.

 

Geeklog components by PortalParts -- www.portalparts.com
 Quote

ViperStrike

Anonymous
confused
Thanks Blaine,

What I was trying to say is that when I preview or save my story my image does not show up and all that is in it's place is &lt;IMG&gt;

I have allowed 'image' and 'img' in the config.php file.
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Ah, ok, that's making some sense, now. Smile

You are allowing <img>, but are you also allowing the src, alt, and align attributes? You have to explicitly declare them in the config.php file, along with the tag, itself.
 Quote

ViperStrike

Anonymous
I still cannot get it to work.

This is what my config looks like:

$_CONF['user_html'] = array (
'p' =&gt; array(),
'b' =&gt; array(),
'i' =&gt; array(),
'a' =&gt; array('href' =&gt; 1, 'title' =&gt; 1),
'em' =&gt; array(),
'br' =&gt; array(),
'tt' =&gt; array(),
'hr' =&gt; array(),
'li' =&gt; array(),
'ol' =&gt; array(),
'ul' =&gt; array(),
'code' =&gt; array(),
'pre' =&gt; array(),
'font' =&gt; array(),
'u ' =&gt; array(),
'strong' =&gt; array(),
'blockquote' =&gt; array(),
'img' =&gt; array(),
'hspace' =&gt; array(),
'src' =&gt; array(),
'align' =&gt; array(),
'alt' =&gt; array(),
'img src=' =&gt; array(),
'IMG src=' =&gt; array(),
'border' =&gt; array(),
'baseline' =&gt; array(),
'IMG' =&gt; array(),
'div' =&gt; array('class' =&gt; 1, 'id' =&gt; 1),
'image' =&gt; array()
);

and this is the code that is creates when I put the image button:
&lt;IMG alt=&quot;&quot; hspace=0 src=&quot;http://www.domain.com/subdir/picture.jpg&quot;
align=baseline border=0&gt; 

in the editor the image shows up but as soon as I post or preview it changes to &lt;IMG&gt;
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
change

'src' => array(),
'align' => array(),
'alt' => array(),
'img src=' => array(),
'IMG src=' => array(),
'border' => array(),
'IMG' => array(),
image' => array(),

to

'img' => array('alt' => 1, 'src' => 1, 'border' => 1, 'align' => 1),


A little simpler, huh. Big Grin
 Quote

ViperStrike

Anonymous
excited
That worked!!
Mr. Green

Thank you so much for your help.
 Quote

All times are EDT. The time is now 01:15 pm.

  • 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