pancakes

MicrostockGroup Sponsors


Author Topic: Symbiostock Image Categories issue  (Read 13574 times)

0 Members and 1 Guest are viewing this topic.

lucato

  • [<o>] Brasil


« on: December 21, 2013, 02:46 »
0
Hi folks, good morning.

I wonder if somebody else is facing issue with Image Categories?

Here is the weird behaviour I have faced:
1. I have edited the category Animals, and it starded to show twice in the menu. The weird thing is that by looking into the database (wp_terms) there is only one record (ID 4). After happening it, I decided to delete this record, added new category (ID 40), and the result was that the new Image Category Animals (ID 40) doesn't show in the Menu at the front-end;

2. Still in this database, The "Symbiostock Featured Images" is repeating from ID 43 to 48  (6 times), and none of them show in the category menu front-end.

Tries I have done and nothing solved:
1. Desactivated all plug-ins;
2. Changed the theme;
3. Override the WP files from the downloaded files (Like new install);
4. Tested in other browsers such as FireFox and IE (Using Chrome).

If you have faced the same issue and got to solve it, please share it here. ;0)

Thanks in advance and have a great weekend.
« Last Edit: December 21, 2013, 04:11 by lucato »


« Reply #1 on: December 21, 2013, 03:50 »
0
not sure what you're referring to by 'registers'

you can add or delete categories from the Images menu, and they sort alphabetically.  are you trying to change the category records directly?

lucato

  • [<o>] Brasil


« Reply #2 on: December 21, 2013, 04:09 »
0
not sure what you're referring to by 'registers'

- Ops, maybe the correct word should be records. My language barrier, I'm sorry about that. :0) 1st post edited. ;0)

Quote
you can add or delete categories from the Images menu, and they sort alphabetically.  are you trying to change the category records directly?

- I just edited the "name" field directly, but not created a record or deleted or so on, because I know there are records connected with IDs between tables (Ex: wp_terms with wp_terms_taxomony) 
- It doesn't seem to sort alphabetically. Please, give a look at Jo Ann's Symbiostock site (DigitalBristles) - Image Categories.
« Last Edit: December 21, 2013, 04:11 by lucato »

« Reply #3 on: December 22, 2013, 12:44 »
0
You change an Image Category name in the Symbiostock area of the WP admin panel.

If you change the display name but not the slug (you will see both fields in the Image Category UI), the menus will sort in the order of the slug, not the display  name.

I just changed my category Abstract | Background | Texture (which had abstract-backgrounds-textures as its slug) to be Backgrounds and Textures but I left the slug alone. If you look in the menus it appears above Animals in the list

Depending on whether you have any direct links to the old slug - in my case http://www.digitalbristles.com/image-type/abstract-backgrounds-textures/ - you can change the slug to fix the sort order

« Reply #4 on: December 22, 2013, 13:27 »
0
.....
Depending on whether you have any direct links to the old slug - in my case http://www.digitalbristles.com/image-type/abstract-backgrounds-textures/ - you can change the slug to fix the sort order


and just be ready for google to throw some 404 errors in webmaster tools -- these will be fixed automatically by google when they re-crawl, but can be scary if you're not expecting them

lucato

  • [<o>] Brasil


« Reply #5 on: December 23, 2013, 01:31 »
0
You change an Image Category name in the Symbiostock area of the WP admin panel.

Hi Jo Ann, good morning and thanks for your reply. Yes, I'm changing it from the menu in back-end: Stock Images >  Image Categories.

Quote
If you change the display name but not the slug (you will see both fields in the Image Category UI), the menus will sort in the order of the slug, not the display  name.

- Hmm, not logical, but that would be great if it was working like that. Leas should make logical by sorting by name or make the admin opt to sort by slug or name. Besides that when making a multi-language site, the input fields should accept special characters for plugins like qtranslator, xLanguage, and others get translations from the field. So you get to sort the categories in any language. Well, anyway, the sort by slug isn't happening here in my theme version 2.9.9 with WP 3.8. It doesn't matter what I change in slug the order keeps the same. It really seems to keep the order based on ID#.

Jo Ann, let me ask you a favor. Install the plug-in "Revel IDs" and you will get to see the page of your Image Categories with a new column called "ID" on the very right side and by clicking on the column headers (over ID text) you get to sort by ID (ascending / descending), this way you will see if your Image Categories are following the ID orders or the slugs.

Quote
I just changed my category Abstract | Background | Texture (which had abstract-backgrounds-textures as its slug) to be Backgrounds and Textures but I left the slug alone. If you look in the menus it appears above Animals in the list

Try to check the ID# to see it it wasn't a coincidence of the order with the ID instead of the slug.

Quote
Depending on whether you have any direct links to the old slug - in my case http://www.digitalbristles.com/image-type/abstract-backgrounds-textures/ - you can change the slug to fix the sort order

