PDA

View Full Version : Error after style update when editing posts, smileys dissapear


falco008
02-10-2010, 07:47 PM
hi all,

I modified our forum with a new style , that I copied from a test version,
now when we make posts we have the following issue :

when entering a smiley in a post I get a smiley

but when i edit the post and save it its adds a \ and shows the image url

<img src=\"http://www.pokerclub.be/forum/images/smilies/smiley.gif\" alt=\"\" title=\"Smile\" smilieid=\"211\" class=\"inlineimg\" border=\"0\">

also typing something like "that's" , it rewrites the post to "thats\' "

any ideas

to view in action :

http://www.pokerclub.be/forum/showthread.php?t=13921

Lynne
02-11-2010, 02:03 AM
I would upload another copy of the style and start reverting templates until you get it to work correctly. I am kinda surprised a style is doing this.

falco008
02-11-2010, 06:49 AM
Actually you were right it is not the style..

I discovered the style also had this in the test version

I wanted to integrate wordpress headers in the vbulletin forum so I activated a plugin to call the header info from wordpress...

this works as you can see on the site.. but apparantly somehow a trailing slash gets added when using ' " or editting smileys ..?

anyone any idea ?

when I disable the plugin everything works fine..but I need the plugin to get a header/logo/ in the forum

this is the code in the plugin that calls the header from wordpress

ob_start();
include($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
include($_SERVER['DOCUMENT_ROOT'].'/wp-content/themes/gazette/header.php');
$wp_header = ob_get_contents();