php – Don’t update modified post date when user add a product review or comment?

I am using WooCommerce and I added the following code on content-single-product.phptemplate to show last update of product:

<p class="data-label">Updated</p>
<p class="info"> <?php echo get_the_modified_time( 'F j, Y' ); ?> </p>

On single product pages I have enable reviews tab and comment tab so customer can add comment on a product.

The problem is when user add new review or comment to product, the last update date for the

product is changed to the date of its comment.

I don’t want to change the last update date of product when user add new comment on any product.

Pokemon Journey – Code Review Stack Exchange

OK, you don’t really have to read it all, but I think you get the basic Idea. Does anyone have anything small that could make my code better? I just found out about “global” and “lower()”. Is there any small thing you can give me that could improve my code a lot, or at least save me some time?

global myname
global move2
global move1
def script():
    print("Made by Chase - Winner Playz")
print("This is your Pokemon Journey!")
print("Thanks for playing... and a little sidenote... CATCHING IS CURRENTLY DISABLED, IF YOU TRY TO CATCH IT MIGHT CRASH")
print("DO NOT make any typos, this will result in you having to start the entire game over, there is no way to save progress")
print("PLEASE READ EVERYTHING, I KNOW ITS A LOT, BUT PLEASE DO OR IT WON'T MAKE ANY SENSE")
print("There are 3 starters in the lab, and they all seem quite skilled")
starter = input("What will YOU choose? You can pick, Geodude, Drowzee, or Tyrogue").lower()
#if starter == "view":
    #print("Geodude - Rock pokemon, Evolves into Graveler, Then Golem, Moveset: Earthquake, Rock Slide, Defense Curl, Tackle")
    #print("Drowzee - Psychic pokemon, Evolves into Hypno, Moveset: Hypnosis, Psychic, Dream Eater, Light Screen")
    #print("Charmander - Fire pokemon, Evolves into Charmaleon, then Charizard, Moveset: Blast Burn, Flame Thrower, Headbutt, Scary Face")
