Category: wpHakka Threads

  • keep digging and you will find ...

    keep digging and you will find …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    sometimes hard to believe what you find, but unfortunately it is what it is . . .

    imagine, a CMS of the size of wp doesn’t have a proper and secure comment form validation, the bad part is, it is no imagination, it is fact . . .

    the validate the user name length to 200 characters long, hilarious, then, they permit everything to go in there, html code, links, all shit of the world, how absurd is that?

    so now tell me, find a plugin which does it and pay for it . . . yeaaaaaah, that’s modern materialistic fugger style . . .

    also no native way to limit the comment input to text, so everybody can spam your site with links to porn, to bitcoin scams and whatever . . .

    got it? then get it . . .

    right here to stop the shit, put this snippet into your theme’s functions.php and ready, it's free!

  • hakka Quotes Plugin is live

    hakka Quotes Plugin is live

    hakka quotes is a fun plugin to do what the name already says

    it can be used as shortcode or/and automatic block injection
    the shortcode works independent from ACTIVE ON|OFF and can be used parallel, e.g. you set the AUTO Injection to ON with for POSTS, which is very practical, and use SHORTCODE on PAGES

    POSITION is for the AUTO Injection to place the quote below the title, or above or below the content

    you can switch the AUTHOR DISPLAY off and overwrite it with author=”on” with the shortcode parm

    BOX WIDTH should be set to cover the page or column width percentually, or you can set a number like 500px to fit your needs

    PADDING vertical and horizontal defines the space around the quote toward the margin of its parent div

    COLOR can be set as HEX value + transparency value as last two digits

    ALIGNMENT also can be overwritten with shortcode parm and puts the quote to left, right or center align within its parent container

    FONT NAME can be set to any available font on your site, all types are available automatically in the dropdown box, FONT SIZE and COLOR is quite obvious

    the QUOTE PREFIX can be personalized to whatever you like, can stay empty for none, daily quote . . . or remember this can be friendly strings

    it doesn’t create any overhead on your site, even if you have 10 thousand quotes, it also doesn’t create any custom post types or intervenes with any site settings, it’s a pretty nice add-on which coexist hasselfree with any oher plugin on standard wp block themes, it should even work on older versions, but isn’t proved, means tested, to work before wp 6.0

  • what is random?

    what is random?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    RANDOM is a quite common word, like in life as in programming languages, but it also has human interpretations which can lead to false expectations . . .

    a random function doesn’t necessary return a unique result, it should be seen as unpredictable result, let’s say you have 10 words and want a random pick, the random functions does it, but, eventually you will see ten times in a row the first word, pretty much like roulette

    since that might not be desired, e.g. on a commercial site you want to show on each visit another “random product” to the customers, but not repeatedly the same product

    so now we see that we are not exactly want it to be random, we want it do be different from last time, in order to get that done we need to query the product table, create the product list and pick one to show it and take it out of the list, next visit gets 100% another product, because the former isn’t in the list anymore

    we wrote our stray function as valid alternative to common random functions

    recap, we create a list, pick one after the other, when the list is empty we create a new one, we repeat the process as many times we want

    of course, seeing the same product can still occure after refreshing the list and starting over, depending on the number of products you have it happens sooner or later, that the same product hits the same visitor is far less possible than it happens with a simple random function

    random versus our stray function is a concept, which one you use depends on the desired outcome



  • silent friday, but just hanging?

    silent friday, but just hanging?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm
    hakka quote … The most dangerous phrase is: We've always done it this way.

    nooooo, haha, never, so we wrote the wpHakka Quotes Pluging this morning . . . just to do it better than stuff we’ve seen out there . . .

    no bragging here, that is just what we do, and what’s better with this thing?

    well, firstable it doesn’t create fancy custom post types and so we don’t add any wp_posts pollution at all, secondable, it can be inserted automatically at a certain position you choose, like above or below content, header or footer, valid for all pages and posts, or, you can insert it whith a shortcode block, thats all, but not everything

    you can configure it on the admin page margins and paddings, you can set the quote font, its size, its color, you can set a block background which than appears desaturating nicely to the left until total transparency, you can set the alignment of the block and also the quote alignment within it

    of course you can add and delete any existing quote, it comes already with some, you can add the author’s name and select a category

    our choice is using it as shortcode, it can be placed anywhere you want, even in the middle of the page or wherever

    how YOU use it? up to you, telling jokes or serious stuff, full dynamic content whith another random quote from db on each page load

    that’s it then for today, until nothing pops up suddenly haha

    CU guys, have fun and a nice weekend

  • ghost hunting ... exorcism instructions

    ghost hunting … exorcism instructions

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    a normal person doesn’t think about it, but everybody should know, probably you should pay attention to what comes . . .

    know what this is?

    ml-slider 24
    mgmlp_media_folder 13
    wp_template 9
    wp_template_part 7
    bsf_custom_fonts 6
    ris_gallery 4
    wp_navigation 3
    revision 2
    wp_global_styles 2
    sp_post_carousel 1
    wp_block
    1

    it is a crap report from your wp_posts table, that are the ghosts you might be hunting, custom post types, without knowing, people say “phenomena”, they say “out of nothing”, “weired” or any other mystical words to explain their state of not knowing what is happening . . .

    there are thousands of search engine results with wild suggestions and sensless solutions, AI goes into helpless mode and answers with crappy unlogic suggestions . . .

    what is it then? firstable it is CRAP, real crap, crap created by others and let behind by others

    it hit’s you when you’re getting funny wp_query results with scrambled post order ...

    here is how you can make a 1 minute check if you’re site is affected:

    SELECT post_date, COUNT(*) AS cnt
    FROM WP_POSTS
    WHERE post_status = ‘publish’
    GROUP BY post_date
    HAVING cnt > 1
    ORDER BY cnt DESC, post_date DESC;


    nothing? good, lucky guy, if not read on . . .

    that is a double trap, planted by a fugging theme or by a fugging incompetent plugins, they create custom post_types and inject them into the posts table, what is not necessary bad creating them, but they don’t remove them when you deactivate or uninstall the plugin, or change the theme . . . that’s crap number 1

    still worse is, that they insert them with the EXACT SAME DATE STAMP, aka as post_data and post_date_gmt . . .

    that fuggs up your table indexes and comes out as a scrambled post order when you query your post table, EVEN if you query any other post type, when SQL finds two records with the exact same timestamp it delivers the first match and inserts deliberately the other or the others somewhere else in the query result!

    it also really doesn’t matter if you query with post_data or ID order, the index matters, the data is correct

    it might help ordering the query by two arguments, like


    ‘orderby’        => array(
                           ‘date’ => ‘DESC’,
                           ‘ID’   => ‘DESC’,
                   )


    but doesn’t solve the problem, it likely catches you later somewhere else or stays unnoticed . . . .

    the problem is that the index doesn’t hold invalid data, means ANALYZE and OPTIMIZE TABLE doesn’t catch it

    what should you do then?

    first step is checking which plugin created the bad data, then you really should remove the records for good and also consider removing that crappy thing, if, for any reason, you need them still for something else than mocking you constantely, you can try this, just change the duplicated time stamp in the records, with this SQL QUERY


    SET @offset := 0;
    UPDATE WP_POSTS
    JOIN (
    SELECT ID, post_date,
    @offset := IF(@prev = post_date, @offset + 1, 1) AS delta,
    @prev := post_date
    FROM wp_posts
    WHERE post_type NOT IN (‘post’,’page’,’attachment’)
    ORDER BY post_date, ID
    ) t ON p.ID = t.ID
    SET p.post_date = DATE_ADD(p.post_date, INTERVAL t.delta SECOND);

    yes, a second is enough to have distinguishable time stamps, after running it, check agaiin with the first query above, you should have no results and your data WP_POSTS table is clean now

    now run this QUERY to exterminate the ghost’s leftovers


    ALTER TABLE wp_posts DROP INDEX type_status_date;
    ALTER TABLE wp_posts
    ADD INDEX type_status_date (post_type, post_status, post_date, ID);
    ANALYZE TABLE wp_posts;
    OPTIMIZE TABLE wp_posts;



    now go check your query order to see the ghost is gone . . .

    exorcism was successful

    thanks for reading this post . . .

    obs.: the queries are good, just substitute wp_posts or WP_POSTS with your valid table name

    credit: problem analyzed and solved by H.Mich

  • photography == programming

    photography == programming

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    if (sounds absurd to you) {read further} else {keep doing it => both}

    let’s break it down . . .

    – you need sharp eyes
    – you need fast reaction
    – you need good intuition
    – your need a wide-angle, tele and macro lens
    – you shouldn’t listen to others


    if you have it, you don’t have to fear anything, AI isn’t a threat, no machine is, you can do it with any camera, probably without any at all

    you are the machine, soon you see it the main action starts running, setting the scope, activates the helpers and keeps looping in your head . . .

    and it keeps running and running, 24h a day, 7 days a week, none stop, even a general blackout can ocurre, you keep running the idea over and over until it clicks . . .

    the wide-angle captures the scene, the tele lense sets the goals, the macro defines the functions, while this is ON you’re entering an inherit state, nobody shoudl disturb you now until your brain closes the last brace . . .

    revelation moment, it’s there in front of you, all set, it’s the picture you had in mind

    so far so good, easy to understand, right? the missing part is the analistic part, the prelude to be good in either one, it’s not enough knowing how to write a program or how to make a picture

    who never worked as analist can be the best programmer of all times, the outcome still might be useless, this happens because of missing, bad or incomplete analisys of the situation it was made for . . .

    we know the best photographers come from street photography, the place where no prediction, no planning, no posing and not even light control exist . . . that’s the place where you leaarn to control your gear, train your reaction and have your wide-angle always open in order not to loose a single detail from the big picture, soon you notice it you focus and bam, that’s it

    long talk, short end, “the streets” for programmers is wordpress . . . the open octagon where no rules exist, could you survive?

    if I have nothing to do? maybe haha, this week I take off, hakka FEED plugin is ready, wasn’t easy and now trying to distract, photography is a good companion, like therapy, trying to get my mental sanity back

    but, the next idea is already cooking, haha, hakka-hakka-haaa, so keep watching :)








  • I tell you what it is ...

    I tell you what it is …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm's media library is a joke, we fix it


    you won’t believe how many times I hear “that won’t sell” from friends and colleagues, that always gets a mouth twitch and a smile, you don’t get it, I always answer . . .

    what is: what you do for money never gets your best

    people study markets, competitors, trends and all that shit to do something anything in order to get rich, and that, that is the reason for so much crap on the market, whether products or services

    I never went into it, I always thought: hu?

    my way to do what I do is trying to make something better, or, often to turn a thought, an idea into something real, just make it happen

    this wordpress hacking is not for sale, it is my pleasure, I am fixing the shit

    wordpress is crap actually and nobody even say it . . . those guys nag you to upgrade shit with still more shit, they don’t fix shit, they break with their updates things somebody fixed before in order to use it . . . that’s crazy, unacceptable

    so in very first place I optimize wordpress for my own sanity and not on any market’s or customer’s demands

    my criterias also are mine and never like “good enough to ship”, I am totally binary, or it works or not, and so long as it is not I keep hacking until it does

    you’re trouble man, haha, I am not, I am solving problems and shit people threw on the market and say it is free and then ask for money, that’s mafia style . . . delivering shit, then ask for money to deliver more shit? pffff, please . . .

    you hate wordpress, haha, I don’t, silly, I love it! just not as it actual is . . . I am on the way to make it wordpress again, cutting out the cancer parts, dropping the bloat, blocking the money mongers, I am giving it the wheels it needs to be a real cool blogger core, stable, secure, fast and EASY TO USE . . . just thinking about needing a course do understand how wordpress works and how to create a site with it?

    maaaan! we’re in 2025! there is no time to learn and read manuals, USUABILITY is they KEY POINT and wordpress is at pluto distance from it . . .

    you will see, my work has just begun, keep watching . . . but you also could try it, jump in, feel it, the joy to blog hasselfree . . .

  • java script is from Sicily

    java script is from Sicily

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    the rules are clear, there is the GODFATHER SCOPE, the CAPO scopes and numberless MA FANCULO scopes . . .

    everything needs an appropriate callback or you end up dead, everything has a codename, nothing and nobody has a real name

    json and ajax are aliases to dominate the operations and usually run asynchronous and everybody has to wait for their grace when they then advice you to finish up, if you can’t, you get the redcard remembering your [promises] to stay back

    nothing is clear and like the island they stole the name from, full of eruptions, milhões of people everywhere and the killer can hide easily

    one wrong step and you get smashed up, body parts cut off or at the bottom of the sea with your legs tied to a concrete block

    better you be smart and cut to the chase, don’t wait for the callback, be there where they write it . . .

  • a word about simplicity ...

    a word about simplicity …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm's media library is a joke, we fix it


    there are thousand ways to reach Rome . . . even if you are just 1000 meters away you can take another route which might get you there after almost 40000 kilometers . . .

    same statement you can pronounce in reverse order and simplify as: there is always a shorter way, what brings you to understand that simplicity is a point of view.

    that is valid for everything you do, specially in programming, when I look at the code people write today, I can see they are totally lost, most of them are back to write tremendous spaguetti mixups so deeply nested that they probably don’t even know anymore what they are really doing . . .

    when I look at the daily upgrade noticies from google play I see it clearly, all this people who work at this giant google code arena are hakking wildly around, seems they have no plan where to go anymore . . . there is no logical explanation that a software, as bad as it might be, needs daily upgrades . . . that is total madness, but also sadness . . .

    and we should not accept that, it really is unacceptable . . . but, the submissive behaviour of accepting everything of most people is what scares, nobody says a word, quietly they keep walking and swallowing the shit around them ,,, that’s like zombie crowds on the street, also reminds me of this movie “I, robot” . . . that thing showed us what is happening now already twenty years ago

    ARE YOU ALL STUPID or what?

    WAKE UP!

    SIMPLIFY!

    start with your life, with your mind, kick the crap out of it, become human again, what starts with real feelings, emotions, respect, reasonability, intelligence and commitment . . . then set the point, what are you going to do now and how?

    may be then, out of nothing you remember something so trivial

    I can see clearly now the rain is gone
    I can see all obstacles in my way
    gone are the dark clouds that had me blind
    It’s gonna be a bright
    bright, bright sunshiny day
    It’s gonna be a bright
    bright, bright sunshiny day
    ooh, yes, I can make it now the pain is gone
    all of the bad feelings have disappeared
    here is the rainbow I’ve been praying for
    it’s gonna be a bright
    bright, bright sunshiny day

    start humming, get up, reboot . . . and start living again

    peace


  • the holy grale ...

    the holy grale …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm

    here is how we do it !

    a complete set of wpHakka plugins is a subsystem to make wordpress great again, I know, it’s a stolen slogan, but know what? this one works . . . flawless.

    Key Points:
    Commander, an autonomous image upload system with real folders tames wp’s native disorder
    IIBI-3R, a post creator which will make you say wow with an extra large ooooooo in the middle
    The hakka FEED, an uncomplicated but complete Latest Posts Page creator which will make the others cry and your visitors will always come back just to see the beautiful neat layout

    Best of All . . . no nagging paid upgrades, no hidden features, no silent system configurations, no third party dependencies, works with native Twenty-any block themes giving them high functionality and easy to use features wp had only dreamed of, NO Editor requirements, works perfect and easy with wp’s native guteberg block editor

    ON TOP OF IT: you never need anything else because our upgrade support is lifetime and free, buy it once and forget it

    a glimp . . .
    check any image from the library, hit copy image id, automatically the new post template opens, click the +, check the 3R box, paste the image id and confirm . . . badaaam . . . your image appears in the first row and has already two other rows with single column in it . . .

    in its basic settings you define once from IIBI-3R adm page for image width, alignment, padding and AltTxt . . .

    to get a post published now it is a two minutes operation! even if when you’re a slow writer, you get a new well designed post online with image and featured image already set in a flash

    how many times you wanted to kill the wp-devs, burn down your site or do any other wild thing to the people who gave you this fugging gutenberg editor . . . it’s over now, realax , we tamed the beast . . .

    get it and go blogging as you always wanted to . . .

  • what real motivation is  ...

    what real motivation is …

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm's media library is a joke, we fix it


    all talk about, but nobody tells the truth, they invent whatever it is to sell their illusions . . .

    there is no better motivation than the own success in whatever you do, set your goal, go after it and don’t give up until getting there, that’s motivation . . .

    everything else is just a dream and throws you down into the frustration manhole . . .

    that’s the only way to start believing in yourself, understanding your capacity and discovering that you don’t need anybody . . .

    success starts with not believing anybody and doubting everything, get yourself a shuffle and start digging for the truth . . .

    that is victory, you just won against yourself, you just trashed your insecurity, you stepped up against everything within your existence what always said no, impossible . . .

    as in this poem whoever wrote it: no better victory than over yourself !

    do it! win! we want to applaud you!

  • database archaeology, plugin exorcisms, and font-face forensics

    database archaeology, plugin exorcisms, and font-face forensics

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    what ???

    it was just “making a website” and became an odyssey beyond hades’ darkest sides where wordpress devs gather to write mystic nested php methods and worship json entities . . .

    then the rest api gods appeared and marked the boundaries so that simple human programmers never could come close again, people started sweating blood and starved with hard core coffee mugs in hands while praying for medusa coming down to fossilize their brain pains . . .

    we keep writing this saga which probably never will end, but in a certain way it has ended already, seems everyhting is out of control . . .

    because of lacking real project coordenation nobody seems to know what the others do, so they got cought in their own magic of obfuscation, they fix something somewhere and that breaks something elsewhere . . .

    the vicious cycle of limited minds, same happens when you give your car to a cheaper mechanic, he might be an expert with bolts but has no clew which nuts hold them on the other side . . .

    my father always said “planlos geht die Welt zugrunde” (without plan the world decays) and he was right, they believe AI will save them, but will make it worse

    so what shall we do?

    fixing the whole wordpress dilema, probably not worth it, fork it and crop it, then building a solid modern base, that would take time and money to get there, creating our own CMS (content managment system) focussed on a serious blog/page kind structure?

    we still don’t know, but we’re thinking a lot about it, time by itself doesn’t bring solutions, just the end, so before we get there we have to do something . . .

    until then, with peace in mind, we keep digging . . .





  • what is minification?

    what is minification?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    minification is eliminating excessive white space from the html page code

    white spaces are more than one space between chars, tabs, new lines and empty lines, which are often quite usefull for coding practives, to make the code easy readable for the programmer

    when the server compiles the code to produce the final html page, it needs to read any space and any empty line as well as any line which contains characters, but since there is nothing it just occupies cpu cicles and can result in slower processing

    minification is handy specially in scenarios, like wordpress, where exist hundrets of funny spaguetti layers of css styling code, in order to compensate this stupid thing we can at least compact white spaces and give the code a little bit more dignity

    we can still split the minification process into js, css and html minifying, when often css minifying is the most important and comes out whith a respectable performance enhancement

    js minifying doesn’t show noticable results since there usually aren’t very much <script> blocks in the final rendered document, but can become an issue on heavy loaded sites where every single cpu cicle less can make a difference

    html minifying is also a questionable part for low traffic sites, but shouldn’t be let out, it creates performance benefits, even if not directly noted, in peak hours the difference shows up

    all three options are not bunker save and can cause unexpected results, happens that sometimes programmers have unusual habits in terms of how to use white spaces, simple example is a horizontal menu with space between each menut item, he might use three white spaces to focus better the available options, these spaces could be eliminated what then results in a manu bar without spaces between the options

    knowing that, who opts for using minification should check all pages to be sure nothing unexpected happened, in our case, the user can report it and we check if we can prevent it with a special handling, it is not always possible and the site programmer should be consulted to provide a better coding of the affected section

    as always, feel free to comment or ask questions

  • the line is big, caching ON or OFF ?

    the line is big, caching ON or OFF ?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm


    a constant question which has no straight answer, should you cache your wordpress pages/posts?

    what means caching pages?
    in modern PHP terms, all pages are build dynamically on the fly, html is static and doesn’t need any further processing, just fetching the images, that is fast . . . php by design is different, but there are at least 80% of all pages which are not exactly having dynamic content, e.g. a post, you compose it and post it, then it is there as is, seldom this content is changed, so it makes sense to cache it so that the server doesn’t need to compile the page for every single access and serve it directly as static content from cache, that is the reason that our S-Cache plugin offers caching of pages and posts, you can disable page caching if your pages are constantly changing, e.g. the home page shows the latest posts, in order to serve an always updated page you shouldn’t cache it, but the posts you should

    then let’s split the line, we have to consider various aspects, there is the server performance, processing power and disk performance, then there is the client capacity and its bandwidth, then there is the code of each page, several other issues can influence the decision

    a sanitized answer would be, if you want no problems, don’t cache . . . but problems are not always problems, they just need to be addressed accordingly in order not to create problems

    difficulties arise by the fact that any service provider is caching, there are even special cache services for mobil devices in the middle, that is a problem, all of them are transparent cache mechanisms and there is no easy way to filter out or test them, another issue is the browser’s cache and eventual data-save-processing options

    after knowing all that we can say again, there is no clear answer and you need to check it out, enable the cache service and see what comes out, don’t forget to check with several browsers, at least Chrome, Brave, Firefox should be on your list

    next doubt is cache age, how long until a cached object should be refreshed? if your content doesn’t change very often you can set a high value like 28800 or even higher, that are seconds or 8 hours, 3600 would be 60 minutes . . . and the we are again at the point, there is no straight answer, you need to check it out . . .

    so then, all this testing is it worth it?

    again, up to you to decide, set 3600s and enable cache, test it, if it is notably faster than without cache, then you should say yes, go into fine tuning and find the best setting for your site

    have a look at our wpHakka Simple Cache page and see what we have to offer

  • could wordpress come out of the hole?

    could wordpress come out of the hole?

    StudioOne Repo - wpHakka wordpress underground, plugins, security, fixes, comments, and lots of sarcasm



    which hole? the hole they digged themselves into . . .

    one side is, we have to admire the wp devs that they still holding it up, the other is, there is no easy way out of the maze of workarounds and unsufficient methods implemented into the core code, code documentation’s state of art is probably the worsest part

    the good thing is, if you accept it as it is you don’t have to worry, occasional you get trapped into some hickups, then you hire a website developer or migrate to one of the wordpress hosting companies . . .

    if not . . . you are trapped too and doomed to study core code, read a lot and be creative to find a way to make it happen, you could do what most plugin makers do, do whatever goes, wordpress is today like MMA, there are no rules, everybody creates his own and makes the whole worser as it already is, wisely wordpress comes with logging disabled and who enables it get shocked of the garbage coming from the savage plugins . . .

    wordpress is like a favela, there is everything, but totally unorganized, breaking walls, roofs with holes and muddy streets, nobody knows what the others do, the land of outlaws under constant threat of any kind of bad dark and stormy weather with thunder strokes, the nice and clean city is somewhere far at the horizon and you look at it as dream on sunny days . . .