Jumi - an universal multipurpose module

Discuss the development and implementation of Joomla! modules here.

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
User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Tue Sep 30, 2008 10:23 pm

how to get the other php scripts
Starting with php may not be always easy.It could be easier to begin with dynamicdrive scripts. You will find there hundreds of them + demo + good explanation of how to implement them.
MarHaj

Pachat
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Wed Sep 07, 2005 5:56 pm

Re: Jumi - an universal multipurpose module

Post by Pachat » Wed Oct 01, 2008 8:04 am

Hi Martin,

And thanks for your module : it is now part of my site, and I use it to have an easy hand on the content of my pages that I manage directly inside Jumi.

In some pages, I'd like to add, let us say, video.
There are good modules out there that do the work.

But as my page, is now a script inside Jumi, I'd like to now if I can add also Joomla modules inside Jumi ?

(I know that I could do it outside of Jumi, the usual Jommla way.
But I feel good inside Jumi and would like to have these extra modules inside it)

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Wed Oct 01, 2008 8:52 am

I'd like to now if I can add also Joomla modules inside Jumi ?
There are two possibilities how to do that. Theoretically. I haven't got any ready to use solution at my hand.
1. include into jumi php module script.
Generally there has to be some modification into the script. At the least to ensure module parameters are specified and read.
2. writing a script that includes other modules
There are such modules in the extensions.joomla.org. Such a script can be modified again to use it via jumi.
MarHaj

ThatValueGuy
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Dec 01, 2007 4:19 pm

Re: Jumi - an universal multipurpose module

Post by ThatValueGuy » Wed Oct 01, 2008 3:10 pm

Need help using jumi plugin to launch a form within an article:

<form name="DLGuardCouponForm" method="post" action="http://www.thatvalueguy.com/dlg/sell.php">
<input name="dlgCoupon" type="text" id="dlgCoupon">
<input name="prod" type="hidden" id="prod" value="6">
<br>

I have the Default WYSIWYG Editor. When I attempt to past this code {jumi

Code: Select all

} it shows up on the page as {jumi[     ]}.

Can I launch this form from within jumi? If so, how. I've written an article content, posted a paypal purchase button within the article, but need to post this coupon code as well. Putting it in via HTML using the WYSIWYG doesn't save the code.

Any help would be greatly appreciated.

Pachat
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Wed Sep 07, 2005 5:56 pm

Re: Jumi - an universal multipurpose module

Post by Pachat » Wed Oct 01, 2008 3:49 pm

ThatValueGuy wrote:Putting it in via HTML using the WYSIWYG doesn't save the code
You may go in the admin / configuration and set the editor to "No Editor".

ThatValueGuy
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Dec 01, 2007 4:19 pm

Re: Jumi - an universal multipurpose module

Post by ThatValueGuy » Wed Oct 01, 2008 4:05 pm

Thanks! It's the little things that hang us up sometimes.

kimse78
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Sep 28, 2008 12:35 am

Re: Jumi - an universal multipurpose module

Post by kimse78 » Wed Oct 01, 2008 9:56 pm

Wohoo i got it working :)
The solution was, to not have a value in the preference "default absolute path" - that made it work, go figure :)
Thanks alot for your help MarHaj, and thanks for a great plugin.
/Kim

umpol
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Jun 27, 2007 7:57 am

Re: Jumi - an universal multipurpose module

Post by umpol » Thu Oct 02, 2008 9:04 am

I want to insert the code below

Code: Select all

include 'customer/dbconnect.php';
include 'customer/includes/functions.php';
include 'customer/init.php';

          if ($_SESSION['uid']) {
          echo("<strong>Welcome Back</strong><br>");
          echo "<strong>{$clientsdetails[firstname]}</strong>" ;
          echo " ";
          echo "<strong>{$clientsdetails[lastname]}</strong><br><br><a href=\"customer/logout.php\">log out</a>" ;
          }
        else {
        echo "<form method=\"post\" action=\"customer/dologin.php?goto=clientarea\"> 
Email Address: <input type=\"text\" name=\"username\" size=\"50\"><br>
Password: <input type=\"password\" name=\"password\" size=\"20\"><br>
<input type=\"submit\" value=\"Login\"> 
</form><br><br>" ;
					}

