Wallpaper Script Forum » Announcements

creating new page (policy, terms, etc.)

(15 posts)

Tags:

  1. iiyama
    Member

    i wanted to add privacy policy page, so i created a new page in my template folder under the name (policy.tpl), and has the url www.example.com/policy.html

    works fine for me, but i am having problem giving the page a title.

    <title>Privacy Policy</title>

    how i can do that ??

    Posted 3 years ago #
  2. voiloo
    Member

    up !!!

    Posted 3 years ago #
  3. voiloo
    Member

    up !!!

    Posted 3 years ago #
  4. iiyama
    Member

    UP !!!!!!!!!!

    is anybody have any idea how to give a title to the new page ??

    Posted 3 years ago #
  5. iiyama
    Member

    is my question is very stupid, or the answer is so hard ??

    Posted 3 years ago #
  6. Hey just saw your question, let me answer it affter studying the code, if i m successful i ll post solution here

    Posted 3 years ago #
  7. Add following code to Privacy.inc.php or any other inc.php file you made for a custom page to show custom meta tags. I replaced SITE TITLE with Privacy Policy

    <?php
    $smarty->assign("meta_title", Privacy Policy);
    $smarty->assign("meta_description", SITE_DESCRIPTION);
    $smarty->assign("meta_keywords", SITE_KEYWORDS);

    ?>

    By the way we provide Wallpaper Sites Premium Hosting and Custom Templates as well , You can mail me your requirements at nishkrant[at]gmail.com

    Posted 3 years ago #
  8. iiyama
    Member

    no .. it didn't work !! thanks anyway, appreciate your help :)

    Parse error: syntax error, unexpected T_STRING in /home/site/public_html/site/templates_c/%%40^40E^40E10837%%file%3Aprivacy.tpl.php on line 6

    Posted 3 years ago #
  9. Actually i tested in on my site, there must be some error while placing this code. If you dont mind can u tell me the full code of your privacy policy page you placed, i can email you my sites page where i did the above hack successfully if you want and its working fine.

    you can email the code as well so that i can check if any syntax error.. nishkrant[at]gmail.com

    Posted 3 years ago #
  10. I was also looking for the same thing. Someone from support please help.

    P.S. Nikhil, I guess you are not from support, even them you are helping everyone. That's great mate! Keep it up. Your replies cleared many of doubts too.

    Posted 3 years ago #
  11. Thanks for the nice words, it will motivate me to extend further cooperation to community and yup i m not from support or associated with WallpaperScript, i m a member like you who bought the script.

    Posted 3 years ago #
  12. iiyama
    Member

    Nikhil i see your posts every where, its so nice you trying to help and find solutions and support for the CUSTOMERS here, many of your post are very helpful.

    I created a page with the name ( privacy.tpl ), so it show in my site as ww.example.com/privacy.html. eveything is ok, except the meta title !! lol . no matter what i try, its not working.

    i am having trouble making meta title to the new pages, i really tried your other way but it didnt work for me, i guess i will make external HTML pages, or just leave the new pages with no title.

    Posted 3 years ago #
  13. ok let me tell the process step by step.. may be that will help

    Step 1: I created a file privacy.inc.php in home directory

    with this code

    <?php
    $smarty->assign("meta_title", Privacy Policy);
    $smarty->assign("meta_description", SITE_DESCRIPTION);
    $smarty->assign("meta_keywords", SITE_KEYWORDS);

    ?>

    then I created privacy.tpl in template folder

    with this code

    <?
    global $WS;
    ?>
    [your html content]

    its working fine for me

    now yr link will be site.com/privacy.html

    I ve done it like that without error, I failed to recognise that you people might not be adding privacy.inc.in file, sorry fr that

    Posted 3 years ago #
  14. @Nikhil
    I followed your instruction but didnt work. And i made little changes.

    Step 1: I created a file privacy.inc.php in home directory

    with this code

    <?php
    $smarty->assign("meta_title", "Privacy Policy");
    $smarty->assign("meta_description", "Privacy".SITE_NAME);
    $smarty->assign("meta_keywords", "Privacy".SITE_NAME);
    $breadCrumb->add(REQUEST_URI, "Privacy Policy");
    ?>

    then I created privacy.tpl in template folder

    with this code

    <?
    global $WS;
    ?>
    [your html content]

    Now its Fully working :) for me.

    Thanks for giving idea :)

    Posted 2 years ago #
  15. Glad you are able to that. Earlier method was good for earlier version of script may be, as i successfully implemented that. :-)

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.