Author Topic: Something driving me nuts  (Read 1294 times)

0 Members and 1 Guest are viewing this topic.

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2155
  • Yeah, I'm hugging my traffic light.
    • http://www.cnyweather.com
Something driving me nuts
« on: September 13, 2011, 09:05:58 AM »
I'm trying to reformat Curly's Severe Weather Summary for my cell pages.

Here's the alert box, but for the life of me I can't change the link for the alerts
to point to a page other than my regular pages.

in my SWSP-configCell I've got $alertDetailPage = 'cell-advisoriestest.php';

$alertDetailPage controls the hyperlinks withing the alert box, right?

Here's the alert box:  http://www.cnyweather.com/SWSPalertBOXcell.php and I haven't been able to change
the links within the alert box.   :sad:
Tony


Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Something driving me nuts
« Reply #1 on: September 13, 2011, 10:18:51 AM »
I will look into this.


Did you change the config filename for the NEW page to something else?  If so what is the name?
What version is the SWSP-config.php file that you are using for the NEW page?  It should be 2.1.

« Last Edit: September 13, 2011, 10:35:30 AM by Curly »

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2155
  • Yeah, I'm hugging my traffic light.
    • http://www.cnyweather.com
Re: Something driving me nuts
« Reply #2 on: September 13, 2011, 10:58:19 AM »
Hey Rick.

I've got SWSP-configCell.php for the cell page.

I've got version 2.3 too??


I had to remove the map because after an hour of fiddling with it, I
couldnt get it moved above the advisory text so I left it off for now.
Tony


Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Something driving me nuts
« Reply #3 on: September 13, 2011, 11:36:09 AM »
The SWSP-core.php file has an include function in there
Code: [Select]
include("SWSP-config.php");
It's pulling the variables out of that file. If you change the filename to SWSP-configCell.php, then you would need to change SWSP-core.php to something else, and then a few more pages will need to be changed to reflect those changes.

There would be less file name changing if you created another "cell" folder and put the SWSP files in there leaving the original filenames intact. Your cell phone files will end up in that folder and won't get mixed in with the ones in the parent folder.

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2155
  • Yeah, I'm hugging my traffic light.
    • http://www.cnyweather.com
Re: Something driving me nuts
« Reply #4 on: September 13, 2011, 12:21:13 PM »
Yeah that's true.

I'd just make copies of all the original SWSP files and throw them in the cell folder
and point to there is what you're saying, right?
Tony


Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Something driving me nuts
« Reply #5 on: September 13, 2011, 01:00:03 PM »
You got it!

Let's say you have a folder named "cell" and all of the SWSP files were put in that folder, a new cache folder will be a sub-folder of the cell folder. Just point the web pages to that "cell" folder.

OR

Instead of doing all of that, a few lines of code in the web page could open your main cache file for the alert box and replace the links to something else. It would avoid using the SWSP script.

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2155
  • Yeah, I'm hugging my traffic light.
    • http://www.cnyweather.com
Re: Something driving me nuts
« Reply #6 on: September 13, 2011, 01:55:23 PM »
Roger...........Over and Out Captain.  8-)
Tony


Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Something driving me nuts
« Reply #7 on: September 13, 2011, 03:02:53 PM »
Let me know what you do !

 

anything