
Updated some codes on back-end and front-end of steemauto.com
By these changes, curation trail page changed and now looks better.
Search function added and you can share your trail's link. On that page, users will be able to follow, unfollow or change settings.
Also, I will update fanbase and posting page as soon as I can.
BTW. you don't need to understand these codes.
Commit link: Added search function, added pages buttons to the buttom of table and configured list to display by pages, added page for each searched trail, added follow, unfollow and settings button to that page, changed links of trails and ... .
Some codes of search function:
...
...
<div class="content"> (html comment removed: 1 )
<? if($searchtrail == 1){ ?>
<div class="row" style="margin:0 !important"> (html comment removed: 2 )
<div class="col-md-3"></div>
<div class="col-md-6"> (html comment removed: 3 )
<div class="card"> (html comment removed: 4 )
<div class="content"> (html comment removed: 5 )
<h3>Searching for trail: </h3><br>
<?
$stmt = $conn->prepare("SELECT EXISTS(SELECT * FROM `trailers` WHERE `user`=?)");
$searchedtrail = $_GET['trail'];
$stmt->bind_param('s', $searchedtrail);
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();
foreach($row as $exists){}
if($exists == 1){
$stmt = $conn->prepare("SELECT * FROM `trailers` WHERE `user`=?");
$stmt->bind_param('s', $searchedtrail);
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();
$resultt = $conn->query("SELECT EXISTS(SELECT * FROM `followers` WHERE `follower` = '$name' AND `trailer`='$searchedtrail')");
foreach($resultt as $y){
foreach($y as $y){}
}
if($y == 1){
$alreadyfollowed = 1;
}else{
$alreadyfollowed = 0;
}
?>
<strong>Trail name:</strong><span> <? echo htmlspecialchars($searchedtrail); ?></span><br>
<strong>Description:</strong><span> <? echo htmlspecialchars($row['description']); ?></span><br>
<strong>Followers:</strong><span> <? echo $row['followers']; ?> (<a href="/dash.php?i=15&id=1&user=<? echo htmlspecialchars($searchedtrail); ?>">Show enable followers</a>)</span><br><br>
<? if($alreadyfollowed){ ?>
<button onclick="if(confirm('Are you sure?')){unfollow('<? echo $row['user']; ?>');};" class="btn btn-danger">UNFOLLOW</button>
<button onclick="showset('1');" class="btn btn-primary">Settings</button>
<?
$resultt = $conn->query("SELECT * FROM `followers` WHERE `follower` = '$name' AND `trailer`='$searchedtrail'");
foreach($resultt as $n){}
?>
(html comment removed: Settings )
<div class="row" style="margin:0 !important;">
<div style="text-align:left; display:none; padding:20px;" id="set1" class="col-md-12">
<form onsubmit="settings('<? echo $row['user']; ?>'); return false;">
<label>Settings for Trailer: <a href="https://steemit.com/@<? echo $row['user']; ?>" target="_blank">@<? echo $row['user']; ?></a></label>
<div id="setweight<? echo $row['user']; ?>" <? if($n['fcurator'] == 1){echo 'style="display:none;"';} ?>><label>Weight: Default Weight is 100%. leave it empty to be default.</label>
<input id="weight<? echo $row['user']; ?>" placeholder="Voting Weight" name="weight" type="number" class="form-control" value="<? echo $n['weight']/100; ?>" step="0.01" min="0" max="100">
</div>
<li style="margin-top:5px; margin-bottom:5px;" class="list-group-item">
Follow Curator Weight:
<div class="material-switch pull-right">
<input id="fcurator<? echo $row['user']; ?>" name="fcurator" class="fcurator" type="checkbox" <? if($n['fcurator'] == 1){echo 'checked';} ?>/>
<label for="fcurator<? echo $row['user']; ?>" id="fcurator1" class="label-primary"></label>
</div>
</li>
<label>Time to wait before voting. Default Time is 0 minutes.</label>
<input id="aftermin<? echo $row['user']; ?>" value="<? echo $n['aftermin']; ?>" placeholder="Upvoting After X Minutes." name="aftermin" type="number" class="form-control" step="1" min="0" max="30">
<li style="margin-top:5px; margin-bottom:5px;" class="list-group-item">
Enabled:
<div class="material-switch pull-right">
<input id="enable<? echo $row['user']; ?>" name="enable" class="enable" type="checkbox" <? if($n['enable'] == 1){echo 'checked';} ?>/>
<label for="enable<? echo $row['user']; ?>" id="enable" class="label-success"></label>
</div>
</li>
<input style="margin-top:10px;"value="Save Settings" type="submit" class="btn btn-primary">
</form>
</div>
</div>
<script>
$(document).ready(function() {
if(document.getElementById('fcurator<? echo $row['user']; ?>').checked){
$('#setweight<? echo $row['user']; ?>').hide(500);
}else{
$('#setweight<? echo $row['user']; ?>').show(500);
}
$('#fcurator<? echo $row['user']; ?>').change(function() {
if(document.getElementById('fcurator<? echo $row['user']; ?>').checked){
$('#setweight<? echo $row['user']; ?>').hide(500);
}else{
$('#setweight<? echo $row['user']; ?>').show(500);
}
});
});
</script>
(html comment removed: /Settings )
<? }else{ ?>
<button onclick="if(confirm('Are you sure?')){follow('<? echo $row['user']; ?>');};" class="btn btn-primary">FOLLOW</button>
<? } ?>
<?
}else{ ?>
<p style="color:red;">Can't find. That Trail should register on steemauto and become a trail.</p>
<?
}
?>
</div> (html comment removed: /5 )
</div> (html comment removed: /4 )
</div> (html comment removed: /3 )
<div class="col-md-3"></div>
</div> (html comment removed: /2 --
<?
}else{ ?>
...
...
What is Steemauto?
Steemauto comes with amazing features, Schedule post, Build a Fanbase, or leave a curation trail for users all around the world to follow.
Steemauto is open source, unlimited, secure and free app for steem users.
For more information about steemauto check this post: Steemauto - free and unlimited auto upvote and auto posting service
Regards,
Steem witness,
Mahdi Yari,
2018-01-31
Posted on Utopian.io - Rewarding Open Source Contributors
)
Keep up the good work with SteemAuto! Approved!
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
That are really good at what they knows
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @stoodkev, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I just followed @steemauto. I also registered to steemauto for the improvement of my account. Thanks a lot. I'll follow you too @stoodkev.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @mahdiyari I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
i was using an other platform for trail but when i have time i will change it to steemauto. streemian was ok and steemauto was bad looking. now streemian is down and steemauto looks better.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Good info.....Everybody will be helped from it
thanks for share with us
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for such an amazing info....
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for the awesome post. I have followed, upvoted your post. Just follow me and upvote this comment for future upvote for your content.
Please bro 1 upvote me..
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
great post . Thanks for share with us.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks u very much, mas @mahdiyari good job 👍
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
hello is there any way to disable all use of steemauto . I have a lot of people selected on curation trail and fanbase and its made my voting power go down to 3% . is there any way to just pause/stop it all right now just until my power goes back up!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
now, you can stop one by one./
soon, I will add some option for this purpose.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I'm new with steemauto.com and found out about this feature. Very nice! :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
dear friend @mahdiyari
It's really good the way you are giving a good message to the world,,,,
I love your post,,, thank you my dear friend for sharing with #Us,,,,,,, and very good job,,,keep it #Up,,,
_______I JUST RESTEEMED YOUR POST______
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
hi mahdiyari, I had some idea for steemauto curation trail:
voting power limit
setting for trail followers to decide to skip trail votes if their power goes below set amount, such as settings of 80% no matter what trail leaders do they will only vote whenever they are above 80% vote power instead of needing to recharge.
scaling ratio for default setting
follow leader vote weight is a cool feature, but for some big voters maybe doesn't work as good, so it could be a feature to have an addition to this setting as a ratio such as 1:4 if they vote 100% follower with this setting votes 25%, if they vote 20% follower votes 5%. Better way is maybe just setting as percentage rather than ratio, but either way it could be useful.
just something to consider if you need ideas for a future upgrade, keep up the great work ^_^
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for your suggestions.
Already requested by other users. I'm working on them.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@mahdiyari, Like your contribution, upvote.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thank you for the improvement sir, now we can find it easy who we are trying to be followed on curation trail.
thank you also for doing a hard time of work for making steemauto sir.
God Bless!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Exellent news my friend
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for this good news boss :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Good news
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Good news, i will using steemauto. Thank you
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
All improvements to SteemAuto are welcome! Well done.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great news! Thank you @mahdiyari
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for the constant updates to SteemAuto, always a pleasure to see you working hard on improving it almost daily it seems. Keep up the good work!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Keren banget
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Wow this is awesome :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit