Author Topic: Changing the category_separator  (Read 11698 times)

0 Members and 1 Guest are viewing this topic.

Offline ndj5

  • Pre-Newbie
  • Posts: 6
    • View Profile
Changing the category_separator
« on: November 05, 2006, 03:01:50 PM »
Hello Community,

I'm a long time user of 4images and have typically been able to find resolutions to my problems in this forum.  I can not, however, figure out how to change the category separator in my click stream. 

Example:  home/cat/subcat/image

I would like to change it to:  home | cat | subcat | image

I found in the details.php under clickstream, I can manually modify the "category_separator" to the |, but I can never get all of them.  There must be an easier way.  I think it is defined somewhere but can not find it.  Any ideas?

Thank you,

Nate

manurom

  • Guest
Re: Changing the category_separator
« Reply #1 on: November 05, 2006, 03:19:38 PM »
Hello;
go to your Admin Control Panel, then "Settings" and "Page and Nav settings". There you can do the changes you need in "Category delimiter (in category paths)".

Offline ndj5

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Changing the category_separator
« Reply #2 on: November 06, 2006, 01:56:05 AM »
Thank you manurom.  Not sure why I didn't think to look there, I guess I thought it was too easy.  Thanks for the reply, appreciate your help. 

Nate

Offline magooo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Changing the category_separator
« Reply #3 on: May 17, 2007, 07:18:47 PM »
Yep, i know this is an old topic, but i have a small (maybe not very important  :P ) question and i can't the answer: if you change the separator from Control Panel, the menu will look like this: Home|Category|Picture name... how do i make it to look like this: Home | Category | Picture name...  (with space between separators and text)?


Thanks!


Later edit: i know this solution:   |   but i don't find it useful because i also use the menu as title tag and it doesn't look very nice... Home |  Category  |  Picture name ... 

Offline artmedia

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Fotos de chicas
Re: Changing the category_separator
« Reply #4 on: December 29, 2007, 02:15:24 AM »
yes, i want to do same thing, with a space(Eje: Chicas | lindas ), but without using  , where is defined that variable in php code?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Changing the category_separator
« Reply #5 on: December 29, 2007, 02:54:50 AM »
In admin/settings.php file,

find:

Code: [Select]
foreach ($setting_item as $key => $val) {
   $val = trim($val);

replace:

Code: [Select]
foreach ($setting_item as $key => $val) {
      if ($key != "category_separator") {
          $val = trim($val);
      }

In global.php file,

find:

Code: [Select]
$config['allowed_mediatypes_match'] = str_replace(",", "|", $config['allowed_mediatypes']);

add after:

Code: [Select]
$config['category_separator'] = preg_replace("/\s/", REPLACE_EMPTY, $config['category_separator']);

;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline magooo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Changing the category_separator
« Reply #6 on: December 29, 2007, 04:16:51 AM »
For me it still doesn't work  :(

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Changing the category_separator
« Reply #7 on: December 29, 2007, 06:40:57 AM »
What is 4images version use ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline magooo

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Changing the category_separator
« Reply #8 on: December 31, 2007, 05:11:15 AM »
The latest version i think...

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Changing the category_separator
« Reply #9 on: December 31, 2007, 05:29:28 AM »
I try with fresh 4images and is work purfect ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline artmedia

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Fotos de chicas
Re: Changing the category_separator
« Reply #10 on: May 29, 2008, 12:33:22 AM »
it works perfect, thank you so much!

Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Changing the category_separator
« Reply #11 on: January 25, 2011, 10:55:40 AM »
can I chnage the separator with an image?

Sory for the question, but I manage to solve the problem:

in Admin | General | Settings | Page and Nav settings | Cetegory delimiter (in category paths)
I put the following code:
Code: [Select]
<img src="{template_url}/images/spacer.gif" width="10" height="10" alt="" />
« Last Edit: January 25, 2011, 11:07:07 AM by mayashu »