How to add privacy policy and terms of use page

Most websites have links such as About, Privacy, Terms, Contact, etc... in a menu located in the footer. Is there an easy way to accomplish this in WackoWiki? I did see the following code in the default footer.php file but I have no idea what it means.


// comment this out for not showing website policy link at the bottom of your pages
if ($this->config['policy_page'])
{
	echo '<a href="'.htmlspecialchars($this->href('', $this->config['policy_page']), ENT_COMPAT | ENT_HTML401, HTML_ENTITIES_CHARSET).'">'.$this->_t('TermsOfUse').'</a><br />';
}


Does this mean if I set 'policy_page' => '', to 1, the link to TermsOfUse page will be displayed?


If so, can I copy, modify, and include the above code I could add a contact page, about page, etc... the same way?


Greg

Comments

  1. Figured it out

    Figured it out. I set policy_page = TermsOfUse in wacko_config table, deleted config.php in _cache/config directory, and reloaded my home page. I saw the link to Terms of use on bottom right corner of page. I clicked the link and created the new page. Works great. Now, I will try to add new config_name and config_value to wacko_config table to see if I can add other links to pages I want to see on the bottom.

    • gference
    • edited
  2. Adding About and Contact page

    I tried to add new config_name and config_value to wacko_config table as mentioned in my previous comment to add additional pages as mentioned in my first entry above but it doesn't work. Anyone have any thoughts?

  3. Example for additional footer links

    if ($this->config['contact_page'])
    {
    	echo '<a href="'.htmlspecialchars($this->href('', $this->config['contact_page']), ENT_COMPAT | ENT_HTML401, HTML_ENTITIES_CHARSET).'">'.$this->_t('ContactPage').'</a><br />';
    }


    ContactPage here requires a message set in your language file. Or your hard code the string like

    if ($this->config['contact_page'])
    {
    	echo '<a href="'.htmlspecialchars($this->href('', $this->config['contact_page']), ENT_COMPAT | ENT_HTML401, HTML_ENTITIES_CHARSET).'">Contact Page</a><br />';
    }

    • Guest
    • edited