Two methods for Phpcms V9 to call the column sub-column
Two methods for Phpcms V9 to call the column sub-column
The first, directly write the sub-column ID, with Cat in{pc:get? sql= "SELECT * from V9_news where status=99? and catid in (21,22,23,24,25)? ORDER by ID DESC "num=" 7 "return=" Data "}{Loop $data $r}? ?? ?
URL]} "title=" {$r [title]} "target=" _blank ">{str_cut ($r [' title '],40)} ({date (' m-
Article List page does not appear the article that passes
The code is as follows
Copy Code
Content action= "lists" catid= "$catid" num= "7" order= "Listorder DESC" thumb= "1" moreinfo= "1"}
The default background code thumb= "1″, but when there is no thumbnail, if the list is added to the picture loop, the contents are not recycled, so you should change to thumb=" $thumb.
The code is as follows
Copy Code
{PHP list ($copyfrom) =
Today, when I used phpcms V9 to add a new module, I found a strange problem: in the same module operation, sessions between methods (pages) do not work, that is, the $ _ Session array cannot be passed. I thought it was because the server didn't enable the session function. I tried it for various reasons, but I still couldn't. I finally found out why it was the system itself. When I created an operation class, I introduced a system file on the top, for
How do I make SEO settings for the title of Phpcms V9?
Before my friend asked me that CMS good, I introduced the Phpcms v9, really simple and powerful, station station are very easy!
Recently, a friend asked a question, said the title of the homepage can be controlled, but the column page, the title of the content page is very long, the user experience is not good, and then studied a bit, in fact, really s
Phpcms V9 file directory structure:root directory| –api Interface File directory| –caches Cache file Directory| –configs System Configuration file directory| –caches_* System Cache Directory| –PHPCMS PHPCMS Framework Home Directory| –languages Framework Language Pack Directory| –libs Framework main class library, main function library directory| –model Framework Database Model Catalog| –modules Framework Module Catalog| –templates Framework System Tem
Simply modify the V9 default search function, you can not search by model for the entire site contentThe following is the index.php file in the modified search module Then add an "unlimited" search condition on the header.html template, the value of typeid corresponds to 0, Search in the index.html and lists.html also do the same, the effect such as this site, so long as the model is not selected so that the results are all the data in the model matc
PHPCMS v9 article content page Call the previous next article method is as follows, the Magic Bar (www.moke8.com) prompts you directly to extract the following code in the Red section can be:Previous article: {$previous _page[url]}"title=" www.moke8.com ">{$previous _page[title]}Next article: {$next _page[url]}"title=" www.moke8.com ">{$next _page[title]}Analytical:{$previous _page[url]} previous post link{$previous _page[title]} previous post title{$
Phpcms v9 pseudo static rule win under IIS
Create a new Notepad file and change the file name to: Httpd.ini. Then paste the following code in.
The code is as follows
Copy Code
[Isapi_rewrite]# 3600 = 1 hourCacheclockrate 3600Repeatlimit 32Rewriteengine onRewriterule ^ (. *) content-([0-9]+)-([0-9]+)-([0-9]+). html$ $1/index.php?m=contentc=indexa=show Catid=$2id=$3page=$4Rewriterule ^ (. *) show-([0-9]+)-([0-9]+)-([0-9]+).
title length of not more than 25 Chinese characters, display the update date, the return variable is $v):
"SELECT * from Phpcms_content where catid=1 and status=99 order by updatetime Desc" rows="ten" return="V"}
' y-m-d ', $v [UpdateTime])}
{/get}
5. Call other databases under the same account(Call database for BBS, category ID 1 of the 10 latest theme, the theme length of not more than 25 kanji, display the update date):
"BBS" sql="select * f
The website will be migrated to the server when it is done locally, and the website is likely to modify the domain name many times during the development process. So how are we going to set it up in Phpcms V9?Please make changes to the following steps:1. Modify the/caches/configs/system.php inside all and the domain name, the former old domain name is modified as a new domain name can be.2. Background Settings-"Site management to modify the domain nam
PHPCSM Content Management System overall experience in all aspects of whether it is very good! But the discovery has since been officially given a grand takeover. Find the official pace is not keeping up with the needs of users. In the old version of PHPcms2008, there is a feature of keyword bulk substitution. But did not give the new Phpcms V9 plus batch replacement keyword small function. The new one also put their own every time the batch of SQL st
The latest release of Phpcms V9 because of the MVC design pattern, so its background access address is fixed, although you can modify the routing configuration file to implement the modification, but each time the routing configuration file is a bit of a problem for me, and accidentally error. Here to use another one once and for all, to facilitate the modification of access to the background entrance, the whole modification is divided into two steps:
During the development of the website, it is possible to modify the domain name many times. So how do we set it up in the Phpcms V9?
Please make the following steps to modify:
Modify/caches/configs/system.php inside all and domain name, the former old domain name modified to the new domain name on it.
Background Settings-site management to modify the corresponding site's domain name.
Update the system cache. Click the "Update Cache" butt
I wonder if you have the same experience? When using Phpcms V9 to build a station call data, the underlying data with the default template of the invocation of the statement is good, but how to call complex and uncommon data? Our technology may be studied for half a day, with the spirit of exploration constantly trying and tireless. Here, Cmsyou will be in the process of actually customizing the template to the customer encountered and discussed some
Recommended members for phpcms v9 and phpcmsv9
Template display recommendation Member Code
{Pc: get SQL = "SELECT. userid,. nickname, B. photo, B. description FROM mobao_member AS a, mobao_form_jianjie AS B WHEREa. groupid = 5 AND. userid = B. userid "}{Loop $ data $ v}"Title =" {$ v ['nickname']} "alt =" {$ v ['nickname']} "> {Str_cut ($ v ['description'], 54 )}{/Loop}{/Pc}
In PHPCMS v9, how is the value
Phpcms (1) phpcms V9 MVC mode with URL Access resolution (RPM), PHPCMSMVC
"1" URL Access resolution
Observe the URL of the Web page, you can get the module access method, the following example:
Http://www.abcd.com.cn/phpcms/index.php?m=contentc=indexa=showid=1
The resolution for this URL is as follows:
m = content for module/model name in Phpcms/modules/content ( required )
c = Index is the controller name in phpcms/modules/content/index.php ( r
phpcms v9 poster_click function Injection Vulnerability (both GBK and UTF8 exist) (fixed)
2012-12-21 0 Comments
collection I want to submit
a
post
First, the loophole principle:
The vulnerability exists in the poster module
It can be seen that we control http_referer and are not controlled by MAGIC_QUOTES_GPC (). So it is possible to inject SQL statements successfully, resul
The website will be migrated to the server when it is done locally, and the website is likely to modify the domain name many times during the development process. So how are we going to set it up in Phpcms V9?Please modify the following steps: Phpcms V9 website upload to the server the following methods:1. Modify the/caches/configs/system.php inside all and the domain name, the former old domain name is mod
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.