Topic Closed

I found gpEasy in my search for a CMS to develop my research work for my masters thesis, it is just what I need :-) I want to add a php banner shuffle script  at the top of the Side-Menu. I uploaded my shuffle file and hard coded <?php include("shuffle.php"); ?> to the Side_Menu.php but this hasn't worked for me. Is there a way I can add a banner shuffle script without building a plugin?

Edit:

Second Question- I want to create a list of Sponsors with a random shuffle so a different one appears at the top of the list on each page reload. I found a script at  [http://www.codingforums.com/archive/index.php/t-206203.html] (second example). I placed the JS in the FBv2 template header but it didn't work so it is the wrong way to do it. Does anyone have a suggestion on another way I can try this?

Thanks

 

Cheers

Edited: 11 years ago#1330

I have this solved now :-)

Method:

Upload php shuffle file to -extra

Using an editor, add <?php include("shuffle.php"); ?>  to Side_Menu file

Create a folder just above gpEasy root ie 'banner' and link to images using http

<?php $banner_src[0]="http://localhost/gpEasy/banner/easy.gif"; $banner_link[0]="http://gpeasy.com/"; $banner_src[1]="http://localhost/gpEasy/banner/hitachi.gif"; $banner_link[1]="http://www.hitachi.com/index.html"; $banner_count=((count($banner_src))-1); $which_banner=(rand(0, $banner_count)); print "<center><a href=\"$banner_link[$which_banner]\" target=\"_blank\"> <img src=\"$banner_src[$which_banner]\" border=\"0\"></a></center>"; ?>

Above shuffle is a bit crude, please chime in if you have a better one....

11 years ago#1331

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In

  Register