Giter VIP home page Giter VIP logo

bzu-jodel-clone's People

Contributors

clodmony avatar jhuesser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bzu-jodel-clone's Issues

Postmanagement is missing!

Postmanagement is mentioned in user.php, not implemented yet. Project requirement! #14

 if($caps['delete_posts'] == true || $caps['change_post_score'] == true || $caps['change_votes'] == true || $caps['edit_posts'] == true){
  echo '<a href="#" class="list-group-item list-group-item-action">Postmanagement</a>'; 
   $_SESSION['caps_delete_posts'] = true;
  $hascaps = true;
  }

color management is missing!

colormanagement is mentioned in user.php, not implemented yet. Project requirement! #14

if($caps['add_color'] == true){
  echo '<a href="#" class="list-group-item list-group-item-action">Add a color</a>'; 
   $_SESSION['caps_add_color'] = true;
  $hascaps = true;
  } 

Fix timeout in jodelmeta.php on line 14

If you create a post (new.php) We have a redirection to jodels.php. If you sign in and then you create a post you get a timeout in the first post. (See image). If you reload the page everything loads, even if you again create a new post.
bildschirmfoto 2017-04-29 um 16 13 07

do not load all posts

Don't load all posts in the first time. Implement something like "Infinite scroll"

votemanagement is missing!

votemanagement is mentioned in user.php, not implemented yet. Project requirement! #14

if($caps['delete_user_votes'] == true){
  echo '<a href="#" class="list-group-item list-group-item-action">Manage Votes</a>'; 
   $_SESSION['caps_delete_user_votes'] = true;
  $hascaps = true;
  }

user promotion is missing

user promotion is mentioned in user.php, not implemented yet. Project requirement! #14

if($caps['promote_to_mod'] == true || $caps['promote_to_admin'] == true  || $caps['promote_to_superadmin'] == true || $caps['promote_to_user'] == true || $caps['ban'] == true || $caps['delete_users'] == true || $caps['change_karma'] == true )  {
  echo '<a href="#" class="list-group-item list-group-item-action">Usermanagement</a>'; 
   $_SESSION['caps_promote_to_mod'] = true;
  $hascaps

multi caps not set right

in users.php the caps a user has are stored in a $_SESSION value, however, if multiple caps are possible for a single entry, only the first cap is stored in session. example:

 if($caps['promote_to_mod'] == true || $caps['promote_to_admin'] == true  || $caps['promote_to_superadmin'] == true || $caps['promote_to_user'] == true || $caps['ban'] == true || $caps['delete_users'] == true || $caps['change_karma'] == true )  {
  echo '<a href="#" class="list-group-item list-group-item-action">Usermanagement</a>'; 
   $_SESSION['caps_promote_to_mod'] = true; //only first cap
  $hascaps = true;
  }

Incerase performance

Currently the page loads very slow if you open jodels.php or do a vote. We should determine where we have performance issues and correct them.

adminnotice is missing!

Admin notice is mentioned in user.php, not implemented yet. Project requirement! #14

if($caps['create_admin_notice'] == true){
  echo '<a href="#" class="list-group-item list-group-item-action">Create admin notice</a>'; 
   $_SESSION['caps_create_admin_notice'] = true;
  $hascaps = true;
  }

color not added to DB

today i noticed, when I'm adding a new color via GUI, it's not added correctly. Here the response of the API:

...
 {
      "colorID": 21,
      "colordesc": "",
      "colorhex": ""
    }
...

color selection of new post

If a acolor get's deleted, the primary key in DB is missing, so the random number picker can fail.

change color selection to:

  • get all colors
  • Add all colorIDs to a new array
  • select random entry in array
  • use that as color

Need a solution to display error msgs over multiple pages / requests

For example jodel.php contains the following code:

if(isset($_GET['upvotejodel'])){
//....
if(!$voted){
//....
else {
$_SESSION['errorMsg'] = "Already voted";
}
header('Location: https://jodel.domayntec.ch/jodels.php');
}

// ...
/....
f(isset($_SESSION['errorMsg'])) {
 ?>

 <div class="alert alert-danger" role="alert">
  
  <strong>Holy guacamole!</strong> <?php echo $_SESSION['errorMsg'];?>
</div>

So we need to clear the php $_SESSION['errorMsg'] after each time it's displayed, or find another soloutin....

reset passwd is missing

reset of password is mentioned in user.php, not implemented yet. Project requirement! #14

if($caps['reset_paswd'] == true){
  echo '<a href="#" class="list-group-item list-group-item-action">Reset user password</a>'; 
   $_SESSION['caps_reset_paswd'] = true;
  $hascaps = true;
  }

Change url in header(); calls

Currently everytime header('Location: https://jodel.domayntec.ch/) is called, the URL is hardcoded, as we can see. Need to change this to the URL specified in config.php

moderation missing

Moderation mentioned in user.php, not implemented yet. Project requirement! #12 #14

if($caps['mod_posts'] == true){
  echo '<a href="#" class="list-group-item list-group-item-action">Moderation</a>'; 
  $_SESSION['caps_mod_posts'] = true;
  $hascaps = true;
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.