bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

who to Change Tags splitter ?

(3 posts)
  • Started 9 months ago by marshosh
  • Latest reply from marshosh
  • This topic is not resolved
  1. Helo

    I need to Change the Tags splitter from "," to "-"

    who ?

    Posted 9 months ago #
  2. You can find this function in bb-includes/functions.php

    function bb_add_topic_tags( $topic_id, $tags ) {
    	global $bbdb;
    
    	$tags = trim( $tags );
    	$words = explode(',', $tags);
    
    	if ( !is_array( $words ) )
    		return false;
    
    	$tag_ids = array();
    	foreach ( $words as $tag )
    		if ( $_tag = bb_add_topic_tag( $topic_id, $tag ) )
    			$tag_ids[] = $_tag;
    	return $tag_ids;
    }

    The explode() function is where the logic is happening... you'll have to test to see if it screws up anything else, cause I've not tried it.

    Posted 9 months ago #
  3. Thank you HowToGeek ...

    i will do this job .

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.