logo
IRC Archive / Freenode / #joomla / 2010 / February / 23 / 7
jdc18
http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1
in that example in the view part
and controller part
there is missing the ?>
helloworld111
anyone here is using joomlisting
i have a bug and dont know how to solve it
sepow
'ello
sahilsk
does anyone here know, how to add this form in my site.i know, it can be done by php curl, library ,but i wonder if it's also possible with javascript or any client script . http://delhimetrorail.com/commuters/metro_fares.aspx
any other option beside php curl library?? and will my host charge extra for instllainng cURL ??
helloworld111
i have a bug and dont know how to solve it in joolisting
sahilsk
??
lynxsys
Hey all, anybody know a good hotel booking system for joomla?
helloworld111
hotel reservation pro
lynxsys
is that the best?
helloworld111
i have used it
www.lubjanahotel.com
or try jomres
it is better
lynxsys
what are the main competition for it?
helloworld111
someone can help me here
fLuxPA
hey, can you help me with something simple?\
helloworld111
tell me if i can
Cylindric
Don't ask if you can ask a question, just ask. Nobody knows if they can help if they don't know your problem.
fLuxPA
I would like to display a specific article, in a specific section of the frontpage (I already got the division where I want the article to be displayed) Any ideas?
I ask, to see if anyone here is alive :P
helloworld111
i have joomlisting installled and i have a bug there dont know how to correct it
Cylindric
fLuxPA: there are some extensions to do just that.
helloworld111
Cylindric can u help me in my problem please if u have some time for me
Cylindric
fLuxPA: http://extensions.joomla.org/extensions/content-&-news/articles-listing/7528/details is one example I just found by a quick Google search for "article in module position"
jdc18: PHP scripts don't need a closing ?>. Just reaching the end-of-file is good enough.
helloworld111
Cylindric can u help me in that please if u have time
fLuxPA
Cylindric: Thanks, didn't know how to search for it. I found some fancy rotators and didn't need that. Article in module position, never would've figured that out
Cylindric
helloworld111: I don't know anything about joomlisting. Never used it.
fLuxPA: that's always the tricky part - working out what to search for :)
helloworld111
i think it will be a small bug, if i add more than 8 properties in a category it shows a blank page
:(
Cylindric
submit a support ticket on their site? Dunno. Not used it.
fLuxPA
Cylindric: Thanks man, I really appreciate it. I started looking for joomla jdoc:include type trying to figure out how to do it manually :)
lynxsys
If im logged into joomla admin, then try to install a component what user credentials will attempt to create the dir on the server?
snellcode
lynxsys: if you use apache mod_php, then its the apache user
usually.. but depends on your host setup
lynxsys
how do I know if I use apache mod_php?
snellcode
do a phpinfo() and see what it says for server api
its in joomla i think under the system info tabs
fLuxPA
Cylindric: Have you used that extension?
Cylindric
No, I just had a quick look around
lynxsys
snellcode: under global configuration?
snellcode
help >system info
lynxsys
ahh
snellcode
whos your host?
lynxsys
me
snellcode
ok, then i guess you can set it to anything you want
lynxsys
yes
server api Apache 2.0 handler
snellcode
so its probably www-data or apache or nodody, depends on your server
you can edit it in apache2.conf
lynxsys
so would that user have permissions to create a dir by defualt?
snellcode
depends who owns the folders
and what the perms are on them
lynxsys
folder is owned by me as a user on the server
snellcode
in that case, they need to be set to 777 for apache to write to them
lynxsys
and i can create edit upload etc logged in via ftp
snellcode
unless you are in the same group as apache, and then just set group write
if you're the only one on the server, 777 is not so bad
lynxsys
ok, so apache is a user on the server that need permission to create a dir on the server
snellcode
its when you have many users on the server it can be bad. but its better to not depend on 777, and set up good groups
chown the folders to apache user
or set them to 777 then it dont matter
lynxsys
I have set 777 but no luck installing component
snellcode
if you chown them to apache, then ftp user may not be able to write them
lynxsys
will try chown
snellcode
make sure your temp path is set in configuration.php
lynxsys
that could be the problem tmp path
chown didnt work
where should the temp path dir be?
snellcode
somewhere that exists and is writable by apache
usually in joomla path /tmp
helloworld111
anyone can help me how to add a lightbox effect to my main menu items
lynxsys
ok tmp path was the problem thank you snell code
PcGamersUnited
anyone here able to lend me some assistance with my joomla site?
in the upper right hand corner underneath "whos online" I had the "live search button" which I disabled, but for some reason the overflow still remains and wont show anything I place there
www.pcgamersunited.net
I just would like to move the login/register module there...but nothing shows
anyone?
helloworld111
anyone can help me how to add a lightbox effect to my main menu items
jdc18
hello again i have a question regarding the creation of components
about the Jview class
helloworld111
jdc do u know how to add a lightbox effect to a main menu item
jdc18
helloworld111: do you have an example
jquery
or any other javascript library would be a start
helloworld111
hmmm
jdc18
or css
helloworld111
ok i have a dropdown menu and i need that when i click the dropdown item it opens in lightbox
Assassin38
My site is having errors in the Main Log which I don't understand
[Tue Feb 23 09:14:02 2010] [warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
Anyone know what this means?
jdc18
helloworld111: you mean like this http://leandrovieira.com/projects/jquery/lightbox/
i need a little bit more info about that
you can change the css style
helloworld111
wait
dank``
guys with questions there is a joomla question website
www.lmgtfy.com
helloworld111
yeah smth like that
the plugin
i have it installed
but how to make the menu item to open in lightbox
snellcode
with javascript
helloworld111
oh i dont know javascript
and php too
snellcode
then learn some javascript, problem solved :P
helloworld111
oh thank you for advice :P i just needed now,
Assassin38
Anyone know what this error means? (103)Software caused connection abort: mod_fcgid: ap_pass_brigade
jdc18
so i have this problem i have been following the tutorial on the page on how to create a component
i am stuck in a part
PcGamersUnited
anyone able to help me? I cant find the code I need to delete in order to remove an overflow on my joomla site
jdc18
// Perform the Request task
$controller->execute( JRequest::getWord( 'task' ) );
if i leave this line it will show me a 500 error
snellcode
jdc18: check the error logs
Andy[1]
jdc18: what are you expecting to get?
or rather, what are you expecting it do do?
jdc18
just a helloworld
trying the tutorial
Andy[1]
link to the tutorial?
jdc18
http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_2_-_Adding_a_Model
sorry
i created a module, and looking back it makes more sense that it is a component
Andy[1]
its fine
jdc18
regarding the files, some files dont have a final "?>"
i thought it was a mistake of the tutorial
but when i downloaded the help files it is missing there too
but they run without problems
on checking some similar files on other components
some do have a closing "?>" php thing and others dont
Cylindric
jdc18: That should be fine. PHP doesn't require a closing ?> tag
jdc18
really
cool
nice to know
snellcode
jdc18: if you're gettng a 500 error see if you can find the log that says why
Cylindric
It's not uncommon. Some people suggest it's a good idea, because you don't get any stray white-space after your PHP output. I've no idea how valid that theory is :)
snellcode
Cylindric: the issue is if there was any space at the end http headers get sent
and then its hard to find where that is happening
best practice it to not have closing ?>
jdc18
i am looking at the logs of my apache server in my local machine i dont see any problem
ok nice to know
Cylindric
Okay, I wasn't aware of the "Best Practice" so didn't want to come down too strongly either side of the fence :) I just spotted that the Zend Framework Coding Standards Programmer's Reference Guide does say not to.
"For files that contain only PHP code, the closing tag ("?>") is never permitted. It is not required by PHP, and omitting it´ prevents the accidental injection of trailing white space into the response"
jdc18
nice
snellcode
yes. for classes, for sure, dont want to have it
jdc18
500 - Layout "default" not found
this is the error i have
snellcode
cause once headers are sent, you cant resend them
jdc18
it is on the front page
snellcode
jdc18: do you have a file viewname/tmpl/default.php
jdc18
yes
defined('_JEXEC') or die('Restricted access'); ?>
<h1><?php echo $this->greeting; ?></h1>
that is the only thing it has
wait
i think i missplaced the file
let me check
that was it
for some reason i misplaced the view folder on other level
thanks
regarding proper practices, i am using jquery-1.4, should i place it on /media/system/js/ or i should have it on my component folder
snellcode
using media is a nice idea. if everybody did that, then joomla core stuff could be moved out of the webroot
i would use /media/myextension/...
or media/mycompany/...
Andy[1]
Red-: Is your e-commerce out of beta?
jdc18
snellcode: ok thanks
Andy[1]
jdc18: thats only good practice if you intend on letting other modules update your jquery version.
:)
jdc18
ok i get it
snellcode
you can use a cdn also
jdc18
what is cdn?
snellcode
then you always have the latest version
Andy[1]
current document name? -_^
jdc18
ok cool
now that i am moving changing my module, mod_popupimages, i had a mod_popimages.php, which called the javascript files
$document = &JFactory::getDocument();
$document->addScript( '/media/system/js/jquery-1.4.js' );
$document->addScript( '/modules/mod_popupimages/mod_popupimages.js' );
$document->addStyleSheet('/modules/mod_popupimages/tmpl/mod_popupimages.css');
this is managed now on view/default.php right?
Andy[1]
jdc18: if your component is only small, don't bother with view/default.php
it isn't always necessary
it's your first component. Don't over-complicate it :)
Assassin38
Does anyone know what this means? PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ixedts.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ixedts.lin: undefined symbol: executor_globals_id in Unknown on line 0
jdc18
haha
ok thanks
so it is not a problem if i do it directly on the component page right?
snellcode
for you jdc18
oops, on top of that have $doc =& JFactory::getDocument();
jdc18
thanks
cool
my own librariies should be in /media/myfolderjs