May 27, 2019, 11:22:22 AM

Author Topic: Site suggestions, the future and other stuff  (Read 31426 times)

Online Derron

  • Hero Member
  • *****
  • Posts: 2092
Re: Site suggestions, the future and other stuff
« Reply #135 on: January 27, 2018, 12:38:10 PM »
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

Online Derron

  • Hero Member
  • *****
  • Posts: 2092
Re: Site suggestions, the future and other stuff
« Reply #136 on: January 28, 2018, 04:32:57 PM »
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
  1.             '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" />'),
  2.             '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']),
  3.             'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
  4.  
There is a simple "contains 'http'"-check which needs to get extended.


Code: PHP
  1. //replace
  2. stristr($row['avatar'], 'http://')
  3.  
  4. //with
  5. (stristr($row['avatar'], 'http://') || stristr($row['avatar'], 'https://'))
  6.  

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

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

bye
Ron

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
Re: Site suggestions, the future and other stuff
« Reply #137 on: January 28, 2018, 07:28:04 PM »
Jolly good, I will look into getting this fixed tonight along with PHP syntax highlighting :)
Until the next time...

Online Derron

  • Hero Member
  • *****
  • Posts: 2092
Re: Site suggestions, the future and other stuff
« Reply #138 on: January 29, 2018, 07:31:55 PM »
Seems you handled it. Good thing.

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

bye
Ron

Online Derron

  • Hero Member
  • *****
  • Posts: 2092
Re: Site suggestions, the future and other stuff
« Reply #139 on: January 29, 2018, 08:07:05 PM »
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

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
Re: Site suggestions, the future and other stuff
« Reply #140 on: January 29, 2018, 08:49:54 PM »
Quote
Chat: 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.

Quote
As 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.

Quote
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.
I blame social media for the death of live chat ;D
Until the next time...

Online Derron

  • Hero Member
  • *****
  • Posts: 2092
Re: Site suggestions, the future and other stuff
« Reply #141 on: January 29, 2018, 09:28:22 PM »
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

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
Re: Site suggestions, the future and other stuff
« Reply #142 on: January 29, 2018, 11:55:46 PM »
Quote
Hmmm ... 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
Until the next time...

Offline round157

  • Full Member
  • ***
  • Posts: 204
Re: Site suggestions, the future and other stuff
« Reply #143 on: January 31, 2018, 02:09:25 AM »
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.

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: Site suggestions, the future and other stuff
« Reply #144 on: January 31, 2018, 02:27:51 AM »
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.

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
Re: Site suggestions, the future and other stuff
« Reply #145 on: February 01, 2018, 06:16:34 AM »
Quote
Money 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.

Quote
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.
This is true but I like that there is a real prize to be won. The pride in winning and also a physical reward.

Quote
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.
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.
Until the next time...

Offline MikeHart

  • Hero Member
  • *****
  • Posts: 573
  • Cerberus-X Dev Team
    • Cerberus X
Re: Site suggestions, the future and other stuff
« Reply #146 on: February 01, 2018, 08:31:20 AM »
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.

Online Derron

  • Hero Member
  • *****
  • Posts: 2092
Re: Site suggestions, the future and other stuff
« Reply #147 on: February 01, 2018, 08:42:38 AM »
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

Offline RemiD

  • Hero Member
  • *****
  • Posts: 802
Re: Site suggestions, the future and other stuff
« Reply #148 on: February 01, 2018, 06:19:34 PM »
[troll]
add a worklog section for those who post a screenshot each time they make little progress  :-*
[/troll]
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 684
Re: Site suggestions, the future and other stuff
« Reply #149 on: February 01, 2018, 06:26:05 PM »
I want to request a teleportation feature..  ;D
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________