Site suggestions, the future and other stuff

Started by Qube, June 12, 2017, 01:40:18

Previous topic - Next topic

Derron

I did the way it allowed me to upload/link an avatar. If external wasn't allowed it should upload external to local to avoid these hassles.
Never forget: the programmes should adapt to the users, not the user to the programmes.

Also: it is very trivial to prepend avatar-urls to be interpreted as "local urls" (just check if the string begins with a valid scheme (http, https, ...) or maybe even if it contains slashes (as the local ones wont).

All in all it is of course possible for Qube to silently adjust my avatar URI - keeping the initial "bug" intact.


bye
Ron

Derron

Portal 2.3.7 was released.

Have looked into its sources and saw that it hardcodes "http" checks, so any avatar with "https" is not recognized correctly.

Knowing this I also found this:
https://www.simplemachines.org/community/index.php?topic=554689.0

Seemed in SMF was not capable of https-avatars in 2017 (!) - as it works for https-enabled sites like syntaxbomb, this is not that bad as it sounds.




Without further tests (syntax should be right but I did not test it):
you need to adjust "PortalBlocks.php"


find lines 528-530, 938-940, 1412-1415, 2338-2340, 2464-2467, 3276-3278, 3468-3470 (seems all of these are exact the same [sic!]):
Code (php) Select

            'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
            'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
            'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])

There is a simple "contains 'http'"-check which needs to get extended.


Code (php) Select

//replace
stristr($row['avatar'], 'http://')

//with
(stristr($row['avatar'], 'http://') || stristr($row['avatar'], 'https://'))


Means: you allow both http and https to be used.

PS: You seem to miss PHP syntax highlighting :-)

bye
Ron

Qube

Jolly good, I will look into getting this fixed tonight along with PHP syntax highlighting :)
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Derron

#138
Seems you handled it. Good thing.

Edit: Voting for the last compo is no longer open.

bye
Ron

Derron

Chat: Logo does not lead to index page of website. Should maybe open in a new window?

As suggested in the chat - maybe make it more "emphasized" on the front page?

Dunno how to make it more useful to the crows. Eg. Some fixed "chat evening" (once/twice a month). Not needed to make it "developer-topics" only - but of course we could have "talk about a project" rounds.


bye
Ron

Qube

QuoteChat: Logo does not lead to index page of website. Should maybe open in a new window?
Something I forgot to do :o - I will remedy that.

QuoteAs suggested in the chat - maybe make it more "emphasized" on the front page?
What I really need to do is build it into the front page and have it expand the chat window if members want to see / join in. Having it on a separate link kinda keeps it hidden away more. Also the chat probably needs more work but that's only worth doing if people use it.

QuoteDunno how to make it more useful to the crows. Eg. Some fixed "chat evening" (once/twice a month). Not needed to make it "developer-topics" only - but of course we could have "talk about a project" rounds.
I blame social media for the death of live chat ;D
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Derron

Hmmm ... maybe add telegram support (or such a thing) so people get a "plllliing"-message on their smartphones :p.
Some kind of "messenger - chat"-thing.


bye
Ron

Qube

QuoteHmmm ... maybe add telegram support (or such a thing) so people get a "plllliing"-message on their smartphones :p.
I think that would drive people mad :P
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

round157

#143
My post is not about the 1st, 2nd, 3rd or 4th competition but about the future of this nice forum. Therefore, I write this post in this thread. This forum is nice. Thus I try to write this post. I make this suggestion to Qube. My suggestion is that no cash prize will be offered in the future competitions. These are reasons.

1. Qube has created this forum and spent a lot of time on maintaining this forum for people to discuss different aspects of game programming. Thanks. I enjoy reading discussions here because I can learn many things in different aspects by reading in this forum. When member asks a technial question, other members usually answer after a very short period of time. This is a convenient forum for game developers or progamming learners. Money used for improving this forum to make it better is more important than providing cash prizes.

2. There are no physical or cash prizes in many famous game programming competitions in the world. For example, Ludum Dare, PyWeek, etc. There are still a lot of entries submitted to these competitions each year. Participant's prize is participant's product. That said, participant have a finished game now. Game may not be finished if participant didn't join competition. Therefore, it is the best prize. Code a Game Competition should learn from these competitions.

3. What is important in any competition is community interaction and personal development. Innovation and fun are also important aspects in compeitition. "Challenge yourself" is another reason which some participants joining competition. Most participants join competition because of these reasons. If there is no prize money, they don't mind.

That's all. My English is too poor and I hope that it will not be too difficult to understand my post. Thanks.

Yue

I think differently, the award is a motivation for people to be active in this community, and since qube can do it, it is an attractive and motivational investment for users of this forum.

Qube

QuoteMoney used for improving this forum to make it better is more important than providing cash prizes.
You could spend £1000's a month on forum software and advertising and honestly nothing would change in regards to a quality base of members. You could spend equal amounts on content creators but you'd still have silent users. Only extreme amounts of money would aid in full on forum growth and a high percentage of that would be false.

To be honest I'm not interested in having thousands and thousands of members with thousands and thousands of posts per day. I prefer to think of this place as a niche hobby coders community and my goal is not to have a massive forum. I'd much prefer a small quality user base where we all just have a little fun and help each other out. Slow growth is fine with me although I understand that others may disagree.

Quote2. There are no physical or cash prizes in many famous game programming competitions in the world. For example, Ludum Dare, PyWeek, etc. There are still a lot of entries submitted to these competitions each year. Participant's prize is participant's product.
This is true but I like that there is a real prize to be won. The pride in winning and also a physical reward.

Quote3. What is important in any competition is community interaction and personal development. Innovation and fun are also important aspects in compeitition. "Challenge yourself" is another reason which some participants joining competition.
I think we already are seeing that and I doubt members are putting in all the hours in creating a game just for the cash prize alone. As touched on above, I do believe that it's great that any member old or new can enter the comps, have the glory of winning and also have a physical prize. It's just a little extra on top.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

MikeHart

Quote from: round157 on January 31, 2018, 02:09:25
Money used for improving this forum to make it better is more important than providing cash prizes.

Please elaborate on the improvements that could be made to this forum which need money to be invested in them. I am curious.

Derron

Not 100% serious  8) - design
- moving to a CDN/Cloud server to allow concurrent access by thousands of people
- paying some moderators to keep a forum clean once it has thousand of users posting stuff
- payment of administrative/technician tasks (if Qube looses interest in doing it)
- traffic

While Qube wrote he is hosting the forum himself (home hosting) it often needs a business account (more expensive than consumer accounts) if you do it on a "commercial base" (the definition is really vague - especially if you ask the lawyers wou want to sue you :p). So they might from then to now close his account if he creates too much traffic. But this of course depends on his provider-contract.


bye
Ron

RemiD

[troll]
add a worklog section for those who post a screenshot each time they make little progress  :-*
[/troll]

Rick Nasher

I want to request a teleportation feature..  ;D
_______________________________________
B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________