I found that "include" isn't work with joomla 1.5 so I can't get session (from another system) work within joomla module, Please suggest.

bak1
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Sep 11, 2008 3:38 pm

Re: Jumi - an universal multipurpose module

Post by bak1 » Sun Oct 05, 2008 4:06 pm

Hi

I need help putting js for displaying pictures in an article in a fading style. i have code but it doesn't show up. is there anything special i need to do?

Thanks vm

sahertianr
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Fri Apr 25, 2008 12:57 pm

Re: Jumi - an universal multipurpose module

Post by sahertianr » Mon Oct 06, 2008 10:01 am

Hello Martin,

Can you give me a solution?

I want to use the jumi-module in relation with the article-name!
I must load the article-title as variable. Is that possible?

Like in you demo, something like this (first argument) does't work!

[<?php echo $article->title;?>][second] You can put anything out of the brackets [and third]

Please some help...

Thanks,
Ron Sahertian

mousdrvr
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Oct 06, 2008 7:45 pm

Re: Jumi - an universal multipurpose module

Post by mousdrvr » Mon Oct 06, 2008 8:13 pm

Martin,

Thank you for your fine module.

I have a new joomla instance, into which I'm trying to inject content that had been originally served via PHP through a db query. Of course Jumi seemed the best and cleanest choice. The insertion worked fine but I got the following error,
Error loading Modules:Table 'foo.jos_modules' doesn't exist .......
where foo is the name of our default joomla db. I should mention that the database which my php is calling is a separate db but is running on the same db server as joomla, that is the same MySql instance.

I went to my code and tried explicitly closing my MySQL connection. This produced the following,
Error loading Modules:
without any reference to the failed query. Clearly though I'm stepping on Joomla's connection.

Can you shed any insight? I'm very new to Joomla, though not to PHP development so if this is dirt obvious my apologies.



thanks,


mousdrvr

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Fri Oct 17, 2008 8:23 am

I need help putting js for displaying pictures in an article in a fading style. i have code but it doesn't show up. is there anything special i need to do?
Generally not.
But there are some js solutions that requires that a "prerequisite js code" to be placed into the age header <head></head> section. Maybe it is your case. Consult js developer.

Then you can put the code into the Joomla template or inject it with Jumi on the fly.

Look at the Joomla 1.5 JDocument object http://docs.joomla.org/JDocument
It is simple to use:

Code: Select all

   global $mainframe;
   $document = &JFactory::getDocument();
   $document->addStyleSheet( 'xxxx'); //injects css
   $document->addScript('xxxx'); //injects js script
   etc...
There is a similar solution for Joomla 1.0.x: $mainframe->addCustomHeadTag(...);
MarHaj

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Fri Oct 17, 2008 8:27 am

I want to use the jumi-module in relation with the article-name!
I must load the article-title as variable. Is that possible?
Surely. Look at the Joomla standard "related items module" code how it works.
So you can pick any information about the shown article.
MarHaj

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Fri Oct 17, 2008 8:37 am

Error loading Modules:Table 'foo.jos_modules' doesn't exist .......
It seems to me as if your Joomla try to load and show a module (throught a code) but it is not installed in it: every installed module must have its record in a database table.
MarHaj

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Fri Oct 17, 2008 8:47 am

I found that "include" isn't work with joomla 1.5
Umpol, Joomla uses include quite heavily. It must work. I think the problem can be due to inappropriate pathways to files to be included. I hope.
Jumi module includes your script and now the script "thinks" it is in Joomla root.
Try your include pathnames to be relative with respect to Joomla root. Or try absolute pathnames.
MarHaj

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Fri Oct 17, 2008 8:57 am

I'd like to now if I can add also Joomla modules inside Jumi ?
Yes, you can. It is possible to write a script that loads modules.
For Joomla 1.5 study loadmodule.php in plugins/content
for Joomla 1.0 mosloadposition.php in mambots/content.
And then customize the script to your needs...
MarHaj

