Solved

HTML or PHP Help with Multiple Pages and Redirect

Posted on 2013-05-13
4
286 Views
Last Modified: 2013-05-19
Folks:

Forgive my jumping around here, I am going to try and keep it short and sweet.

I have a client that I am building an internal website for the company. What they want on this would be Page A.) having ticket (statistic information) on the screen (table form) Page B.) Another screen that has sales on it (table form as well) and Page C.) having simple tips in working in the environment (simple HTML).

The problem I am having is that they want these three screen to have a 15 second auto refresh, so Page A will show, then 15 seconds later Page B, then 15 seconds later Page C. 15 seconds later back to Page A and they want this in a constant loop over and over through out the day. They will make changes to Page A and B once a day, so I have to have a Admin panel (Content Zone) for the customer to make those once a day changes. So I am using wordpress to host everything and the problem I am running into is that when they are in the Admin panel and they are editing a page the page auto redirects within the editing page on the client which prevents them from changing data.

Is there anything out there that can disable the auto redirect script in the Admin panel or some sort of code I can install on the particular page in the head tags that will only load when you visit the site through the regular way and not through the Admin panel? Is there like a jQuery or some sort of other coding for website that may operate like an iframe to display the three sites on one site going across the screen?

I have a week left on this project and hoping to get this all completed soon, so any and all help is appreciated. Thanks
0
Comment
Question by:JustinBMak
  • 3
4 Comments
 
LVL 51

Assisted Solution

by:Julian Hansen
Julian Hansen earned 500 total points
ID: 39163699
This I believe should answer your question

http://wordpress.org/support/topic/disable-plugin-javascripts-in-admin-but-enable-on-front-end-only

You need to check if you are not an admin is_admin() and then load the script that does the auto redirect.
0
 

Author Comment

by:JustinBMak
ID: 39164366
I read the article, I don't see where to load the JS code without loading it in the <header> tags which then all three pages would have the same redirect. On my web server, I do not see the actual files that I created in the admin console which makes it even harder.

I am no Wordpress genius, I learned on the old fashion Coldfusion stuff so I am getting more confused on how I am supposed to be injecting this code when I do not see the files on the webserver (ex: contact.php) if I actually built a contact page.
0
 

Accepted Solution

by:
JustinBMak earned 0 total points
ID: 39164443
Figured it out (sort of), since it's not a public viewing professional built website, this plug-in worked great!

http://wordpress.org/extend/plugins/redirection/

I just changed the settings from 301 Redirect to Meta Redirect and set the timer and went to each page and set it to loop to one another every 10 seconds.
0
 

Author Closing Comment

by:JustinBMak
ID: 39178255
Found a plug-in to work the way I wanted so that it's not too technical.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now