Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping v4.x

Ceon URI Mapping v4.x

Views: 451,767

Results 41 to 60 of 2,454
15 Sep 2011, 15:52
#41
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Ceon URI Mapping v4.x

Hi,

weljkodj:

How to type disallow pages in robots.txt?

Actually, I'm afraid that I don't know!

What you've written looks right to me but it's not something I've ever got round to using myself.

Sorry I can't be more help than that! :unsure:

All the best...

Conor
ceon

15 Sep 2011, 15:56
#42
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

Feznizzle:

Greetings from hot and sticky Florida. Long time no talk, I hope this note finds you doing well!

Well hello from the usual, lovely and sunny, then freezing cold, then ok, then not-sure-what-this-is-now place that is Ireland. ;)

Feznizzle:

Do I need to flush Ceon URI from mySQL when I switch domains? Or should I be able to transfer the database to the new domain with no Ceon URI issues?

Just take the database tables across as they are. As long as you aren't changing the value of DIR_WS_CATALOG everything will be fine. Ceon URI Mapping doesn't care what the value of HTTP_SERVER is.

Feznizzle:

What do you think about where "upgrading Ceon URI" fits into my order of operations?

That's the correct order. Again, as long as DIR_WS_CATALOG remains the same, everything will be fine.

Feznizzle:

Thanks again for all your help! Ceon URI has my vote as the BEST ZC mod ever!

That's nice of you to say.. you should like 4.x even better then, it's a complete rewrite and substantially better on the backend side of things as well as having some nice new user-side/admin functionality. :)

All the best...

Conor
ceon

15 Sep 2011, 16:34
#43
weljkodj avatar

weljkodj

New Zenner

Join Date:
Oct 2010
Posts:
34
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

Hi,

Actually, I'm afraid that I don't know!

What you've written looks right to me but it's not something I've ever got round to using myself.

Sorry I can't be more help than that! :unsure:

All the best...

Conor
ceon

OK I'm gonna test both versions and post my conclusion later.

15 Sep 2011, 16:47
#44
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

weljkodj:

OK I'm gonna test both versions and post my conclusion later.

Oh, I thought you meant "will either of these work at all?". Which is what I replied to.

