Display Random Divs on Page Load

I have an HTML box/div in the header on my pages. The one on the home page will have the Scripty Fader action applied, but on the child pages, I would like to just have those same divs load randomly, no fading action on it. I can’t figure out how to do that without making the text and the image all an image and then using the random image action.

Here is my site: http://www.bellevuerotary.net/new2/index.html

The header image and the text to the left are in one html box. Is that possible to do?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes - but it may be more than you want to do.

There is an action - PHP Random Include that will do this - have a look at http://www.deltadesign.co/fw_examples/randomiser.php Refresh the page a couple of times to see it work.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oy, you’re right. It looks … daunting. I don’t need to make the .inc files, though, if I’m just using content from FW, correct?

I have my Random Include on one page. Then I have three pages with that same size div and the content I want to include. I have selected the three pages in the action.

What does weight do? What is the PHP variable $? I can’t find any specific instructions.

It’s not working for me right now. Do all the pages need to be .php? I’ve tried .php, .html and .inc on the include pages, but I’m getting a parse error no matter what. Of course, I don’t have the PHP variable filled in and all the weights are set at 1.

Test page: http://bellevuerotary.net/test/

Screenshot of settings: 404 Error

Also, when I first installed the action and opened Freeway, I got a couple of error messages that said:

DUPLICATE PARAMETER NAME. The following parameters have the same name within a single Action. The last parameter will be ignored.
Parameter: “URL 9”, Action: “PHP Random Include”.

UNEXPECTED END-TAG. The following end-tags were not expected.
Tag: “/action-javascript” Action: “”, File: “Macintosh HD:Users:webflunky:Library:Application Support:Freeway 5:Actions:General:PHP Random Include.fwaction”.
Tag: “/action” Action: “”, File: “Macintosh HD:Users:webflunky:Library:Application Support:Freeway 5:Actions:General:PHP Random Include.fwaction”.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You need to make the include pages which are page partials ie they do not have HTML headers as you cannot include a full HTML page within another.

The $ variable is the ID of the Div where you want them to appear ie item3

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It’s still not working for me, so I’m doing something wrong.

Test page: http://bellevuerotary.net/test/

I have my Random Include on home page.Three pages with content I want to include. I have selected the three pages in the action added the name of the home page div in the variable field.

On the three content pages, I added the PHP Make Insert Page action to remove everything but the content. I still get the same Parser Error message. I tried naming the three pages with .html, then with .php, then with .inc at the end, but none work.

I don’t understand what I’m supposed to be doing.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The Parse Error message said:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/belclub/public_html/test/index.php on line 47

I looked at line 46 and it said:

$pjdUrls = rray(0 => urls );

So, I added an ‘a’ in front of ‘rray’ and now I get a whole new bunch of messages.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

There’s a text encoding problem with this Action, it’s missing a lot of a’s throughout. I’m looking through it now, and should have an updated version in a few moments.

Walter

On Feb 8, 2012, at 10:47 AM, Robin Stark wrote:

The Parse Error message said:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/belclub/public_html/test/index.php on line 47

I looked at line 46 and it said:

$pjdUrls = rray(0 => urls );

So, I added an ‘a’ in front of ‘rray’ and now I get a whole new bunch of messages.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options