<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Common library (feedback needed)</title>
        <description> We are considering adding a lua-pgc library with common LUA functions that any script can use. As a proof of concept I implemented PGC_GeocacheTypeIcon(type) today (not available in production). It would return html to show a geocache type icon, with proper title and such.

I am looking for suggestions for other very common functions that are identical between many scripts, that we could adopt into such library. I am thinking we could make a list here.

 PGC_GeocacheTypeIcon(type)  PGC_GeocacheSizeIcon(size) 

We are also looking into creating css rules to help with styling. With two reasons.
 Make it easier to style html output.  Make the output look more unified between the scripts. 
The idea is here to be able to do things like &amp;lt;p class=&amp;quot;bg-success&amp;quot;&amp;gt;...&amp;lt;/p&amp;gt; to get a &amp;quot;green&amp;quot; back background for example. The goal is that no challenge checker scripts should rely on css rules used by the site itself since they might not persist over updates of the site.

Some suggestions I thought of. Other suggestions are welcome.
 Coloring text.  Coloring background.  Bordered table.  Smaller text.  Monospaced text.  Striped tables.  Check icon.  Stop icon. 

The more data we have before a release, the better naming conventions we can start with.</description>
        <link>/forum/read.php?6,108194,108194#msg-108194</link>
        <lastBuildDate>Tue, 16 Jun 2026 05:39:05 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>/forum/read.php?6,108194,117565#msg-117565</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117565#msg-117565</link>
            <description><![CDATA[ Profile stats has a fixed width or ~750px to fit the Geocaching profiles at Geocaching.com. Otherwise it wouldn&#039;t be that thin.<br />
<br />
I am not really sure what exactly you want us to do to make it easier for you to get a table that suits your need here. We can render a table that looks in a certain way, but then it would be empty. We could make a super specific CSS, but then it would require that the table was created exactly as expected. We could make a callback function that creates the HTML and needed CSS which took several data inputs, but that feels out of scope.<br />
<br />
This is a perfect case for what exactly this thread is about. Create the function in LUA once, and then put it in a common library for everyone to use. If such function is made, and well thought through, we could help out by making CSS rules that could replace style attributes. As you say, it makes no sense to add a certain style to every single `td` for example. That&#039;s better covered with a css class on the `table` or `tr`.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 20:29:40 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117553#msg-117553</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117553#msg-117553</link>
            <description><![CDATA[ The venn diagrams are a travesty of table usage, I&#039;ll admit that... But, we can&#039;t (or at least we couldn&#039;t) use the SVG element. If that&#039;s changed with the bootstrap upgrade, I can convert it to be an SVG, because that would look waaaay better and be much easier to manage.<br />
<br />
I mean, maybe it&#039;s my programmer esthetic, but I prefer very little blank space... I mean honestly, the grids in the profile stats are much more compact and visually pleasing to me, which is why I suggested exposing those styling to the checkers, and then it would be consistent with the rest of the site (and adapt, if the site changed). <br />
<br />
I could just apply styles to every table/tr/td, but the issue there is that there is an HTML output limit, and when you do outputs of (for example) all attribute calendars, it already runs up against that. Adding style elements to every element in a table will get us there much more quickly. But unfortunately, we have no ability to author any CSS, we just need to rely on what&#039;s available... so not sure what the solution here is.]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 18:58:10 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117537#msg-117537</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117537#msg-117537</link>
            <description><![CDATA[ A fast look at <a href="https://project-gc.com/Challenges/GCBGCK5/109425"  rel="nofollow">https://project-gc.com/Challenges/GCBGCK5/109425</a> shows uses of style and images with set width of 900x850px. I am not sure how those images can be expected to fit. In all honesty, it&#039;s very hard for us to make sure that checker output using this amount of customized styling keeps working. But that is also the point of removing inheritance from the site itself and more or less go back to web browser defaults.<br />
<br />
I don&#039;t know what you want with the second and third to be honest. You don&#039;t appreciate the responsive design that it uses its full width? I would say that they look as one should expect. But if you want them less wide, you can set style width=auto; on the table element. Or a fixed width if you prefer. Using all width available is the common standard though.<br />
<br />
<br />
&gt; and just leave everything else to what it was before?<br />
<br />
That is not possible. Challenge checkers were using CSS that they shouldn&#039;t. We must be able to change CSS of the website itself without changing how third party HTML renders. Our upgrade of Bootstrap proved this quite well. Many challenge checkers started breaking because users relied on the site&#039;s own CSS. Which is understandable, but not reasonable.<br />
<br />
We are doing this to prevent that these things should happen in the future. Disconnecting the challenge checker output formatting from the site itself.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 14:41:42 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117526#msg-117526</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117526#msg-117526</link>
            <description><![CDATA[ <a href="https://project-gc.com/Challenges/GCBGCK5/109425"  rel="nofollow">https://project-gc.com/Challenges/GCBGCK5/109425</a><br />
Venn diagrams are totally messed up.<br />
<br />
<a href="https://project-gc.com/Challenges/GCBC2M8/109329"  rel="nofollow">https://project-gc.com/Challenges/GCBC2M8/109329</a><br />
<a href="https://project-gc.com/Challenges/GCBHYBK/111215"  rel="nofollow">https://project-gc.com/Challenges/GCBHYBK/111215</a><br />
<br />
The calendar/DT grids are still really huge compared to what they used to be (even using table-condensed). Unfortunately, there&#039;s no way for me to get the old behavior back, to see exactly what it used to look like. <br />
<br />
If we&#039;re striving for consistency, could you just make available table styles for &quot;jasmer&quot; / &quot;fizzy&quot; / &quot;calendar&quot;, exactly like they appear in the profile stats, and just leave everything else to what it was before?]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 14:27:03 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117518#msg-117518</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117518#msg-117518</link>
            <description><![CDATA[ KaiserVonChina Wrote:<br />
-------------------------------------------------------<br />
&gt; I&#039;ll play around with the new features a bit more<br />
&gt; and let you know in case I observe something<br />
&gt; unexpected.<br />
<br />
:thumbs up:<br />
(no such emoji, but you get the point)]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 10:36:57 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117517#msg-117517</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117517#msg-117517</link>
            <description><![CDATA[ Yes, using class table-condensed makes the table look compact again.<br />
<br />
I&#039;ll play around with the new features a bit more and let you know in case I observe something unexpected.]]></description>
            <dc:creator>KaiserVonChina</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 10:35:18 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117513#msg-117513</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117513#msg-117513</link>
            <description><![CDATA[ I have updated <a href="https://project-gc.com/forum/read?6,117489,117491#msg-117491"  rel="nofollow">https://project-gc.com/forum/read?6,117489,117491#msg-117491</a><br />
<br />
There are three new css classes:<br />
[*] table-condensed<br />
[*] text-smaller (smaller than text-small)<br />
[*] text-monospace-narrow (uses a narrower font than the text-monospace)<br />
<br />
Does it work as you expect with class table-condsensed? Otherwise I would need links.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 09:04:25 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117511#msg-117511</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117511#msg-117511</link>
            <description><![CDATA[ I have a reproduction case now. This is not how it looked months ago. Something must be missing.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 08:24:19 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117510#msg-117510</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117510#msg-117510</link>
            <description><![CDATA[ Examples please. There is nothing we can do if you don&#039;t provide the needed information.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 08:03:07 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117507#msg-117507</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117507#msg-117507</link>
            <description><![CDATA[ I noticed as well that the tables in my output are more widespread than before and take up more screen space than before.<br />
I&#039;d prefer to have no padding by default.<br />
You can keep padding as an independent class that can additionally be set when really desired.]]></description>
            <dc:creator>KaiserVonChina</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 30 Jan 2026 07:21:32 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117485#msg-117485</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117485#msg-117485</link>
            <description><![CDATA[ Okay, I see pgc-challenge-checkers.css has now shown up... and the look of everything has changed... and not for the better wrt tables - I think is it because of the padding on th/td?<br />
<br />
<pre class="bbcode">
#cc_HtmlFeedback table td,
#cc_HtmlFeedback table th {
    padding: 0.25rem 0.5rem; /* Condensed padding like Bootstrap 3 table-condensed */
    vertical-align: top;
    border: none; /* No borders by default */
}
</pre>]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Thu, 29 Jan 2026 19:27:51 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117200#msg-117200</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117200#msg-117200</link>
            <description><![CDATA[ Since the code isn&#039;t released yet, whatever you see now is irrelevant. The css file isn&#039;t there yet.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Sat, 24 Jan 2026 07:34:04 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117197#msg-117197</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117197#msg-117197</link>
            <description><![CDATA[ Is there some sort of padding include? It makes the tables huge... I applied it, but reverted it, because it&#039;s harder to read.]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Sat, 24 Jan 2026 04:54:10 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117192#msg-117192</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117192#msg-117192</link>
            <description><![CDATA[ This was actually merged into `master` ~2 days ago, so it will go live with the next release.<br />
<br />
It&#039;s not documented anywhere yet, but you&#039;ll find the css files at `/css/pgc-challenge-checkers.css` when released. Class `table-bordered` should solve the border thing, once releaesd.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 23 Jan 2026 22:16:34 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,117191#msg-117191</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,117191#msg-117191</link>
            <description><![CDATA[ Any progress on the CSS rules yet?<br />
<br />
The most painful change since your design update are the missing borders for table cells.<br />
Currently the only option is to add something like style=&quot;border: 1px solid black;&quot; to every single &lt;TD&gt; and &lt;TH&gt; element, which massively blows up the HTML output.<br />
Would be nice if I could add a class just once to the table element instead to get a table that has a border for its cells.]]></description>
            <dc:creator>KaiserVonChina</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 23 Jan 2026 22:11:27 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,111009#msg-111009</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,111009#msg-111009</link>
            <description><![CDATA[ I don&#039;t know PHP at all... But from what I see, it should be very little work...<br />
<br />
You can expose any sandbox methods you want (just like any of the PGC functions that currently exist). So say &quot;PGC.LoadScript(X)&quot; It looks as though inside PHP, you could do Lua loadString and put that into the currently executing script. All you&#039;d have to do is have the PHP open the file of script X, pass that to PHP&#039;s Lua loadString, and viola. The only question mark is how to locate that script in PHP, but I assume that&#039;s not that hard. It&#039;d be up to the loading script to know what namespace the loadString gets put into... So it could either have an internal package, or, alternatively you could put a parameter in the LoadScript function.]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Mon, 22 Sep 2025 23:56:21 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,111006#msg-111006</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,111006#msg-111006</link>
            <description><![CDATA[ bmuzzin Wrote:<br />
-------------------------------------------------------<br />
&gt; I still think that instead of a narrow library<br />
&gt; provided by the service, it would be way more<br />
&gt; beneficial to allow importing of other scripts...<br />
<br />
While it&#039;s not a bad idea it&#039;s a lot more work to do it properly, depending on how it would be done. A correctly implemented way to do that would be about a thousand more times work than just adding more methods into the Sandbox.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Mon, 22 Sep 2025 21:24:27 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,111002#msg-111002</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,111002#msg-111002</link>
            <description><![CDATA[ That won&#039;t work with the sandbox. If that (require) worked you could include any file on the filesystem. That&#039;s why this is sandboxed and not all LUA functions are available. So whatever is made here will <b>always</b> be included. Therefore it will most likely belong under the &quot;PGC namespace&quot;, to avoid collisions with anything else.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Mon, 22 Sep 2025 20:42:46 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,110809#msg-110809</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,110809#msg-110809</link>
            <description><![CDATA[ I like the idea to have this in another script, so that everybody can still see the source code and to have more flexibility to easily extend the functionality when needed or to use different kinds of libraries as per personal preference.<br />
I think the library script could look something like this:<br />
<pre class="bbcode">
local Utils = {}

function Utils.Foo()
  ...
end

function Utils.Bar()
  ...
end

return Utils</pre>
<br />
And the checker scripts could then require it to use those functions, i.e. like<br />
<pre class="bbcode">
local utils = require(&quot;Utils&quot;)

utils.Foo()
utils.Bar()</pre>
<br />
Details how to require the script of course depend on how you store them on your server.]]></description>
            <dc:creator>KaiserVonChina</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 19 Sep 2025 11:33:23 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,110712#msg-110712</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,110712#msg-110712</link>
            <description><![CDATA[ I still think that instead of a narrow library provided by the service, it would be way more beneficial to allow importing of other scripts... eg. just implement PGC.LoadScript(xxxx), where xxxx is the script number. That way, you&#039;re not just allowing anything to be imported, but you&#039;re also not explicitly dictating what the common functionality is.<br />
<br />
For example, in my script (er scripts), I have all of the above functions, and a whole bunch more that could be considered &quot;general purpose&quot;. If the ones provided in the common library don&#039;t exactly match what I am already using, I doubt I&#039;m going to update my scripts to use them... or even if I write new scripts to use them, because I&#039;m more comfortable with what I use already. I also assume there&#039;s no way for me to actually *see* what the implementation actually is - so if there&#039;s debugging to be done, that&#039;s also not possible if I use those functions. It also depends on you updating the implementations / functions, whereas, if it were just an import mechanism, then any script-writer could update or add new common functions.]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Wed, 17 Sep 2025 18:23:57 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,110703#msg-110703</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,110703#msg-110703</link>
            <description><![CDATA[ There has been some progress on this task and I am hoping for a release next week. When the release has been made I will first have a single person test it out. After that I will post in the News section on this forum about it. When that has been live for some time I get back to you and ask for snippets for these I think:<br />
<br />
- Count() that works regardless whether you pass an indexed or an associative table<br />
- converting keys from associative table to indexed table<br />
- converting values from associative table to indexed table<br />
- appending one indexed table to another one<br />
- dump table to debug log<br />
<br />
Other snippets from others will be welcome. I think the functions will be made available with something like this:<br />
<pre class="bbcode">
`PGC.Contributed.*`, `PGC.Contr.*`, `PGC.Common.*`, `PGC.Util.*`
`PGC.PUB.*`, `PGC.CL.*` (Community Library), `PGC.CC.*` (Contributed Code)</pre>
<br />
Name suggestions are welcome since I don&#039;t think any of them are perfect. I want it to say that it&#039;s from the community. Therefore I currently lean towards <b>CL</b>. I also want it to be decently short (easy/fast to type) of course.<br />
<br />
I also expect there to be LUA code reading those attribute values from the GetFinds data. Those functions would probably be worth having in a a library.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Wed, 17 Sep 2025 13:20:47 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,108768#msg-108768</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,108768#msg-108768</link>
            <description><![CDATA[ In my opinion at least some of those should be worth having in a common library.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Wed, 20 Aug 2025 11:06:54 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,108761#msg-108761</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,108761#msg-108761</link>
            <description><![CDATA[ I&#039;m aware of these functions that get copied quite a bit between scripts:<br />
- testing for attributes / bit testing<br />
- printing filters configuration in the output<br />
<br />
For my scripts I have these helper functions, but I&#039;m not sure if they would be useful for anybody else:<br />
- Count() that works regardless whether you pass an indexed or an associative table<br />
- converting keys from associative table to indexed table<br />
- converting values from associative table to indexed table<br />
- appending one indexed table to another one<br />
- get country with most finds<br />
- dump table to debug log]]></description>
            <dc:creator>KaiserVonChina</dc:creator>
            <category>Checker news</category>
            <pubDate>Wed, 20 Aug 2025 07:53:05 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,108584#msg-108584</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,108584#msg-108584</link>
            <description><![CDATA[ This is less about standardizing output and actually more about separating output from Project-GC. Last week’s release upgraded from Bootstrap 3 to Bootstrap 5, breaking a bunch of scripts relying on Bootstrap 3 CSS classes. Rather than encouraging scriptwriters to adjust their scripts to Bootstrap 5’s CSS classes, we’d much rather implement a common library so that scriptwriters don’t have to update their scripts a second time when Project-GC decides to redesign in “?” years’ time. <br />
<br />
Since 2020, about 1600 scripts are created annually.]]></description>
            <dc:creator>Hügh</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 15 Aug 2025 19:29:10 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,108572#msg-108572</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,108572#msg-108572</link>
            <description><![CDATA[ 1000 scripts created this year I think doesn&#039;t tell the whole story... I would guess that pretty much all of those get maximum 1 tag, and I&#039;d bet a bunch get 0 (although, it&#039;s &quot;hard&quot; for me to get stats on that). If that&#039;s the case, having a common function library would only standardize the look for a very few number of new challenges checkers, and that assumes that the new scripts use them. My assertion is also that most of the &quot;hardcore&quot; volunteers are tagging the same set of 10-20 scripts (because, we&#039;re coming close to maximum coverage of the available challenges given the guidelines, and there aren&#039;t many grandfathered challenges left), so retrofitting the massively tagged scripts would go much further in the effort for standardization. <br />
<br />
I would say a much more helpful feature would be allowing script writers could include other any other .lua file. I&#039;d use this for example, if there&#039;s a one-off challenge that for some reason can&#039;t be handled by my uber script, I could include basically all its functionality and just implement the custom logic. Because when this happens now, I basically just copy the uber script and replace the &quot;main&quot; portion, making the remaining (unused) .lua much larger than it needs to be. It would also lower the bar for new scripts, because many of those functions are pretty broadly applicable (eg. post-database-query filtering, list/hash manipulation, etc). You could also use this to &quot;embed&quot; data in a new minimal script, instead of the kind of archaic way of emailing you a .json file :)]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 15 Aug 2025 13:22:32 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,108561#msg-108561</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,108561#msg-108561</link>
            <description><![CDATA[ Over 1000 scripts created this year. :)<br />
<br />
I also think quite a few script owners are maintaining their scripts to the level that they wouldn&#039;t mind reducing the amount of code by using such functions. But I could be wrong.<br />
<br />
But based on the feedback here, it doesn&#039;t seem like many care about it. We have been getting pushed about this multiple times though, by more than one script developer.]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 15 Aug 2025 08:31:44 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,108551#msg-108551</guid>
            <title>Re: Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,108551#msg-108551</link>
            <description><![CDATA[ I&#039;m going to be a Debbie Downer here...<br />
<br />
I&#039;m not sure how many truely &quot;new&quot; scripts are written anymore? I&#039;m not sure if I see the value of a common function library, since the most applicable use case would be to retrofit existing scripts (which, presumably are already working with type/size icons).<br />
<br />
Kind of the same argument for a common CSS.]]></description>
            <dc:creator>bmuzzin</dc:creator>
            <category>Checker news</category>
            <pubDate>Fri, 15 Aug 2025 02:43:16 +0000</pubDate>
        </item>
        <item>
            <guid>/forum/read.php?6,108194,108194#msg-108194</guid>
            <title>Common library (feedback needed)</title>
            <link>/forum/read.php?6,108194,108194#msg-108194</link>
            <description><![CDATA[ We are <b>considering</b> adding a <i>lua-pgc<i> library with common LUA functions that any script can use. As a proof of concept I implemented <pre class="bbcode">PGC_GeocacheTypeIcon(type)</pre> today (not available in production). It would return html to show a <i>geocache type icon</i>, with proper title and such.<br />
<br />
I am looking for suggestions for other very common functions that are identical between many scripts, that we could adopt into such library. I am thinking we could make a list here.<br />
<br />
<ul><li> PGC_GeocacheTypeIcon(type) </li><li> PGC_GeocacheSizeIcon(size) </li></ul>
<br />
We are also looking into creating css rules to help with styling. With two reasons.<br />
<ol type="1"><li> Make it easier to style html output. </li><li> Make the output look more unified between the scripts. </li></ol>
The idea is here to be able to do things like <pre class="bbcode">&lt;p class=&quot;bg-success&quot;&gt;...&lt;/p&gt;</pre> to get a &quot;green&quot; back background for example. The goal is that no challenge checker scripts should rely on css rules used by the site itself since they might not persist over updates of the site.<br />
<br />
Some suggestions I thought of. Other suggestions are welcome.<br />
<ul><li> Coloring text. </li><li> Coloring background. </li><li> Bordered table. </li><li> Smaller text. </li><li> Monospaced text. </li><li> Striped tables. </li><li> Check icon. </li><li> Stop icon. </li></ul>
<br />
The more data we have before a release, the better naming conventions we can start with.</i></i>]]></description>
            <dc:creator>magma1447</dc:creator>
            <category>Checker news</category>
            <pubDate>Sun, 10 Aug 2025 15:27:11 +0000</pubDate>
        </item>
    </channel>
</rss>
