[solved] Need Help with php module. Simple php, 1st attempt

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
denzel2364
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 15, 2007 10:56 am

[solved] Need Help with php module. Simple php, 1st attempt

Post by denzel2364 » Wed Jan 09, 2008 4:50 pm

hi there,

i have created an xml file:



    Xbox 360 Gamertag
    08/Jan/2008
    Dean Hodges
    This template is released under the GNU/GPL License
    [email protected]
    http://www.pimpmyxbox.co.uk
    1.0
    Displays your xbox live gamertag
     
         mod_gamertag.php
     



HOpefully that is ok. Ive also created a simple php file:

username;
$ Gamertag = $ name;
$ Position = $ params -> get ( 'position');
?>

> . Card" scrolling = "no" frameBorder = "0" height = "140" width = "204"> >


When i make it a .zip and upload, it comes back with an error "File /xxxx/xxxx/xxxl/360/media/install_4784f59f7b228/mod_gamertag.php does not exist!"


*xxxx being sensitive information

I have attached the mod that i have tried to create. Hope you people have some ideas and help
dean
Attachments
mod_gamertag.zip
(2.38 KiB) Downloaded 91 times
Last edited by denzel2364 on Thu Jan 10, 2008 5:21 pm, edited 1 time in total.

User avatar
ianmac
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: Need Help with php module. Simple php, 1st attempt

Post by ianmac » Wed Jan 09, 2008 5:05 pm

Installs fine here...

Please note though that there is a deficiency in the Mac OS/X package system that adds extra files to zip files without prompting the user.

See http://floatingsun.net/2007/02/07/whats ... -zip-files for more information.

Ian
Help test my Component XML Generator Tool!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!

denzel2364
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 15, 2007 10:56 am

Re: Need Help with php module. Simple php, 1st attempt

Post by denzel2364 » Wed Jan 09, 2008 5:08 pm

Thanks ian.
i noticed that there was an issue. You must have known i was on a mac!

can i see it in action? Also if you are on a PC, can you zip it for me.

That would be very kind

User avatar
ianmac
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: Need Help with php module. Simple php, 1st attempt

Post by ianmac » Wed Jan 09, 2008 5:31 pm

I didn't know you were on a Mac except by opening up the archive -  I have seen this problem with Mac's before.

You can follow the instructions on the link I mentioned indicating how to get an archiver that works properly.

Even with the extra files, it installed fine here.

Ian
Help test my Component XML Generator Tool!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!

User avatar
infograf768
Joomla! Engineer
Joomla! Engineer
Posts: 366
Joined: Fri Aug 12, 2005 3:47 pm
Location: •Translation Matters•

Re: Need Help with php module. Simple php, 1st attempt

Post by infograf768 » Wed Jan 09, 2008 5:34 pm

One can choose the files and use dropstuff instead of the Finder.
Usually, this get rid of the invisible files.
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.

motd
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Sep 04, 2007 4:17 am
Contact:

Re: [solved] Need Help with php module. Simple php, 1st attempt

Post by motd » Mon Jan 21, 2008 2:28 pm

You can also use the command line's "zip" command which ignores the __MACOSX stuff if I remember correctly.
Display Facebook photos and YouTube videos on CB profiles.
http://www.flameforge.com/index.php?opt ... &Itemid=68

User avatar
shaeleigh
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu May 10, 2007 12:04 am
Contact:

Re: Need Help with php module. Simple php, 1st attempt

Post by shaeleigh » Sun Jan 27, 2008 3:25 am

ianmac wrote: Installs fine here...

Please note though that there is a deficiency in the Mac OS/X package system that adds extra files to zip files without prompting the user.

See http://floatingsun.net/2007/02/07/whats ... -zip-files for more information.

Ian
FWIW, this seems to have been my problem. If I hadn't seen your post, it never would have crossed my mind.
shae

denzel2364
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Aug 15, 2007 10:56 am

Re: [solved] Need Help with php module. Simple php, 1st attempt

Post by denzel2364 » Mon Jan 28, 2008 9:09 am

I hope it helps people.

i have a mac and im using a free bit of software called YemuZip. Its briliant. No problems at all.

Highly recommend


Post Reply