cindymt
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Mon Sep 22, 2008 8:16 pm
Contact:

Re: Jumi - upgrade + added plugin

Post by cindymt » Mon Oct 20, 2008 1:36 am

MarHaj wrote:Jumi is not only module but plugin too now.

That means:

  3. you can now even include static html or txt pages into your pages without using wrapper component,
Hi Martin! I know this is a great plug-in; pretty sure I had it running just before my site crashed and I had to re-build from scratch. Anyway, I have done it over and over, even your simplest test won't work for me. (While I am new to Joomla, I am pretty "techy" so this frustrates me). It must be something simple?! The line of code simply appears in the box, as if the plugin was not activated (it is).
Cindy
Business Plan Mentor for Success
http://www.GoBeyond.ca

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Mon Oct 20, 2008 8:11 am

The line of code simply appears in the box, as if the plugin was not activated (it is).
Cindy,
The plugin works in articles only. It does not work in section or category description.
If the plugin is published and plugin code is written into the article and is not still working
take into an account this:
1. before inserting the code {jumi [ptahnameofthe file]} switch off wysiwyg editor. Some of them inserts invisible characters into the code that prevents plugin from running
2. verify that the plugin files are uploaded to the server with proper end of lines: UNIX, DOS or MAC. Php and xml files are text files and some servers are sensible to it. Correct the problem, if exists, with EOL converter (e.g.)
3. some rocket theme templates are know that prevent curly brackets plugins from running: http://forum.joomla.org/viewtopic.php?f=470&t=271337 The reason is still unknown so it is the solution.



I hope that it helps.
MarHaj

xpadanfc
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Oct 20, 2008 11:03 am

Re: Jumi - an universal multipurpose module

Post by xpadanfc » Tue Oct 21, 2008 6:40 am

hi martin, i develop a program that doing a search in the database.when the user make a search, the data will be POST to the same file. this program i include using your jumi in article. it is ok if i set the article in frontpage because the data will go to the frontpage. the problem is, how do we POST or GET data to the article in the same article without go to the frontpage?

can yu give me a solution?

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Tue Oct 21, 2008 8:19 am

how do we POST or GET data to the article in the same article without go to the frontpage?
I have got a tip: self calling form. Send data to the same address where sending part is. It can be in done in one jumi code or two - one sends the second receives. Both work well.
See for example this Joomla - Jumi tutorial.

I have to say there is a problem: refreshing page - joomla cache. With cache on data are not accepted.
I know how to switch off the cache for individual article in Joomla 1.0.x - simple hack is in the example. I do not know how to do the same thing for Joomla 1.5.
I suspect the whole problem can be solved with Ajax technology but I know nothing about it.
MarHaj

xpadanfc
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Oct 20, 2008 11:03 am

Re: Jumi - an universal multipurpose module

Post by xpadanfc » Tue Oct 21, 2008 10:59 am

Your solution in 'self calling forms' works.
And now in my form, i'm doing a SQL searching function using wildcard '%' but it doesn't seems to work.

Can u give some advice..?

Thanks.

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Tue Oct 21, 2008 11:59 am

SQL searching function using wildcard '%' but it doesn't seems to work
Hohohoho!
I am pleased you evaluate me as an expert. Thanks!
However the reality is rather different: I do not know why '%' does not work. Sorry.

Please try joomla development fora. There are real experts there!
MarHaj

meeks
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Sep 27, 2006 7:55 pm

Re: Jumi - an universal multipurpose module

Post by meeks » Wed Oct 29, 2008 9:40 pm

Hi MarHaj.

A question from a non-techie: I have this php script, which I use to include images from a gallery into Joomla (1.0.15) articles. The following code includes a picture by its id:

Code: Select all

<?php
 	include($_SERVER['DOCUMENT_ROOT']."/gallery/cpmfetch/cpmfetch.php");
   $objCpm = new cpm($_SERVER['DOCUMENT_ROOT']."/gallery/cpmfetch/cpmfetch_config.php");
	$options = array('windowtarget' => '_blank');
	$objCpm->cpm_viewMediaByPid(315,$options,$filter);
 	$objCpm->cpm_close();
