Home Learn More Purchase Knowledge Base Support Contact

Community Forums

KBPublisher Forums » KBPublisher Code Hacks and Customization Discussion

help need in look n Feel , how to integrate php in custon template

(2 posts)

  1. aksinc
    Member

    help need in look n Feel
    hi
    i mm customizing Kb publisher look n feel for my site
    and followed steps given on link
    ---->http://www.kbpublisher.com/kb/Change-KBPublisher-Look-and-Feel-(design-integration)_217.html<----
    but my new design just showing HTML , not the Article & ; not showing post that i have already entered .
    i think a have not integrated HTML with php code...
    i m a php programmer ... can u provide me help how to do that ..

    thanks

    Posted 1 year ago #
  2. rsharkey
    Member

    sir,

    Not sure what you are trying to accomplish here, but if you want to add PHP code to the main page you have to work a little to get it accomplished.

    If you want to add PHP code then you have to use a different page as your main page. You need to use new file such as "newpage.php" and specify this in your settings for the application.

    see: 'Example Setting'

    Once you have this new file created you will need to follow 'this article' to enclose the content of the KBpublisher page.

    Make sure you pay close attention to these steps:

    '

    Notes:

    * You must be an administrator to do this
    * If you prefer, you can set the Template Page to load field to the URL, i.e. http://www.your_domain.com/your_template.html, rather than to the full server path, i.e. /usr/www/html/ ..../your_template.html, if your PHP installation allows it. (On some PHP installations this option is not allowed).
    * Using the URL for the template path (http://www.your_domain.com/your_template.html) cause extra lookups, which will may affect the performance a litte, hence we recommend that you use the server path name if you can.
    * If you need to execute php in your template, use the full URL for the template path.

    '

    You can then place whatever PHP code you want in that "newpage.php" and it should work fine.

    I hope that helps.

    Best,

    Shark

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

© 2008 Double Jade LLC | customer.service@kbpublisher.com