1
Stewdio
Agenda-X random image from XoopsGallery
  • 2003/11/28 19:56

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


I was wondering if there is a way to display a random image from the XoopsGallery random image block (XoopsGallery 1.3.3.1 based on Gallery)in the Agenda-X Minical.

The reason I am asking is because of the .php image echo option in the preferences. I tried looking around in various .php files for something that looks for the call from the random image block, but didn't have much luck.

If it's not possible to point to a file in this way, is there some code I can create to call for a random image. My php skills aren't that great, but I'm an expert at cut-n-paste operations

For demonstration purposes, I have enabled the two modules on a site that I'm creating at http://family.stewdio.net. Essentially, I would like the random image to be displayed in the calendar block.

Any input people have would be appreciated

Stew Brennand
«StewdioNet»
 In your Space!

2
svaha
Re: Agenda-X random image from XoopsGallery
  • 2003/11/28 20:07

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


You can find in :
modules/agendax/script/display_image_more.php

This is what's in the file :
Quote:
<?php

// logic echoing any image url
$random_d = rand(1,6);
echo 'http://www.yoursite.com/images/'.$random_d.'.jpg" width="140"';

?>

Just edit this and it should work

Aloha

Oeps forgot something : You'll have to tell agendax to use this file in : administration menu, choose minical image, fill in : display_image_more.php and click on yes in the box below (php script)

Login

Who's Online

216 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits