Jumi - the set of custom code extensions

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
gijs007
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Sat Oct 30, 2010 1:43 pm

Re: Jumi - the set of custom code extensions

Post by gijs007 » Sat Oct 30, 2010 1:46 pm

can someone help me with installing Jumi, my installer of joomla isn't working cause of my host security settings which I can't change.
I have installed all the files manually and the plugin and module are working it seems however I was unable to get the component menu working to control Jumi...
can someone help me with this last bit(I already ran the mysql install script via phpmyadmin btw)

MrDog
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Tue Sep 29, 2009 10:34 pm

Re: Jumi - the set of custom code extensions

Post by MrDog » Mon Nov 01, 2010 4:47 am

I have been using Jumi for quite a while on my site (boca.org.au) and it is great. Recently however I needed to get some PHP code to work both within a Jumi module and in a freestanding component that I wrote.
I have a very simple problem - the code has a routine

function format_money($s)
{
return sprintf("$%01.2f",$s);
}
which works well in the component I have written. However when I call it in the Jumi module - and it is passed exactly the same parameters as it reads the values from a database in both cases - it returns either ".00" or "0.00" no matter what the input value.
Any ideas welcomed!
Thanks
Dave

willd3rbeast
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Nov 05, 2010 5:09 am

Re: Jumi - the set of custom code extensions

Post by willd3rbeast » Wed Nov 10, 2010 7:12 pm

MarHaj wrote:
Is it possible to make this generated content searchable through the Joomla search component? Or is ther an other way to search the site including the content generated by our Jumi script? Thanks!
Non Joomla! database search through Joomla! search is possible - you have to make/develop search plugin.
If you do not want to make search plugin it is possible to develop your own search through Jumi module + component. Module will contain just search form and will send query to Jumi component application which will process the query and show the results.

Are you planning to make a plug in, im no programmer, I like the flexiblity of Jumi, but it hurts the productivity of my site if I cannot make search though the jumi pages too.

edo888
Joomla! Explorer
Joomla! Explorer
Posts: 272
Joined: Sat Mar 22, 2008 10:55 am
Location: Yerevan, Armenia
Contact:

Re: Jumi - the set of custom code extensions

Post by edo888 » Thu Nov 11, 2010 11:39 am

Dear Jumi users, I have created a special forum for Jumi, please direct all your questions to http://edo.webmaster.am/forum/jumi

I have many other extensions, so it will be easier for me to give support from one place instead of browsing forum.joomla.org.

If you are already registered on my website, you can use the same access details. Otherwise you can easily register at http://edo.webmaster.am/login/_forum/jumi
Best regards, Edvard Ananyan
https://gtranslate.com - GTranslate - Multilingual Website Solutions

satriani
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Aug 25, 2008 12:17 pm

Re: Jumi - the set of custom code extensions

Post by satriani » Mon Dec 27, 2010 9:42 pm

Hello,

I have an html form displayed via Jumi in the home page of my joomla site.

The html form calls an external site to display the results in the form:

http://external-site-blash-blah.com/var ... iable2&etc....

I want these results to be displayed in a joomla page in my site.

How is this possible?

I have searched and tried everything for weeks now, with no luck.

TIA!!!
/N

User avatar
dannette
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Sat Apr 28, 2007 9:47 pm
Location: Allentown, PA

Re: Jumi - the set of custom code extensions

Post by dannette » Mon Dec 27, 2010 10:25 pm

Satriani - did you try to display in an iframe?
Building with Joomla! since 2005!
Dannette Voorhis

genmei888
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Dec 28, 2010 4:03 am

Re: Jumi - the set of custom code extensions

Post by genmei888 » Tue Dec 28, 2010 5:07 am

It opens many mootools implementation avenues (to me, at least)
TKS again gerat!

unleash_it
Joomla! Ace
Joomla! Ace
Posts: 1311
Joined: Wed Nov 05, 2008 11:28 pm

Re: Jumi - the set of custom code extensions

Post by unleash_it » Fri Jan 28, 2011 6:40 pm

HELLO AND GOOD DAY TO ALL OF YOU!
genmei888 wrote:It opens many mootools implementation avenues (to me, at least)
TKS again gerat!
hello dear buddies

