3 Replies Latest reply on Jul 22, 2008 12:02 PM by Ben M

    Re Post - PHP?

    Level 7
      Reposting as the original was late Friday afteroon.....

      I have a wordpress site and I was looking for a plugin to do the following
      (without success) - but someone said that it might be possible using PHP so
      I thought I would ask.

      This is the scenario.

      I want a way to be able to display a welcome message (probably in a div near
      the top of the page) if someone comes to that page based on a link left in
      various forums. The message needs to be forum specific e.g.

      Link in Forum 1 - message would read 'Hi visitor from Forum 1 etc...

      Link in Forum 2 - message would read 'Hi visitor from Forum 2 etc...

      So basically I need a way to determine which site the visitor is coming from
      and if it corresponds to one of the forums display the respective message -
      if not one of the forums then do not display a message.

      Make sense?

      Possible with PHP?


      --
      B
      http://www.visit-the-coqui.com
      If you are thinking of a vacation to Puerto Rico

      http://www.thegadgettraveler.com
      Travel gadget and other news here



        • 1. Re: Re Post - PHP?
          bregent Most Valuable Participant
          As was already mentioned, simply include a querystring parameter in the link in each forum. You would then use a server side script to read that parameter and display the appropriate message. You could use client side JS but I think you are better off with server side. Are you familiar with client or server side programming languages?
          • 2. Re: Re Post - PHP?
            Level 7
            No - which is why I was looking for a wordpress plugin

            But I will do some searching online for server side info

            Thanks

            --
            B
            http://www.visit-the-coqui.com
            If you are thinking of a vacation to Puerto Rico

            http://www.thegadgettraveler.com
            Travel gadget and other news here


            "bregent" <webforumsuser@macromedia.com> wrote in message
            news:g6557q$jum$1@forums.macromedia.com...
            > As was already mentioned, simply include a querystring parameter in the
            > link in
            > each forum. You would then use a server side script to read that parameter
            > and
            > display the appropriate message. You could use client side JS but I think
            > you
            > are better off with server side. Are you familiar with client or server
            > side
            > programming languages?
            >


            • 3. Re: Re Post - PHP?
              Ben M Adobe Community Professional
              If you are looking for a WordPress plugin you should be looking at the WordPress site.

              If you don't pass a variable from the site you would need to use the global $_SERVER vars to read some of the information as to where the user came from. Then you would have to print this on the screen. Depending on how large you want the database of welcomes to be would depend on whether you make a mySQL table dedicated to this or whether you use a flat-file DB in order to store the results. You would then query against your known list of sources and set up an else loop to ignore everything else if that is what you wish.

              So yes it can be done. Can it be done with the click of a mouse and no programming, not with DW as far as I know. Can it be done with a WordPress plugin, again go check out the WordPress forums. See if anyone knows of a plugin. Otherwise I would say no, there is none. If you are looking for someone to make it for you then maybe this is a viable path if you do not have the programming knowledge.