4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2018, 09:05:50 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Changing the category_separator
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Changing the category_separator  (Read 8833 times)
ndj5
Pre-Newbie

Offline Offline

Posts: 6

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
manurom
Guest
« 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)".
Logged
ndj5
Pre-Newbie

Offline Offline

Posts: 6

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
magooo
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 0
-Receive: 0


View Profile
« 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  Razz ) 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 ... 
Logged
artmedia
Newbie
*
Offline Offline

Posts: 33

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« 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?
Logged
thunderstrike
4images Guru
*******
Offline Offline

Posts: 2327

Thank You
-Given: 0
-Receive: 10


View Profile
« Reply #5 on: December 29, 2007, 02:54:50 AM »

In admin/settings.php file,

find:

1
2
foreach ($setting_item as $key => $val) {
   $val = trim($val);

replace:

1
2
3
4
foreach ($setting_item as $key => $val) {
      if ($key != "category_separator") {
          $val = trim($val);
      }

In global.php file,

find:

1
$config['allowed_mediatypes_match'] = str_replace(",", "|", $config['allowed_mediatypes']);

add after:

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

Wink
Logged

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 ?
magooo
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #6 on: December 29, 2007, 04:16:51 AM »

For me it still doesn't work  Sad
Logged
thunderstrike
4images Guru
*******
Offline Offline

Posts: 2327

Thank You
-Given: 0
-Receive: 10


View Profile
« Reply #7 on: December 29, 2007, 06:40:57 AM »

What is 4images version use ?
Logged

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 ?
magooo
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #8 on: December 31, 2007, 05:11:15 AM »

The latest version i think...
Logged
thunderstrike
4images Guru
*******
Offline Offline

Posts: 2327

Thank You
-Given: 0
-Receive: 10


View Profile
« Reply #9 on: December 31, 2007, 05:29:28 AM »

I try with fresh 4images and is work purfect ...
Logged

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 ?
artmedia
Newbie
*
Offline Offline

Posts: 33

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #10 on: May 29, 2008, 12:33:22 AM »

it works perfect, thank you so much!
Logged
mayashu
Newbie
*
Offline Offline

Posts: 20

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« 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:
1
<img src="{template_url}/images/spacer.gif" width="10" height="10" alt="" />
« Last Edit: January 25, 2011, 11:07:07 AM by mayashu » Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.057 seconds with 19 queries.