Selection by city does not work within Locations module in case ShortUrls are activated. I?m using file-based ShortUrls and already read the documentations, but I have no idea how to customize ShortUrls within htaccess to solve this problem.
This Link without ShortUrl works: index.php?module=Locations&func=view&ot=location&filter=city:eq:Chemnitz
ShortUrl generates this Link, that is not working:
module-locations-view-ot-location-filter-city:eq:Chemnitz.html
Hoping anybody has an idea?!
Thanks a lot!
--
highlander2008
---------------------------
www.sportzone4you.de
Sport-Community - Gemeinsam Sport erleben in Deiner Region
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Locations module - ShortUrl problem
-
- Rank: Registered User
- Registered: Jul 19, 2008
- Last visit: Sep 13, 2009
- Posts: 6
-
- Rank: Team Member
- Registered: Jul 15, 2004
- Last visit: May 27, 2010
- Posts: 277
-
- Rank: Registered User
- Registered: Jul 19, 2008
- Last visit: Sep 13, 2009
- Posts: 6
Thanks a lot for your reply!
--
highlander2008
---------------------------
www.sportzone4you.de
Sport-Community - Gemeinsam Sport erleben in Deiner Region -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
Which version of Zikula?
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
For Pagesetter filters one used to be able to solve that by using this format: index.php?module=Locations&func=view&ot=location&filter=city^eq^Chemnitz -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
What I need to know is, is this a problem that is new in Zikula Core 1.2.0 or does the problem already exist in 1.1.2.
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Registered User
- Registered: Jul 19, 2008
- Last visit: Sep 13, 2009
- Posts: 6
Issue of Locations module already exists in combination with Zikula 1.1.2.
I never checked with Zikula Core 1.2.0.
--
highlander2008
---------------------------
www.sportzone4you.de
Sport-Community - Gemeinsam Sport erleben in Deiner Region -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
Apparently this hasn't worked since the beginning. These problems should be solved in 2.0, so I would pref to fix it in 2.0 given this has never worked. The whole shortURL processing will be rewritten from scratch since the 1.x code for short URL handling has fundamental design flaws. Directory based URLs work so if you need this functionality please use it there.
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Registered User
- Registered: Jul 19, 2008
- Last visit: Sep 13, 2009
- Posts: 6
Hello Dits,
thank you for your help - the linkworks. But how and where can I change the code of the locations module to make the city clickable/ integrate the changed link?Quote
index.php?module=Locations&func=view&ot=location&filter=city^eq^Chemnitz
--
highlander2008
---------------------------
www.sportzone4you.de
Sport-Community - Gemeinsam Sport erleben in Deiner Region -
- Rank: Registered User
- Registered: Jul 19, 2008
- Last visit: Sep 13, 2009
- Posts: 6
I've also got another problem. I would like to let user add/ enter their own locations.
Therefore I tried this from code I found in the forumQuote
in pnadmin.php
function locations_admin_edit($args)
{
// DEBUG: permission check aspect starts
if (!SecurityUtil::checkPermission('locations::', '::', ACCESS_ADMIN)) {
return LogUtil::registerPermissionError(pnModURL('locations', 'user', 'main'));
}
// DEBUG: permission check aspect ends
replace by:
function locations_admin_edit($args)
{
// DEBUG: permission check aspect starts
if (!SecurityUtil::checkPermission('locations::', '::', ACCESS_EDIT)) {
return LogUtil::registerPermissionError(pnModURL('locations', 'user', 'main'));
With this code users are able to add locations, but they are also able to edit all other locations they didn't create. Is there any hint to customize the locations module that user are only able to change their own locations?
Thanks in advance!
--
highlander2008
---------------------------
www.sportzone4you.de
Sport-Community - Gemeinsam Sport erleben in Deiner Region -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
After some testing I have discovered that a : is not valid in a URI before the query string:
http://code.zikula.org/core/ticket/1266#comment:7
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak
- Moderated by:
- Support
