Jumi - an universal multipurpose module
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.
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.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Jumi - an universal multipurpose module
Jumi is an universal multipurpose module for Joomla! and Mambo. It enables anybody with a just basic knowledge of HTML or JavaScript or PHP built his/her own modules quickly via inclusion of custom php files.
Main strenght of Jumi - its flexiblity and universality - lies in the possibility to pass to the included file any number of argument values.
In an admin interface of mod_jumi you can
1. change included pathname and/or filename
2. define number an values to bu passed into included file
3. copy the module and for define new parameters having been set in 1. and 2.
Jumi enables you to create not only simple modules, like adverts, flash swf shows, picture presentations or content inclusions but sophisticated solutions too.
Manual and donwloads of Jumi, demos, and some snippets (creating with Jumi real usable modules) are available at http://www.vedeme.cz
Should you have an questions regarding Jumi asked them in this topic.
Main strenght of Jumi - its flexiblity and universality - lies in the possibility to pass to the included file any number of argument values.
In an admin interface of mod_jumi you can
1. change included pathname and/or filename
2. define number an values to bu passed into included file
3. copy the module and for define new parameters having been set in 1. and 2.
Jumi enables you to create not only simple modules, like adverts, flash swf shows, picture presentations or content inclusions but sophisticated solutions too.
Manual and donwloads of Jumi, demos, and some snippets (creating with Jumi real usable modules) are available at http://www.vedeme.cz
Should you have an questions regarding Jumi asked them in this topic.
MarHaj
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Aug 01, 2006 12:21 pm
Re: Jumi - an universal multipurpose module
Hi Deepak,
1. I have tested Joomla! built in SEF with Jumi and several inclusion
files. For me it works corretly.
2. I did a research in Joomla threads about not working SEF URLs with
modules. With no results.
To solve the problem I would like you if you could answer several questions:
1. Do you use Joomla built in SEF or some 3rd party SEF - which one? -- yes i use the builtin SEF
2. Do you use standard .htaccess or custom made? ---- Its the standard .htaccess file (i religiously follow all the steps told in the SEF tutorial!! )
3. How exactly looks URL with Jumi on and with Jumi off?
ok when the jumi is active for a page (menu!) the URL is SEF like
/joomla/?option=com_contact&Itemid=3
when it is inactive then i get:
/option,com_contact/Itemid,3/
1. I have tested Joomla! built in SEF with Jumi and several inclusion
files. For me it works corretly.
2. I did a research in Joomla threads about not working SEF URLs with
modules. With no results.
To solve the problem I would like you if you could answer several questions:
1. Do you use Joomla built in SEF or some 3rd party SEF - which one? -- yes i use the builtin SEF
2. Do you use standard .htaccess or custom made? ---- Its the standard .htaccess file (i religiously follow all the steps told in the SEF tutorial!! )
3. How exactly looks URL with Jumi on and with Jumi off?
ok when the jumi is active for a page (menu!) the URL is SEF like
/joomla/?option=com_contact&Itemid=3
when it is inactive then i get:
/option,com_contact/Itemid,3/
Last edited by deepak on Mon Aug 21, 2006 3:11 am, edited 1 time in total.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Aug 01, 2006 12:21 pm
Re: Jumi - an universal multipurpose module
Hi Martin!
forget the last post!!
I just found out what the real problem (not a problem actually anymore!) is!
i have the jumi module placed on page with the(built in) loginin module. (i am just testing/trying).
only when i log in as a user , the page refreshes and has non SEF Url. if i change page (choose another menu item) and then come back again on the page where jumi is published. i get a perfect SEF page.
so that means the jumi is wrking perfectly.
i should place the login module independently!
that only means the login module gives non SEF link (which i guess, is not required and perfectly allright!)
Thanks for all the help.
Regards
Deepak
forget the last post!!
I just found out what the real problem (not a problem actually anymore!) is!
i have the jumi module placed on page with the(built in) loginin module. (i am just testing/trying).
only when i log in as a user , the page refreshes and has non SEF Url. if i change page (choose another menu item) and then come back again on the page where jumi is published. i get a perfect SEF page.
so that means the jumi is wrking perfectly.
i should place the login module independently!
that only means the login module gives non SEF link (which i guess, is not required and perfectly allright!)
Thanks for all the help.
Regards
Deepak
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Uff! Thanks for the really good news (for me) after several sleeples nights.deepak wrote: ...
so that means the jumi is wrking perfectly.
...
MarHaj
- researchtoxic
- Joomla! Ace
- Posts: 1023
- Joined: Fri Mar 03, 2006 3:52 pm
- Location: Macon, GA
- Contact:
Re: Jumi - an universal multipurpose module
I am trying the page rank demo. I am not sure what to do in the include. I deleted everything and added my site name as [http://www.mysite.com] and i get an error in my module postion.
Warning: file(): URL file-access is disabled in the server configuration in/home/.servername/usernames/sitename/modules/mod_jumi_files/ag_rank.php
please help
also i assume that i can use .js instead of .php and if so do i need to include the .js
Warning: file(): URL file-access is disabled in the server configuration in/home/.servername/usernames/sitename/modules/mod_jumi_files/ag_rank.php
please help
also i assume that i can use .js instead of .php and if so do i need to include the .js
http://www.netentropy.com - Drupal, Joomla and whatever performance.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
As to the warning:
Have you tested another file for inclusion? I mean e.g. hello.php?
Because at the first glance it seems you do not have READ access to the folder modules/mod_jumi_files
If so, change access rights by chmod.
As to the js. inclusion:
No. The included file extension has to be .php only. But you can write any html, php or Javascript codes into it.
(Or try double inclusion: from the first php file you can include .js file. Or hack mod_jumi.php - it is simple enough and you can find place where hard coded php extension very easily.)
Have you tested another file for inclusion? I mean e.g. hello.php?
Because at the first glance it seems you do not have READ access to the folder modules/mod_jumi_files
If so, change access rights by chmod.
As to the js. inclusion:
No. The included file extension has to be .php only. But you can write any html, php or Javascript codes into it.
(Or try double inclusion: from the first php file you can include .js file. Or hack mod_jumi.php - it is simple enough and you can find place where hard coded php extension very easily.)
MarHaj
- researchtoxic
- Joomla! Ace
- Posts: 1023
- Joined: Fri Mar 03, 2006 3:52 pm
- Location: Macon, GA
- Contact:
Re: Jumi - an universal multipurpose module
Thanks Ill check it out.
the hello.php did not show when I loaded it. I will check the access.
I have never included a .js in a php . But I will try!
the hello.php did not show when I loaded it. I will check the access.
I have never included a .js in a php . But I will try!
http://www.netentropy.com - Drupal, Joomla and whatever performance.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
If you have ever included .js into html you will include .js into .php file. It is exactly the same code .
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
Hello, i try to include .
news.php has this inside:
But if i include it with Jumi on my Joomla, i get:
phpBB Fetch All: $phpbb_root_path is wrong and does not point to your forum.
news.php is in:
Forum is in:
http://www.paradise-bodies.com/orion/
Joomla in:
http://www.paradise-bodies.com/
so i used orion/mods/phpbb_fetch_all/examples as Pathway.
hello.php works....
Code: Select all
http://www.body-diary.com/orion/mods/phpbb_fetch_all/examples/news.php
news.php has this inside:
Code: Select all
//
// This path points to the directory where phpBB is installed. Do
// not enter an URL here. The path must end with a trailing
// slash.
//
// Examples:
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ccc/
// --> $phpbb_root_path = './';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/
// --> $phpbb_root_path = './ccc/';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ddd/
// --> $phpbb_root_path = '../ccc/';
//
$phpbb_root_path = '../../../';
phpBB Fetch All: $phpbb_root_path is wrong and does not point to your forum.
news.php is in:
Code: Select all
http://www.paradise-bodies.com/orion/mods/phpbb_fetch_all/examples/
http://www.paradise-bodies.com/orion/
Joomla in:
http://www.paradise-bodies.com/
so i used orion/mods/phpbb_fetch_all/examples as Pathway.
hello.php works....
Last edited by Paradise on Mon Feb 26, 2007 8:29 am, edited 1 time in total.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
You are right.
When including a file into Jumi, your starting position is from Joomla root, where your Joomla index.php file is. E.g. orion/mods/phpbb_fetch_all/examples.
You can use absolute path http://www.body-diary.com/orion/mods/ph ... /examples/ to your file as well.
It is because a module itself is included into the templete i.e. your index.php file.
When including a file into Jumi, your starting position is from Joomla root, where your Joomla index.php file is. E.g. orion/mods/phpbb_fetch_all/examples.
You can use absolute path http://www.body-diary.com/orion/mods/ph ... /examples/ to your file as well.
It is because a module itself is included into the templete i.e. your index.php file.
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
Hm, ok.
Pathway:
Error is gone, but nothing shows up...
Pathway:
Code: Select all
http://www.paradise-bodies.com/orion/mods/phpbb_fetch_all/examples
Last edited by Paradise on Mon Feb 26, 2007 8:32 am, edited 1 time in total.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Hm...
Have you tried to save example file hello.php into http://www.body-diary.com/orion/mods/ph ... /examples/ directory and tested it?
If hello.php works from examples dir, the reason why news.php shows nothing have to be in the news.php file.
Have you tried to save example file hello.php into http://www.body-diary.com/orion/mods/ph ... /examples/ directory and tested it?
If hello.php works from examples dir, the reason why news.php shows nothing have to be in the news.php file.
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
hello.php don't work from the
Code: Select all
http://www.paradise-bodies.com/orion/mods/phpbb_fetch_all/examples/ directory
Last edited by Paradise on Mon Feb 26, 2007 8:32 am, edited 1 time in total.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Oh!
Does it mean hello.php works in standard directory and not in examples dir?
If you had not forgotten to rewrite the path to hello.php in admin section of Jumi module I must think the case over.
I will let you known soon.
Does it mean hello.php works in standard directory and not in examples dir?
If you had not forgotten to rewrite the path to hello.php in admin section of Jumi module I must think the case over.
I will let you known soon.
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
Yes, hello.php works in standard directory but not in
Code: Select all
http://www.paradise-bodies.com/orion/mods/phpbb_fetch_all/examples/
Last edited by Paradise on Mon Feb 26, 2007 8:31 am, edited 1 time in total.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Well.
I've just developed the slightly changed Jumi 1.01 version. you will find it in an attached zip file.
Just upload it to your server http://www.body-diary.com and rewrite your current mod_jumi.php file.
Then refresh your browser. You will see the result: if Jumi cannot see the file it will showw the exact description.
I hope it will help you to solve pathway problem.
Will you let me know a result? Thanks.
I've just developed the slightly changed Jumi 1.01 version. you will find it in an attached zip file.
Just upload it to your server http://www.body-diary.com and rewrite your current mod_jumi.php file.
Then refresh your browser. You will see the result: if Jumi cannot see the file it will showw the exact description.
I hope it will help you to solve pathway problem.
Will you let me know a result? Thanks.
You do not have the required permissions to view the files attached to this post.
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
Ok, Jumi say's:
does not exist!
If i put the link in my browser-adressbar it works
Code: Select all
http://www.paradise-bodies.com/orion/mods/phpbb_fetch_all/examples/hello.php
If i put the link in my browser-adressbar it works
Last edited by Paradise on Mon Feb 26, 2007 8:31 am, edited 1 time in total.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
O.K.
When accessing hello.php from the adress bar you see "Restricted access". Don't you?
That's good.
But I am affraid Jumi is not able to report you the full non existent path like http://www.body-diary.com ...
Can you please copy and paste here the full EXACT announcement you recieved from Jumi?
Thanks
And do not lose your hearth - the final solution is near our fingertips!
When accessing hello.php from the adress bar you see "Restricted access". Don't you?
That's good.
But I am affraid Jumi is not able to report you the full non existent path like http://www.body-diary.com ...
Can you please copy and paste here the full EXACT announcement you recieved from Jumi?
Thanks
And do not lose your hearth - the final solution is near our fingertips!
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
That is what Jumi says:
The file does not exist!
Set correct path in admin section of Jumi module, please.
The file
Code: Select all
http://www.paradise-bodies.com/orion/mods/phpbb_fetch_all/examples/hello.php
Set correct path in admin section of Jumi module, please.
Last edited by Paradise on Mon Feb 26, 2007 8:30 am, edited 1 time in total.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
I think I've got it.
You probably have in admin section of the module these lines:
Pathway: http://www.body-diary.com/orion/mods/ph ... l/examples
PHP file name: hello
change the first line into
Pathway: orion/mods/phpbb_fetch_all/examples
I am quite sure it will work now.
You probably have in admin section of the module these lines:
Pathway: http://www.body-diary.com/orion/mods/ph ... l/examples
PHP file name: hello
change the first line into
Pathway: orion/mods/phpbb_fetch_all/examples
I am quite sure it will work now.
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
That is what i wrote in my first post. Then i get:
$phpbb_root_path is wrong and does not point to your forum.
$phpbb_root_path is wrong and does not point to your forum.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
So Jumi with hello.php is working in various directories.
What is not working is the included file - news.php
You should set
$phpbb_root_path = '../../../';
to something else. Evidently it is set incorrectly.
You have three possiblities at the least but, I must admit, not every one could work:
1. absolute adress: http://www.body-diary.com/ ... etc
2. relative to your index.php file
3. relative to news.php file
...
What is not working is the included file - news.php
You should set
$phpbb_root_path = '../../../';
to something else. Evidently it is set incorrectly.
You have three possiblities at the least but, I must admit, not every one could work:
1. absolute adress: http://www.body-diary.com/ ... etc
2. relative to your index.php file
3. relative to news.php file
...
MarHaj
- Paradise
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jun 01, 2006 11:26 pm
- Location: Frankfurt / Darmstadt
- Contact:
Re: Jumi - an universal multipurpose module
But the funny thing is, news.php works if i call it in my browser...
The descripition is:
The descripition is:
Code: Select all
// This path points to the directory where phpBB is installed. Do
// not enter an URL here. The path must end with a trailing
// slash.
//
// Examples:
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ccc/
// --> $phpbb_root_path = './';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/
// --> $phpbb_root_path = './ccc/';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ddd/
// --> $phpbb_root_path = '../ccc/';
//
$phpbb_root_path = '../../../';
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
As you have noticed calling hello.php from the web browser and from the module gives different results.
I advice you try to change $phpbb_root_path
I advice you try to change $phpbb_root_path
MarHaj
-
- Joomla! Apprentice
- Posts: 26
- Joined: Sat Nov 18, 2006 1:54 pm
Re: Jumi - an universal multipurpose module
thank you for this great work!
Philip
Philip
MarHaj wrote: Jumi is an universal multipurpose module for Joomla! and Mambo. It enables anybody with a just basic knowledge of HTML or JavaScript or PHP built his/her own modules quickly via inclusion of custom php files.
Main strenght of Jumi - its flexiblity and universality - lies in the possibility to pass to the included file any number of argument values.
In an admin interface of mod_jumi you can
1. change included pathname and/or filename
2. define number an values to bu passed into included file
3. copy the module and for define new parameters having been set in 1. and 2.
Jumi enables you to create not only simple modules, like adverts, flash swf shows, picture presentations or content inclusions but sophisticated solutions too.
Manual and donwloads of Jumi, demos, and some snippets (creating with Jumi real usable modules) are available at http://www.vedeme.cz
Should you have an questions regarding Jumi asked them in this topic.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Nov 21, 2006 8:18 am
- Location: Perth
Re: Jumi - an universal multipurpose module
I would like to use Jumi to display a DIV from within the contet of the currently displayed mainbody area on my site in the Jumi module.
There are no parameters other than obtaining the ID of the viewed content.
What would be the PHP code to use for this?
There are no parameters other than obtaining the ID of the viewed content.
What would be the PHP code to use for this?
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
In an admin section of a Jumi write ID into the square brackets. e.g. [123].
This argument value will be stored in an $jumi[0] and you can use it in your custom included file.
If this explanation is unclear study code of snippets of examples Jumi files.
Maybe you do not know how to extract intro from currentlz display module. I do not know how to do it. But the general approach to the solution is like this: look for appropriate code snippet in a Joomla! core or in some extension for Joomla!
I hope this helps a little.
This argument value will be stored in an $jumi[0] and you can use it in your custom included file.
If this explanation is unclear study code of snippets of examples Jumi files.
Maybe you do not know how to extract intro from currentlz display module. I do not know how to do it. But the general approach to the solution is like this: look for appropriate code snippet in a Joomla! core or in some extension for Joomla!
I hope this helps a little.
MarHaj
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - new version available
Version 1.01 is available for download at http://www.vedeme.cz/index.php?option=c ... Itemid=123
News: Jumi now reports an announcement if the included file had not been find.
Upgrade from ver 1.0: just rewrite mod_jumi.php at your server.
News: Jumi now reports an announcement if the included file had not been find.
Upgrade from ver 1.0: just rewrite mod_jumi.php at your server.
MarHaj
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - upgrade + added plugin
Jumi is not only module but plugin too now.
That means:
1. you can include php html javascript scripts into the modules position and content items,
2. you can include thousands of your scripts into the modules and content articles with just one module and/or plugin installation,
3. you can now even include static html or txt pages into your pages without using wrapper component,
4. you can easily set up, change and pass to the php script unlimited number of argument values and thus modify the behaviour of the content of your modules and articles,
5. you have full access to Joomla!/Mambo variables, functions, constants, etc. in your php scripts.
That means:
1. you can include php html javascript scripts into the modules position and content items,
2. you can include thousands of your scripts into the modules and content articles with just one module and/or plugin installation,
3. you can now even include static html or txt pages into your pages without using wrapper component,
4. you can easily set up, change and pass to the php script unlimited number of argument values and thus modify the behaviour of the content of your modules and articles,
5. you have full access to Joomla!/Mambo variables, functions, constants, etc. in your php scripts.
MarHaj
-
- Joomla! Fledgling
- Posts: 2
- Joined: Fri Dec 08, 2006 10:12 pm
Re: Jumi - an universal multipurpose module
Hi MarHaj,
Nice module and plugin!
I installed both the module and the mambot for testing my PHP file and they worked well, but I don't see how to dynamically change the parameters. In other words, how do I pass new parameters from the included file, to the included file?
Here is an example of what I want to do:
-my php page has tabs (and other links) that pass parameters to itself (to change the tab view, or other elements of the page).
-I see how to pass initial parameters to the module from the admin (or to the plugin from the tag embedded in the content) but I don't see how to post new variables to the module or plugin. Is it possible?
Thanks!
Nice module and plugin!
I installed both the module and the mambot for testing my PHP file and they worked well, but I don't see how to dynamically change the parameters. In other words, how do I pass new parameters from the included file, to the included file?
Here is an example of what I want to do:
-my php page has tabs (and other links) that pass parameters to itself (to change the tab view, or other elements of the page).
-I see how to pass initial parameters to the module from the admin (or to the plugin from the tag embedded in the content) but I don't see how to post new variables to the module or plugin. Is it possible?
Thanks!