If either (both) work as valid "commands" to block robots (which is what I don't know for sure), then you'd need both for a while as the search engines may still have the dynamic URI indexed.

Over time only the URI used on your site would be needed.. the search engines will use the Ceon URI Mapping URI (/kontakt) as that is what your URIs are now that Ceon URI Mapping is in control.. just check you've no hard-coded index.php?main_page=contact_us links in your template etc. because Ceon URI Mapping will transparently redirect those "old" URIs to the new static ones (/kontakt).

Hope that helps.

All the best...

Conor
ceon

16 Sep 2011, 06:35
#45
bobmoss avatar

bobmoss

New Zenner

Join Date:
Dec 2010
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi,

I'm having trouble getting links in sidebox titles to work correctly.

I have 4.0.3 installed on ZenCart 1.3.9h and all my products & categories are working OK. I even have all my shipping, terms and conditions pages etc. working (after adding the correct entries in the DB).

I have a "Products" category and then subcategories of "Jam", "Marmalade", "Fudge" etc.

In the categories sidebox, if I hover over the "Products" category, it shows the URL as "http://127.0.0.1/MySite/Products" and if I click on it, I get the correct page.

If I hover over the "Jam" category, I see the URL "http://127.0.0.1/MySite/Products/Jams" and if I click on it, I get the correct page.

So far so good, everything is working well.

However, I have set the $title_link of the sidebox to point to my "Products" category, which has a cPath of 1. So in the categories.php I have the line $title_link = 'index&cPath=1';

I have checked, and the $title_link variable gets passed to tpl_box_default_left.php and uses the line "zen_href_link($title_link)" to create a link.

The problem I have is that this link is outputted as "http://127.0.0.1/MySite/index.php?main_page=index&cPath=1" which is obviously not being re-written.

If I click on the link, I end up at "http://127.0.0.1/MySite/Products" which is where I want to be.

So. any ideas why the link isn't being outputted correctly?

Thanks.

Bob.

16 Sep 2011, 08:27
#46
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi Bob,

Hope you like the software (you didn't say).

bobmoss:

I have set the $title_link of the sidebox to point to my "Products" category, which has a cPath of 1. So in the categories.php I have the line $title_link = 'index&cPath=1';

I have checked, and the $title_link variable gets passed to tpl_box_default_left.php and uses the line "zen_href_link($title_link)" to create a link.

The problem I have is that this link is outputted as "http://127.0.0.1/MySite/index.php?main_page=index&cPath=1" which is obviously not being re-written.

No because you are not using the function correctly.

Page parameters aren't passed in the first parameter, only the page name is, so you need to pass two parameters to end up with:

zen_href_link('index', 'cPath=1');

bobmoss:

If I click on the link, I end up at "http://127.0.0.1/MySite/Products" which is where I want to be.

Yes, that's because the transparent historical URI redirection functionality is changing the dynamic URI into its current static URI.

Nifty software this if I don't say so myself. :)

All the best...

Conor
ceon

16 Sep 2011, 09:04
#47
bobmoss avatar

bobmoss

New Zenner

Join Date:
Dec 2010
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Conor,

Yes, I love the software, it's excellent and just works.

And it's even better for getting quick personal replies from yourself :D

conor:

No because you are not using the function correctly.

Page parameters aren't passed in the first parameter, only the page name is, so you need to pass two parameters to end up with:

zen_href_link('index', 'cPath=1');

Ah, I see, that makes sense. The only issue I have is that the code is part of the standard sidebox template code and is only expecting one parameter.

I shall roll up my sleeves, put on my coding hat and make a few changes.

conor:

Nifty software this if I don't say so myself. :)

And so you should say, you have put a lot of hard work into it and the amount of documentation is impressive!

Thanks.

16 Sep 2011, 09:12
#48
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

bobmoss:

And it's even better for getting quick personal replies from yourself :D

Glad you like it.. yeah.. I'll reply to you but not to spammers.. first time I've seen that here.. hopefully that's not the start of a new trend, I check in here more than enough as it is! :)

bobmoss:

Ah, I see, that makes sense. The only issue I have is that the code is part of the standard sidebox template code and is only expecting one parameter.

I shall roll up my sleeves, put on my coding hat and make a few changes.

Yeah, just change the template code slightly, e.g. edit

common/tpl_box_default_right.php to accept another parameter:

$title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
```to

```php
$title = '<a href="' . zen_href_link($title_link, (isset($title_link_parameters) ? $title_link_parameters : '')) . '">' . $title . BOX_HEADING_LINKS . '</a>';

Obviously set the appropriate values in $title_link and $title_link_parameters variables.

All the best..

Conor
ceon

16 Sep 2011, 09:23
#49
bobmoss avatar

bobmoss

New Zenner

Join Date:
Dec 2010
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Conor,

conor:

Hi,

Yeah, just change the template code slightly, e.g. edit

common/tpl_box_default_right.php to accept another parameter:

Have just made the changes as you suggest and it's now working perfectly! Many thanks!

One more quick question for you - is it best practice to add mappings for shopping basket & checkout pages or is it best to leave those alone?

Thanks.

16 Sep 2011, 09:36
#50
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

bobmoss:

Have just made the changes as you suggest and it's now working perfectly! Many thanks!

No problem.

bobmoss:

One more quick question for you - is it best practice to add mappings for shopping basket & checkout pages or is it best to leave those alone?

It's entirely up to you.

We use static URIs for all our URIs. All our software is fully compatible with static URIs for the checkout and we think a site with static URIs looks better than one with dynamic URIs.

All the best..

Conor
ceon

16 Sep 2011, 09:42
#51
bobmoss avatar

bobmoss

New Zenner

Join Date:
Dec 2010
Posts:
20
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Excellent thanks.

As soon as I've finished getting this site live I'll sort out a "proper" thank you :wink:

Bob.

16 Sep 2011, 11:44
#52
paul69 avatar

paul69

Zen Follower

Join Date:
Jan 2010
Posts:
124
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Good day! Great module and I'm looking forward to using it. Just a quick question regarding the installation on a sub domain. Will it work and also could the fact that it is installed on a sub domain cause the server error for bad flags? So I've installed and tested one url but no redirect occurs causing a 404 so Im assuming it is an htaccess file problem. Eitber way just wanted to know of any experiences with a sub domain and if any changes need to take place to get it to function. It appears to work just cant get the redirect to occur. Also the internal server error for bad flags is driving me nuts!:shocking:

16 Sep 2011, 11:53
#53
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

Paul69:

could the fact that it is installed on a sub domain cause the server error for bad flags?

Installing the software on a site that uses subdomains is the recommended way to implement the software. The software doesn't care what domain/subdomain it's on but the web-side folder/path the site is in is critical.

Sites using the same folder/DIR_WS_CATALOG are 100% compatible regardless of what subdomain is being used.. this is a big reason why subdomains are the professional way to create test/development sites.

Paul69:

It appears to work just cant get the redirect to occur. Also the internal server error for bad flags is driving me nuts!:shocking:

Sounds like you've something else in your .htaccess which is messing up. Bad flags errors cannot be generated by the example rewrite rule generated by Ceon URI Mapping.

Fix any problems in your .htaccess file and use the example rewrite rule from the installation check and all should be fine.

All the best...

Conor
ceon

16 Sep 2011, 13:15
#54
paul69 avatar

paul69

Zen Follower

Join Date:
Jan 2010
Posts:
124
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

As always thanks for your help! I do hope all the effort you've put in is coming back to you and do recognize the help you provide. Cheers to you my friend with many wishes and thanks! :smile:

16 Sep 2011, 13:19
#55
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

Paul69:

As always thanks for your help! I do hope all the effort you've put in is coming back to you and do recognize the help you provide. Cheers to you my friend with many wishes and thanks! :smile:

Glad I could help, it's always nice to hear the software's useful and appreciated so thanks for that!

All the best...

Conor
ceon

16 Sep 2011, 17:47
#56
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping v4.x

Well speaking as one of your fans, WE love you!! :hug:

17 Sep 2011, 15:56
#57
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

DivaVocals:

Well speaking as one of your fans, WE love you!! :hug:

Yes I do too Conor. I hope everything went well with you a few weeks back.:yes:

DivaVocals
How are you doing my friend?? Nearly recovered I hope??:hug:

I will be going under the knife next week to fix my shoulder (due to a workout injury which I KINDA ignored -- which finally bit me in the B-U-T-T....:laugh:)I'm doing great. Feeling like my old self every day. I hope everything goes alright with you on your big day. I will be thinking of you.

17 Sep 2011, 17:57
#58
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

Hope you're having a nice weekend!

I suppose this isn't really the place to talk about such things (as congerman pointed out in the older thread) but since we're all talking here about such things now..

countrycharm:

I'm doing great. Feeling like my old self every day.

That's fantastic news. Really good to hear, I'm very happy about that. Long may it continue! :)

I've not actually had the first op yet, that's scheduled for this Thursday.. can't wait! Radio silence from me, from then, for a few days I'd say! :)

