vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   use "+" instead of "," in Tags defenition (https://vborg.vbsupport.ru/showthread.php?t=223887)

enteha 09-24-2009 04:12 PM

use "+" instead of "," in Tags defenition
 
Hi, I want to know if there is possible to seperate tags with "+" instead of "," in Tags defenition.
thanx

enteha 09-26-2009 05:57 PM

any comment?

Lynne 09-26-2009 07:52 PM

Look in function fetch_tagbits in functions_bigthree.php to change it. I think that is the right place.

enteha 09-29-2009 11:35 AM

thanx Lynne, I found it but I didnot know where can I make change? can you explain simply?

Lynne 09-29-2009 03:31 PM

Did you look at the function? This line right here puts the comma in between the tags:
Code:

            $tag_list .= ($tag_list != '' ? ', ' : '');
Read it as.... if $tag_list is not empty, put a comma after it, otherwise, put nothing.

enteha 09-29-2009 05:46 PM

Thank you Lynne, I changed that but still COMMA seoerates tags and when thread sent, tags are shown with + seperation. in fact tags are shown correctly but when I wrote for example SONY+ERICSSON that submitted as ONE word.

Lynne 09-29-2009 07:05 PM

I thought you wanted to show the tags in the tags list as separated by +. That isn't what you want? Can you explain more clearly what you want.

Lautaro 09-29-2009 08:04 PM

What he wants to do is, on the input field where you write the tags, instead of separating tags with a comma he want to be able to separate tags with + ..

Lynne 09-29-2009 09:30 PM

Quote:

Originally Posted by Lautaro (Post 1892487)
What he wants to do is, on the input field where you write the tags, instead of separating tags with a comma he want to be able to separate tags with + ..

Um, and the Tag Separators option under vboptions > Tagging Options isn't working right?
Quote:

Tag Separators
You may specify additional separators for tags. The comma is the default separator and cannot be removed, regardless of what is set here.

Simply place a space between each separator. For example, "| &" would mean that tags would be separated by a comma (,), pipe (|), or ampersand (&). Separators may be multiple characters, if desired.

If you wish to include a space as a separator or within a separator, you must wrap the separator in { and }. For example, to make space a separator, you would use "{ }". To put a space within a separator, you would use something like "{| |}"; this would mean that to separate tags you would have to use "| |".

Note that adding separators may make previous tags unusable. For example, if you had a tag "American cars" and added space as a separator, users that try to add that tag will add two tags, "American" and "cars".

When adding separators to this list, you may wish to modify the contents of two phrases to respect the additional separators:
  • separate_tags_using_comma
  • tag_no_comma


enteha 09-30-2009 01:32 PM

Thanks a million, my problem was solved.


All times are GMT. The time now is 01:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01018 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete