View Nikolai Shcherbin's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Sir,
I am using this plugin. As per instruction, I added categories in the language file, but changes are not being reflated. I have made many attempts to trouble shoot the problem, but unable to pin point. Honestly the language file is confusing to me, and this why I am not sure if I have added the categories in the correct line / place.
It would be very kind of you if you can preciously tell me at what line or reference points the categories should be added.
For your review I have uploaded the en.php in file with visibility permission as Public. The BOLD TEXT Areas are where I have added the categories. Could you kindly take a look at it and let me know or comment what I have done wrong and the correct way?
The file link is https://www.myhotfb.com/file/view/1361/language-file-for-market
Looks good for me. Flush the caches including OP Cache and reload webpage.
@RvR thanks for the feedback. I have flushed and flushed and just made sure no cache but the categories doesn't show up. It does if I put the categories through the front interface. Did you had a time to look at the language file link https://www.myhotfb.com/file/view/1361/language-file-for-market
Clean ALL caches (incl. memcached, Cloudflare cache etc).
You can delete system_cache and views_simplecache folders in your data directory manually also.
All works OK. So your issue is related with cache only.
Dear @RvR (RvR),
I have spent countless hours to correctly place the categories in the language file but it is not working. I am not sure what am I suppose to be looking for? How it is suppose to look when you correctly place the categories in the language file? I also want to know when there is a front end interface for adding categories and other categories for market condition why do I have to edit the language file?
Anyways, I have declared the following categories in the lang, but they don't show up unless, I manually add them through the front end interface. Please notice the Bold Items are added in lang manually, The Bold Italic Categories were in the lang by default and they show up correctly and i have notice it is because under /mod/market/views/default/filters/market:
I see 3 files: 1. all.php, 2. category.php, 3. edit.php
in all.php file market:settings:type - the Bold Italics (All ads, Buying Selling, Swap, Free) are declared.
Do I also need to declare the market categories (bold items) and market conditions (bold items) here?
As far as caches are concerned, everything is just disabled. everything.
As, I have now added the market categories through front end, they show up as followings on the right side of Activity page in between Header Market categories & Latest comments
Market categories
Latest comments
Kindly please advise what am I doing wrong? why should I put these in the lang when u have made a front end interface for adding cats. Would you be interested to take a look? I can give u Elgg Admin UN and PW including Server :Login Credentials. Kindly please help. Please.
Did you flush your cache and run an upgrade?
@MyHoTFB.COM
Firstly, it was not my idea to use the language file for settings.
In the new version (under development yet), I changed these settings already.
Currently I don't want to support the old version of the plugin.
However, the existing version works fine including the categories.
The logic for adding names for categories:
1 - Set the categories name in lowercase and separate with commas in the plugin's settings page. E.g.:
2 - Save the changes.
3 - Open language file and add these strings:
Where, Adverts is a name of category showing on the site.
3 - Flush the caches, run upgrade etc
Ideally if the Market plugin is located below all other plugins.
You don't need to edit other files.
Keep in your mind, you shouldn't use special characters in the categories names also.