?> 
For every article I need to include a different picture this way. With Jumi I seem to have to create a .php file with the above script for every image I want to include. Isn't it possible somehow to just paste the php script directly into Joomla content using Jumi? Or does anybody have another idea?

Thanks in advance.

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Thu Oct 30, 2008 9:38 am

For every article I need to include a different picture this way. With Jumi I seem to have to create a .php file with the above script for every image I want to include.
The question is where pictures ids come from?
Do you set them manually for each article or it is an automated process?
If it is automated process then Jumi can include one php file that decides what id to take and them presents it.

But still you have to place Jumi code (the same one) into every article.
I am not aware there exists a plugin that places php code into articles automatically.

Tip: but you can create one: modify a Joomla plugin which deals with social bookbmarkings. They are exactly of the plugin type you want.
MarHaj

meeks
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Sep 27, 2006 7:55 pm

Re: Jumi - an universal multipurpose module

Post by meeks » Thu Oct 30, 2008 11:12 am

Thanks for your reply.

I set the picture id manually - the rest of the script stays the same. The id is in the above example 315. Could my script be modified so that I just set the picture id as an argument when adding the jumi code to an article, like e.g. {jumi [picture.php] [315]}?

I'm afraid I'm not skilled enough to write my own plugins. :-)

- Meeks.

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Thu Oct 30, 2008 11:48 am

like e.g. {jumi [picture.php] [315]}?
Exactly!
And in your php code reference it this way:

Code: Select all

$objCpm->cpm_viewMediaByPid($jumi[0],$options,$filter);
MarHaj

meeks
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Wed Sep 27, 2006 7:55 pm

Re: Jumi - an universal multipurpose module

Post by meeks » Thu Oct 30, 2008 12:02 pm

Wow, that was exactly what I was looking for! You just made my day. What a great plugin this is...!
Thank you so much for your help and support.

User avatar
alecrespi
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Wed Mar 29, 2006 3:22 pm
Location: Italy
Contact:

Re: Jumi - an universal multipurpose module

Post by alecrespi » Fri Oct 31, 2008 2:43 pm

Hi guys,
I'm using Joomla since v1.0 and now I've upgraded some of my website to J1.5.7
Joomla is a really good CMS and pushed me to do more and more.
The real problem is my lack of knowledge about PHP. :(

I'll try to explain what I would like to do (thinking it could be well done with JUMI).

- Consider that I already have a Joomla Database TABLE (manually created with PHPmyAdmin) with less than 10 FIELDS and about 200 ROWS.
(QUESTION)
Is there a way to FILTER DATA (using a combo box or some other) on a specified field and show the result TABLE (with all ROWS corresponding to that field selection)?


Hoping to be clear...
Thank you in advance and sorry for my bad explanation. :-[

User avatar
MarHaj
Joomla! Ace
Joomla! Ace
Posts: 1168
Joined: Fri Jun 30, 2006 5:24 pm
Location: CZ
Contact:

Re: Jumi - an universal multipurpose module

Post by MarHaj » Fri Oct 31, 2008 3:29 pm

Is there a way to FILTER DATA (using a combo box or some other) on a specified field and show the result TABLE (with all ROWS corresponding to that field selection)?
Yes it is. For example in Joomla administration / module management: you can display modules by their position, type, etc...

But it will take you some time to get acquainted with a) MySQL queries, b) php and c) Joomla to develop appropriate php script. No professional level is required; your task is not too difficult.
I do not know what your tech background is but if you already have some programming knowledge it will take you some 1(queries)+2(php)+3(Joomla) days. If not then better find somebody. Professional can make the script like that in two to three hours at worst. And you can then concentrate on visible details only.
MarHaj

jimesmythe
Joomla! Intern
Joomla! Intern
Posts: 76
Joined: Thu May 18, 2006 1:59 pm

Re: Jumi - an universal multipurpose module

Post by jimesmythe » Sat Nov 01, 2008 12:49 pm

Have you got a fix for .pdf yet.
JimESmythe


Locked

Return to “Modules”