if starter == "geodude":
    print("Great choice! You decided on the Rock pokemon Geodude!")
    nicknamequestion = input("Would you like to nickname Geodude? (Yes or No?)").lower()
    if nicknamequestion == "yes":
        myname = input("What would you like to nickname it?")
        print("OK, your Geodude's new name is now",myname)
        print("Also note that you will not be able to use any of the pokemon that you catch (Catching is currently not working anyway)")
        print("You start your journey by walking into your first patch of grass...")
        print("A wild Rattata appeared!")
        print("Go",myname, "!")
        q1 = input("Would you like to attack, or try to catch it?").lower()
        if q1 == "attack" or "attack it":
            move1 = input("What would you like to use? Earthquake or Rock Slide?").lower()
        if move1 == "earthquake":
            print("You one shotted it, Fantastic!", myname, "is now level 6!")
            print("You move on...")
            print("You are now in Viridian City... but the gym seems to be locked")
            print("The gym's note say's...")
            print("The gym will be open after you collect another 2 badges")
            print("You move on to the next city...")
            print("There are a couple of trainers that want to battle you")
            print("For you're times sake, you will only have to do one of them, the others will be done for you")
            print("The trainer sent out Charmaleon")
            print("Go", myname)
            move2 = input("What would you like to use? Earthquake or Rock Slide?")
        elif move1 == "rockslide" or "rock slide":
            print("Enemy rattata is left with 6 health!")
            print("Enemy Rattata used Tackle")
            print(myname, "is left with 19 health")
            move5 = input("What would you like to use? Earthquake or Rock slide?").lower()
            if move5 == "earthquake" or "rock slide" or "rockslide":
                print("You defeated enemy Rattata, Geodude leveld up!")
                print("You move on...")
                print("You are now in Viridian City... but the gym seems to be locked")
                print("The gym's note say's...")
                print("The gym will be open after you collect another 2 badges")
                print("You move on to the next city...")
                print("There are a couple of trainers that want to battle you")
                print("For you're times sake, you will only have to do one of them, the others will be done for you")
                print("The trainer sent out Charmaleon")
                print("Go", myname)
                move2 = input("What would you like to use? Earthquake or Rock Slide?")
                if move2 == "earthquake":
                    print("It's super effective!")
                    print("You one shotted it, great", myname, "!")
                    print(myname, "is now level 7!")
                    print("You battled the other trainers, and your", myname, "is level 9")
                    print("This game doesnt follow actual pokemon, so your geodude will evolve at level 10")
                    print("You see a gym in a distance, and it looks like it's in Pewter city")
                    print("On your way there, a trainer want's to battle you, you accept")
                    print("The trainer sent out Hitmonchan!")
                    print("Oh, he has an advantage, but I think you can do this...")
                    print("I'm counting on you... Go", myname)
                    print("Enemy Hitmonchan used Mega Punch")
                    print("Enemy Hitmonchan's attack missed")
                    move3 = input("What would you like to use? Earthquake or Rock slide?").lower()
                    if move3 == "Earthquake":
                        print("Hitmonchan lost half of it's health!")
                        print("Enemy Hitmonchan used Mega Punch")
                        print(myname, "is left with 7 health!")
                        move4 = input("What would you like to use? Earthquake or Rock slide?").lower()
                        if move4 == "earthquake":
                            print("Enemy Hitmonchan fainted!")
                            print(myname, "leveled up to level 10!")
                            print("Alright", myname, "awesome!")
                            print("What!? Geodude is evolving")
                            print("...")
                            print("Conratulations! Your Geodude evolved into a Graveler!")
            print("You one shotted it, Fantastic!", myname, "is now level 6!")
            print("You move on...")
            print("You are now in Viridian City... but the gym seems to be locked")
            print("The gym's note say's...")
            print("The gym will be open after you collect another 2 badges")
            print("You move on to the next city...")
            print("There are a couple of trainers that want to battle you")
            print("For you're times sake, you will only have to do one of them, the others will be done for you")
            print("The trainer sent out Charmaleon")
            print("Go", myname)
            move2 = input("What would you like to use? Earthquake or Rock Slide?")
            if move2 == "earthquake":
                print("It's super effective!")
                print("You one shotted it, great", myname,"!")
                print(myname, "is now level 7!")
                print("You battled the other trainers, and your", myname, "is level 9")
                print("This game doesnt follow actual pokemon, so your geodude will evolve at level 10")
                print("You see a gym in a distance, and it looks like it's in Pewter city")
                print("On your way there, a trainer want's to battle you, you accept")
                print("The trainer sent out Hitmonchan!")
                print("Oh, he has an advantage, but I think you can do this...")
                print("I'm counting on you... Go", myname)
                print("Enemy Hitmonchan used Mega Punch")
                print("Enemy Hitmonchan's attack missed")
                move3 = input("What would you like to use? Earthquake or Rock slide?").lower()
                if move3 == "Earthquake":
                    print("Hitmonchan lost half of it's health!")
                    print("Enemy Hitmonchan used Mega Punch")
                    print(myname, "is left with 7 health!")
                    move4 = input("What would you like to use? Earthquake or Rock slide?").lower()
                    if move4 == "earthquake":
                        print("Enemy Hitmonchan fainted!")
                        print(myname, "leveled up to level 10!")
                        print("Alright", myname, "awesome!")
                        print("What!? Geodude is evolving")
                        print("...")
                        print("Conratulations! Your Geodude evolved into a Graveler!")
    if nicknamequestion == "no":
        print("Also note that you will not be able to use any of the pokemon that you catch (Catching is currently not working anyway)")
        print("You start your journey by walking into your first patch of grass...")
        print("A wild Rattata appeared!")
        print("Go Geodude!")
        q1 = input("Would you like to attack, or try to catch it?").lower()
        if q1 == "attack" or "attack it":
            move1 = input("What would you like to use? Earthquake or Rock Slide?").lower()
            if move1 == "earthquake":
                print("You one shotted it, Fantastic! Your Geodude is now level 6!")
                print("You move on...")
                print("You are now in Viridian City... but the gym seems to be locked")
                print("The gym's note say's...")
                print("The gym will be open after you collect another 2 badges")
                print("You move on to the next city...")
                print("There are a couple of trainers that want to battle you")
                print("For you're times sake, you will only have to do one of them, the others will be done for you")
                print("The trainer sent out Charmaleon")
                print("Go Geodude!")
                move2 = input("What would you like to use? Earthquake or Rock Slide?")
                if move2 == "earthquake":
                    print("It's super effective!")
                    print("You one shotted it, great Geodude!")
                    print("Geodude is now level 7!")
                    print("You battled the other trainers, and your Geodude is level 9")
                    print("This game doesnt follow actual pokemon, so your geodude will evolve at level 10")
                    print("You see a gym in a distance, and it looks like it's in Pewter city")
                    print("On your way there, a trainer want's to battle you, you accept")
                    print("The trainer sent out Hitmonchan!")
                    print("Oh, he has an advantage, but I think you can do this...")
                    print("I'm counting on you... Go Geodude")
                    print("Enemy Hitmonchan used Mega Punch")
                    print("Enemy Hitmonchan's attack missed")
                    move3 = input("What would you like to use? Earthquake or Rock slide?").lower()
                    if move3 == "Earthquake":
                        print("Hitmonchan lost half of it's health!")
                        print("Enemy Hitmonchan used Mega Punch")
                        print("Geodude is left with 7 health!")
                        move4 = input("What would you like to use? Earthquake or Rock slide?").lower()
                        if move4 == "earthquake":
                            print("Enemy Hitmonchan fainted!")
                            print("Geodude leveled up to level 10!")
                            print("Alright Geodude, awesome!")
                            print("What!? Geodude is evolving")
                            print("...")
                            print("Conratulations! Your Geodude evolved into a Graveler!")
            if move2 == "rock slide" or "rockslide":
                print("It's super effective!")
                print("You one shotted it, great Geodude!")
                print("Geodude is now level 7!")
                print("You battled the other trainers, and your Geodude is level 9")
                print("This game doesnt follow actual pokemon, so your geodude will evolve at level 10")
                print("You see a gym in a distance, and it looks like it's in Pewter city")
                print("On your way there, a trainer want's to battle you, you accept")
                print("The trainer sent out Hitmonchan!")
                print("Oh, he has an advantage, but I think you can do this...")
                print("I'm counting on you... Go Geodude")
                print("Enemy Hitmonchan used Mega Punch")
                print("Enemy Hitmonchan's attack missed")
                move3 = input("What would you like to use? Earthquake or Rock slide?").lower()
                if move3 == "Earthquake":
                    print("Hitmonchan lost half of it's health!")
                    print("Enemy Hitmonchan used Mega Punch")
                    print("Geodude is left with 7 health!")
                    move4 = input("What would you like to use? Earthquake or Rock slide?").lower()
                    if move4 == "earthquake":
                        print("Enemy Hitmonchan fainted!")
                        print("Geodude leveled up to level 10!")
                        print("Alright Geodude, awesome!")
                        print("What!? Geodude is evolving")
                        print("...")
                        print("Conratulations! Your Geodude evolved into a Graveler!")
        elif move1 == "rock slide" or "rockslide":
            print("You almost one shotted it... ")
            print("Enemy Rattata used Tackle!")
            print("It's not very effective...")
            move2 = input("What would you like to use? Earthquake or Rock Side?").lower()
            if move2 == "earthquake" or "rockslide" or "rock slide":
                print("Congrats! You defeated the Rattata, and your Geodude has leveled up!")
                print("You move on...")
                print("You are now in Viridian City... but the gym seems to be locked")
                print("The gym's note say's...")
                print("The gym will be open after you collect another 2 badges")
                print("You move on to the next city...")
                print("There are a couple of trainers that want to battle you")
                print("For you're times sake, you will only have to do one of them, the others will be done for you")
                print("The trainer sent out Charmaleon")
                print("Go Geodude!")
                move2 = input("What would you like to use? Earthquake or Rock Slide?")
                if move2 == "earthquake":
                    print("It's super effective!")
                    print("You one shotted it, great Geodude!")
                    print("Geodude is now level 7!")
                    print("You battled the other trainers, and your Geodude is level 9")
                    print("This game doesnt follow actual pokemon, so your geodude will evolve at level 10")
                    print("You see a gym in a distance, and it looks like it's in Pewter city")
                    print("On your way there, a trainer want's to battle you, you accept")
                    print("The trainer sent out Hitmonchan!")
                    print("Oh, he has an advantage, but I think you can do this...")
                    print("I'm counting on you... Go Geodude")
                    print("Enemy Hitmonchan used Mega Punch")
                    print("Enemy Hitmonchan's attack missed")
                    move3 = input("What would you like to use? Earthquake or Rock slide?").lower()
                    if move3 == "Earthquake":
                        print("Hitmonchan lost half of it's health!")
                        print("Enemy Hitmonchan used Mega Punch")
                        print("Geodude is left with 7 health!")
                        move4 = input("What would you like to use? Earthquake or Rock slide?").lower()
                        if move4 == "earthquake":
                            print("Enemy Hitmonchan fainted!")
                            print("Geodude leveled up to level 10!")
                            print("Alright Geodude, awesome!")
                            print("What!? Geodude is evolving")
                            print("...")
                            print("Conratulations! Your Geodude evolved into a Graveler!")
    #elif q1 == "catch" or "Catch it" or "Catch" or "catch it":
        #print("You threw the Pokeball... and you CAUGHT IT!")
