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

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.

Related

Joomla friendly URLs not working after update?

Hi and thanks for reading&answering my question. I am fairly new to Joomla,however I have built a directory website and started to put some content. I have created the standard pages(contact us, privacy etc) and added businesses. I would like SEO friendly URLs so I set Search Engine Friendly URLs, URL Rewriting --YES, and Suffix --No. However, Joomla somehow rewrites my alies and change them. example: mywebsite/bar-and-dinner is displayed now as my website/bar-din-r. I contacted the support of the plugin I use and they told me that I must have had some filters on Joomla that creates such a problem. I tried to purge cache on the website & server still the same. I just updated to Joomla 4.0. Thanks in advance for your help.

Change Joomla 3 page url extension from .html to .htm

I am creating a website using Joomla 3 CMS. I have a requirement from my client that i need to change the existing page url extension from .html to .htm. As this website is redesign of a existing website the old links have .htm extension.
Open ../libraries/cms/router/site.php
Go to line number 144
And change
if ($format = $uri->getVar('format', 'html'))
to
if ($format = $uri->getVar('format', 'htm'))
I hope that helps
If you don't want to edit core files, and that is certainly not advised for sake of future upgrades. Your best solution is using a custom component for managing Joomla's SEF URLs, for example: sh404SEF (Paid) or JoomSEF (Free).
Check out http://extensions.joomla.org/category/site-management/sef for others.
Never ever edit Joomla Core files, otherwise when you upgrade Joomla, all your changes will be gone.
As #Alexxandar said; use SEO/SEF components for your needs. I recommend to use MijoSEF (Free or Paid)
Go to global configuration and remove the l from the suffix.
THis is a Joomla configuration question and a standard joomla configuration (not programming) option.
Now the one thing you will have to worry about is that if there are any old links to the htm pages. FOr this you will probably want to use the built in redirect component. Turn on the redirect plugin and then if you have a small number of pages you can just set up the redirection by hand. If you have more pages you may want to write the sql to create a bunch of redirects. Or you might want to make your own plugin to permanently redirect the old to the new.

Change "read more" link in Joomla! 3.1.5 Stable?

I am using joomla 3.1.5 for my blog. Want to change the link for "read more" in article.
Currently its showing something like "mysite.com/index.php/alias name"
I want to change this to "mysite.com/index.php/category name/alias name".
Thanks in advance,
readmore-links are created using the router - functionality ( JRoute::_('...') ) of joomla. It is up to the component how this is handled.
For com_content this is defined in
/components/com_content/router.php
It might be possible to change the output of the router by following the recipie here:
Router Plugins
...but I have not tried this myself,
regards JOnas

Is it possible to use Twitter Bootstrap to create a Magento site?

A client wants a Magento site done, and I have never used it before. I thought, "Sure, I'll create a standard site using Bootstrap and just query the database for the products". Now that I've been looking into it, it looks like the only way to use Magento is by creating a Theme which doesn't look to be Bootstrap friendly.
Please someone tell me that creating Themes isn't the only legitimate way of creating a Magento site.
Some starting points:
http://www.bootstrapstart.com/portfolio-type/bootstrap-magento-theme/
http://magenthon.com (info and code) or demo here
https://github.com/cvaldemar/magento-bootstrap (doesn't seem too active though ?)
If this is something you are planning on doing yourself, the second link looks like a promising candidate to download, reverse engineer then cusomise!
Good luck
https://github.com/webcomm/magento-boilerplate
http://www.webcomm.com.au/blog/2013/09/introducing-magento-boilerplate-a-twitter-bootstrap-3-powered-html5-mobile-first-starter-theme
Newest, Magento 1.8 supported
Yes, Try this Magento Bootstrap framework but it's unstable version.

Joomla 1.6 backend admin area blank

For some reason, when I log into my joomla 1.6 backend, it is now empty, displaying only a logout button. Any Ideas?
I just went through the same problem but on J!1.7.3. There may be many, many reasons but please check using just URL if you can see for example:
[YourDomainHere]/administrator/index.php?option=com_content or
[YourDomainHere]/administrator/index.php?option=com_modules
If content is listing and you're missing just Admin-menu and sub-navigation in back-end --> this means you messed-up with access levels and viewing access.
If you can't see content listing - ignore the rest of this post :-)
...with access levels and viewing access. To check that, try entering [YourDomainHere]/administrator/index.php?option=com_users&view=levels and enter each position in the list. Joomla backend navigation module usually has Access set to Special, so focus on this one. When enter Special - manager, author and super administrator should be ticked. If everything empty in any from the list - this is your issue :)
You need to add manager, author and super administrator to your Special access level. Obviously you can't see Save button, so you need to use database. [wrrr :) sounds scary?] Not a big deal, just go there using for example phpMyAdmin and find _viewlevels table. In there just edit Special and add [6,2,8] values to set up manager, author, super.....
Update database. Try to log-in one more time (close browser and clean cache before).
I hope if this wasn't helpful for you, will be for somebody else.
p.s. There may be a way of 'saving' changes in you joomla access levels with URL. Then you don't need to go to DB .. but I don't know if this is feasible at all :)
Check the rewrite of htaccess and the $mosConfig_absolute_path variable in config.php
Apparently, the Bluestork Template (admin template) has some security issues. In my case there were some missing files in the template folder /administrator/templates/bluestork/ that caused the administrator screen to appear blank. I've copied a clean version of the template in the bluestork folder and after that I was able to see the backend admin area.
I've removed the bluestork templates entirely for now, which seems to be the best option. Joomla installs 2.5.8, 2.5.6, 2.5.2, 1.7.0, 1.6.3 are affected. The Blustork Template is a target for hacks with old Joomla.
this happening becoz of admin user lost his permissions. see below article to fix this issue
http://www.codentalk.com/joomla-admin-showing-blank-page/

Resources