Logo

CS.RIN.RU - Steam Underground Community

Cool members bookmark the index page.
It is currently Monday, 16 Jul 2018, 03:25

English | Русский




Reply to topic  [ 98 posts ] 
Author Message

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 12:15   Reply with quote
Proud Servant of RIN
User avatar
Joined: Monday, 25 Feb 2013, 20:16
Posts: 22330
Location: Pandemonium
^^Quick and precise as always, that's how we love our dear administrator here on RIN! Thanks for fixing the issue! ;)

_________________
Image
^^I'm clickable!


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 12:57   Reply with quote
Administrator
User avatar
Joined: Tuesday, 15 Nov 2005, 17:09
Posts: 10952
If anyone finds the time, please test some apps and check for bugs. For those of you who have used [steaminfo], this page contains a list of edit-links to your [steaminfo]-containing posts. I'll write something to edit these automatically, but we will not be able to undo that, so critical bugs ought to be found beforehand.

Edit: Or maybe that won't be necessary. I just had an idea how we could mark generated descriptions without weird stuff in posts:

[size =1]{BEGIN APPINFO 400,green,default}[/size]
<game description for Portal with color green>
[size =1]{END APPINFO 400,green,default}[/size]

This cannot be seen, but it can be found. Would enable hypothetical auto-updating in the future.

_________________

For questions and concerns regarding forum policy, contact a moderator first. I may not always reply to such PMs.

Bookmark this to stay informed during downtimes: [[Please login to see this link.]]


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 13:01   Reply with quote
I live here Три раза сломал клаву :)
User avatar
Joined: Monday, 18 Jan 2016, 01:36
Posts: 2032
I just created a thread for this newly-released game: [[Please login to see this link.]]

But since its description on Steam has a couple pictures, they aren't displayed correctly and you see only two strings of html code.

Is it normal that there is no more embedded video? While, in the end, it was more convenient to go and see it on the original page because it wasn't restricted into a very small window, it was still a nice plus to have.

When I find more time, I may try and edit the OPs I created with the new code and see what happens.


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 14:54   Reply with quote
Administrator
User avatar
Joined: Tuesday, 15 Nov 2005, 17:09
Posts: 10952
I'd need to add a new BBCode for those videos. I don't think it's worth it.

It turns out matching HTML with regular expressions is a bad idea, doing it completely correctly is highly annoying and I've found that people recommend using proper HTML parsers instead. I might have to rethink how I process the data.

For now, I want to get it to work with regular expressions. Does anyone have experience with regex? I want to match img-tags with escaped double quotes.

  1. <img src=\"http:\/\/cdn.akamai.steamstatic.com\/steam\/apps\/586390\/extras\/missilecardstset-copy_(1).png?t=1491561534\">


Current expression (not working):
  1. /<img[^>]+src=\\"([^">]+)\\"[^>]*?>/i


Edit: The solution is that I have to escape backslashes twice. Once for the regex interpreter and once for the PHP string interpreter.

  1. /<img[^>]+src=\\\\"([^">]+)\\\\"[^>]*?>/i


To match <\/a>, I have to write <\\\\\/a> (yes, five \) :ROFL:

_________________

For questions and concerns regarding forum policy, contact a moderator first. I may not always reply to such PMs.

Bookmark this to stay informed during downtimes: [[Please login to see this link.]]


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 14:56   Reply with quote
I live here Три раза сломал клаву :)
User avatar
Joined: Thursday, 09 Feb 2012, 06:31
Posts: 1556
Location: yes
RessourectoR wrote:
I'd need to add a new BBCode for those videos. I don't think it's worth it.

It turns out matching HTML with regular expressions is a bad idea, doing it completely correctly is highly annoying and I've found that people recommend using proper HTML parsers instead. I might have to rethink how I process the data.

For now, I want to get it to work with regular expressions. Does anyone have experience with regex? I want to match img-tags with escaped double quotes.

  1. <img src=\"http:\/\/cdn.akamai.steamstatic.com\/steam\/apps\/586390\/extras\/missilecardstset-copy_(1).png?t=1491561534\">


Current expression (not working):
  1. /<img[^>]+src=\\"([^">]+)\\"[^>]*?>/i


