Stemmit mention tool -- Create a web UI to get Steemit account name from users

in #utopian-io6 years ago (edited)

New Features

What feature(s) did you add?

  • Add a Web UI to get Steemit account name from users

    图片.png

  • Distribute random valid code to different Steemit account,which is used to confirm the Wechat account to send mention message.

    图片.png


How did you implement it/them?

  • SteemitWechatBot/V0.2/Interface/application/index/view/index/index.html

    <!DOCTYPE HTML>
    <html>
      <head>
          <title>Steemit WechatBot</title>
          <meta http-equiv="content-type" content="text/html; charset=utf-8" />
          <meta name="description" content="" />
          <meta name="keywords" content="" />
      
          
          <link rel="stylesheet" href="/thinkphp5-steemitmention/public/static/css/style.css" />
          <link rel="stylesheet" href="/thinkphp5-steemitmention/public/static/css/style-wide.css" />
      </head>
      <body>
          <div id="header">
              <img src="/thinkphp5-steemitmention/public/static/images/1.png" alt="" /></a>
              
              <p>When there is new information about you 
              <br />
              get mention messages on Wechat</p>
              <br />
              <form action = "{:url('index/getname')}" method="post">
                  <input type="text" name= "name" class="text" value="" placeholder="SteemitName" onfocus="this.value = '';" >
                  <br><br/>
                  <input type="submit" value="Start">
              </form>
    
          </div>     
      </body>
    </html>
    

    Create a web UI to user input

  • SteemitWechatBot/V0.2/Interface/application/index/controller/Index.php

     public function getname()
        {
          $inputdata = input('post.');
          $SteemitName = $inputdata['name'];
          $validCode = random_code();
          $data = ['steemitname' => $SteemitName, 'validcode' => $validCode];
          db('steemitaccount')->insert($data);
          echo "<script language=JavaScript>alert(\"Send your valicCode to WechatBot. \\n  \\nYour valid Code is : {$validCode}\");location.href='javascript:history.go(-1);';</script>";
     
        }
    

    Get Steemit account name then distribute valid code to user and save in the database

  • SteemitWechatBot/V0.2/Interface/application/index/common.php

Generate 8 random number


Roadmap

  • Using the valid code to valid the Wechat account which is connected to the Steemit account and will get mention message.
  • Register a formal Wechat public service account to replace my testing account.

How to contribute?

Github: https://github.com/Cha0s0000/SteemitWechatBot

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

thanks for your mod work! @codingdefined

Hey @cha0s0000 I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.27
TRX 0.12
JST 0.031
BTC 68526.92
ETH 3726.80
USDT 1.00
SBD 3.73