Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest stationmaster buy cloud host technology Hall
Phpwind and Discuz Two community systems are more and more people use, the diversification of the module is more and more rich, do the local community webmaster, generally have property this column, but the two procedures of the real estate module gap is not too small, personal feeling or Phpwind real estate module better use some, But the chicken is not the function of adding custom fields, such as our villa is in accordance with the complete set of sales, and the real estate module in the property information management, only "reference average price yuan/square", so how to do?
I'm here to share with you webmaster Phpwind add a new field method to add the owner "QQ Group" field for example
1, use phpMyAdmin to open the database
Locate the table "Pw_house_info", select the structure, and then add a new field
Field name write Qqun, type int length not filled, then click "Save"
So the new fields in the database are added.
2, open the Phpwind folder
Open: \mode\house\template\admin\info.htm
Find 468 lines, here's the number of lines casually, I just think it's better
Add the following code below (the submission code is formatted and has to be screenshots):
Open: \mode\house\admin\info.php
Note that single quotes also need to be written.
Line 152th Add the following code
' Qqun ',//two development add fields
Line No. 200 Add
' Qqun ' => $qqun,//two development add fields
Line No. 302 Add
' Qqun ',//two development add fields
Line No. 351 Add
' Qqun ' => $qqun,//two development add fields
OK, so a new field to add completed, quickly go backstage to add QQ group number bar.
Finally, the front desk display QQ Group number
Open mode\house\template\info.htm
To glue code into:
To add a paragraph somewhere else, the steps are the same, just to find different file modifications.
Here's the file description for the Phpwind real estate module.
Info.html Details page
Album.html Real Estate Photo album
Feed.html Property News
pricedetail.html Price Details
evaluations.html Property Reviews
video.html Video
In addition, to share with you, add a new template method
Like I add a new page "real Estate Google Map"
Open \mode\house\admin\info.php 24 Line add below
' Ggmap ',//two new template development
Add a template to the folder \mode\house\template\ggmap.htm, the template is added well
Article by Xuzhou Children's Education Network www.051661.com original, reprinted when Trouble turn a chain, thank you, stationmaster are not easy, development all rely on their own