Info sidebox link to t&c html page instaed of zc default
For some reason (it's a long story and I can't explain it all in this post) I had to make 3 separate terms and conditions html files (english, dutch and german).
They are on the same site as zc is (so http://www.ad-mineraal.nl/tcenglish.html)
I need to replace the information sidebox default links with links to the hmtl pages.
I've tried messing about a bit :blush: but the double slashes in the hyperlink made it think it was a comment. Further I wasn't even sure if I was editting the right file. Because I could only edit the default zc link but not language specific.
Anyway... before making a reall mess can someone please help.
Thank you.
Your friendly neighbourhood php noob,
Juliet van Ree
Re: Info sidebox link to t&c html page instaed of zc default
I haven't tried this but couldn't you set up EZ-Pages to do it?
Have 3 separate pages, and then use EZ-Pages to link to them from which ever page you want them to be on?
Tools > EZ-Pages is where you can define them and how they behave.
Re: Info sidebox link to t&c html page instaed of zc default
Thank you for your answer, but me and ezpages aren't the best of friends, despite of reading many articles and posts on it I still can't make it function the way it should.
Re: Info sidebox link to t&c html page instaed of zc default
Sorry for kicking this topic up but I really need to know this before monday if it is possible!
Thank you very much in advance!
Re: Info sidebox link to t&c html page instaed of zc default
Quote:
Originally Posted by
jvanree
Sorry for kicking this topic up but I really need to know this before monday if it is possible!
Thank you very much in advance!
If it were me, I'd create a new definition file:
tc_external_link_definition.php
The contents of the file would contain the link information
This example is for the english html link
PHP Code:
<?php
define('TC_EXTERNAL_LINK', 'http://www.ad-mineraal.nl/tcenglish.html');
?>
Save the new file to:
includes/languages/english/extra_definitions/tc_external_link_definition.php
includes/languages/german/extra_definitions/tc_external_link_definition.php - this file would have this link definition - define('TC_EXTERNAL_LINK', 'http://your_link.com/');
includes/languages/german/extra_definitions/tc_external_link_definition.php - this file would have this link definition - define('TC_EXTERNAL_LINK', 'http://your_link.com/');
You should then be able to change the TC link in the information sidebox as follows
Code:
if (DEFINE_CONDITIONS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(TC_EXTERNAL_LINK) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
}
Now whenever someone switches languages the appropriate external link will appear in the sidebox.
Hope this is helpful
Re: Info sidebox link to t&c html page instaed of zc default
This is awesome!!!! Thank you very very much!!!!
Re: Info sidebox link to t&c html page instaed of zc default
Quote:
Originally Posted by
jvanree
This is awesome!!!! Thank you very very much!!!!
Let me know how it works out