at the site http://jobstarters.org/ i have a java-script up and running - it is called featured books.

see it - and its features at http://www.dynamicdrive.com/dynamicinde ... tslide.htm

well - one question:

can i do this with your gallery-extension too!?


This would be a great great pleasure!

love to hear from you

best
joo

Code: Select all




<script type="text/javascript">

/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify the slider's width (in pixels)
var sliderwidth="504px"
//Specify the slider's height
var sliderheight="140px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
slidebgcolor="#EAEAEA"

//Specify the slider's images
var leftrightslide=new Array()
var finalslide= 4
leftrightslide[0]='<a href="http://"><img src="images/mybooks/" border=1></a>';
leftrightslide[1]='<a href="http://"><img src="images/mybooks/aschendorff_2.jpg" border=1></a>';
leftrightslide[2]='<a href="http://"><img src="images/mybooks/image_3.gif" border=1></a>';
leftrightslide[3]='<a href="http://"><img src="images/mybooks/image_4.gif" border=1></a>';
leftrightslide[4]='<a href="http://"><img src="images/mybooks/image_5.gif" border=1></a>';

//Specify gap between each image (use HTML):
var imagegap="5px"

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap="1"

////NO NEED TO EDIT BELOW THIS LINE////////////


var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>

<p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
<a href="http://dynamicdrive.com">Dynamic Drive</a></font></p>
regards un-leash,
a big fan for ++ 11 years now: With Joomla you can easily create and extend your website: see the site, that offers you ideas & modules - extensions.joomla.org - it lists over 4000 extensions

informnz
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Dec 29, 2010 11:50 am

Re: Jumi - the set of custom code extensions

Post by informnz » Sat Jan 29, 2011 10:47 am

I made a simple modification to jumi.php and jumi.xml to support nested replaces (an option for jumi.xml and the interpreter code to jumi.php) and it worked.
Please read the forum rules regarding the use of signatures: http://forum.joomla.org/viewtopic.php?f=8&t=65

MattJLehr
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Apr 28, 2010 10:48 pm

Re: Jumi - the set of custom code extensions

Post by MattJLehr » Sat Feb 26, 2011 8:12 pm

Has anyone seen the error:

"ERROR LOADING MODULES"

I have been running Jumi successfully for months and using it to assess a line in my database table via PHP. I recently tried to add more PHP to the script that Jumi is running to also look up a different line in the table and now when I load the page it looks like it errors out all of my normal Joomla modules.

Any ideas on why this is happening?
errorloadingmodules.png
You do not have the required permissions to view the files attached to this post.

User avatar
djemmers
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Thu May 22, 2008 7:09 am

Re: Jumi - the set of custom code extensions

Post by djemmers » Mon Mar 07, 2011 11:05 am

I need to get all the subcategories id's of the current category to use them in an opperation on an external databas.
first step:
getting current category id -> works
next step:
get and display the subcategory id's
cant get it to work

if you have an idea or tip, pls check the topic:
http://forum.joomla.org/viewtopic.php?f=620&t=588443
One fine day I'll be a Joomla 'expert' !
Tornooi.net : Sports database (tournaments and camps) for Belgium and the Netherlands

Dan Golding
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon May 31, 2010 8:27 pm

Re: Jumi - the set of custom code extensions

Post by Dan Golding » Sun Apr 17, 2011 4:13 pm

an613 wrote:hey all,

Just noticed the strangest thing in the world. I wrote up a bunch of custom forms and inserted them using jumi. for some strange reason, on two of my forms, whenever i click on the submit button, which is supposed to take me to a new article, and used to do that, all of sudden it just logs me out of joomla. It only happens in 2 of the 5 forms that i have, and only when the login module is published.

Any ideas as to what could be causing this conflict between my form and the login module??

Thanks
Hi, I know this is years later but I'm replying in case other users have the problem I just had. I had the identical symptoms you described (when I clicked submit on my custom form it told me username and password didnt match) and the reason was because I left of the </form> tag. I know it's really dumb, but there were no errors because it was using the </form> of the login form i guess. Anyway, it frustrated me for a while so I thought I'd post in case someone else has the same trouble.

