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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
remusssslim
Forum Newbie
Posts: 1
Joined: Fri Mar 28, 2008 11:48 am

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

Post by remusssslim »

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.
Post Reply