DivaVocals:

I will be going under the knife next week to fix my shoulder (due to a workout injury which I KINDA ignored -- which finally bit me in the B-U-T-T....:laugh:)

countrycharm:

I hope everything goes alright with you on your big day. I will be thinking of you.

Yes, my thoughts are with you also, Delia! I'm sorry to hear that you are in need of treatment.

Silly you though for not keeping on top of it, but I think that's easily done.. there's always so much else to do!

I sincerely hope it goes well (and expect it will) and that you are 100% fixed soon. :)

Now make sure you take a proper break too!

All the best...

Conor

Think we'll let this thread get back to actual support issues now! I'm sure people would find it strange coming on and to find us all chatting about going for various surgeries, lol :)

In that vein, expect 4.0.4 very soon indeed, hopefully tomorrow, with some small bugfixes and "auto-delete" support for the installation check process, to prevent/minimise the likelihood of anyone else having problems with files from old versions remaining in place when upgrading.

20 Sep 2011, 08:37
#59
rebelit avatar

rebelit

New Zenner

Join Date:
Aug 2011
Location:
Brighton UK
Posts:
27
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Connor,
I have finally got around to installing URI mapping and I am very impressed.

It was an easy install and almost everything seems to be working well.

There are two things I can't figure out though.

  1. My define pages are still using the dynamic urls

  2. I have a couple of EZ Pages which just act as internal redirects to some custom added define pages. I'm not sure how to go about directing them to the custom define page (using a friendly url) but maybe that will be fine once I work out how to get the mapping for the define pages working?

There doesn't seem to be any admin code to specify an automatic or explicit URI for the define pages? The cinfiguration check came up all green.

cheers,
Reb

PS Using
Zen cart 1.3.9h
URI Mapping 4.0.3

20 Sep 2011, 08:47
#60
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

Hi,

rebelIT:

I have finally got around to installing URI mapping and I am very impressed.

Glad you like it!

rebelIT:

  1. My define pages are still using the dynamic urls

Yes, the standard edition of the software has no interface for creating URI mappings for define pages. You can easily add them manually using the instructions in the configuration documentation.

rebelIT:

  1. I have a couple of EZ Pages which just act as internal redirects to some custom added define pages. I'm not sure how to go about directing them to the custom define page (using a friendly url) but maybe that will be fine once I work out how to get the mapping for the define pages working?

EZ Pages can no longer use internal links whenever you are using Ceon URI Mapping. You must remove the internal links from your site. You don't need them any more, internal links were just a kludge for Zen Cart's lack of static URI support, you can just use static URIs instead.

Hope that helps!

All the best..

Conor
ceon