jzuback
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Apr 25, 2011 5:01 pm

Re: Jumi - the set of custom code extensions

Post by jzuback » Mon Apr 25, 2011 6:43 pm

I'm having a problem installing an extension (Jumi) on my new joomla 1.6 site. While this may be a question for the Jumi folks, I'm posting here because I have successfully used the extension with other Joomla 1.6 installs. This particular instance is on a new "box" running an Ubuntu LAMP server for a company intranet. The problem is when I attempt to install the Jumi extension, I get the following - not terribly revealing - error messages:

* Component Install: DB function reports no errors
* Error installing component

I've posted on the jumi site with no help to date. Since this is a new box running a new install of Joomla, I'm wondering if this might be a configuration issue on the server. Any ideas/guidance would be appreciated.

ferno
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu May 26, 2011 2:46 pm

Re: Jumi - the set of custom code extensions

Post by ferno » Fri May 27, 2011 8:09 am

HI,

I have been searching for days for a issue I have with Jumi and cant seem to find the actual answer.

I have a PHP script that connects to a database and retrieves information stored in the database into a table.
This scripts works flawlessly in the joomla wrapper but th ejoomla wrapper does not scale the auto height correctly in ie9 (works fine in other browsers), a long search brought me to Jumi which seems to work perfectly (great plugin btw!) but the problem starts with a href link insight the PHP code.
This link submits some values to another PHP script (all is hosted on the joomla site but are standalone PHP scripts), some of the values after file.php?id=..... are filled in by the info retrieved from the db.

When the link is clicked it works fine but the page breaks out of the joomla context, when using the joomla wrapper the link works fine and stays within the joomla framework.


I am sure this has been answered before but until now I have only been able to find similar questions without an answer.

Hope you can help me out.

This is the link causing the problem:

Code: Select all

echo "<td valign=\"center\"> <a href=\"product.php?id=".$r['id']."\">".stripSlashes($r['brand'])." ".stripSlashes($r['type'])."</a></td>";
And what if I create a jumi app using the product.php, how can I use it in the href example above?

Your help is appreciated!

Ferno.

chemtrailkook
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Apr 08, 2011 8:44 pm

Re: Jumi - the set of custom code extensions

Post by chemtrailkook » Mon May 30, 2011 3:20 pm

Awesome extension - I was able to trick Joomla 1.6 to not strip the code. I had tried everything else - "no editor" JCE whitelisting, TINYMCE plugin modification - nothing worked.... So I installed you component - then uploaded the js file to the path suggested - and added the (jumi ref) - works perfectly... Thank you... :>)

here is the jumi code I inserted >>> http://screencast.com/t/td3PEo19

this is the result >>> http://screencast.com/t/XC1Lln8L6iQ

This is the shot of the jumi component code >>> http://screencast.com/t/cA6Lf5TEw

Just copy the code in the CUSTOM_SCRIPT box into a notepad text document and upload it to the path indicated in the JUMI_PATHNAME

Works like a charm - Peace

azocchi
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Mar 11, 2011 8:55 am

Re: Jumi - the set of custom code extensions

Post by azocchi » Thu Aug 04, 2011 8:40 am

Hello,

I'm having a problem calling 'modWhosonlineHelper' e in a Jumi application, I'm using Joomla 1.6:

Fatal error: Class 'modWhosonlineHelper' not found in /var/www/vhosts/mysite.com/httpdocs/components/com_jumi/views/application/view.html.php(38) : eval()'d code on line 170

It's days and just can't figure out why, can someone give me a hand please?

SadruddinW
Joomla! Intern
Joomla! Intern
Posts: 57
Joined: Wed May 26, 2010 12:10 pm

Re: Jumi - the set of custom code extensions

Post by SadruddinW » Wed Aug 31, 2011 3:35 pm

Hi. I'm using Jumi to embed [spam]

