存档

‘技术’ 分类的存档

最简单的去掉Virtuemart Cart中的logo方式

2010年8月21日 50 views 没有评论

原文地址:

http://www.newworlddesigns.co.uk/blog/removing-hiding-the-virtuemart-logo-from-an-empty-cart-module/

I have wrote many times on the VirtueMart forums, on how to remove/hide the VirtueMart logo fro the Virtuemart Cart Module, but thought I would add it in here as well.

.vmCartModule img {
        display: none;
}

If you add this to your main template style sheet and refresh your page, it should work, you may need to do a cache refresh as well by holding down Shift+Reload (Shift+F5)
/templates/xxxxx/css/template.css

Is the usual path to your template css.

Some people say it should be here

/components/com_virtuemart/themes/theme.css

But to be honest it makes no difference at all, as long as it is loaded in, it can be anywhere you like.

分类: 技术 标签:

VirtueMart 配置gamil发信技巧-Mail Settings设置

2010年8月21日 52 views 1 条评论

当使用Virtuemart做为joomla的商店程序时,如果网站配置的发信邮箱是gmail的,可能会出现错误,导致无法发送信件。

解决方法如下:

在Site – Global Configuration – Server – Mail Settings下按如下设置:

mail server: SMTP server
Adress: name@gmail.com
Name: name
SMTP identification: Yes
SMTP security: none
Port: 25
User: name@gmail.com
Passwd: passwd
Smtp host: ssl://smtp.gmail.com:465

And IT IS NOT EQUIVALENT TO

(如果用下面的设置,目前来看会出错!)

mail server: SMTP server
Adress: name@gmail.com
Name: name
SMTP identification: Yes
SMTP security: SSL
Port: 465
User: name@gmail.com
Passwd: passwd
Smtp host: smtp.gmail.com

原文地址:http://forum.virtuemart.net/index.php?topic=58983.15

如何让IIS7显示ASP错误的详细信息

2010年8月12日 97 views 没有评论

在网站目录下建立web.config文件,内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
</configuration>

这样就可以重新显示详细信息了。在Godaddy的虚拟主机上测试可行。

原文如下:

地址:http://internetoptimizers.com/2010/01/24/classic-asp-using-iis7-error-handling-500-internal-server-error-godaddy/

Classic ASP using IIS7 – Error Handling – 500 Internal Server

Howdy All,

This is a common problem I see lots of people running into since GoDaddy upgraded from IIS 6 to IIS 7.  The below story is a similar situation that I had while trying to work on a Classic ASP web site hosted at GoDaddy. I have included the answer/fix below.
Original Story:  I am with godaddy for webhosting right now. The have me using IIS7.
When I run my ASP page I get the error :

Error 500 :There is a problem with the resource you are looking for,
and it cannot be displayed.

Basically, there is an error in my code, however, it doesn’t tell me
the line number the error was found on. After searching the web I
found out how to turn on the more detailed error reporting… but you
have to do it on the webserver. I don’t have access to the webserver.

After spending allot of time chatting with godaddy, they claim I can
turn this on in the web.config file. I know this can be turn on for
ASP.NET in the web.config file… but as far as I know, not classic
asp.

OK…. Here is the web.config file I use that gives you the old school error handling data:

Step 1.  Open a text document.

Step 2.  Insert this code:

<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed"/>
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
</configuration>

Step 3.  Save the file as Web.Config

Step 4.  Upload the Web.Config file to your host web directory.

I hope this helps people avoid the few hours I was on the phone with GoDaddy technical support.  :)    Please let me know if this helps anyone out.

TYPO3: TYPO3 vs. Joomla – The definite answer

2010年1月24日 220 views 没有评论

原文地址:http://www.essentialdots.com/int_en/blog/typo3_typo3_vs_joomla_the_definite_answer/index.html

