About how to set listorder in the option sorting of the phpcms v9 voting module, the younger brother changed three files in three places.
I think this method is enough. You are welcome to make a brick.
Modify three files:
1. Found in phpcms \ modules \ vote \ templates \ vote_edit.tpl.php
[Html]
[Html]Sort:
Sort:
2. Found in phpcms \ modules \ vote. php
[Html]$ This-> db2-> update_options ($ _ POST ['option']);
$ This-> db2-> update_options ($ _ PO
The first of these solutions:The first step: Extract the Yp_utf8 compressed files: API, Caches, PHPCMS, statics four folders.Step two: Overwrite the folders in the root directory of the installed PHPCMS system with these four folders respectively. This step directly copy the folder overlay on the line, do not go to separate copies of the files under these four folders. I just started by copying files separately to overwrite them, and the results are always blank. Remember to overwrite the folder
First, site title to the site namephpcms\libs\functions\global.func.phpfunction SEO functions, about 1468 lines, so you can directly call {$SEO [' name ']} in the template to display the site name$seo [' name '] = $site [' name '];Second, search not by category, directly search out all the information containing the keywordOpen phpcms\modules\search\index.php Findif (!empty ($segment _q)) {$sql = "' SiteID ' = ' $siteid ' and ' typeid ' = ' $typeid ' $sql _time and MATCH (' data ') against (' $s
Phpcms in the background to add the external links are open on this page, phpcms background also has a direct external link to open a new window function, Next I will tell you, in the code add a judgment to complete.If your external link is a sub-column displayed in the list, then find the content of the list.html, if it is displayed on a single page to find page.html, if the navigation is to find heard.html. Locate the attached a tag, and then on the a label, a judge:Because of the external lin
The resources are as follows:V9_FORM_TLJ for your form data table, ' Flqh ', ' title ', ' SJ ', ' username ', ' datetime ' for the fields within your form, page= "$_get" for the pagination code, the specific calling code is as follows:Divclass= "box"> h5>Registration informationh5>{pc:get sql= "select ' Flqh ', ' title ', ' SJ ', ' username ', ' datetime ' from ' V9_form_tlj ' ORDER by ' datetime ' DESC ' num= ' 1 0 "page=" $_get "}Tablewidth= "100%"cellspacing= "1"class= "Table-my"> t
Transferred from: http://blog.csdn.net/cloudday/article/details/7343448Call the end of the header {Template "content", "header"}, {Template "content", "Footer"}{siteurl ($siteid)} Home link address Current position----------------{Catpos ($catid)}Column name----------------{$CAT [catname]}column Pinyin----------------{$CAT [letter]}Column link----------------{$CAT [url]}Parent column name--------------{$CATEGORYS [$CAT [Parentid]][catname]}Parent column Link--------------{$CATEGORYS [$CAT [Paren
The role of the individual files under the "PHPCMS-V9" cache directory Caches
Original address: http://blog.csdn.net/yanhui_wei/article/details/7912957
First: Cache files in the Caches/caches_commons directory:
[HTML] View plaincopy
1.caches/caches_commons/caches_data/category_content.cache.php:
Site ID for all columns
2.caches/caches_commons/caches_data/category_content_1.cache.php:
Detailed configuration information for all columns under the c
Phpcms V9 Close foreground and background login verification code method
Front Desk Close Verification code
?
Remove the following code
?
\phpcms\modules\member\index.php?? Find the following 4 lines of code in the "//Judging Code":Judging the Verification code??? $code = isset ($_post[' code ') trim ($_post[' code ')? Trim ($_post[' code '): ShowMessage (L (' Input_code '), http_referer);??? if ($_session[' code ']! = Strtolower ($code)) {????
Phped V9 Professional Edition about breaking outdated solutions
Recently, the phped on his machine suddenly went wrong, after a long time after the start, there appeared "you could be a victim of software counterfeiting" error tip:
?, after a multi-party search, finally solved the problem.
The solution is very simple, in the user directory, find appdata\roaming\nusphere\phped\config\layout.cfg, such as my Win7 administrator user, is it? C:\Users\A
Problem Description: After the website is written on Windows, everything is OK, when the program is uploaded to the server, there is no template to find the problem.A layer-by-layer lookup found that an exception occurred in the phpcms/lib/classes/template_cache.class.php function Template_compile.I like the following template file: phpcms/templates/default/member/sy/index.html, but after the template parsing function Template_compile processing ran to phpcms/plugin/directory down to find templa
After switching to the Ueditor editor using V9, the image upload path shows a relative path, which synchronizes the path of the first picture of the content field to the Thumb field of the thumbnail. If the Thumb field is a relative path, the front end cannot be clipped, and the app or other app cannot be called.Then modify.I'm using 1.4.3 versionLocate the/php/uploader.class.php file under the editor directory.Find the GetFileInfo () method and modif
1. Open the Group field for the model you want to use, and add a group field prompt to1 Divclass= "Content_attr"> 2 label>inputtype= ' checkbox 'name= ' AUTO_THUMBP 'value= "1"checked>Whether to get contentlabel>inputtype= "text"name= "Auto_thumb_nop"value= "1"size= "2"class="">Photo as Title picture3 Div> 2. Open phpcms\model\content_model.class.php to find the following:1 //Auto-extract thumbnail image2 if(isset($_post[' Auto_thumb ']) $systeminfo[' thumb '] = = ' isset($modelinfo[' Content ']
The first step: Add a Watermark box to the Picture Upload dialog box to find:Satics/js/ckeditor/ckeditor.js line 17,554th (need to format, I use NetBeans) to change tofunction D () {W.$.open ();if (B.iscustomdomain ()) W.$.domain=document.domain;var e= ';if (x.size) e=x.size-(c?7:0);var f=u.frameid+ ' _input ';W.$.write ([' ' ' W.$.close ();for (Var g=0; g};Added a red sectionStep Two: Modify phpcms/libs/classes/image.class.php line 16thfunction __construct ($thumb _enable = 0, $water _enable =
Phpcms V9 Self-brought related articles, topics and other modules do not support order ordering, the related articles called, the topic default to ascending, which caused a problem, the related article is the earliest article, no timeliness. We can only modify the program files, simply modify a file, we can meet our needs. To modify related article sorting methods: Open the root directory of the phpcms/modules/content/classes/content_tag.class.php,
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.