Forums

Don't know where to insert the profilactic code (4 posts)

  1. jared46
    Member
    Posted 1 year ago #

    Running 2.6.2 and have everything set up, the demo template works, but when I make a copy of my single post template and try to insert <?php profilactic(); ?> I always corrupt the template (I imagine I corrupt it since I can't select it as a template later on). Where do I insert the code?

    Cheers,
    Jared

  2. MichaelH
    moderator
    Posted 1 year ago #

    Here's part of the instructions from the readme.txt for that plugin.

    5. To show your lifestream on a page (like [My Lifestream](http://opindian.com/blog/lifestream/)):
    * Copy <?php profilactic(); ?> or <?php prof_wtfmo(); ?> into a template file (sample file, profilactic.tpl.php, included in the plugin directory)
    * *Save the template file to /wp-content/themes/your theme/*
    * Create a new page (*Write -> Page*) and use the profilactic template (under the *Page Options*, scroll down to *Page Template* and select Profilactic).
    6. To show your lifestream or wtfmo in the sidebar, add the appropriate Profilactic widget from *Design -> Widgets*.

  3. jared46
    Member
    Posted 1 year ago #

    I know how to read ;)
    I tried the sample template, but it corrupts the background I have. I'm trying to insert the code into a copy of my default template.

  4. ahpatel
    Member
    Posted 1 year ago #

    @MichaelH thanks for helping out.

    @jared46 You'd be surprised how many people overlook the instructions! Can you share your lifestream URL so I can see what's going on?

    Also, if you'd rather email me the template you'd like to fit this information into, I can try to suggest where to place the code.

Topic Closed

This topic has been closed to new replies.

About this Topic