Not here. It doesn't work. :0(

Thell me what you found out with your Reveal IDs. ;0)

lucato

  • [<o>] Brasil


« Reply #6 on: December 23, 2013, 01:33 »
0
.....
Depending on whether you have any direct links to the old slug - in my case http://www.digitalbristles.com/image-type/abstract-backgrounds-textures/ - you can change the slug to fix the sort order


and just be ready for google to throw some 404 errors in webmaster tools -- these will be fixed automatically by google when they re-crawl, but can be scary if you're not expecting them

Thanks for the info. ;0)

« Reply #7 on: December 23, 2013, 02:35 »
0
I was thinking about this a bit and realized that I have created a number of my own categories - including one very recently (Lakes) and that all the new ones are correctly sorted. See this list (my CSS paginates this but this is otherwise unchanged from the out-of-the-box Symbiostock)

http://www.digitalbristles.com/image-categories/

If sorting were by ID then none of the categories I created would be in the right order. I'm not installing plugins, but if you use Inspect Element (or whatever your browsers show the code mode is) on my page above I think the IDs are in the cat-item-xxx class.  You can see that the order of my categories is not based on IDs.

And as for the menus, I was writing without thinking - the order of those is based on my menu entries, not any internal sorting - so that was a red herring.

Not sure what you might have done to get things into a state where your categories aren't sorting in alphabetical order, but it isn't as simple as the code doesn't do the right thing in the basic case. It's possible that there's something about your site, your plugins or something else in your WordPress setup that's causing the behavior.

lucato

  • [<o>] Brasil


« Reply #8 on: December 23, 2013, 03:45 »
0
Hi Jo Ann, I figured it out a bit. The subject was messing with 2 different things:
1. I found out with your help that by changing the slug, I get to sort the order within the back-end at the Image Categories page only, but it doesn't take any effect where I wanted that was on the menu on the front-end.
2. So, I noticed that to sort on the menu on the front-end I have to do it manually by dragging & dropping the sort of the menus items.
Until here it is ok if it was single language site, but I'm using a multi-language site in the same theme. So, I need to find some way to sort the menus when in English and sort in other order (alphabetically) when in pt_BR.

See this list (my CSS paginates this but this is otherwise unchanged from the out-of-the-box Symbiostock)
http://www.digitalbristles.com/image-categories/


- Jo Ann, I'm sorry it is out of the main subject, but how did you get to list the categories within an Image Categories page? I have created a menu item with the "Image Category" PAGE, but when clicking on it,  it shows a blank page instead of a list like yours.

Quote
If sorting were by ID then none of the categories I created would be in the right order. I'm not installing plugins, but if you use Inspect Element (or whatever your browsers show the code mode is) on my page above I think the IDs are in the cat-item-xxx class.  You can see that the order of my categories is not based on IDs.

I see, it really doesn't follow the ID, but as I said above I think it works just for this case and not for menu order. ;0)

Quote
And as for the menus, I was writing without thinking - the order of those is based on my menu entries, not any internal sorting - so that was a red herring.

