User Reviews

For general chat only - otherwise use Game Chat!
jesusalva
Admin
Admin
Posts: 43
Joined: Wed Jan 11, 2017 9:07 am
8

Post by jesusalva »

TL;DR - No need to read this message if you didn't read above one. Seriously. Don't tell me you read documents before signing, too?!
Anyway, this is a reply to @msg-commander and may feature insane Javascript hack, so be warned. The objective is to transmit a way to think on things, and not to endorse usage of hacks or security-compromissable codes.

Anyway, initially I was thinking in DOM. Might want to take a look at https://www.w3schools.com/jsref/dom_obj_document.asp

It makes easy doing client-side hacks, if you ask me. A hack is an unreliable or poorly designed code, meant to patch a problem without really fixing it. For example, if you have water leaks on a hose. A fix is to change the hose. A hack is to patch the hose with insulating tape. The hack will prevent the water leak for a while, but as you might have noticed, there are a hundred of concerns with it, and if you get a water leak, the first place you'll look is at the tape (or at the hack - nevermind).

Back to topic. There's a Javascript property called document.documentURI. Basically, the final address on the website is rendered based on the taxonomy name, not on it's ID (except, maybe, in a few cases).
I am assuming that, of course, you're very consistent and every Game have a (valid) Peanut Gallery correspondence.

Doing the code could be accomplished in one of two ways:
1: You can "manually" convert the taxonomy name (basically, lower-case, replace special characters and trade spacebars by slashes): so Asdivine Hearts 2 becomes asdivine-hearts-2
With this, you add an hyperlink to the template (or something like that. Again, I don't really use Wordpress.)

So the page will render a link with reference to the taxonomy name - this is too much specific to Wordpress, and I am afraid I can't really give you any advice. It'll look something like this:


variable=TaxonomyName.replace(" ", "-").lower()
write("Blog posts about this")


The concept might be easier to understand using Javascript. But there are security holes, so only read this if you're BORED. Or curious.
2: You can use Javascript to do this. Not very reliable, and JS is not exactly what you would like to use. It's client-based too, so you can never be sure that it's working.
But either way, it's basically introducing a Javascript code on the page, which must NOT be inside a function. It's not amateur level to write within the webpage using Javascript.
You basically add a script tag to retrieve document.documentURI value, split it using "/", takes the last argument (probably using len function), and writes in the document an hyperlink using that new value.

I can't really remember how that works, so don't try to copy this code. It's only to you understand in what I'm thinking:

script
new variable=document.documentURI.replace("https://www.rpginsanity.com/", "")
document.write("Visit Peanut Page");
script


As you can see on my thinking above, it's... a hack. An unreliable one, even. This is what you do when you only need the work done.
There are a few problems and exploits, though. For example, what if you are on
https://www.rpginsanity.com/alphadia-2? ... Fscript%3E
Do not try this example because it won't work, it only demonstrates that evil code can be inject on the URL, and with such approach, you'll be actually rendering the URL - with any evil code alongside.
So I can add somewhere a link to the game page but with evil code within the URL - so a legit visitor may get harmed.

...So, in short, there are easy hacks but they make you start worrying with security. However, using the Taxonomy name seems to be somewhat safe, after all, they're on pre-rendering stage: I suspect the data is only within server-side. So while using a Javascript hack does get the works done, you'll need to think about how to prevent it from being exploited.

Wordpress does have some safety measures against script tags, though. They're unsafe, anyways. This is for concept, not for reproduction.
So that's all, I guess! This is what I was thinking on. There are other ways to think though, and different solutions, so don't lock yourself in a single way to do things >.>
...And please do not use hacks. Thanks. Seriously though, would you buy a hose which has holes sealed by insulating tape? No? Then don't use hacks on public sites ;) :P
Jesusalva / Jesusaves (Buy me a coffee!) / (Sponsor the website!)

Make your time.
MSG Commander
Admin
Admin
Posts: 1523
Joined: Fri Jul 31, 2015 5:18 am
10

Post by MSG Commander »

I think, based on my current abilities and knowledge of WordPress, that it would be easier for me to do it in PHP. Plus I don't know JavaScript at all, so that would make it harder for me... ?

But I think it's still a bigger task than I want to take on right away. For now it'll remain on my list of someday if I have nothing else to do, I'll work on this a little bit at a time.
All your base are
jesusalva
Admin
Admin
Posts: 43
Joined: Wed Jan 11, 2017 9:07 am
8

Post by jesusalva »

Well, while I do agree that, say, previews are more important (oh noes, they say that Jesusalva doesn't forget... Were they right?!), it would help a little bit for the ones who read "Peanut Gallery" and have no idea of what it means. (I'm from Brazil, remember...?)

Even a plain text without any link or taxonomy search (eg. "Check also peanut gallery for our 'staff' reviews!") should be suffice to patch the problem for a while. If a player is truly interested in a game, they will search the gallery. And While a link is very convenient, it's still a convenience, not an absolute necessity. ;-)

PS. Replace 'staff' with an appropriate term, thank you.
PSS. A single text saying to I check for additional, probably incomplete walktrhough info on the forums was what brought me here in first place. If they're interested, they'll check the gallery. :P
Jesusalva / Jesusaves (Buy me a coffee!) / (Sponsor the website!)

Make your time.
MSG Commander
Admin
Admin
Posts: 1523
Joined: Fri Jul 31, 2015 5:18 am
10

Post by MSG Commander »

A little update: I've found a way (on a test version of this site on my desktop) to assign the same categories across the board to Game pages, Peanut Gallery posts, AND individual forums! (i.e. I can now assign all Alphadia walkthrough pages, reviews, and the Alphadia forum, to the same "Alphadia" category.)

So, I still need to play with it a bit on my desktop before I make changes to the live site, but... It looks like I do NOT need to "map out" the relationships between different categories, which will make the rest of this project much, much easier.

All I need now, is a way to say:

"If you're on a walkthrough page for 'game x', show links to the 'game x' forum and to any articles about 'game x' in the Peanut Gallery,

If you're in the 'game x' forum, show links to 'game x' walkthrough pages and 'game x' Peanut Gallery articles,

and If you're on a 'game x' Peanut Gallery article, show links to 'game x' walkthrough pages and the 'game x' forum."

--- Which means, wherever someone is on the site, I need to
1. identify the "category" associated with that page, post, or forum
2. create a list of all pages, posts, and forums in that category (which will not be seen by the user, but is necessary to find the appropriate links)
3. determine whether the page they're on is a page, post, or forum
4. render the appropriate links to related content in the two sections they're currently not on. :)

This is probably a much easier task, but it still might take awhile to get it done. Not to fear though - once I can properly explain what I want to achieve, I'm going to post on the WordPress developers forum, and see if anyone there can help me find the answer (I've had some luck there in the past, so I think there's a good chance.)

P.S. Also, as to the naming of the "Peanut Gallery." It really is just a blog, but I didn't want to just call it "Blog" because well, boring... but if lots of peeps think Peanut Gallery is a dumb name, a bad name, a confusing name, any or all of the above - well, let me know. I like the name because it makes it sound more fun to me, but if it's confusing people or it just doesn't make sense, I might just have to roll over on this one and change it to "Blog," after all... (And if nobody thinks it's dumb or bad or confusing, then I'll leave it.)
All your base are
jesusalva
Admin
Admin
Posts: 43
Joined: Wed Jan 11, 2017 9:07 am
8

Post by jesusalva »

[quote=23625]
P.S. Also, as to the naming of the “Peanut Gallery.” It really is just a blog, but I didn’t want to just call it “Blog” because well, boring… but if lots of peeps think Peanut Gallery is a dumb name, a bad name, a confusing name, any or all of the above – well, let me know. I like the name because it makes it sound more fun to me, but if it’s confusing people or it just doesn’t make sense, I might just have to roll over on this one and change it to “Blog,” after all… (And if nobody thinks it’s dumb or bad or confusing, then I’ll leave it.)
[/quote]

I am with the "CONFUSING" group. Seriously. What is a "peanut gallery" even meant to mean? :s :)
However, for now, a hover label should be suffice to patch this wound. What was the command? alt? No, it was something else... Ah yes. "title".