A lot of clients have asked us why is TYPO3 better than Joomla, as these two both aim for the title of the best PHP open-source CMS. If you try to "google" the answer you can mostly find just Joomla developers writing that TYPO3 is indeed more advanced but way more complex to set up – but without detailed comparison.

As we don’t offer any services on Joomla, I have invested some time in researching the differences between these two. For this article I have used information provided on the CMS Matrix web site as well as the list of Joomla flaws stated in the book Professional Joomla! by Dan Rahmel.

Document version control

Joomla completely lacks document version control. TYPO3 on other hand has great version control – you can control absolutely every record and content element in the page tree – you can undo changes, browse history etc. When creating custom record type, adding version control features is as easy as clicking on the "Enable versioning" check box in the Kickstarter.

Workflow feature

Joomla completely lacks workflow as well. For example, if you have many editors who write articles, it won’t be possible to allow chief editor to make decision what will be published and what will be returned for revision.

TYPO3 has great feature called "Task center" where you can define tasks for each user and workflow. For example:

  • a chief editor can create a task for editor to create a news article
  • once editor writes the article it passes it for review
  • once the chief editor reviews the article he can publish the article to the news archive, censor the article or he can return it to the editor for revision.

While the workflow system in TYPO3 certainly needs improvement, what is currently present is a great advantage over Joomla.

Import/Export of the content

Joomla lacks export functionality. In order to transfer content from one website to another you would have to dig into MySQL tables directly and manually copy all the files using FTP.

TYPO3 has built-in import/export functionality. You can export and import content using TYPO3′s native .t3d archives. These archives can contain both records and content elements from the database and files stored on a server’s file system. While this feature can be a little tricky on a complex web sites when you try to use it on just one part of the page tree, it certainly helps a lot in manipulating data and is very easy to use in most of the cases.

阅读全文…

分类: 技术 标签:

vbs批量重命名脚本

2009年12月3日 304 views 没有评论

功能::假设有个文件夹的所有文件名称前面有个AA_开头,这个小脚本的作用就是删除这个AA_。只是简单的小脚本,如果还有多个”_”字符的时候,重复使用有可能会全部都删除了。

使用:dir填写实际文件所在目录;target填写要分割的字符,保存为.VBS文件,双击运行。做好备份,因为是直接修改原始文件!

dir=("C:\Users\海军\Desktop\104CANON")
target=("_")

Set fso = CreateObject("Scripting.FileSystemObject")
set rfd=fso.getfolder(dir)
set fs=rfd.files
for each f in fs

        If InStr(f.name,target) Then
            length=Len(f.name)
            star=InStr(f.name,target)
            newname=Right(f.name,length-star)
            f.name=newname
        End If

Next

分类: 技术 标签: ,

Virtuemart Menu

2009年11月26日 152 views 没有评论

The vmart module just outputs links instead of an unordered list like they should.
You’ll need to edit /templates/jp_techpraise_1.5/css/theme1.css (or the theme you’re using)
and add this

.moduletable-list a{
display:block;
padding:4px 10px;
border-bottom:1px solid #C8CACA;
border-top:1px solid #FDFDFD;
color:#666;
text-decoration:none;
}
.moduletable-list a:hover {
background-color:#F0F0F0;
}

分类: 技术 标签:

一位高人的QTP学习笔记

2009年9月22日 402 views 没有评论