if starter == "drowzee":
    print("Great choice! You decided on the Psychic pokemon Drowzee!")
    nicknamequestion = input("Would you like to nickname Geodude? (Yes or No?)").lower()
    if nicknamequestion == "yes":
        myname = input("What would you like to nickname it?")
        print("OK, your Drowzee's new name is now",myname)
    print("Also note that you will not be able to use any of the pokemon that you catch (Catching is currently not working anyway)")
    print("You start your journey by walking into your first patch of grass...")
    print("A wild Rattata appeared!")
    print("Go", myname, "!")
    q1 = input("Would you like to attack, or try to catch it?").lower()
    if q1 == "attack" or "attack it":
        move1 = input("What would you like to use? Psychic or Headbutt?").lower()
        if move1 == "psychic":
            print("You one shotted it, Fantastic!", myname, "is now level 6!")
            print("You move on...")
            print("You are now in Viridian City... but the gym seems to be locked")
            print("The gym's note say's...")
            print("The gym will be open after you collect another 2 badges")
            print("You move on to the next city...")
            print("There are a couple of trainers that want to battle you")
            print("For you're times sake, you will only have to do one of them, the others will be done for you")
            print("The trainer sent out Charmaleon")
            print("Go", myname)
            move2 = input("What would you like to use? Earthquake or Rock Slide?")
            if move2 == "earthquake":
                print("It's super effective!")
                print("You one shotted it, great", myname,"!")
                print(myname, "is now level 7!")
                print("You battled the other trainers, and your", myname, "is level 9")
                print("This game doesnt follow actual pokemon, so your geodude will evolve at level 10")
                print("You see a gym in a distance, and it looks like it's in Pewter city")
                print("On your way there, a trainer want's to battle you, you accept")
                print("The trainer sent out Hitmonchan!")
                print("Oh, he has an advantage, but I think you can do this...")
                print("I'm counting on you... Go", myname)
                print("Enemy Hitmonchan used Mega Punch")
                print("Enemy Hitmonchan's attack missed")
                move3 = input("What would you like to use? Earthquake or Rock slide?").lower()
                if move3 == "Earthquake":
                    print("Hitmonchan lost half of it's health!")
                    print("Enemy Hitmonchan used Mega Punch")
                    print(myname, "is left with 7 health!")
                    move4 = input("What would you like to use? Earthquake or Rock slide?").lower()
                    if move4 == "earthquake":
                        print("Enemy Hitmonchan fainted!")
                        print(myname, "leveled up to level 10!")
                        print("Alright", myname, "awesome!")
                        print("What!? Geodude is evolving")
                        print("...")
                        print("Conratulations! Your Geodude evolved into a Graveler!")
    print("Also note that you will not be able to use any of the pokemon that you catch (Catching is currently not working anyway)")
    print("You start your journey by walking into your first patch of grass...")
    print("A wild Rattata appeared!")
    print("Go Drowzee!")
    q1 = input("Would you like to attack, or try to catch it?").lower()
    if q1 == "attack" or "attack it":
        move1 = input("What would you like to use? Psychic or Headbutt?").lower()
        if move1 == "psychic":
            print("You one shotted it, Fantastic! Your Drowzee is now level 6!")
            print("You move on...")
            print("You are now in Viridian City... but the gym seems to be locked")
            print("The gym's note say's...")
            print("The gym will be open after you collect another 2 badges")
            print("You move on to the next city...")
            print("There are a couple of trainers that want to battle you")
            print("For you're times sake, you will only have to do one of them, the others will be done for you")
            print("The trainer sent out Charmaleon")
            print("Go Drowzee!")
            move2 = input("What would you like to use? Psychic or Headbutt?")
            if move2 == "psychic":
                print("You one shotted it, great Drowzee!")
                print("Drowzee is now level 7!")
                print("You battled the other trainers, and your Drowzee is level 9")
                print("This game doesnt follow actual pokemon, so your Drowzee will evolve at level 10")
        elif move1 == "headbutt" or "head butt":
            print("You almost one shotted it... ")
            print("Enemy Rattata used Tackle!")
            print("Drowzee has 17 health remaining!")
            move2 = input("What would you like to use? Psychic or Headbutt?").lower()
            if move2 == "psychic" or "head butt" or "headbutt":
                print("Congrats! You defeated the Rattata, and your Drowzee has leveled up!")
                print("You move on...")
                print("You are now in Viridian City... but the gym seems to be locked")
                print("The gym's note say's...")
                print("The gym will be open after you collect another 2 badges")
                print("You move on to the next city...")
                print("There are a couple of trainers that want to battle you")
                print("For you're times sake, you will only have to do one of them, the others will be done for you")
                print("The trainer sent out Charmaleon")
                print("Go Drowzee!")
                move2 = input("What would you like to use? Psychic or Headbutt?").lower()
                if move2 == "psychic":
                    print("You one shotted it, great Drowzee!")
                    print("Drowzee is now level 7!")
                    print("You battled the other trainers, and your Drowzee is level 9")
                    print("This game doesnt follow actual pokemon, so your Drowzee will evolve at level 10")
    elif q1 == "catch" or "Catch it" or "Catch" or "catch it":
        print("You threw the Pokeball... and you CAUGHT IT!")