So just change

Peanut Gallery


to


Peanut Gallery


And it should be patched, first-aid toolkit style.
Jesusalva / Jesusaves (Buy me a coffee!) / (Sponsor the website!)

Make your time.
Overdrive
Member
Member
Posts: 60
Joined: Sat Apr 30, 2016 12:59 am
9

Post by Overdrive »

Dang, I'll have to take advantage of this new user-review system on the actual game pages. Not to spam myself (even thought I'm ACTUALLY doing that!), but I've reviewed over 400 games for Honestgamers, including a number of Kemco games (gotta find a niche that few others have tapped into -- Shaun Musgrave of TouchArcade is the only other prolific one that I know of) and it was tricky to do my 2-3 regular reviews that I did, since my stuff there is exclusive to that site and it's tricky to re-review a game (besides, I'm not even trying to compete with 1oldtymer's personality in his reviews -- I'd lose at least 99/100 times and the one time I win would be objected to due to the crooked ref I bought to judge us).

But with this, I can capsule review my way through everything I've played. Controls might be the only hard part, as I tend to blame issues I have on me being a 43-year-old dude just getting into touch-screen technology. Viva la Rob!!!!
MSG Commander
Admin
Admin
Posts: 1523
Joined: Fri Jul 31, 2015 5:18 am
10

Post by MSG Commander »

^ Yes PLEASE!

By all means, review all the games. :) I've only done a handful myself, because I do prefer to write the review shortly after completing the game, so that everything is still fresh in my mind... So the more reviews we get from other players, the better!
All your base are
MSG Commander
Admin
Admin
Posts: 1523
Joined: Fri Jul 31, 2015 5:18 am
10

Post by MSG Commander »

[quote=24281]
I am with the “CONFUSING” group. Seriously. What is a “peanut gallery” even meant to mean?
[/quote]

After seriously over-analyzing the situation (really, I thought about this for far too long), I've decided to just go with "Blog."

Sure, it's bland and boring :( but at least everybody knows what a "Blog" is. So, from a practical point of view, it just makes the most sense.

FWIW:

I may not have this exactly right, but...

"Peanut Gallery" is an old US phrase, referring basically to "cheap seats" at the theater, or more specifically to the poor or working class spectators, who actually used to throw peanuts at performers they didn't like (and also shout insults and boo the performers off stage, etc.) In the 1940s/1950s, the US program "Howdy Doody" included a child audience that they called the "Peanut Gallery," and at that time the phrase took on a more jovial meaning, essentially referring to people who "poke fun" or make off-hand comments at inappropriate times during a performance.

So what originally described very crude behavior, nowadays is meant to be somehwat more amusing. (I was going for amusing/entertaining, but I have an odd sense of humor...)

(By the way, according to Wikipedia, "A similar term was introduced to Brazilian football by coach Luis Felipe Scolari. He called Palmeiras' complaining audience that sat in the closest seats "Turma do Amendoim" ("peanut gang")."
All your base are
MSG Commander
Admin
Admin
Posts: 1523
Joined: Fri Jul 31, 2015 5:18 am
10

Post by MSG Commander »

Awesome news!

You can now edit your user reviews!!!

Just go to a game that you have previously reviewed, find your review, and click on the "Edit the Review" link.
All your base are
Post Reply

Return to “General Chat”