Jump to content

Combining DHTML, Smarty Template, PHP and Javascript .....


remusssslim

Recommended Posts

Quote:

I never used sothink before, so I don't know how it works, but you are mixing up PHP codes with javascript codes, it won't work that way. Smarty template is widely used, so I think you should contact sothink to ask how it can be done by combining PHP + Smarty + sothink dhtml javascript file.

 

 

This was the reply I got from phpFox forum.

 

I am trying to integrate a drop down menu using SoThink DHTML and PhpFox. However I am facing some problem.

 

My photo album-My gallery http://url/user/USERNAME/gallery

- Edit my photos http://url/account/myitems/edit-pic/

- Upload Photos http://url/account/submit/upload-pic/

 

Videos � My Videos http://url/user/USERNAME/videos

- Upload Videos http://url/account/submit/add-video/

- Edit Videos http://url/account/myitems/video/

 

I would like to have, under the gallery, an option to lead user to their PERSONAL gallery and under the video, an option to lead user to their PERSONAL video section.

 

However, to do that, I would need to ensure that the link is to be "dynamic". The URL has to change according to the username. How do I do that? Links to things like upload videos, edit photos is static thus I do not have a problem. The problem only lies with the ones that is dependent on the user name.

 

 

Any way to solve that?

I am using SoThink DHTML to generate the menu.

 

I have tried this but it does not pull out the current username

 

http://www.mywebpage.com/user/<?php echo $usrname; ?>/videos

 

Please assist anyone.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.