Dear all,
I'm administrating a site for which I run several development version: one private on my laptop, just for me, one also on the same machine as the production version, for public testing...
I'm wondering whether you guys know a way to show something on the pages that make it clear that one is browsing a dev version rather than the production site. The algorithm could be something like this: if ip=PROD_IP and vhost=PROD_VHOST then production site else dev site
So the feature should require no database change, so that the different versions of the site can be differenciated from each other even after a database synchronisation. Any suggestion warmly appreciated. Thanks, Sebastien.
28 августа 2011, 20:57 от Sébastien Hinderer Sebastien.Hinderer@ens-lyon.org:
Dear all,
I'm administrating a site for which I run several development version: one private on my laptop, just for me, one also on the same machine as the production version, for public testing...
I'm wondering whether you guys know a way to show something on the pages that make it clear that one is browsing a dev version rather than the production site. The algorithm could be something like this: if ip=PROD_IP and vhost=PROD_VHOST then production site else dev site
So the feature should require no database change, so that the different versions of the site can be differenciated from each other even after a database synchronisation. Any suggestion warmly appreciated. Thanks, Sebastien.
I don't recommend making the change to page.tpl.php since it won't be compatible with caching.
Carl Wiedemann Website design and development consulting carl.wiedemann@gmail.com | skype: c4rlww
On Sun, Aug 28, 2011 at 10:08 AM, Buratino x9nx@mail.ru wrote:
28 августа 2011, 20:57 от Sébastien Hinderer < Sebastien.Hinderer@ens-lyon.org>:
Dear all,
I'm administrating a site for which I run several development version: one private on my laptop, just for me, one also on the same machine as the production version, for public testing...
I'm wondering whether you guys know a way to show something on the pages that make it clear that one is browsing a dev version rather than the production site. The algorithm could be something like this: if ip=PROD_IP and vhost=PROD_VHOST then production site else dev site
So the feature should require no database change, so that the different versions of the site can be differenciated from each other even after a database synchronisation. Any suggestion warmly appreciated. Thanks, Sebastien.
-- [ Drupal support list | http://lists.drupal.org/ ]
There is a http://drupal.org/project/environment module, i didn't test it for D7 though.
-- [ Drupal support list | http://lists.drupal.org/ ]
The environment module is indeed interesting, thanks a lot ! And by the way: the question was for a D6 site. Thanks ! Sébastien.
One of my past customers had a unique solution: Each version (prod, stage, test, dev) used a different port number, so distinguishing each one was easy. Then I had a little module that altered the site-name variable depending on the port number. It also set a few different things, like enabling Devel on test and dev, and disabling a few things that weren't used there.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
I'm administrating a site for which I run several development version:
one private on my laptop, just for me, one also on the same machine as the production version, for public testing...
We use that as well. BTW if there's any drawback un using this solution, I'd be glad to know more about the best ways to handle this differentiation.
Cheers, Gs
Inviato da iPad
Il giorno 30/ago/2011, alle ore 00:59, "Ms. Nancy Wichmann" nan_wich@bellsouth.net ha scritto:
One of my past customers had a unique solution: Each version (prod, stage, test, dev) used a different port number, so distinguishing each one was easy. Then I had a little module that altered the site-name variable depending on the port number. It also set a few different things, like enabling Devel on test and dev, and disabling a few things that weren't used there.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
I'm administrating a site for which I run several development version: one private on my laptop, just for me, one also on the same machine as the production version, for public testing... -- [ Drupal support list | http://lists.drupal.org/ ]
Use the Dev Banner module:
http://drupal.org/project/dev_banner
or Environment Indicator:
http://drupal.org/project/environment_indicator
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 8/28/2011 12:57 PM, Sébastien Hinderer wrote:
Dear all,
I'm administrating a site for which I run several development version: one private on my laptop, just for me, one also on the same machine as the production version, for public testing...
I'm wondering whether you guys know a way to show something on the pages that make it clear that one is browsing a dev version rather than the production site. The algorithm could be something like this: if ip=PROD_IP and vhost=PROD_VHOST then production site else dev site
So the feature should require no database change, so that the different versions of the site can be differenciated from each other even after a database synchronisation. Any suggestion warmly appreciated. Thanks, Sebastien.
Jamie Holly (2011/08/28 13:15 -0400):
Use the Dev Banner module:
http://drupal.org/project/dev_banner
or Environment Indicator:
Thanks for two useful links !
I think I'll opt for the second one, thanks !!
Sébastien.
Hello, I just discovered that JQuery UI is loaded or included with Drupal 7 core. I had used my theme .info file to load the JQuery UI theme and the JQuery UI code. So, I thought that if I just removed the call to the JQuery UI library from my theme file my accordion widget would still work. That was not the case. Maybe though, the problem is that I would need to remove the call to the JQuery UI CSS file from theme and let it use the one that comes with Drupal 7 core. Can someone help me? What is included from the JQuery UI with Drupal 7 core? All the effects, widgets, etc? I did find an extension that will load any specific JQuery UI theme. I just wanted to find out if I was going to end up having to manually include any part of the JQuery UI library if it wasn't automatically included with the Drupal 7 core.
Similar to this, has anyone used any of good Drupal modules for generating tool tips? I had thought of using Qtip but the module only currently supports Qtip 1 and that is being discontinued and being replaced with a module that supports Qtip2, which is what I've used on all my static sites. Thanks in advance for any tips and info, Bruce
++++++++++++++++++++++++++++++++++++++++++++++++++ Bruce Whealton, Owner Future Wave Designs FOAF: http://whealton.info/BruceWhealtonJr/foaf.rdf Vcard: http://whealton.info/BruceWhealtonJr/brucewhealtonvcard.html Web Design and Development http://FutureWaveDesigns.com http://futurewavedesigns.com/wordpress/ Web Technology wiki: http://futurewavedesigns.com/w/ ++++++++++++++++++++++++++++++++++++++++++++++++++
I would recommend using http://drupal.org/project/beautytips for the tool tips.
What is your goal with the UI issue? Here is an explanation of how to add the accordion http://www.yoursearchbuddy.com/jquery-ui-accordion-drupal-7
On Sun, Aug 28, 2011 at 5:45 PM, Bruce Whealton <bruce@futurewavedesigns.com
wrote:
Hello, I just discovered that JQuery UI is loaded or included with Drupal 7 core. I had used my theme .info file to load the JQuery UI theme and the JQuery UI code. So, I thought that if I just removed the call to the JQuery UI library from my theme file my accordion widget would still work. That was not the case. Maybe though, the problem is that I would need to remove the call to the JQuery UI CSS file from theme and let it use the one that comes with Drupal 7 core. Can someone help me? What is included from the JQuery UI with Drupal 7 core? All the effects, widgets, etc? I did find an extension that will load any specific JQuery UI theme. I just wanted to find out if I was going to end up having to manually include any part of the JQuery UI library if it wasn't automatically included with the Drupal 7 core.
Similar to this, has anyone used any of good Drupal modules for generating tool tips? I had thought of using Qtip but the module only currently supports Qtip 1 and that is being discontinued and being replaced with a module that supports Qtip2, which is what I've used on all my static sites. Thanks in advance for any tips and info, Bruce
++++++++++++++++++++++++++++++++++++++++++++++++++ Bruce Whealton, Owner Future Wave Designs FOAF: http://whealton.info/BruceWhealtonJr/foaf.rdf Vcard: http://whealton.info/BruceWhealtonJr/brucewhealtonvcard.html Web Design and Development http://FutureWaveDesigns.com http://futurewavedesigns.com/wordpress/ Web Technology wiki: http://futurewavedesigns.com/w/ ++++++++++++++++++++++++++++++++++++++++++++++++++
-- [ Drupal support list | http://lists.drupal.org/ ]