Edit: The solution is that I have to escape backslashes twice. Once for the regex interpreter and once for the PHP string interpreter.

  1. /<img[^>]+src=\\\\"([^">]+)\\\\"[^>]*?>/i


To match <\/a>, I have to write <\\\\\/a> (yes, five \) :ROFL:

Use the global flag:
  1. /<img[^>]+src=\\"([^">]+)\\"[^>]*?>/ig

_________________
Stuff: [[Please login to see this link.]].GoodOldDownloads | OpenLoad & ClicknUpload Download Userscript


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 15:00   Reply with quote
Administrator
User avatar
Joined: Tuesday, 15 Nov 2005, 17:09
Posts: 10952
PHP PCRE doesn't have that, it's already implied.

_________________

For questions and concerns regarding forum policy, contact a moderator first. I may not always reply to such PMs.

Bookmark this to stay informed during downtimes: [[Please login to see this link.]]


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 15:06   Reply with quote
I live here Три раза сломал клаву :)
User avatar
Joined: Thursday, 09 Feb 2012, 06:31
Posts: 1556
Location: yes
Yeah, i don't think using Regex is very smart for parsing something as unpredictable as HTML.
Have you tried a using PHP library to do this?

[[Please login to see this link.]]

_________________
Stuff: [[Please login to see this link.]].GoodOldDownloads | OpenLoad & ClicknUpload Download Userscript


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 15:08   Reply with quote
Retired
Joined: Friday, 06 Jul 2012, 05:00
Posts: 25800
Location: Faster Than Scene
RessourectoR wrote:
Nope, I just fixed it a few minutes ago. The double quotes for the citation in the game description were replaced incorrectly and led to a JSON syntax error. Thanks for the report.

so you implying i lied?? i tested that exact appid after prudislav posted and the steambb generated all the info. i previewed the page and then made my post! as i said it seemed fine for me! :?


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 07 Apr 2017, 15:29   Reply with quote
Administrator
User avatar
Joined: Tuesday, 15 Nov 2005, 17:09
Posts: 10952
I fixed it between his post and your post, is what I meant.

TwelveCharzzz wrote:
Yeah, i don't think using Regex is very smart for parsing something as unpredictable as HTML.
Have you tried a using PHP library to do this?

[[Please login to see this link.]]


I don't want to use any additional libraries, so since this would only be for <img> and <a> (other replacements are simple enough), I'm not sure what I'll do yet. I haven't actively looked for possibilities, but that library converts input to DOM documents and then works on the DOM object. That's one approach. Another would be to write simplified parser functions for the two tags myself.

_________________

For questions and concerns regarding forum policy, contact a moderator first. I may not always reply to such PMs.

Bookmark this to stay informed during downtimes: [[Please login to see this link.]]


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Thursday, 13 Apr 2017, 16:52   Reply with quote
Administrator
User avatar
Joined: Tuesday, 15 Nov 2005, 17:09
Posts: 10952
I have rewritten the backend script.

Properties:
  • Output is always a well-formed, UTF-8 encoded, and readably formatted JSON string with literal UTF-8 symbols and no forward slash escaping. In particular, no errors of any kind should crash the script and there is always a well-defined output. Examples:

    steaminfo_fetch.php?appid=4tiMxOZ25BtaylR
    steaminfo_fetch.php?appid=-1337
    1. {
    2.     "1": {
    3.         "success": false,
    4.         "error": "Invalid AppID"
    5.     }
    6. }


    steaminfo_fetch.php?appid=586390
    1. {
    2.     "586390": {
    3.         "success": true,
    4.         "data": {
    5.             "type": "game",
    6.             "name": "Missile Cards",
    7.             "steam_appid": 586390,
    8.             "required_age": 0,
    9.             "is_free": false,
    10.             "detailed_description": "Image\n\nAN ELECTRONIC STRATEGY CARD GAME FOR PERSONAL COMPUTERS -- DESIGNED SPECIFICALLY FOR HUMANS OF PLANET EARTH\n\n\"Missile Command meets Solitaire...only with more doomlasers, death, and explosions.\"\n\n\nArm your defenses and blast away flaming death orbs, nuclear warheads, and other hazards hurtling down from space before they annihilate your base. Loosely inspired by the Atari classic Missile Command, Missile Cards re-imagines the intense bombardment defense gameplay as a turn-based strategy card game. Unlock new bases, upgrade your arsenal, complete missions, and challenge your card skills against increasingly brutal decks in this highly replayable solo-card game.\n\nImage\n\nFeatures\n
      • Avoid annihilation through strategic card play and pressure cooker defense card deployment - every choice could be life or death!\n\n
      • 5 challenging bases/decks full of unique hazards, defenses, special gameplay and challenging missions.\n\n
      • Deploy missiles, lasers, cannons, shields, repair drones, orbital death rays, and much more!\n\n
      • Unlock special cards to modify your deck and improve your chances of survival!\n\n
      • Earn XP and upgrade your bases with special abilities and enhanced defenses!\n\n
      • Fast to learn, highly replayable solo card game action!\n\n
      • Solo card play: NO OTHER HUMAN BEINGS REQUIRED TO HAVE FUN!\n\n
      • Delicious punishment: This game is hard. Yes, that's intentional.\n
      \n\nMissile Cards was developed with GameMaker: Studio.",
    11.             "about_the_game": "Image\n\nAN ELECTRONIC STRATEGY CARD GAME FOR PERSONAL COMPUTERS -- DESIGNED SPECIFICALLY FOR HUMANS OF PLANET EARTH\n\n\"Missile Command meets Solitaire...only with more doomlasers, death, and explosions.\"\n\n\nArm your defenses and blast away flaming death orbs, nuclear warheads, and other hazards hurtling down from space before they annihilate your base. Loosely inspired by the Atari classic Missile Command, Missile Cards re-imagines the intense bombardment defense gameplay as a turn-based strategy card game. Unlock new bases, upgrade your arsenal, complete missions, and challenge your card skills against increasingly brutal decks in this highly replayable solo-card game.\n\nImage\n\nFeatures\n
      • Avoid annihilation through strategic card play and pressure cooker defense card deployment - every choice could be life or death!\n\n
      • 5 challenging bases/decks full of unique hazards, defenses, special gameplay and challenging missions.\n\n
      • Deploy missiles, lasers, cannons, shields, repair drones, orbital death rays, and much more!\n\n
      • Unlock special cards to modify your deck and improve your chances of survival!\n\n
      • Earn XP and upgrade your bases with special abilities and enhanced defenses!\n\n
      • Fast to learn, highly replayable solo card game action!\n\n
      • Solo card play: NO OTHER HUMAN BEINGS REQUIRED TO HAVE FUN!\n\n
      • Delicious punishment: This game is hard. Yes, that's intentional.\n
      \n\nMissile Cards was developed with GameMaker: Studio.",
    12.             "short_description": "MISSILE CARDS is an intense turn-based defense card game inspired by the retro Atari classic Missile Command. Arm your defenses and blast away flaming death orbs, nuclear warheads, and other hazards hurtling down from space. High replay and lots of unlockables!",
    13.             "supported_languages": "English",
    14.             "header_image": "http://cdn.akamai.steamstatic.com/steam/apps/586390/header.jpg?t=1491583732",
    15.             "website": "http://www.missilecards.com",
    16.             "pc_requirements": {
    17.                 "minimum": "Minimum:\n
      • OS: Windows 7\n\n
      • Processor: Dual Core\n\n
      • Memory: 2 GB RAM\n\n
      • Graphics: Integrated graphics\n\n
      • Storage: 100 MB available space\n
      ",
    18.                 "recommended": "Recommended:\n
      • OS: Windows 7 or above\n\n
      • Processor: Dual core or above\n\n
      • Memory: 4 GB RAM\n\n
      • Graphics: Graphics card with 512 MB RAM\n\n
      • Storage: 100 MB available space\n
      "
    19.             },
    20.             "mac_requirements": [],
    21.             "linux_requirements": [],
    22.             "developers": [
    23.                 "Nathan Meunier"
    24.             ],
    25.             "publishers": [
    26.                 "Nathan Meunier"
    27.             ],
    28.             "price_overview": {
    29.                 "currency": "RUB",
    30.                 "initial": 12900,
    31.                 "final": 11600,
    32.                 "discount_percent": 10
    33.             },
    34.             "packages": [
    35.                 151521
    36.             ],
    37.             "package_groups": [
    38.                 {
    39.                     "name": "default",
    40.                     "title": "Buy Missile Cards",
    41.                     "description": "",
    42.                     "selection_text": "Select a purchase option",
    43.                     "save_text": "",
    44.                     "display_type": 0,
    45.                     "is_recurring_subscription": "false",
    46.                     "subs": [
    47.                         {
    48.                             "packageid": 151521,
    49.                             "percent_savings_text": "-10%",
    50.                             "percent_savings": 0,
    51.                             "option_text": "Missile Cards - 129 pуб. 116 pуб.",
    52.                             "option_description": "",
    53.                             "can_get_free_license": 0,
    54.                             "is_free_license": false,
    55.                             "price_in_cents_with_discount": 11600
    56.                         }
    57.                     ]
    58.                 }
    59.             ],
    60.             "platforms": {
    61.                 "windows": true,
    62.                 "mac": false,
    63.                 "linux": false
    64.             },
    65.             "categories": [
    66.                 {
    67.                     "id": 2,
    68.                     "description": "Single-player"
    69.                 },
    70.                 {
    71.                     "id": 22,
    72.                     "description": "Steam Achievements"
    73.                 }
    74.             ],
    75.             "genres": [
    76.                 {
    77.                     "id": 23,
    78.                     "description": "Indie"
    79.                 },
    80.                 {
    81.                     "id": 2,
    82.                     "description": "Strategy"
    83.                 }
    84.             ],
    85.             "screenshots": [
    86.                 {
    87.                     "id": 0,
    88.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_90fc3a3699489b777064fc1b807958612d150e60.600x338.jpg?t=1491583732",
    89.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_90fc3a3699489b777064fc1b807958612d150e60.1920x1080.jpg?t=1491583732"
    90.                 },
    91.                 {
    92.                     "id": 1,
    93.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_689ce35af5fd92104b8cfd2f82e9afcb701c19ef.600x338.jpg?t=1491583732",
    94.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_689ce35af5fd92104b8cfd2f82e9afcb701c19ef.1920x1080.jpg?t=1491583732"
    95.                 },
    96.                 {
    97.                     "id": 2,
    98.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_7cbae127643813b1b1342abb025585320b709520.600x338.jpg?t=1491583732",
    99.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_7cbae127643813b1b1342abb025585320b709520.1920x1080.jpg?t=1491583732"
    100.                 },
    101.                 {
    102.                     "id": 3,
    103.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_24909e64d81755bc7c91e3a00e348037c26af71c.600x338.jpg?t=1491583732",
    104.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_24909e64d81755bc7c91e3a00e348037c26af71c.1920x1080.jpg?t=1491583732"
    105.                 },
    106.                 {
    107.                     "id": 4,
    108.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_8f495130be149fe0fba81323974385da0ebaed5b.600x338.jpg?t=1491583732",
    109.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_8f495130be149fe0fba81323974385da0ebaed5b.1920x1080.jpg?t=1491583732"
    110.                 },
    111.                 {
    112.                     "id": 5,
    113.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_54fa4c561bc8cb36397e280cd9d7b3800a206aad.600x338.jpg?t=1491583732",
    114.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_54fa4c561bc8cb36397e280cd9d7b3800a206aad.1920x1080.jpg?t=1491583732"
    115.                 },
    116.                 {
    117.                     "id": 6,
    118.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_c6452a4fca12aa56036444ae8b5c9971bd2ee6ed.600x338.jpg?t=1491583732",
    119.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_c6452a4fca12aa56036444ae8b5c9971bd2ee6ed.1920x1080.jpg?t=1491583732"
    120.                 },
    121.                 {
    122.                     "id": 7,
    123.                     "path_thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_1500b2b2da69e7db115bc90809bc07c3b0075aab.600x338.jpg?t=1491583732",
    124.                     "path_full": "http://cdn.akamai.steamstatic.com/steam/apps/586390/ss_1500b2b2da69e7db115bc90809bc07c3b0075aab.1920x1080.jpg?t=1491583732"
    125.                 }
    126.             ],
    127.             "movies": [
    128.                 {
    129.                     "id": 256682489,
    130.                     "name": "Missile Cards Launch Trailer",
    131.                     "thumbnail": "http://cdn.akamai.steamstatic.com/steam/apps/256682489/movie.293x165.jpg?t=1491062355",
    132.                     "webm": {
    133.                         "480": "http://cdn.akamai.steamstatic.com/steam/apps/256682489/movie480.webm?t=1491062355",
    134.                         "max": "http://cdn.akamai.steamstatic.com/steam/apps/256682489/movie_max.webm?t=1491062355"
    135.                     },
    136.                     "highlight": true
    137.                 }
    138.             ],
    139.             "achievements": {
    140.                 "total": 16,
    141.                 "highlighted": [
    142.                     {
    143.                         "name": "Baby Steps",
    144.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/c31b7e63610c18474f6f2b18b829f679fc1becd5.jpg"
    145.                     },
    146.                     {
    147.                         "name": "By the Skin of Your Teeth",
    148.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/38bdd8867eb8638e1b933af05c56c4569cb93a7a.jpg"
    149.                     },
    150.                     {
    151.                         "name": "Untouchable",
    152.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/cfbbd6776359f13dc0ab4f42ebf414f9db476cde.jpg"
    153.                     },
    154.                     {
    155.                         "name": "Neat Freak",
    156.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/ec4892e7a4a46c3de65327b7d16ffa3bb199ee3f.jpg"
    157.                     },
    158.                     {
    159.                         "name": "Perseverance",
    160.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/78aa1c8f5e86f79164e2f4b4716a186309ebfe50.jpg"
    161.                     },
    162.                     {
    163.                         "name": "Toasted!",
    164.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/9fe0337d22e1493d73628b934ec56e629bc7f4a5.jpg"
    165.                     },
    166.                     {
    167.                         "name": "Arms Specialist",
    168.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/bcac9f97a6c2e508dc8e047d2f5f4c0e5f216d52.jpg"
    169.                     },
    170.                     {
    171.                         "name": "Unhackable",
    172.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/c2a23be6918cc9baab0a036e2cfa603a5890e1d1.jpg"
    173.                     },
    174.                     {
    175.                         "name": "Fussy Pants",
    176.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/45fe0c7a58d3ca9b215d979243c7a5aef8f68ddf.jpg"
    177.                     },
    178.                     {
    179.                         "name": "Acceptable Losses",
    180.                         "path": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/586390/923be94013756b01b77f98c7ed62993431aca580.jpg"
    181.                     }
    182.                 ]
    183.             },
    184.             "release_date": {
    185.                 "coming_soon": false,
    186.                 "date": "7 Apr, 2017"
    187.             },
    188.             "support_info": {
    189.                 "url": "http://www.missilecards.com",
    190.                 "email": "thenathanmeunier@gmail.com"
    191.             },
    192.             "background": "http://cdn.akamai.steamstatic.com/steam/apps/586390/page_bg_generated_v6b.jpg?t=1491583732"
    193.         }
    194.     }
    195. }

  • Output preserves store API structure and additionally contains a string appid.error whenever appid.success is false. This string contains an error explanation and is also displayed by the Javascript part.
  • The response from the store API (which is not an official public API, by the way!) is parsed as a JSON object and every value-string of this object is parsed as a DOMDocument, similar to the library TwelveCharzzz linked.
  • I wrote my own set of functions from scratch to convert the DOMDocuments to BBCode text. This is done in such a way that no HTML remains in the output, even if I have handled some tag incorrectly or not at all. That said, I went through the entire list of possible HTML elements on [[Please login to see this link.]] and the [[Please login to see this link.]] such that every tag is either explicitly handled or removed completely.
    This resulted in a 150 line switch-statement and surely requires beta testing :mrgreen:

_________________

For questions and concerns regarding forum policy, contact a moderator first. I may not always reply to such PMs.

Bookmark this to stay informed during downtimes: [[Please login to see this link.]]


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 14 Apr 2017, 21:31   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Thursday, 22 Aug 2013, 03:34
Posts: 230
Hi @RessourectoR, good work!
I have for you improvements and fixes.

Changes: [[Please login to see this link.]]
Code: [[Please login to see this link.]]

_________________
Get DLC Info from SteamDB


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Saturday, 15 Apr 2017, 08:21   Reply with quote
Administrator
User avatar
Joined: Tuesday, 15 Nov 2005, 17:09
Posts: 10952
Thanks, I like those changes. I've fixed some line breaks and added different OS support formatting (the old code for this didn't even work at all, by the way .. true vs "true").

_________________

For questions and concerns regarding forum policy, contact a moderator first. I may not always reply to such PMs.

Bookmark this to stay informed during downtimes: [[Please login to see this link.]]


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Saturday, 15 Apr 2017, 12:19   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Thursday, 22 Aug 2013, 03:34
Posts: 230
RessourectoR wrote:
Thanks, I like those changes. I've fixed some line breaks and added different OS support formatting (the old code for this didn't even work at all, by the way .. true vs "true").

yeah... true vs "true"...

