把光学软件啊什么的地址全都删掉了~ sorry~

腾讯微博 twitter 你好,欢迎光临! 

Category Archives: web

Joomla!自定义404错误页面

2013.03.19 , , Joomla!自定义404错误页面已关闭评论 , 2,660 views

Joomla 404

A创建一个未分类文章:

创建一篇不属于任何分类的文章命名为:“404”。然后编辑内容,比如:“对不起,你要访问的页面已被删除”之类的文字,或者指向首页的链接。Joomla 404

404_Uncategorized

B创建Joomla 404页面链接:

创建一个新的菜单项,链接到这个“404”文章,将这个菜单项设为“未发布”。

404_link

C复制error.php模板:

将 your_site_root/templates/system下的error.php到你的模板目录: your_site_root/templates/your_templates下。

D修改error.php文件重定向404错误页面到404文章:

remove "back to top" link in K2 articles

2013.03.19 , , remove "back to top" link in K2 articles已关闭评论 , 3,164 views

I got "back to top" link under each item.

1.

I was able to do this by making a copy of the default folder under /components/com_k2/templates
I called the copy "custom"

Then open the k2.php file in an editor and go to the bottom of the file.
The Back to Top link starts at the line < div > I deleted the entire div block to remove the link.
The final step is to edit the K2 menu item (if you have one with multiple categories) or the categories that you want this removed and change the template from default to custom.

2.

It can also use CSS to hide the DIV-block, with     /components/com_k2/css/k2.css    .itemBackToTop{ display:none }

Remove or Change "Featured" image on K2 articles

2013.03.19 , , 3 Comments , 2,392 views

joomla的一些资料,用来删除k2精选文章旁边红色的小图片,就是那个featured的那个,一开始在后台找了半天没找到关闭选项,倒是有文章标题后面的featured小字的关闭项,图片那个只能修改css了,其实就是css修改一项。做个记录。k2确实是蛮不错的文章管理系统。

On the following link of my site, I have a featured news item using the K2 component. Since my site is in Spanish, I would like to remove or change the small image with the red band that says "Featured".

Just for your information, I was playing with this myself last week and selecting the hide featured notice next to title turns off the "Featured" text to the right of the title but then activates the "featured" icon in the upper right corner of the article. So by default either you show the "Featured" text or the "Featured" icon.

There are three ways I can think of to not show the icon,

1      as mentioned above is to  make the icon a transparent PNG,

2     and probably the most efficient is to go to the K2 CSS around line 127 look for this code " background: url("../images/system/featuredItem.png") no-repeat 100% 0; " and change it to this "  background: none; " or

3    you could go to the template and completly remove the code for the featured icon but only if you know what you are doing. I would recommend the 2nd choice. Hope this helps.