Putting a link to page profile into an html template page?

Hi everyone,

I can't find the right syntax to put a link to the member profile page.

It's supposed to be something like http://dolphin/$username, where $username is replaced dynamically with php by the member username. I need to put this kind of link on page_1.html so I can have a link to the profile beside the slider..

Any ideas?

Quote · 29 Jul 2012

Actually you can't put php in a html file and you can use this to get the logged profile link

$iId = getLoggedId();

$sLink = getProfileLink($iId);

echo $sLink; 

so much to do....
Quote · 29 Jul 2012

 

Actually you can't put php in a html file and you can use this to get the logged profile link

$iId = getLoggedId();

$sLink = getProfileLink($iId);

echo $sLink; 

Are you sure about this? Laughing

Quote · 29 Jul 2012

He may not be sure. But i am. But to clarify. You cannot use php in any of the dolphin html template files because the dolphin template parser does not process embedded php code. But php can be mixed with html in some areas. It all depends on where your trying to use it.



https://www.deanbassett.com
Quote · 29 Jul 2012

Yes, i think so. Unless you have setup your server to execute html, even through right way would be to use template system. Why?

so much to do....
Quote · 29 Jul 2012

 lol i am sure

He may not be sure. But i am. But to clarify. You cannot use php in any of the dolphin html template files because the dolphin template parser does not process embedded php code. But php can be mixed with html is some areas. It all depends on where your trying to use it.



 

so much to do....
Quote · 29 Jul 2012

i guess it all comes down to what u are trying do to,  since i have some php codes in _sub_footer.html
i was asking in general if he was sure about not being able to use php in html and html in php

Quote · 29 Jul 2012

You can do that with this mod installed:

 

http://www.boonex.com/m/page-block-keys

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 29 Jul 2012

 RE:

i guess it all comes down to what u are trying do to,  since i have some php codes in _sub_footer.html
i was asking in general if he was sure about not being able to use php in html and html in php

 You're lucky... not all servers will let you add the application handlers to do this... on shared hosting, that is.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 29 Jul 2012
 
 
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.