joomla: adding uploader to component back-end - joomla

How can I add an the Joomla built-in uploader to my component's admin back-end such that the file itself is saved in a folder somewhere in the server and the filename or url is saved in the DB? The docs for JHMLBehavior/uploader under http://docs.joomla.org/API16:JHtmlBehavior/uploader are useless, and I've tried Googling for a comprehensive guide on how to do this but couldn't find any.
Please help.
Regards,
Simon

You can check out administrator/components/com_media to see how they use JHTMLBehaviour::uploader(...). The problem is that the fancy script that the uploader is based on is version 1.0 - and it doesn't work....
I would recommend checking this tutorial instead:
http://docs.joomla.org/Creating_a_file_uploader_in_your_component

You're aware that you're looking at the 1.6 version of the code, not 1.5? 1.5 is the current release - 1.6 probably hasn't got the full set of documentation.

Related

Remove article id from joomla 3.4.8 url

After upgrading my site to Joomla 3.4.8, my URL is showing article id. It was not there before the upgrade.
Can anybody tell me how to fix this problem?
Please help!!
Thanks..
Joomla, by default, includes the article id in the URL in order to avoid problems with articles having the same aliases.
If the previous version of Joomla did not have the article id in the URL, then it might be that you have been using an extension such as sh404SEF and you're not using it anymore.
It might be also that you had a modified core as explained here: http://www.itoctopus.com/how-to-remove-the-article-id-from-joomlas-sef-urls , and the modification was overwritten by the update.

how to call a joomla! module in a php page OUTSIDE joomla! directory?

i searched on the net for my answer,but the more i search,the less i find.here is the problem:
i have a joomla! website,located in localhost/joomla.
i have a php page, located in localhost/sample.php
now, how can i include some of joomla's modules,in this single "sample.php" page??
for example, how can i use "latest news" or "latest users" in my "sample.php" page?
one of mye friend did this, but i no longer can contact him. any help would be appreciated. if the question is not clear enough,plz let me know.
tnx
load the Joomla framework inside the external php file
like it says here http://www.irfanview.0fees.net/how-to-load-the-parameters-of-a-joomla-module-inside-an-external-php-file/
I've never had to do this, but first I think you would have to load the Joomla framework (see the installations root index.php) then you would have create a session using Jsession. This is just a guess so take it for what its worth.

Need to change the database password for my Joomla site

Unfortunately today I got my Joomla 1.5 site hacked- the index.php has been overwritten and I've found as well a php script which does something nasty with the config.php file.
I've changed the FTP password, however since the config.php file contains as well the database user/password I'd like to change it as well. What is the right place to change it ? should I change it just in config.php or somewhere else ?
Changing the database password must be done via your hosting cPanel and then in the config.php.
Once you have done this, I would suggest upgrading to Joomla 2.5 as it is far more secure and has more features. You should also consider installing some security extensions. I answered a question regarding security which you can find in the link below:
Joomla! 2.5.4 Hacked: Having trouble with diagnosis
Here is also another bit of information I added regarding why keeping your Joomla version up to date is a good idea, if you don't already:
Why should I keep my Joomla version up to date?
Hope this helps

how to make email templates in Joomla?

I want to make a email template to use in Joomla back-end. does it possible? how?
I looked up at Joomla docs and didn't find my answer. I use Joomla 2.5.7.
Firstly upgrade your Joomla version to the latest 2.5.x version
As for the e-mail template, you will need to install a component that allows such a feature, like a Newsletter component. I personally would recommend JNews, however more can be found at the following link:
http://extensions.joomla.org/extensions/content-sharing/newsletter
Hope this helps

How to move custom template form Joomla 1.5 to 2.5?

I am migrating form Joomla 1.5 to 2.5 version. I need to move template.
I installed it with Extension Manager. It displayed in Template Manager. But when I am assigning this template to site- the site respond with HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. This template worked fine on Joomla 1.5.
Your template need a Joomla 2.5 (or 1.7) compatibility!
I'm facing the same inconvenient at this time, so i want to publish here my answer to help anyone who has to do this task to convert templates 1.7 to 2.5, the instructions can be found in docs.joomla.org, specifically in the section "Alternate Method Using a Version 2.5 Template".
I've tried different tools to convert them automatically without success, this method really helped me.

Resources