(http://www.benqureshi.com - Watch Me (top menu) )

It's great - but - there seems to be a lot of white space above and below the embedded video.

I pulled the embed code from the [spam] file, with one or two small amendments to fit my screen layout I now have:

----------------------------------------

<style scoped="scoped" type="text/css">.benner , .content_right{
display:none;
}</style>
<table style="width: 983px; height: 340px;" border="0">
<tbody>
<tr>
<td><object width="530" height="320" id="lsplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="movie" value="http://cdn.[spam].com/grid/LSPlayer ... &color=0xe 7e7e7&autoPlay=true&mute=false&iconCol orOver=0x888888&iconColor=0x777777">
</param>
<param name="allowScriptAccess" value="always">
</param>
<param name="allowFullScreen" value="true">
</param>
<param name="wmode" value="opaque">
</param>
<param name="wmode" value="transparent">
</param>
<embed name="lsplayer" wmode="transparent" src="http://cdn.[spam].com/grid/LSPlayer ... Play=false" width="530" height="300" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash">
</embed>
</object></td>
<td>
<p>

</p>
</td>
</tr>
</tbody>
</table>
<p></p>

--------------------------------------

Any thoughts?
Thanks, guys, and thanks for a brilliant extension....

SW

User avatar
dannette
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 102
Joined: Sat Apr 28, 2007 9:47 pm
Location: Allentown, PA

Re: Jumi - the set of custom code extensions

Post by dannette » Wed Oct 19, 2011 9:11 pm

I have written a form in jumi to fill in a new db table I made in Joomla 1.7.2. It works fine.
I made another jumi page to list the first name and last name of people in the db with a link to view the rest of the info each person has filled in and it is fine as well.
To fill in the form page, they have to log in as a registered user.
The admin page to view the items is set up for "special" only.
The problem is, I want this admin menu item to be a submenu item of the form menu item and it isn't working. When I try to do this, the drop down shows but when I click it, I get the form not the admin page. I have to make it a main menu item to view it and that is taking up navigation "real estate". Do you know what is causing this or how it can be fixed?
Building with Joomla! since 2005!
Dannette Voorhis

Drizzt99
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Wed Aug 20, 2008 12:48 pm

Re: Jumi - the set of custom code extensions

Post by Drizzt99 » Tue Oct 25, 2011 9:32 pm

Hi,
Thanks for a great plugin.
One thing I cannot do:
1) I have in my site another plugin that creates a thumbnail from images shown in content.
2) In my Jumi plugin I create an <img> tag which shows the image.
3) The images are shown, but are not processed by the thumbnail plugin.
I guess it is because of the order this is working. Jumi is a system plugin while the thumbnail plugin is a content plugin...
Any idea how to make it work?

Keio
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Oct 25, 2011 4:24 am

Re: Jumi - the set of custom code extensions

Post by Keio » Thu Nov 03, 2011 1:05 pm

Made a post here: http://forum.joomla.org/viewtopic.php?f=620&t=669312

but in summary, I think jumi didnt install properly, text isnt displaying properly on the jumi items in admin panel, and I keep getting 403 errors when I try to make jumi pages

exing1984
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu May 13, 2010 3:09 am

Re: Jumi - the set of custom code extensions

Post by exing1984 » Thu Dec 08, 2011 1:18 am

Hi, Everyone

I got a problem with jumi to print the output..please help.

I have my own jumi application(using jumi component), I would like to using printer to print out the result, I can't fount out the right way to enable the print icon, like joomla article has print icon on the right top.

jagsilva
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Mar 31, 2008 12:29 pm
Contact:

Re: Jumi - the set of custom code extensions

Post by jagsilva » Fri Feb 10, 2012 1:27 am

I have joomla 2.5.1 and jumi 2.07.
I have a folder outside joomla with some pages. One of the pages uses pchart (a php class) that makes some grafics. Outside jumi it work. But when i call it with jumi I don't get the image, only some stange characters.

Here are the links

http://intranet.jagsilva.com/danificado ... .basic.php

http://teste25.jagsilva.com/index.php/grafico-exemplo-2

Can someone help me?

Sorry for double post

User avatar
grantiago
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Wed Apr 26, 2006 1:15 pm
Location: /home/grantiago
Contact:

Re: Jumi - the set of custom code extensions

