joomla1.5

In MySQL, how do I batch rename tables within a database?

给你一囗甜甜゛ 提交于 2020-05-08 03:00:08
问题 So basically I have a joomla database in MySQL which has a bunch of tables that have the prefix 'jmla_'. I would like to rename all of these tables by replacing the 'jmla_' prefix with a 'jos_' prefix. Any ideas about how to do this with a simple SQL script or SQL query? 回答1: SELECT concat ('rename table ',table_name,' to ',table_name,'_old;') FROM information_schema.tables WHERE table_name like 'webform%' and table_schema='weiss_db_new' will work. 回答2: Run this statement: SELECT 'rename

In MySQL, how do I batch rename tables within a database?

余生颓废 提交于 2020-05-08 03:00:08
问题 So basically I have a joomla database in MySQL which has a bunch of tables that have the prefix 'jmla_'. I would like to rename all of these tables by replacing the 'jmla_' prefix with a 'jos_' prefix. Any ideas about how to do this with a simple SQL script or SQL query? 回答1: SELECT concat ('rename table ',table_name,' to ',table_name,'_old;') FROM information_schema.tables WHERE table_name like 'webform%' and table_schema='weiss_db_new' will work. 回答2: Run this statement: SELECT 'rename

How to modify the HTML tag in Joomla 1.5?

守給你的承諾、 提交于 2020-02-06 05:27:05
问题 I need to define an appcache manifest on the login page. I found the same question asked about Drupal 6, but the file mentioned, page.tpl.php , does not exist. Where is the counterpart in Joomla? 回答1: The HTML tag should be in the template index.php found here - JOOMLA INSTALL/templates/YOUR TEMPLATE/index.php 来源: https://stackoverflow.com/questions/5589627/how-to-modify-the-html-tag-in-joomla-1-5

Removing GET parameter in .htaccess

懵懂的女人 提交于 2020-01-19 17:35:39
问题 I'm not able to remove one GET parameter wrongly added by one 404 SEF module. I want to remove "task=view" only if it appears alone and not with another parameter. So www.mysite.com/1.html?task=view should be redirected to www.mysite.com/1.html . While www.mysite.com?task=view&view=article should remain unchanged. No matter which RewriteRule I use, this paramater does not go. Looks like it is being generated from any environment variable when index.php is run. For example this does not work:

Removing GET parameter in .htaccess

爱⌒轻易说出口 提交于 2020-01-19 17:35:32
问题 I'm not able to remove one GET parameter wrongly added by one 404 SEF module. I want to remove "task=view" only if it appears alone and not with another parameter. So www.mysite.com/1.html?task=view should be redirected to www.mysite.com/1.html . While www.mysite.com?task=view&view=article should remain unchanged. No matter which RewriteRule I use, this paramater does not go. Looks like it is being generated from any environment variable when index.php is run. For example this does not work:

joomla! 1.5.26 and “You are currently logged in to the private area of this site”

戏子无情 提交于 2020-01-15 05:16:26
问题 When the Joomla! (1.5.26) session has expired, I redo the login, after submitting username and password I get this message: "You are currently logged in to the private area of this site." If I click on another internal-link the redirection works, but if I re-click on the same return url link (where I was where the session has expired) I re obtain the previous message, but I'm logged in correctly! I use the Joomla! SEF. No other external component/module/plugin. To make it running I have to

joomla! 1.5.26 and “You are currently logged in to the private area of this site”

…衆ロ難τιáo~ 提交于 2020-01-15 05:16:01
问题 When the Joomla! (1.5.26) session has expired, I redo the login, after submitting username and password I get this message: "You are currently logged in to the private area of this site." If I click on another internal-link the redirection works, but if I re-click on the same return url link (where I was where the session has expired) I re obtain the previous message, but I'm logged in correctly! I use the Joomla! SEF. No other external component/module/plugin. To make it running I have to

Joomla template show image thumbnail on frontpage

﹥>﹥吖頭↗ 提交于 2020-01-06 03:43:05
问题 Using joomla 1.5 how do you add thumbnail images to the list of articles on the frontpage. What I am after is something similar to this http://templates.joomlart.com/ja_quartz/ (scroll down to the list under welcome to the frontpage) As you can see this shows the date, then a thumbnail image and then a snippet of the article with a read more link. If this is an extension does anyone know which one it is? I don't want to buy the template as I am just after that specific piece of functionality.

Sending email from localhost in php

两盒软妹~` 提交于 2020-01-06 03:17:28
问题 Ok, I'm just overwhelmed by the number of ways and tools to send emails from localhost using php script. Can you guys just help me clearing some things up? These are my types of actions: I've enabled gmail smtp in php.ini, set port to 465. I've downloaded phpmailer, tested as per instruction without success. I've the remote server mails configuration(where my site was previously hosted). Also, I have a php script downloaded from the internet which is supposed to send email. What exactly do I

How can I unit test a Joomla 1.5 or 1.6 module with PHPUnit?

纵饮孤独 提交于 2020-01-05 07:41:40
问题 I can not find a tutorial on the subject. Before running the unit test, the Joomla framework must be loaded ... A code example would be welcome, thanks ! 回答1: You might be looking for the official Joomla Unit Testing Documentation - It contains example tests and more stuff to help you getting started. 来源: https://stackoverflow.com/questions/6559553/how-can-i-unit-test-a-joomla-1-5-or-1-6-module-with-phpunit