C++ SFML fonts loader – Code Review Stack Exchange

I am writing a game via SFML. In difference places I want to use loaded fonts. So I decided to write the fonts loader, so that load fonts only one time and use them in the future from class. My code:

enum class FontsID
{
    PIXEBOY,
    DIGITAL7
};

class FontObject
{
public:
    FontObject::FontObject(const std::string &texturePath)
    {
        font->loadFromFile(texturePath);
    }
    std::shared_ptr<sf::Font> font = std::make_shared<sf::Font>();
};

class FontsLoader
{
public:
    static FontsLoader &getInstance()
    {
        static FontsLoader instance;
        return instance;
    }
    const std::shared_ptr<sf::Font> getFont(FontsID fontID) const
    {
        return allFonts(static_cast<int>(fontID)).font;
    }

private:
    FontsLoader()
    {
        allFonts.push_back(FontObject("data/fonts/pixeboy.ttf"));
        allFonts.push_back(FontObject("data/fonts/digital-7.ttf"));
    }
    std::vector<FontObject> allFonts;
};
static FontsLoader &fontsLoader = FontsLoader::getInstance();

I don’t think using an enum is good solution, for example, enum count may be more or less than allFonts vector items count, adding in the constuctor in proper sequence also not good , but fontsObject.getFont(FontsID::PIXEBOY); is convenient for me, I will never confuse fonts name. Is there a better way?

