Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Broobles Forum Forum Index » SimpleTags

Post new topic   This topic is locked: you cannot edit posts or make replies.
simpletas doesn't work with igsyntax-hiliter
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Jan 10, 2006 5:00 pm    Post subject: simpletas doesn't work with igsyntax-hiliter Reply with quote

they both use []

igsyntax-hiliter's link http://blog.igeek.info/wp-plugins/igsyntax-hiliter/
Back to top
Ivan
Admin


Joined: 16 Apr 2005
Posts: 340
Location: Belgrade

PostPosted: Tue Jan 10, 2006 8:30 pm    Post subject: Reply with quote

If the [] brackets are causing you problems, you can

1. Use SimpleTags 1.2 which uses angle brackets. Note that it is not compatible with the WYSIWYG editor which is enabled by default in WP 2.

or

2. Use different tags by modifying simpletags.php. For example, to use the angle brackets like in previous versions of SimpleTags, make the following changes in simpletags.php:

Code:

Change $tag_pattern = '/(\[tag\](.*?)\[\/tag\])/i';
to $tag_pattern = '/(<tag>(.*?)<\/tag>)/i';

and

$tags_pattern = '/((?:<p>)?\s*\[tags\](.*?)\[\/tags\]\s*(?:<\/p>)?)/i';
to $tags_pattern = '/((?:<p>)?\s*<tags>(.*?)<\/tags>\s*(?:<\/p>)?)/i'; 


If you already have some posts which are tagged with a different tag type, you have to perform a simple update on your wp database so that old posts will be tagged correctly.

Code:

update wp_posts set post_content = REPLACE(post_content, "[tags]", "<tags>");
update wp_posts set post_content = REPLACE(post_content, "[/tags]", "</tags>");
update wp_posts set post_content = REPLACE(post_content, "[tag]", "<tag>");
update wp_posts set post_content = REPLACE(post_content, "[/tag]", "</tag>");
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Broobles Forum Forum Index » SimpleTags All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional