vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change Tag Separators (https://vborg.vbsupport.ru/showthread.php?t=283639)

JabirA 05-30-2012 12:53 PM

I did this. When I add a tag with a comma in it it gives me this error:

Parse error: syntax error, unexpected '{', expecting ')' in C:\domains\*****.nl\wwwroot\includes\class_taggabl econtent.php on line 302

kh99 05-30-2012 12:57 PM

I'm guessing you made a mistake when editing line 295. (The $delimiters = array(',') line). If you changed that to a backslash, you need to escape it, like:

Code:

                        $delimiters = array('\\');

JabirA 05-30-2012 01:03 PM

Indeed I did! Great thank you!! :D
This works perfectly.

kh99 05-30-2012 01:05 PM

Great. And you can probably figure this out, but if you're using a backslash, maybe you want to remove the space from the $row['comma'] = '\\ '; line.

JabirA 05-30-2012 01:09 PM

Removed it. Thank you :)
You are a lifesaver!

--------------- Added [DATE]1338391462[/DATE] at [TIME]1338391462[/TIME] ---------------

I have one problem though. When I opened a topic and inserted the tag. When I click on it, it gives me this error:

Code:

Warning: preg_split() [function.preg-split]: Compilation failed: missing ) at offset 3 in C:\domains\******.nl\wwwroot\includes\class_taggablecontent.php on line 320

Warning: array_map() [function.array-map]: Argument #2 should be an array in C:\domains\******.nl\wwwroot\includes\class_taggablecontent.php on line 322

Warning: Invalid argument supplied for foreach() in C:\domains\*****.nl\wwwroot\vb\search\criteria.php on line 370


kh99 05-30-2012 01:34 PM

Try changing $delimiters = array('\\'); (around line 295) to $delimiters = array('\\\\');

JabirA 05-30-2012 01:42 PM

Yes, that seems to do the trick.
Tags are instant right? If add a tag I should be able to search for it directly or not?

kh99 05-30-2012 01:44 PM

Quote:

Originally Posted by JabirA (Post 2334715)
Tags are instant right? If add a tag I should be able to search for it directly or not?


As far as I know. I'm not really sure. I guess you're going to say that you're not able to search for the tags you're adding?

JabirA 05-30-2012 01:45 PM

Yes that was my next question.

Also if I click on the tag it says: Invalid Tag Specified

Edit: When I click on a tag the topic appears. But when I search for the tag it wont work.

kh99 05-30-2012 01:53 PM

Yeah, I was kind of afraid there would be more places that need to be changed. But unfortunately I don't have time to look into it right now. I'll have to check later.


All times are GMT. The time now is 06:27 PM.

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.01951 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete