View Full Version : Creating a quick and easy Mambo component
keliix06
22.04.2004, 15:40
I wrote a little tutorial on how to create a simple component. You can view it at http://www.mambohut.com
http://www.mambohut.com/content/view/158/2/
It is fairly long, so make sure you have some time available.
snarkpit
07.10.2004, 17:33
That is awesome, I can't wait to check that out, thanks for the hard work Keliix06
Hi
Thanks for the tutorial, it really cleared up some things. Only one problem when i try to install it i get "Another component is already using directory: "/var/www/html/intra/components/com_hello_world/". Any idea what could be wrong.
thanks
It means you have already installed the component (whether it installed sucessfully or had an error, it will still create that directory), so log into your server and delete the /*root*/components/com_hello_world/ directory.
The admin in this component doesn't work with Mambo 4.5.1, I get:
Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in W:\www\Mambo451\administrator\components\com_hello _world\admin.hello_world.html.php on line 45
Any suggestions?
frajonico
09.11.2004, 22:11
if you open that file and go to line 45 you will see something like this:
<input type="hidden" name="task" value="" />
</form>
<?php } ?>
function showText( $option, &$rows ) {
?>
Change the red line to
<?php }
You will then get another error on line 78 just add the \ to the inner "
so it reads
echo "<img src=\"images/tick.png\" border=\"0\" />";
envitony
03.12.2004, 04:21
I fixed some bug of the source code, please see attchement.
pocketom
23.02.2005, 05:54
I've been reading the tutorial with interest, but it seems that im still to stupid to create a simple component.
I want a very simple component as an addon for the great newsletter component letterman 1.1. You can find it here:
The component:
http://mambo-phpshop.net/index.php?option=com_docman&task=doc_download&gid=56&Itemid=66
The subsribe module:
http://mambo-phpshop.net/index.php?option=com_docman&task=doc_download&gid=55&Itemid=66
Its a very simple, but very handy tools which enables you to create, write and send newsletters directly from the frontend.
It works fine, but I miss something there:
I want to see the number of subscribed emailadresses and a simple ugly list of them. Cant be so difficult or? Tried a lot of things, but cannot get this realised. I have problems with reading the data from the database, my MY-SQL Knowledge is too bad for that, and its my first PHP projekt after HelloWorld ;).
Perhaps someone of you has better PHP skills than i have, and can try this small exercise. I would be very happy if someone can show me how to do this...
Best Regards
Tom
wasim_at_drushti
14.11.2006, 11:07
hhmmmm, great tutorial. :cool:
aadhunik
01.01.2007, 07:21
soon I will be releasing my own component
Hi,
I tried to run hello world local with my JSAS (1.0.8) and it works, but online with 1.1.12 it does work, I can create an item. But if I want to publish, edit... it says "select an item to publish".
Where is the problem?
I try to programm my own component and I used hello world and now I have the same problem.
Please help me
Best
Ian
vBulletin® v3.8.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.