I think it is the subject I wanted and not a "red herring" (if my language barrier didn'tmake I understand it wrong... hehehe), the menus, once I didn''t get yet to create an Image Category Page list. :0)

Quote
Not sure what you might have done to get things into a state where your categories aren't sorting in alphabetical order, but it isn't as simple as the code doesn't do the right thing in the basic case. It's possible that there's something about your site, your plugins or something else in your WordPress setup that's causing the behavior.

I don't think it is some issue now, once as stated here we both were writing without thinking about the menus order by hand. ;0)

Now I need to find out two things then:
1. how do I get to list the categories within an Image Categories page, once as I said above, I have created a menu item with the "Image Category" PAGE, but when clicking on it,  it shows just a blank page without all Image categories like yours.
2. I need to find some way to sort the menus when in English and sort in other order (alphabetically) when in pt_BR.

Thanks for your help as always.
« Last Edit: December 23, 2013, 03:47 by lucato »

« Reply #9 on: December 23, 2013, 12:58 »
0

See this list (my CSS paginates this but this is otherwise unchanged from the out-of-the-box Symbiostock)
http://www.digitalbristles.com/image-categories/


- Jo Ann, I'm sorry it is out of the main subject, but how did you get to list the categories within an Image Categories page? I have created a menu item with the "Image Category" PAGE, but when clicking on it,  it shows a blank page instead of a list like yours.
Quote

In your list of pages,  you should have one with the URL image-categories/ and its template page needs to be Categories Page. Put that in your menu and the code will fill it with the list - it's single column by default but it is alphabetized. Is it possible that you changed the page template?

I think your best bet with the current state of Symbiostock, which is not set up for I18N, is to work on some custom pages that you control the order of. For example, I made a Gallery of categories after we switched to the single level menus, and I control the order of that (so I can move currently applicable things to the first row).

As far as getting the  ‎theme changed, it would be good for all sorts of reasons to pull all the user-displayable strings (and formatting; I've taken out horizontal rules that were embedded in the code). That's a conversation to have with Leo though.

lucato

  • [<o>] Brasil


« Reply #10 on: December 23, 2013, 14:10 »
0
In your list of pages,  you should have one with the URL image-categories/ and its template page needs to be Categories Page. Put that in your menu and the code will fill it with the list - it's single column by default but it is alphabetized. Is it possible that you changed the page template?
Jo Ann, just found it out. It was showing nothing (No categories) because I hadn't uploaded any image. So, you must have at least one image to make the categories shows up in that list otherwise, they won't show. That is why I was getting a blank page. Before finding that out and post here, in my toughts, once I had the categories already built and listed in the image categories, they should show up, even empty. :0)

Quote
I think your best bet with the current state of Symbiostock, which is not set up for I18N, is to work on some custom pages that you control the order of. For example, I made a Gallery of categories after we switched to the single level menus, and I control the order of that (so I can move currently applicable things to the first row).
I have two themes, one original and one copy. So, if something goes wrong on the one I'm working on, I test on the original theme to check it if wasn't any issue by editing some .php lines. So, I think there is no problem. So, as you see, I thought it was an issue (empty img cat page), but it was how SS works: Need to have atleast one image within the category.

Quote
As far as getting the  ‎theme changed, it would be good for all sorts of reasons to pull all the user-displayable strings (and formatting; I've taken out horizontal rules that were embedded in the code). That's a conversation to have with Leo though.
Hmmm, my language barrier always tricks me. :0) I didn't get what you mean with: "to pull all the user-displayable strings (and formatting; I've taken out horizontal rules that were embedded in the code).", I'm sorry about that. I still need to improve a lot my English. :0)

« Reply #11 on: December 23, 2013, 14:24 »
0
Quote
As far as getting the  ‎theme changed, it would be good for all sorts of reasons to pull all the user-displayable strings (and formatting; I've taken out horizontal rules that were embedded in the code). That's a conversation to have with Leo though.
Hmmm, my language barrier always tricks me. :0) I didn't get what you mean with: "to pull all the user-displayable strings (and formatting; I've taken out horizontal rules that were embedded in the code).", I'm sorry about that. I still need to improve a lot my English. :0)

Sorry. That was a bit full of jargon. If you look at the many php files that make up the Symbiostock theme, there are many places in many files that text strings which show up in the user interface are used.

Good coding practice - for reasons other than internationalization, as well as for that - would be to collect all the visible text separately from the code. How you organize that should probably take account of how WordPress recommends internationalizing be done (and that is something I don't know about but I'm sure there are many tutorials and guides out there on how to do it). Some of those text strings would be things an individual site would like to customize - as, for example, the text to show on the Add to Cart/Download button can be set via the Symbiostock area in the WordPress admin panel.

This isn't a small task, in part because it affects so many existing files, so lots of testing would be needed afterwards to be sure nothing was inadvertently broken. I think Leo's the best person to at least advise on how this should be done, even if someone else gives some assistance in implementing it.

Hope that makes better sense :)

lucato

  • [<o>] Brasil


« Reply #12 on: December 23, 2013, 15:01 »
0
I think I got it now. But it is a little of topic (not being rude, don't get me wrong). ;0)
I mean, I think you're referring to strings for translations. By the way, have nice plug-ins to find the strings, but a lot of texts in the theme aren't connected to strings and just typed the phrase/word into the .php code.

I have posted in another place for Leo that:

"By using the plugin 'CodeStyling Localization' or similars, a great plug-in for translating and creating a .po/.mo files, I have noticed that a lot of texts in the theme aren't connect with "gettext". One example in .php file: ("No Results found. Try browsing the categories.") . So for multi-language site, need to edit directly into the code, and sometimes it is hard to accept plugins such as qTranslate, xLanguage, etc."


But here is another issue to a new thread, you can check it here. ;0)
« Last Edit: December 23, 2013, 15:09 by lucato »


 

Related Topics

  Subject / Started by Replies Last post
22 Replies
16304 Views
Last post March 26, 2013, 18:14
by farbled
29 Replies
15492 Views
Last post June 13, 2013, 17:09
by Leo Blanchette
2 Replies
2396 Views
Last post September 02, 2013, 10:25
by txking
2 Replies
3785 Views
Last post December 23, 2013, 01:57
by lucato
9 Replies
1759 Views
Last post September 08, 2023, 06:48
by Oewkio

Sponsors

Mega Bundle of 5,900+ Professional Lightroom Presets

Microstock Poll Results

Sponsors