Hello dear Jumi-Fans,
i want to do some rotations in a block - see here
htt://php-nuke.de - with a Code-Snippet in a Jumi Block:
See the the amazon-books should rotate - each time i fetch the site i want to have new asins - and new books shown.
BTW; see see here
htt://php-nuke.de -
no rotation: Whaht is wanted: the rotation in an example here
http://www.1step-beyond.de and here
http://www.classic-josephine.dewell but i want more. I want to show a link below the books - which leeds to a review - written by me - on my site: eg here:
http://php-nuke.de/index.php?option=com ... 7&Itemid=5http://php-nuke.de/index.php?option=com ... 8&Itemid=7And i want to have some links below the shown books - that link to a site where a Review (written by me) is shown. Two
ways to solve: Well - we can do this with two ways
[list=]a. with a db where the ASIN and the link is stored.
b. with an array
[/list]
I want to talk about the
way b. We can create a jumi-block (on the column right or left) ASINS in a Array in a module or Jumi-Block stored, these Array randomly should choose one ASIN
A string with Link and ASIN should look like the following - with 2 different ASINS:
In order to do some rotations in a block - eg with a Code-Snippet in a Jumi Block: or something else: Well how to get the amazon-books rotate - in the following way:
"each time i fetch the site i want to have new asins - and new books shown."
Whaht is wanted: the rotation in an example here
http://www.1step-beyond.de and here
http://www.classic-josephine.dewell but i want more. I want to show a link below the books - which leeds to a review - written by me - on my site: eg here:
http://php-nuke.de/index.php?option=com ... 7&Itemid=5http://php-nuke.de/index.php?option=com ... 7&Itemid=7And i want to have some links below the shown books - that link to a site where a Review (written by me) is shown.
Two ways to solve: Well - we can do this with two ways
a. with a db where the ASIN and the link is stored.
b. with an array
I want to talk about the way b. We can create a jumi-block (on the column right or left) ASINS in a Array in a module or Jumi-Block stored, these Array randomly should choose one ASIN
A string with Link and ASIN should look like the following - with 2 different ASINS
i have to create a module called:
mod_amazon.
Code:
<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
<name>Amazon</name>
<creationDate>March 2010</creationDate>
<author>DMS</author>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>webmaster@worldwidewaiting.de</authorEmail>
<authorUrl>www.bwforum-online.de</authorUrl>
<version>1.0.7</version>
<description>AMAZON</description>
<files>
<filename module="mod_amazon">mod_amazon.php</filename>
</files>
<params>
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />
</params>
</install>
i have to create a folder called modules/mod_amazon/
with the following xml and php files in
mod_amazon.xml
mod_amazon.php
to give some ASIN (rotating ) - each time i fetch the site.
the following block - mod_amazon.php
Code:
<?php
/**
* @version $Id: mod_random_image.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$asinarr=array;
$asinarr[] = array("ASIN"=>"B002UI2QDY",
"Link"=>"http://....."); //Inglorious Basterds
$asinarr[] = array("ASIN"=>"B0033AGA4E",
"Link"=>"http://....."); //2012
// Das Array $asinarr nach obigem Muste beliebig zu erweitern
shuffle ($asinarr);
echo "Ausgesuchte ASIN: ".$asinarr[0]["ASIN"]
?>
dear Jumi-fans: can anyone help me - how to upload the files? Into the folder modules/mod_amazon/ ? or with the
setup of the code in Jumi!?Can I do this with out any FTP or shell client - can i do this through the admin area - can i do this necessary upload through the admin area of joomla
or
can i use a jumi block !?look forward to hear from you!
Question: can i do this like it is written above? Can i use
a jumi-block?Please i need your help - many many thanks
regars Joo_jesus
