HotNews pro2.4 contact form template

HotNews Topic one hundred and thirty-five 15.6K Reading mode
abstract The contact form template is integrated, which can directly send e-mail to the blogger on the blog page for e-mail contact without logging in to the mailbox, which is convenient and fast. Usage: 1. Upload and download template files; 2. Load the necessary JS file; 3. New

The contact form template is integrated, which can directly send e-mail to the blogger on the blog page for e-mail contact without logging in to the mailbox, which is convenient and fast.

How to use the contact form template patch:

1. Decompress the downloaded compressed package, and respectively:

contact.php Upload to the theme root directory

form.php Upload to the theme includes directory( Note: Before uploading, you need to open the template file and change the email address in the first line to your own

muscript.js Upload to the theme js directory

2. Open header.php to add:

  1. <script type= "text/javascript" src= "<?php bloginfo('template_directory');  ?>/ js/muscript.js" ></script>

3. Create a new page with any name, such as contact me, template attribute in the lower right → template → select "contact information" template, and publish it.

4. You can add the new contact form page to the navigation menu through the WP menu function, and try sending an email.

 

In addition, there is a simpler contact form template with only one file. The production method is referred to the following tutorial:

How to create a built-in contact form for your WordPress theme

Translation of this tutorial:

Teach you how to create a built-in contact form for a WordPress theme

This simple contact form template has a single function. Although the function is good after adding the form jQuery verification plug-in, the loaded js file is large, and the gain is not worth the loss. Choose your own.

How to use it: directly upload the contact. php template file to the theme root directory. For other information, refer to step 3 above.

Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments one hundred and thirty-five    Visitors one hundred and eight    Author twenty-seven
    •  Floating without trace
      Floating without trace five

      The legendary sofa?

      •  Fall in love with an apple
        Fall in love with an apple two

        Brother Bird, there seems to be a problem with the template download address

        •  Kael.Z
          Kael.Z seven

          Get a seat quickly! Brother Bird has finally updated~!

          •  Kael.Z
            Kael.Z seven

            Brother Bird, your template is not successful. There is an error in the web page and you cannot send it. The second template can succeed~

            •  Morninglight Blog
              Morninglight Blog five

              Let me try

              •  Empty trouser pocket
                Empty trouser pocket three

                The sharing villain on the left is very beautiful

                •  cgrabbit
                  cgrabbit four

                  Well, I think it's very useful. Let's do something right away. Ha ha

                  •  Spiritmoon
                    Spiritmoon three

                    How is the sharing villain on the left of the blogger's blog page realized? Can we share it?

                    •  - Black, small and bright
                      - Black, small and bright four

                      I found that your current topic has a small bug, I don't know whether it is intentional. When leaving a message, the mouse is placed at the position to scroll the announcement. The picture of the message with no head will disappear as a whole. It's better to move the mouse away!

                      •  Second Age
                        Second Age two

                        Say what you want!

                        •  Charm · Yunnan
                          Charm · Yunnan four

                          Brother Bird, it's up to you

                          •  Charm · Yunnan
                            Charm · Yunnan four

                            Brother Bird, this grey machine appears:
                            : mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in D:wwwYNMORECOMwebwp-contentthemesHotNewspro24includesform.php on line 9

                            •  Taolehui
                              Taolehui zero

                              I'll stand in for one too!

                              •  The moon climbs the stairs
                                The moon climbs the stairs six

                                Brother Bird, why doesn't my show the "Submit" button below! Help me see! My new website and old website are not displayed correctly!
                                www.52digital.com
                                www.ymanz.com

                                •  Niche media
                                  Niche media five

                                  Brother Bird children's shoes, because of the need of work, can you change my friendship link to "Zhengzhou Design Company". Sorry for the trouble I caused you.

                                  •  Hu Shezhong
                                    Hu Shezhong six

                                    : mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in D:p8_serverwwwwordpress3.1wp-contentthemesHotNewspro24includesform.php on line 9
                                    OK hu, Your message has been sent.

                                    •  Mr. Bean
                                      Mr. Bean six

                                      Please ask Brother Bird, my site can't support background wallpaper under IE, can you help me?

                                      •  Niche media
                                        Niche media five

                                        Well, thank you very much.

                                        •  A Xing
                                          A Xing five

                                          [img] http://photo.staticsdo.com/a1/398/330/245/35780-1503151313-8_765.jpg [/img]
                                          I have this problem?

                                            •  Robin
                                              Robin

                                              @ A Xing Follow the instructions
                                              If you have modified the theme, please restore it and use it again

                                                •  A Xing
                                                  A Xing five

                                                  @ Robin I have modified the file according to the new page template you added in 2.4, and the rest have not been moved.

                                                •  Kael.Z
                                                  Kael.Z seven

                                                  @ A Xing I have encountered the same problem with you. You have modified the header-h.php file, right!

                                                    •  A Xing
                                                      A Xing five

                                                      @ Kael.Z There is no problem you said
                                                      Hey, forget it. I don't think I need to install templates!

                                                        •  Kael.Z
                                                          Kael.Z seven

                                                          @ A Xing It turns out that everyone is struggling~hehe~

                                                    •  Fuju
                                                      Fuju five

                                                      Very good, practical ah..

                                                      •  Beijing Tourism
                                                        Beijing Tourism three

                                                        Thanks for sharing, Brother Bird!

                                                        •  Old Shark
                                                          Old Shark two

                                                          Brother Bird, I would like to ask how the font "small, medium and large" in the text is realized? I only have "the previous article, the next article"
                                                          Thanks

                                                            •  Robin
                                                              Robin

                                                              @ Old Shark It's a bit troublesome to be like me. We need to change the structure and style
                                                              These functions will be available when the theme is upgraded

                                                                •  Old Shark
                                                                  Old Shark two

                                                                  @ Robin I expect you to upgrade the theme.. Thank you, Brother Bird!

                                                                  •  Kael.Z
                                                                    Kael.Z seven

                                                                    @ Robin Brother Bird, hurry up. Look forward to your great work!

                                                                  •  perfection
                                                                    perfection two

                                                                    @ Old Shark Thank you very much.

                                                                  •  Beijing Tourism
                                                                    Beijing Tourism three

                                                                    It's over, Brother Bird is selfless!

                                                                    •  Jade Manzhai
                                                                      Jade Manzhai two

                                                                      Brother Bird, please help me to see how my website can't post comments. You can use your mobile phone to browse. If you install MobilePress, you can normally post comments, but not on the PC side. Once you publish, a blank page appears. The administrator can reply in the background, and the foreground can't post comments either!
                                                                      www.ymanz.com

                                                                      Thank you!

                                                                        •  Robin
                                                                          Robin

                                                                          @ Jade Manzhai It seems that the theme conflicts with other plug-in JS you added

                                                                            •  Jade Manzhai
                                                                              Jade Manzhai two

                                                                              @ Robin The plug-in used by my other website is the same. There should be no conflict. Everything is normal on the other website!

                                                                          •  Jade Manzhai
                                                                            Jade Manzhai two

                                                                            The comment used by the topic should be jQuery. My other topics don't seem to call this!

                                                                            •  Laibu Taotao.com
                                                                              Laibu Taotao.com one

                                                                              Thank you so much

                                                                              •  Jade Manzhai
                                                                                Jade Manzhai two

                                                                                Start Of Script Generated By WP-PostViews 1.60

                                                                                Is it!

                                                                                  •  Robin
                                                                                    Robin

                                                                                    @ Jade Manzhai It's a revised version of yours. You have installed a static plug-in

                                                                                      •  Jade Manzhai
                                                                                        Jade Manzhai two

                                                                                        @ Robin No, it was installed online in the background! There is no static plug-in installed!

                                                                                    •  Jade Manzhai
                                                                                      Jade Manzhai two

                                                                                      Does jQuery need to be called once? It seems to me that it has been called many times!

                                                                                      •  Jade Manzhai
                                                                                        Jade Manzhai two

                                                                                        It's not a problem with plug-ins. I disabled all plug-ins, but it still doesn't work! Alas!

                                                                                        •  Zhengzhou Gaobang Design
                                                                                          Zhengzhou Gaobang Design five

                                                                                          Brother Bird, let me ask you another question. If you want to put the theme navigation bar under the logo, where can I adjust the code?

                                                                                          •  Jin Qiang
                                                                                            Jin Qiang three

                                                                                            Brother Bird, when will the theme of your compact version be released... I'm looking forward to it

                                                                                            •  Crooked apple
                                                                                              Crooked apple four

                                                                                              Brother Bird, this contact template page will be very blank in some small toolbars on the sidebar under Firefox 4!?
                                                                                              http://www.iabc.cc/about/contact-me )、
                                                                                              But it is completely normal under IE8. What is the problem?

                                                                                              •  Dumb
                                                                                                Dumb four

                                                                                                Serious dislocation after installation Brother Bird, please have a look. http://www.sxzly.net/contact ,

                                                                                                  •  Robin
                                                                                                    Robin

                                                                                                    @ Dumb Didn't see it

                                                                                                      •  Dumb
                                                                                                        Dumb four

                                                                                                        @ Robin I opened header.php and added:

                                                                                                        1.<script type="text/javascript" src="/js/muscript.js”>
                                                                                                        After the above sentence is deleted, it is normal. Now in addition, Brother Bird is free to have a look.

                                                                                                          •  Dumb
                                                                                                            Dumb four

                                                                                                            @ Dumb After testing, it is normal under FF4. Serious dislocation under IE9.

                                                                                                              •  Robin
                                                                                                                Robin

                                                                                                                @ Dumb Close all plug-ins
                                                                                                                Restore all your changes to the theme
                                                                                                                It's normal

                                                                                                                  •  Dumb
                                                                                                                    Dumb four

                                                                                                                    @ Robin Close all plug-ins.
                                                                                                                    What does it mean to restore all your changes to the theme?

                                                                                                                    In addition, how to publish the content of an article, such as writing an article about, as a page. Or it is a normal article in the article list, but the link is the page address after opening, such as http://zmingcx.com/about

                                                                                                          •  Feather flying
                                                                                                            Feather flying five

                                                                                                            This requires the server to run the SMTP service to send mail!

                                                                                                            •  Gas bus
                                                                                                              Gas bus one

                                                                                                              It's really good. Hurry up to use it on my other stations that use this theme

                                                                                                                •  perfection
                                                                                                                  perfection two

                                                                                                                  @ Gas bus Right

                                                                                                                •  Xiamen seo
                                                                                                                  Xiamen seo three

                                                                                                                  Implemented according to the method The result is that there is no response when you click Send Email

                                                                                                                  •  dolkun731
                                                                                                                    dolkun731 two

                                                                                                                    Yo, you are so awesome.

                                                                                                                    •  Okdyd movie download station
                                                                                                                      Okdyd movie download station two

                                                                                                                      Test succeeded!

                                                                                                                      •  Asteroid
                                                                                                                        Asteroid two

                                                                                                                        Brother Bird, I downloaded your theme. How do you realize the function that the image starts to load when the page is pulled down? What code is written in your template file? I want to see and learn!

                                                                                                                        •  Fuju
                                                                                                                          Fuju five

                                                                                                                          Brother Bird, I added your link to my website. Please help me link it
                                                                                                                          Www.fuozu.com Fuju Venture Capital Blog, thank you very much.

                                                                                                                          •  Embarrassment
                                                                                                                            Embarrassment one

                                                                                                                            Technical stickers wow

                                                                                                                            •  aLan
                                                                                                                              aLan zero

                                                                                                                              We are looking forward to the hotnews video theme. We have all the video themes we should have. We are short of a video category. Let's work hard to get another one. We are looking forward to it!

                                                                                                                              •  Charm · Yunnan
                                                                                                                                Charm · Yunnan four

                                                                                                                                I haven't succeeded all the time

                                                                                                                                •  Hutong
                                                                                                                                  Hutong two

                                                                                                                                  Big bird, I have tried many times. How come all Chinese messages are garbled?

                                                                                                                                    •  Antidote
                                                                                                                                      Antidote one

                                                                                                                                      @ Hutong Please convert utf8

                                                                                                                                        •  Monkey Brother
                                                                                                                                          Monkey Brother one

                                                                                                                                          @ Antidote I also encountered the same problem. How to convert it. thank you!

                                                                                                                                            •  Antidote
                                                                                                                                              Antidote one

                                                                                                                                              @ Monkey Brother AD. The software I collected is relatively simple
                                                                                                                                              http://www.zhaoyufeng.com/blog/155.html

                                                                                                                                        •  Dumb
                                                                                                                                          Dumb four

                                                                                                                                          It seems that this contact form template needs to call the email settings, but my one cannot be used. In addition, clicking the linked Self Service Link Interface does not reflect this. Self service links are useless.

                                                                                                                                            •  Robin
                                                                                                                                              Robin

                                                                                                                                              @ Dumb Sweat
                                                                                                                                              You remove the modified wp postviews plug-in and cache plug-in
                                                                                                                                              It seems that I have said before that I want you to disable all plug-ins
                                                                                                                                              They load the jquery.js file of multiple works, which is incompatible with the theme

                                                                                                                                            •  Jianghu Blog
                                                                                                                                              Jianghu Blog one

                                                                                                                                              Suddenly, I found that Brother Bird's blog suddenly added many thoughtful small functions, such as the subscription icon on the bulletin, and the villain sharing button on the left side of the page. It's really good

                                                                                                                                              •  Close the door and release the dog
                                                                                                                                                Close the door and release the dog one

                                                                                                                                                How does the scrolling column of related articles in the side bar of Brother Bird theme work?
                                                                                                                                                Please ask me.

                                                                                                                                                •  Dumb
                                                                                                                                                  Dumb four

                                                                                                                                                  Depressed. HotNews pro2.4 is too powerful. It is love and plug-in for everyone. My message book is out of sight. According to Brother Bird's request, the statistics and cache plug-ins have been closed, and the original skin can't be uploaded newly.

                                                                                                                                                    •  Robin
                                                                                                                                                      Robin

                                                                                                                                                      @ Dumb You didn't load the muscript.js file

                                                                                                                                                        •  Dumb
                                                                                                                                                          Dumb four

                                                                                                                                                          @ Robin The loading of javascript. js conflicts with the link and submission.

                                                                                                                                                      •  Qiushuo Pavilion
                                                                                                                                                        Qiushuo Pavilion five

                                                                                                                                                        This function is very good~!

                                                                                                                                                        •  Aladd designed mass merchandising shop
                                                                                                                                                          Aladd designed mass merchandising shop two

                                                                                                                                                          Brother Bird, please give me some advice~

                                                                                                                                                          1] Which file is modified in the friend chain section at the bottom of the site page?
                                                                                                                                                          Connect the words of the table I want to change it to be the same as Brother Bird!

                                                                                                                                                          2] How are the positions "gossip"~"gossip" integrated?
                                                                                                                                                          My same position shows the page It is the page at BANNER, which cannot be customized!

                                                                                                                                                          For advice~Thank you!!!

                                                                                                                                                          •  wmtimes
                                                                                                                                                            wmtimes seven

                                                                                                                                                            Evacuate and try.

                                                                                                                                                            •  Okano breast enhancement combination
                                                                                                                                                              Okano breast enhancement combination one

                                                                                                                                                              This can also be used as a plug-in

                                                                                                                                                              •  What is the cause of acne on the forehead
                                                                                                                                                                What is the cause of acne on the forehead one

                                                                                                                                                                It's beautiful to visit this blog for the first time~

                                                                                                                                                                •  Old Song Dynasty
                                                                                                                                                                  Old Song Dynasty three

                                                                                                                                                                  Oh, my friendship link is gone? Hehe, there's no place to add it

                                                                                                                                                                    •  Robin
                                                                                                                                                                      Robin

                                                                                                                                                                      @ Old Song Dynasty Well, maybe your station could not be opened after checking the Friendly Chain two days ago, so
                                                                                                                                                                      It will be added

                                                                                                                                                                        •  Old Song Dynasty
                                                                                                                                                                          Old Song Dynasty three

                                                                                                                                                                          @ Robin Well, I can't open it for two days
                                                                                                                                                                          There's something wrong with the space quotient
                                                                                                                                                                          Later it was done
                                                                                                                                                                          Now you can access
                                                                                                                                                                          Thank you

                                                                                                                                                                      •  Creative Invention
                                                                                                                                                                        Creative Invention one

                                                                                                                                                                        Has it been updated? pretty good.

                                                                                                                                                                        •  Clear horizon
                                                                                                                                                                          Clear horizon one

                                                                                                                                                                          Hello, Brother Bird. I tried to make a form with your theme, and everything was fine, but the icon of "Send Email" just didn't come out. I don't know what happened. Brother Bird, please give me some advice

                                                                                                                                                                            •  zheng0000
                                                                                                                                                                              zheng0000 one

                                                                                                                                                                              @ Clear horizon Dizzy, mine too! The "Send Email" button is grayed out, and it doesn't reflect when you click it. I use Chrome, and use IE to prompt the page for script errors

                                                                                                                                                                            •  Small R
                                                                                                                                                                              Small R zero

                                                                                                                                                                              Bird blog, do you know how to solve the problem that the Chinese label is not displayed on the 3.1.1 version of the Windows host

                                                                                                                                                                                •  Robin
                                                                                                                                                                                  Robin

                                                                                                                                                                                  @ Small R Have you seen so many online tutorials?
                                                                                                                                                                                  I have never used or tried the junk WIN host again
                                                                                                                                                                                  Slowly toss

                                                                                                                                                                                •  will
                                                                                                                                                                                  will one

                                                                                                                                                                                  The model of the boss is very professional. I also tried it. It's really good. I'm learning

                                                                                                                                                                                  •  one falling leaf is indicative of the coming of autumn
                                                                                                                                                                                    one falling leaf is indicative of the coming of autumn zero

                                                                                                                                                                                    I tried it. There was no problem with the installation, but the letter was unacceptable. I don't know why

                                                                                                                                                                                    •  Field survival
                                                                                                                                                                                      Field survival one

                                                                                                                                                                                      Brother Bird, I found a problem recently. Is it possible to change the "Latest Articles", "Popular Articles" and "Random Articles" on the right side of the category page and article content page to only show articles under this category? I think this situation is a bit similar to the home page, which may cause the weight of the latest 10 articles to be too high and the weight of other articles to be reduced.

                                                                                                                                                                                        •  Robin
                                                                                                                                                                                          Robin

                                                                                                                                                                                          @ Field survival Try it when you have time. It may be a little difficult. I haven't seen similar templates yet

                                                                                                                                                                                        •  1ive
                                                                                                                                                                                          1ive two

                                                                                                                                                                                          The icon of "Send Mail" can't be displayed. I don't know what's going on. It's normal in the local test, but it won't work when it reaches the space. I don't know what to do

                                                                                                                                                                                          •  Weihu
                                                                                                                                                                                            Weihu five

                                                                                                                                                                                            Sidebar on home page: where are the recommended columns added from the background? Thank you

                                                                                                                                                                                              •  Weihu
                                                                                                                                                                                                Weihu five

                                                                                                                                                                                                @ Weihu It's done Don't bother Thank you

                                                                                                                                                                                              •  Moya
                                                                                                                                                                                                Moya six

                                                                                                                                                                                                Your theme is very good. It would be better if the secondary drop-down menu on the top navigation bar were more beautiful!

                                                                                                                                                                                                •  albert
                                                                                                                                                                                                  albert one

                                                                                                                                                                                                  How can I add a sub menu? I hope you can give me some advice.

                                                                                                                                                                                                    •  Robin
                                                                                                                                                                                                      Robin

                                                                                                                                                                                                      @ albert http://zmingcx.com/wordpress3-0-using-the-navigation-menu-graphic-tutorials.html

                                                                                                                                                                                                    •  Smoke and cold leaves
                                                                                                                                                                                                      Smoke and cold leaves two

                                                                                                                                                                                                      Can I use the mail function if the host does not support it? I installed the WP Mail SMTP plug-in!

                                                                                                                                                                                                      •  29's Blog
                                                                                                                                                                                                        29's Blog three

                                                                                                                                                                                                        According to the method of Brother Bird, I really wanted to test my words and didn't receive an email. Why Brother Bird!

                                                                                                                                                                                                        •  Selenium supplement sink
                                                                                                                                                                                                          Selenium supplement sink one

                                                                                                                                                                                                          I set up a website with Sina cloud computing platform SAE and wordpress, and used the HotNews theme. SAE provided the saemail() function to replace the mail() function. Just make changes in form.php. Students who set up wordpress with SAE might as well try it. The modified form.php content is as follows:
                                                                                                                                                                                                          quickSend( ‘ kefu@buxihui.com ’, 'From the readers of Selenium Supplement -'$ Name. 'Email', $message, 'SMTP Account', 'Password', 'smtp. qq. com', 25)// Example

                                                                                                                                                                                                          //When sending fails, use the standby SMTP server to send again
                                                                                                                                                                                                          if ($ret === false)
                                                                                                                                                                                                          $mail->clean(); // Reuse this object
                                                                                                                                                                                                          $ret=$mail ->quickSend ('target mailbox kefu@buxihui.com ’, 'From the readers of Selenium Supplement -'$ Name. 'Email', $message, 'SMTP Account', 'Password', 'Standby SMTP Server', and standby port 25);

                                                                                                                                                                                                          //Output error code and error message in case of sending failure
                                                                                                                                                                                                          if ($ret === false)
                                                                                                                                                                                                          Echo 'Sorry,'$ name.’, Your message failed to be sent. ';
                                                                                                                                                                                                          else
                                                                                                                                                                                                          echo ‘OK ,’.$name.’, Your message has been sent. ';
                                                                                                                                                                                                          $mail->clean();
                                                                                                                                                                                                          ?>

                                                                                                                                                                                                          •  Selenium supplement sink
                                                                                                                                                                                                            Selenium supplement sink one

                                                                                                                                                                                                            The above code is filtered. Let's take a screenshot
                                                                                                                                                                                                            [img] http://buxihui-wordpress.stor.sinaapp.com/uploads/2012/02/form.php Screenshot. png [/img]

                                                                                                                                                                                                            •  Small water
                                                                                                                                                                                                              Small water three

                                                                                                                                                                                                              It's all done according to the above method. Why can't it be collected

                                                                                                                                                                                                              •  Small water
                                                                                                                                                                                                                Small water three

                                                                                                                                                                                                                What if MAIL function is not supported for sending emails?
                                                                                                                                                                                                                How to use SMTP?

                                                                                                                                                                                                                •  Jimmy Free Resources
                                                                                                                                                                                                                  Jimmy Free Resources two

                                                                                                                                                                                                                  I can't send my email, I don't know what's going on,

                                                                                                                                                                                                                 anonymous

                                                                                                                                                                                                                Comment

                                                                                                                                                                                                                Anonymous netizens
                                                                                                                                                                                                                 :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

                                                                                                                                                                                                                Drag the slider to complete validation