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.how to get the other php scripts
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:
Re: Jumi - an universal multipurpose module
MarHaj
-
- Joomla! Intern
- Posts: 68
- Joined: Wed Sep 07, 2005 5:56 pm
Re: Jumi - an universal multipurpose module
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)
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)
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
There are two possibilities how to do that. Theoretically. I haven't got any ready to use solution at my hand.I'd like to now if I can add also Joomla modules inside Jumi ?
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
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sat Dec 01, 2007 4:19 pm
Re: Jumi - an universal multipurpose module
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
<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.
-
- Joomla! Intern
- Posts: 68
- Joined: Wed Sep 07, 2005 5:56 pm
Re: Jumi - an universal multipurpose module
You may go in the admin / configuration and set the editor to "No Editor".ThatValueGuy wrote:Putting it in via HTML using the WYSIWYG doesn't save the code
-
- Joomla! Apprentice
- Posts: 7
- Joined: Sat Dec 01, 2007 4:19 pm
Re: Jumi - an universal multipurpose module
Thanks! It's the little things that hang us up sometimes.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Sep 28, 2008 12:35 am
Re: Jumi - an universal multipurpose module
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
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
-
- Joomla! Apprentice
- Posts: 17
- Joined: Wed Jun 27, 2007 7:57 am
Re: Jumi - an universal multipurpose module
I want to insert the code below
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.
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.
-
- Joomla! Apprentice
- Posts: 15
- Joined: Thu Sep 11, 2008 3:38 pm
Re: Jumi - an universal multipurpose module
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
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
-
- Joomla! Apprentice
- Posts: 18
- Joined: Fri Apr 25, 2008 12:57 pm
Re: Jumi - an universal multipurpose module
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
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
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Oct 06, 2008 7:45 pm
Re: Jumi - an universal multipurpose module
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,
I went to my code and tried explicitly closing my MySQL connection. This produced the following,
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
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,
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.Error loading Modules:Table 'foo.jos_modules' doesn't exist .......
I went to my code and tried explicitly closing my MySQL connection. This produced the following,
without any reference to the failed query. Clearly though I'm stepping on Joomla's connection.Error loading Modules:
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
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Generally not.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?
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...
MarHaj
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Surely. Look at the Joomla standard "related items module" code how it works.I want to use the jumi-module in relation with the article-name!
I must load the article-title as variable. Is that possible?
So you can pick any information about the shown article.
MarHaj
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
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.Error loading Modules:Table 'foo.jos_modules' doesn't exist .......
MarHaj
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
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.I found that "include" isn't work with joomla 1.5
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
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Yes, you can. It is possible to write a script that loads modules.I'd like to now if I can add also Joomla modules inside Jumi ?
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
-
- Joomla! Apprentice
- Posts: 44
- Joined: Mon Sep 22, 2008 8:16 pm
- Contact:
Re: Jumi - upgrade + added plugin
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).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,
Cindy
Business Plan Mentor for Success
http://www.GoBeyond.ca
http://www.GoBeyond.ca
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Cindy,The line of code simply appears in the box, as if the plugin was not activated (it is).
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
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Oct 20, 2008 11:03 am
Re: Jumi - an universal multipurpose module
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?
can yu give me a solution?
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
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.how do we POST or GET data to the article in the same article without go to the frontpage?
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
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Oct 20, 2008 11:03 am
Re: Jumi - an universal multipurpose module
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.
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.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Hohohoho!SQL searching function using wildcard '%' but it doesn't seems to work
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
-
- Joomla! Intern
- Posts: 52
- Joined: Wed Sep 27, 2006 7:55 pm
Re: Jumi - an universal multipurpose module
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: 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.
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();
?>
Thanks in advance.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
The question is where pictures ids come from?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.
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
-
- Joomla! Intern
- Posts: 52
- Joined: Wed Sep 27, 2006 7:55 pm
Re: Jumi - an universal multipurpose module
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.
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.
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Exactly!like e.g. {jumi [picture.php] [315]}?
And in your php code reference it this way:
Code: Select all
$objCpm->cpm_viewMediaByPid($jumi[0],$options,$filter);
MarHaj
-
- Joomla! Intern
- Posts: 52
- Joined: Wed Sep 27, 2006 7:55 pm
Re: Jumi - an universal multipurpose module
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.
Thank you so much for your help and support.
- alecrespi
- Joomla! Apprentice
- Posts: 32
- Joined: Wed Mar 29, 2006 3:22 pm
- Location: Italy
- Contact:
Re: Jumi - an universal multipurpose module
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.
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.
Alessandro
https://www.commandsandcolors.net
https://www.commandsandcolors.net
- MarHaj
- Joomla! Ace
- Posts: 1168
- Joined: Fri Jun 30, 2006 5:24 pm
- Location: CZ
- Contact:
Re: Jumi - an universal multipurpose module
Yes it is. For example in Joomla administration / module management: you can display modules by their position, type, etc...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)?
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
-
- Joomla! Intern
- Posts: 76
- Joined: Thu May 18, 2006 1:59 pm