_________________
Get DLC Info from SteamDB


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Friday, 05 May 2017, 23:30   Reply with quote
Administrator
User avatar
Joined: Tuesday, 15 Nov 2005, 17:09
Posts: 10952
I have started replacing the old [steaminfo] by generated text. Expect tons of thread bumps. Some formatting issues in the "about the game" sections will be unavoidable, such as double bold-tags and formatting errors that already existed on steampowered.
If you see something that looks like a general bug, let me know.

_________________

For questions and concerns regarding forum policy, contact a moderator first. I may not always reply to such PMs.

Bookmark this to stay informed during downtimes: [[Please login to see this link.]]


Top
 Profile  

Post Post subject: Re: SteamInfo BBCode Generator   
Posted: Sunday, 04 Jun 2017, 23:07   Reply with quote
I live here Три раза сломал клаву :)
User avatar
Joined: Sunday, 11 Nov 2012, 20:03
Posts: 27262
ResR, I'm not really an expert in these scripts, and general php vocabulary, so I can't really tell if this has been discussed before by reading the older posts (though I suppose it didn't); the other day, a user sent me a PM telling me he wasn't being able to create a topic for a Steam game using the Generate (...) BBCode button, so I decided to give it a go myself to see what was going on.

The game is Microcosm (game page [[Please login to see this link.]]), and if you try to generate the code for it, it apparently works well, importing all info from the steam page; but then you click the submit button and you get a general SQL error that mentions an "incorrect string".

I was able to figure out what the problem was. If you go to the steam page of the game, you can see there are a few symbols used at the end of several lines in the "Details!" section. Maybe the forum isn't ready to support those symbols, because all it took to allow the topic creation to conclude satisfactorily was to remove those symbols from the text. The weird thing is that the symbols were imported correctly to the text window.

I don't know if it's possible to fix or provide support to these symbols, but I think it's important you know about this nonetheless.

Cheers

_________________
  • Downloading from Baidu: don't try to download the links through the chinese app; use an internet download manager like JDownloader 2 Beta or IDM with baidu script. Check this topic for more info
  • Did you download a password protected file and now you can't extract it? Try the standard password for protected uploads in this forum: cs.rin.ru
  • Bookmark [[Please login to see this link.]] to stay informed during downtimes
  • Looking for a recent scene release? Check the scenegames section in [[Please login to see this link.]]


Top
 Profile  
Display posts from previous:  Sort by  
Reply to topic  [ 98 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next


Who is online

Users browsing this forum: 9959, arconesaeradan, baermoon, bandit75238, BlackWolfcds, bladeash, capybarainspace, Christsnatcher, cogger1234, Daimon, DaisukeShinohara, DeeGee, desmonds99, DogeSparrow, doodlem3, ejihan, Eversharpe, ff839y, fsftw242522, fuzzywonder, Gimlie, Google [Bot], hal210, henlomalf, hrtking, HuEx, INXERNUS, kimguan07, liveforlove, lokked, Lu5ck, Makium, MrXnoid, nestor34, Normem, qscd, rubyfdshining, rusaruka, sheuronazxe, sickboy, silverkid, theryanlee, Tribuatus, waltuser, wendell08, xer0, z3r0cOol, Zatan, ZenSurvivor, zugrab and 30 guests


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum




Powered by phpBB® Forum Software © phpBB Group