lemondude
12-26-2008, 11:56 PM
Hi
I want to turn this statement into a language that'll work on the web, and unfortunately I'm not too familiar with web based languages, so if anyone can help, it be great.
If (it is a regstered user)
{
<a href=www.domain.com/......html></a>
}
else
{
<a href = www.domain.com/......ls.html></a>
}
So What I basically want to know is how this would look in something like javascript or something like that.
I'm also not sure about the registered user part, and what you have to do there.
I'm currently using php fusion, if it helps.
http://en.wikipedia.org/wiki/PHP-Fusion
thank you
Jaseeey
01-02-2009, 11:44 PM
It's not exactly that simple. You would have to use the same language which is being used by the CMS, which I'm assuming is PHP by the name of it. You would need to learn how the CMS interacts with the database in order to determine if the user is registered or not - this could either be done by using existing cookies or creating a connection to the database and compare tuples etc.
It's possible to do what you want to do, but it's not as "simple" as it may sound, which of course depends on the CMS flexibility itself.
AnoxiA
01-03-2009, 08:17 AM
hey Lemondude,
amm the system you are using is PHP-Based (Duh?! [= )
but its not necessarily this hard as the poster above me said,
i really think that the system got some controller for this kind of things,
you should check out the official forums and ask them there for solution:
www DOT php-fusion DOT co DOT uk/forum/index.php
[=
Jaseeey
01-03-2009, 08:24 AM
hey Lemondude,
amm the system you are using is PHP-Based (Duh?! [= )
but its not necessarily this hard as the poster above me said,
i really think that the system got some controller for this kind of things,
you should check out the official forums and ask them there for solution:
www DOT php-fusion DOT co DOT uk/forum/index.php
[=
I'm not saying it's hard, but you have to have some knowledge of the system in order to do it. I haven't used PHP Fusion, so by all means I could be wrong. It's just the assumption I'm taking.
AnoxiA
01-03-2009, 08:34 AM
I'm not saying it's hard, but you have to have some knowledge of the system in order to do it. I haven't used PHP Fusion, so by all means I could be wrong. It's just the assumption I'm taking.
i did understand what you were saying, and you completely right!
thats the reason why i referred him to the Official forums to ask there.
sorry if you didnt get me right. [=
Jaseeey
01-03-2009, 09:31 AM
i did understand what you were saying, and you completely right!
thats the reason why i referred him to the Official forums to ask there.
sorry if you didnt get me right. [=
That's fine, not having a go at you or anything. Just don't want there to be any misunderstanding :D But yes, without any knowledge of the system, I'd have to recommend you hire a programmer who can do such a job as it's not just a case of writing "if user is registered" etc. (I wish it was!!)