Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 12:21:57 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155504 Posts in 21710 Topics by 7736 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Xinha Editor Update  (Read 1030 times)
erpe

Offline Offline

Posts: 2077


WWW
« on: May 16, 2009, 11:18:10 PM »

Hi

Thorn modified the Xinha Editor Module.
The included release 0.96 beta 2 had fixed the security vulnerabilties.
The current release of the WB Xinha Editor Module is 1.4.3 and can be downloaded at AMASP.

Have fun with the fantastic file and image manager.

rgds

erpe
Logged

Hans

Offline Offline

Posts: 565


« Reply #1 on: May 22, 2009, 01:05:32 PM »

I noticed that Xinha doesn't make a link like:
Code:
<a href="[wblink26]">Pagename</a>
but like this:
Code:
<a href="/pages/pagename.php">Pagename</a>
I think this is a problem when someone changes the pagename / menutitle afterwards.
Hans
Logged

Hans - Nijmegen - The Netherlands
thorn

Offline Offline

Posts: 980


WWW
« Reply #2 on: May 22, 2009, 04:37:58 PM »

Hello,

as far as i remember, xinha never came up with this type of links. Only FCKEditor is able to insert those links (through an extension made by ruebenwurzel(?))

thorn.
Logged

Hans

Offline Offline

Posts: 565


« Reply #3 on: May 22, 2009, 09:48:30 PM »

Hi Thorn
I didn't know that but I think it's important to know nontheless
Not only FCK but alsoTinyMCE makes wblinks
Hans
Logged

Hans - Nijmegen - The Netherlands
BlackTiger

Offline Offline

Posts: 166


« Reply #4 on: May 23, 2009, 11:57:44 AM »

Hi Hans,

if you want to insert wblinks instead of URLs you have to modify modules/xinha/include.php. Line 157:

Code:
$js_objs[] = "{url:'" . page_link($page['link']) . "', title:'" .$page['title'] . "', children: " . page_tree_to_linker($page['children']) . "}";

replace with:
Code:
$js_objs[] = "{url:'[wblink" . $page['page_id'] . "]', title:'" .$page['title'] . "', children: " . page_tree_to_linker($page['children']) . "}";

The pages are ordered alphabetically which I don't like. If you want the order like the normal page tree change line 146:

Code:
$pages = $database->query("SELECT page_id, parent, link, page_title as title FROM ".TABLE_PREFIX."pages WHERE parent = {$parent} ORDER BY page_title");

to:

Code:
$pages = $database->query("SELECT page_id, parent, link, page_title as title, position FROM ".TABLE_PREFIX."pages WHERE parent = {$parent} ORDER BY position");

regards
Michael
Logged
Hans

Offline Offline

Posts: 565


« Reply #5 on: May 23, 2009, 03:33:00 PM »

Thanks Michael, I will give it a try tomorrow!
Hans
Logged

Hans - Nijmegen - The Netherlands
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!