change from _sub_footer.html to _sub_footer.php?

This may be a dumb question.  How can I add php script in the footer. Our current footer is in HTML so if i change it to _sub_footer.php, where do i have to change to get to _sub_footer.php file, not _sub_footer.html. Your help would be appreciated. Thanks

 

Patrick

Quote · 11 Oct 2010

The templates are parsed by a template parser that expects a html template. You can't rename it to php or embed php code into any of the templates. It just won't work.

But there are 3 injection points in the footer template, so you can use dolphins template injection system.

It would be nice if boonex had a tutorial on injections.

I could most likely give you an example if you provide a bit of info as to what you're trying to do.



https://www.deanbassett.com
Quote · 11 Oct 2010

Sure Deano!  It's simple really.  I'm playing around in the footer right now as you can see the image below....

 

screenshot20101011at557.png

 

I'm trying to think how I put short php link script in "Edit Profle".  I know it has to be something like this...

<div><a href="<?php echo "{$site['url']}"?>profile_info.php?ID=<?php echo "{profileID}" ?>">My Photos</div>

but the entire footer is in html. I'm not sure what do to. :/

Quote · 11 Oct 2010

actually.. maybe it's not a good idea to include a list of Settings since guests can see them.  Hmm ah... didn't think of this! never mind deano.. i guess my plan doesn't work

Quote · 11 Oct 2010

you don't need any php for the links

<ul>
        <li>a href="profile_info.php"> Edit profile</a></li>
      </ul>


no guest cant see them

Quote · 11 Oct 2010

Thanks prolaznik.. i guess it's easier to this than taking them to their edit profile page directly.  Again, i think it's weird to have guests see a list of settings anyway... it would be awesome to make them appear after they log in or only members can view them....Just the settings part. I don't know if that's possible.  :/

you don't need any php for the links

<ul>
<li>a href="profile_info.php"> Edit profile</a></li>
</ul>


no guest cant see them

 

Quote · 11 Oct 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.