Post by grantiago » Fri Feb 10, 2012 1:55 pm

I'd say you need to send a doctype with your code. But wrapped in joomla who knows what that will create. I spent a couple hours doing the same with flot then ran across this excellent plugin -- flashChart , which pulls from the db, so your data can be realtime' or statically with the plugin params. http://www.jschmidt-systemberatung.de/i ... 79&lang=en

did I say free? The jumi forum on the developers site seems to be a bit more active.

Frank_R
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Dec 01, 2010 11:08 am
Location: Münster / Germany
Contact:

Re: Jumi - the set of custom code extensions

Post by Frank_R » Fri Feb 10, 2012 4:58 pm

Hi everybody! Hope sobody can help out here!
I have an issue with jumi and Joomal 2.5.1

When frontend editing an article the editor shows the source code of the embedded script instead of the Jumi Shortcut i. E. {jumi [*6]}.
This is a problem because unexperienced Editors may destroy anything on the Site...

Any idea what to do? Thanks a lot!

Is there anybody who found a solution for this issue?

hafizy
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Feb 14, 2012 4:32 am

Re: Jumi - the set of custom code extensions

Post by hafizy » Tue Feb 28, 2012 9:03 am

hye guys,

i need some help on my jumi module,
1st of all, i'm not much of a coder, so i need sum help.

i'm trying to pull sum data from my database,
already made a php coding.
when i put the code inside the jumi, and published, a few of my other joomla component doesn't appear.

here is the php code i inserted inside the jumi application manager

Code: Select all

<?php 
 // Connects to your Database 
 mysql_connect("xxx.xx.xxx.xx", "epd", "xxxxxx") or die(mysql_error()); 
 mysql_select_db("epdaffiliate") or die(mysql_error()); 
 $data = mysql_query("select idevaff_affiliates.id, idevaff_affiliates.username, sum(idevaff_sales.payment) total
FROM idevaff_affiliates, idevaff_sales
WHERE (idevaff_affiliates.id = idevaff_sales.id
and idevaff_sales.approved=1)
group by idevaff_affiliates.id, idevaff_affiliates.username
order by total desc
limit 5
") 
 or die(mysql_error()); 
 Print "<div class=" . "_top5affiliate".">";
 Print "<table border cellpadding=3>"; 
 Print "<tr>"; 
 Print "<th>ID</th> ";
 Print "<th>Username</th> ";
 Print "<th>Total</th> ";
 while($info = mysql_fetch_array( $data )) 
 { 
 Print "<tr>"; 
 Print "<td>".$info['id'] . "</td> "; 
 Print "<td>".$info['username'] . "</td> "; 
 Print "<td>".$info['total'] . "</td> "; 
 } 
 Print "</table>"; 
 Print "</div>";
 ?>
can anybody help me amend this code so that it will display correctly without conflicting with other component? for now..when i enable this coding, joomfish language selector and rokstories dissappears.

i tried with the jumi's Hello World, using the id of *1 and it displays correctly without conflicting with any other modules . so i think this might have sumthing to do with my php codes.

my site is http://www.eperolehandirektori.com.my

any help is much appreciated. tq!

lkovach
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Apr 02, 2012 11:29 pm

Re: Jumi - the set of custom code extensions

Post by lkovach » Mon Apr 02, 2012 11:42 pm

Hi there,

I installed Jumi on my site and it works for php code. The problem I'm having is that passing arguments doesn't work for me.

In my article I have placed
<script type="text/javascript">{jumi[*3][images]}</script>

My jumi application with ID=3 is like this:
<?php
Header("content-type: application/x-javascript");

function returnimages() {

$dirname=$jumi[0];
$pattern="(.jpg$)|(.png$)|(.jpeg$)|(.gif$)"; //valid image extensions
$files = array();
$curimage=0;
if($handle = opendir($dirname)) {
while(false !== ($file = readdir($handle))){
if(eregi($pattern, $file)){ //if this file is a valid image
//Output it as a JavaScript array element
echo 'galleryarray['.$curimage.']="'.$dirname.'/'.$file .'";';
$curimage++;
}
}

closedir($handle);
}
return($files);
}

echo 'var galleryarray=new Array();'; //Define array in JavaScript
returnimages() //Output the array elements containing the image file names
?>

The resulting html is:

<script type="text/javascript">var galleryarray=new Array();</script>

So basically the php works, but no argument is found in $jumi[0]

I also tried with $dirname = 'images'; and it works.

Can somebody help please?

unleash_it
Joomla! Ace
Joomla! Ace
Posts: 1311
Joined: Wed Nov 05, 2008 11:28 pm

Re: Jumi - the set of custom code extensions

Post by unleash_it » Sat Apr 07, 2012 5:38 pm

hello dear Martin, hello ikovach hello hafizy, dear all good evening and a happy Easter - have a great time !! ;)