The Best Cheap VPS Hosting in Review – 2020 Edition

The best Cheap VPS Hosting of 2020

A few months ago we highlighted the Top VPS Hosting Providers in 2019 according to the votes of LowEndTalk members.

To carry on that effort we have put together a short summary of some of the Top Cheap VPS Hosting Providers in 2020 which we invite you to take a look at!

We also recently published a short list of some of the Top Los Angeles VPS Hosts.

We will continue to put together these top lists once a year or perhaps a bit more often if the feedback is positive. As always, we are looking forward to your comments.

Jon Biloh

I’m Jon Biloh and I own LowEndBox and LowEndTalk. I’ve spent my nearly 20 year career in IT building companies and now I’m excited to focus on building and enhancing the community at LowEndBox and LowEndTalk.

Hivelocity Review – Poor Experiencie


I few months ago I moved from LiquidWeb to Hivelocity trying to reduce some costs. In the beginning Hivelocity seemed to be a good company, but now I am thinking something different. My server has been down more than 4 times in less than 24 hours. I contacted support, and they told me the CPU was overheating, and they needed some time to fix it. During the repairs my server was down for almost 45 minutes. 6 hours later after the repairs, the server failed again. It was down for almost 30 minutes. I contacted support, and they told me my server was running out of memory that I needed to upgrade it to more RAM. So I went ahead and requested the upgrade, that was another 45-60 minutes with the server down. 8-10 hours later after the RAM upgrade the server failed again. It was down for almost one hour. I contacted support again, and they told me they don’t know what is causing the server to fail, that they need to turn the server off for around one hour to see in deep what is happening.

