inherit
268670
0
Sept 7, 2024 12:05:24 GMT -8
danteblackmetal
16
November 2023
danteblackmetal
|
Post by danteblackmetal on Jul 15, 2024 12:57:57 GMT -8
Where does the forum page store the actual code for pages? A couple months ago, Discord changed something internally and images now index for a short period of time (2 weeks at most), and all images I had that were posted there and embedded on my forum, broke. I use a plugin called "Thread Image", which allows to embed images in the icon of a thread, like you can see in this page: underworldgates.freeforums.net/board/26/charactersThe thing is, in older posts which had images embedded from Discord, I need to go and fix each one manually, which I would do, if I could, as somehow, this plugin works in a way that after some time that the thread is posted, I cannot change the image that the thread holds as icon. Somehow it stores the link, but I don't know where. I tried "Editing" a thread to change it, but it's not stored in the BB Code. So where could it be? Last, here's a page where you're gonna see several image icons that are "corrupt", in a way that it cannot show the original image I put there to be the thread icon: underworldgates.freeforums.net/board/129/models-textures
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,943
December 2005
horace
|
Post by Chris on Jul 15, 2024 14:53:04 GMT -8
Where does the forum page store the actual code for pages? A couple months ago, Discord changed something internally and images now index for a short period of time (2 weeks at most), and all images I had that were posted there and embedded on my forum, broke. I use a plugin called "Thread Image", which allows to embed images in the icon of a thread, like you can see in this page: underworldgates.freeforums.net/board/26/charactersThe thing is, in older posts which had images embedded from Discord, I need to go and fix each one manually, which I would do, if I could, as somehow, this plugin works in a way that after some time that the thread is posted, I cannot change the image that the thread holds as icon. Somehow it stores the link, but I don't know where. I tried "Editing" a thread to change it, but it's not stored in the BB Code. So where could it be? Last, here's a page where you're gonna see several image icons that are "corrupt", in a way that it cannot show the original image I put there to be the thread icon: underworldgates.freeforums.net/board/129/models-texturesPlugins are separate from the forum and are given allotted storage spaces called keys. This particular plugin stores the chosen image locations in a thread key. The plugin allows you to change the icon image displayed for any thread at any time by editing the thread's first post. If this is not the case, then check in settings to be sure you are allowed to change the icon (settings tab) and/or write to the key (advanced tab) ![](https://i.imgur.com/n227ERt.png) Whenever you have a question about a plugin, most plugin authors create a support thread for each plugin in the plugin board to handle issues with that specific plugin. They also place a link to that support thread in the plugin itself, which you can reach from your admin panel by clicking the "Need Help?" link next to the Save Changes button. ![](https://i.imgur.com/x1ca0z3.png) Edit:
I should also note that you have the option of disqualifying images hosted at Discord from being considered as valid images both now and in the future by entering a URL pattern within the plugin settings. This would be the easier path since it would automatically invalidate the discord image whenever it encounters one that is already set or attempts to be set going forward ![](http://i.imgur.com/mCjr3An.png) //if an image was made thread icon before a URL pattern was added that may have disqualified it //then disqualify it now so a new image can be chosen at harvest time. This makes the url patterns //settings retroactive unlike group, user and board settings if (!imageAllowed(img)) { key.setThreadKey("", thread_info.id); return true; }
|
|
inherit
268670
0
Sept 7, 2024 12:05:24 GMT -8
danteblackmetal
16
November 2023
danteblackmetal
|
Post by danteblackmetal on Jul 16, 2024 3:28:55 GMT -8
Turns out, clicking on "Need Help" sent me to a page where I got an updated version of that Plugin. Now I got that option at the side of "Subject" as well, where the image icon shows in a miniature ![](https://i.imgur.com/24vNp6E.png) However, I still cannot edit older image icons. I mean, I can edit, but after I hit "Save Changes", nothing actually changes ![:D](//storage.proboards.com/forum/images/smiley/grin.png) . And I am the admin/creator of such forum. Which means I should have absolute power, I guess? Anyway. Can you show me where are the image links stored? You said it is in the "keys" tab. But after adding a "image url" to a new post I created yesterday, I tried to change it again just for test, and it did not work. The post KEPT the first image url I set. Even the "Remove Thread Icon" function did not work. Here is the link of the post I created: underworldgates.freeforums.net/thread/184/devil-sword-dante-summoned-swordsTrying to change the icon after the first one was set, had no effect. Trying to change older icons, didn't work either. Edit: the url of the image is from imgur. So what I expect to find in the "keys", is the link of the post and a "https://www.imgur.blahblabhlink" somewhere. This is what I have not found. The forum is storing these links somewhere, but where? ![:(](//storage.proboards.com/forum/images/smiley/sad.png) Edit 2: here you can see what I'm doing, and the results: youtu.be/ktj-Wns34eo
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,943
December 2005
horace
|
Post by Chris on Jul 17, 2024 2:24:40 GMT -8
Turns out, clicking on "Need Help" sent me to a page where I got an updated version of that Plugin. Now I got that option at the side of "Subject" as well, where the image icon shows in a miniature ![](https://i.imgur.com/24vNp6E.png) However, I still cannot edit older image icons. I mean, I can edit, but after I hit "Save Changes", nothing actually changes ![:D](//storage.proboards.com/forum/images/smiley/grin.png) . And I am the admin/creator of such forum. Which means I should have absolute power, I guess? Trying to change the icon after the first one was set, had no effect. Trying to change older icons, didn't work either.Edit: the url of the image is from imgur. So what I expect to find in the "keys", is the link of the post and a "https://www.imgur.blahblabhlink" somewhere. This is what I have not found. The forum is storing these links somewhere, but where? ![:(](//storage.proboards.com/forum/images/smiley/sad.png) Edit 2: here you can see what I'm doing, and the results: youtu.be/ktj-Wns34eoThanks for bringing this to my attention! I neglected to query for the default object_id in a previous update. This resulted in inability to edit the icon once it had been set since that method did not send an explicit object_id. (ping [ 1][ 2]) I believe the plugin is left in an editable state, so if you are coding inclined...
Anyway. Can you show me where are the image links stored? You said it is in the "keys" tab. But after adding a "image url" to a new post I created yesterday, I tried to change it again just for test, and it did not work. The post KEPT the first image url I set. Even the "Remove Thread Icon" function did not work. Here is the link of the post I created: underworldgates.freeforums.net/thread/184/devil-sword-dante-summoned-swordsThe key is a simple database. The plugin can read and write individual entries in the database, but you, as a user, are not normally able to manually access individual entries in the database. You, however, are free to kill all entries in that database by hitting that "Clear" link as illustrated in the image I previously posted which would put you back to factory settings. Plugins are separate from the forum and are given allotted storage spaces called keys. This particular plugin stores the chosen image locations in a thread key.
|
|
inherit
268670
0
Sept 7, 2024 12:05:24 GMT -8
danteblackmetal
16
November 2023
danteblackmetal
|
Post by danteblackmetal on Jul 17, 2024 6:26:02 GMT -8
Thank you very much. I abandoned my forum for months due to not be able to have this fixed.
It is functional now, and I can indeed change any icon at anytime.
|
|
inherit
268670
0
Sept 7, 2024 12:05:24 GMT -8
danteblackmetal
16
November 2023
danteblackmetal
|
Post by danteblackmetal on Jul 17, 2024 7:01:38 GMT -8
While we're at it, for aesthetic reasons, is it possible to make so the icon is centered in this small "box", no matter the resolution of the image? This icon, for example, is a perfect square ![](https://cdn.discordapp.com/attachments/1157843600768499802/1263147519634837565/image.png?ex=66992d4c&is=6697dbcc&hm=4246de7581a5ddfcbcbbc4315576d7096dcbda07001fff17c2efd0a7e40ea023&) ... and it looks a bit better then these ![](https://media.discordapp.net/attachments/1157843600768499802/1263148078278381620/image.png?ex=66992dd2&is=6697dc52&hm=8d32deb7c10f88d62cc8f67b530e01818a314943ee8e8a32b318953d0532b0c2&=&format=webp&quality=lossless) ... which are more wide images. Still none of them is centered in the box, unlike the original icon when there's no "custom" icon added to a thread ![](https://media.discordapp.net/attachments/1157843600768499802/1263148449071759420/image.png?ex=66992e2a&is=6697dcaa&hm=38e7660cedbd077e6a5217393d604676a3ed2ce212e2fc39c767fb507ddfcf19&=&format=webp&quality=lossless) Is there something I can add in the Javascript code to "fix" this?
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,943
December 2005
horace
|
Post by Chris on Jul 17, 2024 9:01:56 GMT -8
Try this: In the CSS component, navigate to line 62 and add the following lines below it: height:auto; width:auto; aspect-ratio:1 !important; ![https://imgur.com/wFCRZLT.png](https://i.imgur.com/asHqFMQ.png) ![](https://i.imgur.com/rITkkHB.png)
|
|