well i am a great admirer of Jumi-and i must admit - i love this component. It is so powerful.
well today i want to do something very very special with jumi.


i have a special problem on the page http://www.literaturen.org see the faceBook-extension at the position 12.

well it displays a bit funny doesn ´t it? Well it shows the content in a vertical manner - and i need it in a horizontal manner. That is the problem.

Well i have tested several facebook extensions - among them was SP-Facebook - wich fits very nice. Well - i am bandnew to SP-Facebook - and i must admit that i really love it. one question comes up to my mind: can i change the look and feel with the jumi-extension:

can i do a flip that is - a change of the display with the jumi-extension:

can i flip the display of the content or SP-FaceBook (or any other) display the content in horizontal fashion?


What i want is to have the faceBook-block not at a column in the right or left side but in the center or the Template.
See for example the site http://www.literaturen.org

here the FaceBook-Block is shown in Position-12 of the Beez5-Template

You now see - and can easily imagine what is wanted!?

Well i want to arrange the Content in the block in another fashion. Is this doable!?

Can i arrange the display in a horizontal mode!? with the jumi-code°!?
regards un-leash,
a big fan for ++ 11 years now: With Joomla you can easily create and extend your website: see the site, that offers you ideas & modules - extensions.joomla.org - it lists over 4000 extensions

Reallogic
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Thu Dec 02, 2010 10:15 am

Re: Jumi - the set of custom code extensions

Post by Reallogic » Wed Jun 13, 2012 7:42 am

Url: http://www.reallogic.nl/fce/
Module: "Standen"

We have installed Jumi to use php code in a module, but now the first row disappears after saving module. This is the code we want to add:

Code: Select all

<script type="text/javascript">
function showRankingTab(id)
{
  var teams = new Array(413, 469, 412, 555);
  for(var i=0; i<teams.length; i++)
  {
    if(teams[i] != id)
    {
      e = document.getElementById('select-team-' + teams[i]);
      e.style.backgroundColor = '#cbdce4';
      e.style.color = '#121f56';
     
      t = document.getElementById('team-' + teams[i]);
      t.style.display = 'none';
    }
  }
 
  e = document.getElementById('select-team-' + id);
  e.style.backgroundColor = '#00376b';
  e.style.color = '#fff';

  t = document.getElementById('team-' + id);
  t.style.display = 'block';
}

</script>

<table height="26" width="100%" cellspacing="0"  background="#cbdce4" style="border-bottom: 1px solid #00376b;">
  <tr>
   <td id="select-team-469" width="25%" onclick='showRankingTab(469);' style='text-align: center; cursor:pointer; background-color: #00376b; color: #fff;'><b>Zondag 1</b></td>
   <td width="25%" bgcolor="#cbdce4" id="select-team-413" style='text-align: center; cursor:pointer; color: #121f56;' onclick='showRankingTab(413);'><b>Zaterdag 1</b></td>
   <td width="25%" bgcolor="#cbdce4" id="select-team-412" style='text-align: center; cursor:pointer; color: #121f56;' onclick='showRankingTab(412);'><b>Dames 1</b></td>
   <td width="25%" bgcolor="#cbdce4" id="select-team-555" style='text-align: center; cursor:pointer; color: #121f56;' onclick='showRankingTab(555);'><b>Zaal 1</b></td>
  </tr>
</table>

<?php

$season = '2011-2012';
$teams = array(413, 469, 412, 555);