转贴一个高人的QTP笔记供大家学习。
文章比较长,一共三部分:
1、连接数据库查询例子,无参数化
//查询收文操作,通过数据库查询记录数是否正确
//1、输出记录数值,例如78条 2、获取输出的记录数值 3、连接数据库,查询记录数
4、输出记录数值和从数据库中查询记录数值,相比较,相等则成功,不等则失败
Browser(“湛江信息化测试登录”).Page(“湛江东兴石油企业有限公司办公自动化系统”).Frame(“mainFrame”).Output CheckPoint(“78″)
Dim mm
‘mm=DataTable.GlobalSheet.GetParameter(“mainFrameOutput_Text_out”).Value
//注释,获取datatable值与DataTable(“mainFrameOutput_Text_out”, dtGlobalSheet)一致
mm=DataTable(“mainFrameOutput_Text_out”, dtGlobalSheet)
MsgBox mm
Dim res,cmd,sql
Set res=createobject(“adodb.recordset”)
Set cmd=createobject(“adodb.command”)
Cmd.activec
Cmd.CommandType = 1
sql=”select count(*) from oa_receivebumf  where BUMFNAME like ‘%收文测试%’”
‘sql=”select  count(*)  from oa_receivebumf  where BUMFNAME=’”&nn&”‘”
//注释,sql语句,等于时sql语句
// sql=”select  count(*)  from oa_receivebumf  where BUMFNAME like ‘%nn%’” //like时sql语句
Cmd.CommandText = sql
Set res = Cmd.Execute()
//msgbox res(“name”)
MsgBox res(0)
If   Cstr(res(0)) = Cstr(mm)Then
Reporter.ReportEvent micPass, “test”,   “查询成功”
else
Reporter.ReportEvent micfail, “test”,   “查询失败”
End If
Set res = nothing
Set cmd.ActiveConnection = nothing
Set Cmd= nothing 阅读全文…

分类: 技术 标签: ,

How to change the Magento Email Templates

2009年9月2日 240 views 没有评论

You’ll probably know by now that the transactional email templates in Magento are a bit, with respect, “naff”. To edit through the admin will take forever and a day so here’s a couple of useful solutions to help make things easier.

1. Locate the email templates

The Magento email templates are located in (note: “en_US” may change depending on language).

magento\app\locale\en_US\template\email\account_new.html”(24,48):
magento\app\locale\en_US\template\email\admin_password_new.html”(27,73):
magento\app\locale\en_US\template\email\newsletter_subscr_confirm.html”(28,69):
magento\app\locale\en_US\template\email\order_creditmemo.html”(23,63):
magento\app\locale\en_US\template\email\order_creditmemo.html”(75,62):
magento\app\locale\en_US\template\email\order_invoice.html”(23,63):
magento\app\locale\en_US\template\email\order_invoice.html”(75,62):
magento\app\locale\en_US\template\email\order_new.html”(23,63):
magento\app\locale\en_US\template\email\order_new.html”(79,62):
magento\app\locale\en_US\template\email\order_shipment.html”(23,63):
magento\app\locale\en_US\template\email\order_shipment.html”(81,62):
magento\app\locale\en_US\template\email\order_update.html”(26,52):
magento\app\locale\en_US\template\email\password_new.html”(24,41):
magento\app\locale\en_US\template\email\wishlist_share.html”(23,65):

2. Edit your information in

replace alt=”Magento” with alt=”your store name”

replace Magento Demo Store with your store name

replace mailto:magento@varien.com with mailto:email@yourstore.com

replace dummyemail@magentocommerce.com with email@yourstore.com

replace (800) DEMO-STORE with (0800) YOUR STORE NUMBER

replace Monday – Friday, 8am – 5pm PST with your own store opening times and timezone

3. Advanced – Automated Shell Script

Another option would be to create a shell script with all you’re information in which goes through the directories in question and replaces text as we need. Note: You will need your Store View Name and Store Name to match your domain name.

#!/bin/sh
phone=(123)456-7890

find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/alt=”Magento”/alt=”{{var order.getStoreGroupName()}}”/g’ {} \;
find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/Magento Demo Store/{{var order.getStoreGroupName()}} /g’ {} \;
find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/mailto:magento@varien.com/sales@{{var order.getStoreGroupName()}}/g’ {} \;
find app/locale/en_US/template/email/sales -type f -exec sed -i ’s/dummyemail@magentocommerce.com/sales@{{var order.getStoreGroupName()}}/g’ {} \;