At this point, most of my customer who have been with me for a while are upset, and they are notifying me they are moving to a different Web hosting company because the continues server failings. I feel very frustrated because I was not used to this. That never happened to me when I was with Liquidweb.

Now I need some advice about what would you do in my case? Would you move to a different company of just wait another hour to see if they are able to fix the server?

I appreciate it your comments.

Review: Collective Movies Only – BindasKolkata.com | Proxies-free

Hey, I have seen so many movie sites online but none of them are showcasing movies they like. Even big players Netflix or Amazon Prime – I can tell these guys never seen a movie before placing them on their platforms, just showcasing movies randomly or based on IMDB ratings.

Anyone can write IMDB reviews or Rates. I have seen utterly bad movies on bigger platforms. Also on all medium platforms equally promoting it.

So I decide I will see a movie or find the most genuine review about it from my trusted reviewers. Then I place the movie on my platform. And I stars from the IMDB rating 1/0 or not on IMDB movies first. You are here and reading all may craps means you also a movie lover.

Check out my BindasKolkata.com

P.S. Site is not completed yet. So don’t mind.
P.P.S Try not to judge me by looking Adult Section of my site. That’s promotional stuff.

FAQ:
1. Site based on MediaCity Script. It’s available on Codecanyon.
2. The app is Under development.
3. The site is PAID but don’t worry. After Signup inbox me your email id and I will give you FREE PROMOTIONAL SUBSCRIPTION
4. The SIte works from your PC and Mobile both.

Thanks