//
// YOU SHOULD NOT HAVE TO CHANGE ANYTHING BELOW THIS
//

$matches = array();

$db =& JFactory::getDBO();

// Fetch the desired FC Eibergen teams with a current season
foreach($teams as $team)
{
  $query_team = "SELECT #__bl_teams.*, #__fce_season_teams_ranking.season_id FROM #__bl_teams INNER JOIN #__fce_season_teams_ranking ON #__bl_teams.id = #__fce_season_teams_ranking.team_id WHERE #__bl_teams.id = '".$team."'";
  $db->setQuery($query_team);
  $row = $db->loadAssoc();

  if($row['id'] == 469)
  {
    echo "<div id='team-".$row['id']."' style='display:block;'>";
  }
  else
  {
    echo "<div id='team-".$row['id']."' style='display:none;'>";
  }
  echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
  echo "<tbody>";
  echo "<tr>";
  echo "<td width='20'> </td>";
  echo "<td><strong>Team</strong></td>";
  echo "<td width='30'><strong>G</strong></td>";
  echo "<td width='30'><strong>P</strong></td>";
  echo "<td width='20'><strong>V</strong></td>";
  echo "<td><strong>-</strong></td>";
  echo "<td width='20'><strong>T</strong></td>";
  echo "</tr>";
 
  $query_ranking = "SELECT #__fce_season_teams_ranking.*, #__bl_teams.t_name, #__bl_teams.t_yteam FROM #__fce_season_teams_ranking INNER JOIN #__bl_teams ON #__fce_season_teams_ranking.team_id = #__bl_teams.id WHERE season_id = '".$row['season_id']."' ORDER BY ranking ASC";
  $db->setQuery($query_ranking);
  foreach($db->loadAssocList() as $team_ranking)
  {
    if(1 == $team_ranking['t_yteam'])
    {
      echo sprintf("<tr style='background-color: #CCC; font-weight: bold;'>");
    }
    else
    {
       echo "<tr>";
    }

     echo sprintf("<td style='text-align: right; padding-right: 4px;'>%s.</td>", $team_ranking['ranking']);
     echo sprintf("<td>%s</td>", $team_ranking['t_name']);
     echo sprintf("<td>%s</td>", $team_ranking['played']);
     echo sprintf("<td>%s</td>", $team_ranking['points']);
     echo sprintf("<td>%s</td><td>-</td><td>%s</td>", $team_ranking['goals_plus'], $team_ranking['goals_minus']);
     echo "</tr>";
  }
 
  echo "</tbody>";
  echo "</table>";
  echo "</div>";
}

?>
So "<script type="text/javascript">" is left out. Does somebody knows the solution for this problem?

Iven
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Apr 16, 2009 7:18 am

Re: Jumi - the set of custom code extensions

Post by Iven » Mon Jul 30, 2012 6:54 am

how to use form in jumi joomla 1.5 ?
for exampe

<FORM action="index.php?option=com_jumi&fileid=7&Itemid=57" method="post">
<P>
<LABEL for="firstname">First name: </LABEL>
<INPUT type="text" id="firstname"><BR>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</P>
</FORM>

$option = JRequest::getVar( 'firstname');
echo $option;

but this is not work

Lukas Greblikas
Joomla! Intern
Joomla! Intern
Posts: 71
Joined: Tue Apr 24, 2012 12:26 pm
Location: Glasgow, United Kingdom

Re: Jumi - the set of custom code extensions

Post by Lukas Greblikas » Mon Jul 30, 2012 10:06 am

Iven wrote:how to use form in jumi joomla 1.5 ?
for exampe

<FORM action="index.php?option=com_jumi&fileid=7&Itemid=57" method="post">
<P>
<LABEL for="firstname">First name: </LABEL>
<INPUT type="text" id="firstname"><BR>
<INPUT type="submit" value="Send"> <INPUT type="reset">
</P>
</FORM>

$option = JRequest::getVar( 'firstname');
echo $option;

but this is not work
http://2glux.com/projects/jumi/tutorial/basic-jumi-demo


Locked

Return to “Extensions for Joomla! 1.5”