Coder Social home page Coder Social logo

Comments (6)

DavidIQ avatar DavidIQ commented on September 25, 2024

You should be able to set the board start date using the Board config options section. It would just be another line in the box:
board_startdate;123456789

The other part of your request might be doable from that and probably should be. It appears that right now the post date/time is the same for every single post. This randomizing could prove to be difficult though so we'll see.

from quickinstall.

3D-I avatar 3D-I commented on September 25, 2024

Thanks, later on I will fork this into my local devs and see if I could help here, is very interesting.
Say I am creating an hall of fame for the TPOTM, it will take care to provide monthly stats since the board's startdate, indeed the Posters needs to have a different post_time at least. I do not have a live environment to backup in order to create an optimal development limbo.

from quickinstall.

iMattPro avatar iMattPro commented on September 25, 2024

@DavidIQ Posts in a topic do not all have the same time. They are posted 1 second apart from each other, so with time displayed like hh:mm it only appears the times may be all the same. However, every post and every topic does have a unique timestamp.
https://github.com/phpbb/quickinstall/blob/master/includes/functions_populate.php#L355

I don't see any benefit to randomizing timestamps (or any way to make such a complicated thing work for such an edge case use), considering you have to deal with a random number of forums, topics and posts, the wildcard board start date, and still manage some semblance of sequentially ordering them among posts within topics, and topics within forums, and user reg dates, etc.

from quickinstall.

3D-I avatar 3D-I commented on September 25, 2024

Maybe considering ie.:
boardstardate = 5 years ago
tot posts 1000
dividing those 1000 posts per the tot months

not really randomising, I admit I used the wrong word.

from quickinstall.

3D-I avatar 3D-I commented on September 25, 2024

I guess all of the meyhem goes here, includes/functions_populate..

            // Estimate the number of posts created.
            // Or in reality, calculate the highest possible number and convert to seconds in the past.
            // If one of them is zero this would not be so nice.
            $replies    = ($this->num_replies_max) ? $this->num_replies_max : 1;
            $topics     = ($this->num_topics_max) ? $this->num_topics_max : 1;
            $forums     = ($this->num_forums) ? $this->num_forums : 1;

            $this->post_time    = time() - ($topics * $replies * $forums);
            $this->post_time    = ($this->post_time < 0) ? 0 : $this->post_time;

This line
$this->post_time = time() - ($topics * $replies * $forums);

I guess, not tried, we could add a magic against a config['board_startdate'] of some sort and try..

What at the present time it does is to start posting a post/topic every second in the past accordingly to a SUM of variables, since now(),

from quickinstall.

Derky avatar Derky commented on September 25, 2024

Thanks for your feature request but we've decided to not add this because we don't see added value for QuickInstall.

from quickinstall.

Related Issues (20)

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.