Webmaster Share: Phpwind Real Estate module methods for adding custom fields

Source: Internet
Author: User
Keywords Phpwind

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

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.