Welcome to Geeklog, Anonymous Friday, November 22 2024 @ 10:58 pm EST

Geeklog Forums

How to prevent the advanced editor to replace Autotag ?


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

The question is in the tittle: How to prevent the advanced editor to replace Autotag ?

When I set an autotag [myautotag:1] in the product description field of the paypal plugin and save the product, this autotag [myautotag:1] is save in the DB. When I display the product page the autotag is replace. Here everything works.

When I edit the product, the advanced editor replace the autotag in the textarea but I here need to display the original autotag
Text Formatted Code
$template->set_var('description', $product['description']);


:helpme:

Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Roccivic

Forum User
Moderator
Registered: 05/19/10
Posts: 136
Not sure if it'll work, but you could try replacing the square bracket with it's html entity:

Text Formatted Code
$template->set_var('description', str_replace('[', '[', $product['description']));
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Maybe it was an issue with my Geeklog 1.7.2 test site because everything works now with a Geeklog 1.8.0.

Thanks,

Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EST. The time is now 10:58 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