find app/locale/en_US/template/email -type f -exec sed -i ’s/alt=”Magento”/alt=”{{var customer.store.name}}”/g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/Magento Demo Store/{{var customer.store.name}} /g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/mailto:magento@varien.com/sales@{{var customer.store.name}}/g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/dummyemail@magentocommerce.com/sales@{{var customer.store.name}}/g’ {} \;

find app/locale/en_US/template/email -type f -exec sed -i “s/(800)DEMO-STORE/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i “s/(800)DEMO-NUMBER/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i “s/(800) DEMO-NUMBER/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i “s/(800) DEMO-STORE/$phone/g” {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/Monday – Friday, 8am – 5pm PST/24×7/g’ {} \;
find app/locale/en_US/template/email -type f -exec sed -i ’s/logo_email.gif/logo.gif/g’ {} \;

MAGENTO Error:: cannot access the connect manager

2009年9月2日 246 views 没有评论

The problem was due to the directory permissions on /downloader (was 775, needed to be 755 and the /downloader/index.php (was 755 needed to be 644).

Also, the magento php.ini changes needed to be added to a custom php.ini in the main directory and /downloader.

分类: 技术 标签: ,

R400换XP 所有驱动程序安装一览表

2009年8月10日 349 views 没有评论

几点提醒:
1. 请您按照驱动排列的顺序依次安装;下载完的驱动程序是一个可执行文件,但是双击后仅是释放文件的过程并未安装,默认释放到C:\DRIVERS\WIN\***目录下,请到文件目录下继续安装。
2. 安装WinXP之前,需要在BIOS中将硬盘改为兼容模式,否则安装时会提示找不到硬盘或蓝屏,修改方法为:开机出现ThinkPad标志时,按F1进入 BIOS—> Config—>Serial ATA (SATA)把AHCI改为Compatibility,然后按F10,选择Y,保存退出。
3. 设备管理中常见的未知设备一般为ACPI电源管理器和TPM安全芯片,如果出现未知设备,请首先尝试安装其驱动。
4. 建议您不要使用GHOST安装系统,因为GHOST安装的系统驱动可能无法正常安装。
5. 如果用GHOST安装系统后“小红帽”不可用,请在设备管理器中删除“鼠标和其它指针设备”下面有感叹号的设备,然后重启系统,小红帽即可使用。

附:详细驱动安装ThinkPad R400驱动程序安装一览表 FOR WINXP CN
1、Intel主板驱动程序(设备管理器中显示为:SM总线控制器):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1221303651950&docTypeID=DOC_TYPE_DRIVER
oss803ww
默认解压路径:C:\DRIVERS\WIN\INTELINF\INFINST_AUTOL.EXE

2、ATI显卡驱动程序(设备管理器中显示为:视频控制器):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1221465455921&docTypeID=DOC_TYPE_DRIVER
7yd119ww
默认解压路径:C:\DRIVERS\WIN\DISPLAY\SETUP.EXE

3、以太网卡驱动程序(设备管理器中显示为:以太网控制器):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1221114426897&docTypeID=DOC_TYPE_DRIVER
7vra19ww
默认解压路径 C:\DRIVERS\WIN\ETHERNET\APPS\SETUP\SETUPBD\Win32\SetupBD.exe

4、Intel (11abgn, abg, bg)无线网卡驱动:(设备管理器中显示为:网络控制器)
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1221197254747&docTypeID=DOC_TYPE_DRIVER
7vwc23ww
默认释放路径C:\DRIVERS\WIN\WLANINT\Autorun.EXE

5、声卡KB888111补丁(设备管理器中显示为:其他设备:PCI-DEVICE)(必须先安装此补丁,否则无法安装声卡和MODEM驱动程序)
http://think.lenovo.com.cn/support/knowledge/detail.aspx?docID=26015&docTypeID=DOC_TYPE_KNOWLEDGE
默认释放路径:点击页面最下方附件文档下载,下载后是一个ZIP文件,先解压再安装即可。注意:
只有先安装KB888111补丁,才能安装声卡和调制解调器驱动。
如果提示系统已经包含该补丁,则不需要安装。

6、声卡(设备管理器中显示为:High Definition Audio总线上的音频设备):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1218539166732&docTypeID=DOC_TYPE_DRIVER
7wa107ww
默认释放路径C:\DRIVERS\WIN\AUDIO\SETUP.EXE

7、调制解调器(设备管理器中显示为:High Definition Audio总线上的调制解调器设备):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1218539706513&docTypeID=DOC_TYPE_DRIVER
7vma07ww
默认释放路径C:\DRIVERS\ModemOM\SETUP.EXE

8、ACPI电源管理器驱动(设备管理器中显示为:未知设备):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1197863947328&docTypeID=DOC_TYPE_DRIVER
7zku03ww
默认释放路径C:\DRIVERS\WIN\IBMPM\SETUP.EXE

9、TPM安全芯片(设备管理器中显示为:未知设备):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1218598176029&docTypeID=DOC_TYPE_DRIVER
7vza11ww
默认释放路径C:\Drivers\Win\TPM\Setup.exe(仅支持Windows XP SP2) ,如果出现安装提示失败,则用设备管理器手动将“未知设备”的驱动指向到C:\Drivers\Win\TPM\TPM\
10、SATA驱动(设备管理器里IDE ATA控制器下的PCI DEVICE)
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1197539101703&docTypeID=DOC_TYPE_DRIVER
7zim53ww
默认释放路径C:\DRIVERS\WIN\IMSM,先打开C:\DRIVERS\WIN\IMSM\PREPARE目录双击install.cmd,然后重启计算机并按F1进入BIOS在Config—>Select Serial ATA (SATA)中把选项改为AHCI,按F10保存退出,进入系统后在设备管理器中IDE ATA控制器下面的PCI DEVICE上点右键选择更新驱动程序,选择指定位置安装,并指定到C:\DRIVERS\WIN\IMSM目录搜索安装即可。
11、安装 THINKPAD SYSTEM UPDATE软件
http://think.lenovo.com.cn/support/tvt/detail.aspx?docID=TV1197274779375&docTypeID=DOC_TYPE_TVT
THINKPAD SYSTEM UPDATE.exe 装完不必运行
12、热键管理软件(HOTKEY):
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1216893127788&docTypeID=DOC_TYPE_DRIVER
7vvu54ww
默认释放路径C:\DRIVERS\WIN\HOTKEY\SETUP.EXE
13、蓝牙
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1216695410663&docTypeID=DOC_TYPE_DRIVER
7vbm02ww
默认释放路径C:\DRIVERS\MSBTooth,2.使用 Fn+F5 打开蓝牙设备。
4.如果提示发现新硬件,点击继续进行安装.
5.将驱动位置指向您驱动解压以后的位置. 6.点击确定.7.按照屏幕提示进行安装.
14、电源管理软件(Power Manager)
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1197863356578&docTypeID=DOC_TYPE_DRIVER
7vu724ww
默认释放路径C:\DRIVERS\W2K\PWRMGR\SETUP.EXE
15、 AMT(设备管理器中的PCI 简易通讯设备)
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1221797559707&docTypeID=DOC_TYPE_DRIVER
7vr109ww
2.双击您下载的驱动程序,驱动会解压缩到硬盘C:\DRIVERS\WIN\AMT.
3.点击开始,选择运行.
4.输入  C:\DRIVERS\WIN\AMT\MEI\SETUP.EXE  点击确定.
5.按照屏幕提示进行安装. 6.安装完成,重新启动计算机.
16、4in1 读卡器(设备管理器中的三个基本系统设备)
http://think.lenovo.com.cn/support/driver/detail.aspx?docID=DR1197358554312&docTypeID=DOC_TYPE_DRIVER
7kss55ww
运行 C:\DRIVERS\WIN\4IN1\SETUP.EXE

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/jeefchen/archive/2009/03/11/3980197.aspx

分类: 技术 标签: