Welcome to Geeklog, Anonymous Sunday, January 18 2026 @ 11:25 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: 1581
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
 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: 1581
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
 Quote

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