Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Rotating Panels

Asked Modified Viewed 10,610 times
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
asked
Senior Member

I have searched the forum but was unable to find any reference to this, but I am wondering if it is possible to have center panels rotating as people access the site. To clarify, I would like the center panels (self made) to rotate in any given order as the site is accessed. Is that possible? I read that version 7.02 may have something similar to this but am not sure if it will be able to rotate panels. Perhaps this is not possible at all?
0 replies

45 posts

J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
answered
Senior Member

I know this is an older thread but I had to change the backward slashes \\ to forward slashes // and the random_panel.php works just fine.
<?php
$INC_DIR = $_SERVER["DOCUMENT_ROOT"];

$mypages = array(
$INC_DIR."//infusions//member_poll_panel//member_poll_panel.php",
$INC_DIR."//infusions//latest_articles_panel//latest_articles_panel.php");

$myrandompage = $mypages[mt_rand(0, count($mypages) -1)];
$bmyrandompage = $mypages[mt_rand(0, count($mypages) -1)];
$cmyrandompage = $mypages[mt_rand(0, count($mypages) -1)];
include ($myrandompage);
include ($bmyrandompage);
include ($cmyrandompage);
?>
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 45 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

J
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
  • Started this discussions
I
I
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 19 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet