Announcement

Collapse
No announcement yet.

Mark, can you add a new BB-code?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mark, can you add a new BB-code?

    Can you add this BB code. It would make it possible to add bars to the ranking in Locutus POLL without overrunning the size limit
    NAME: bar
    REPLACEMENT TEXT: <img src="images/polls/bar{option}-l.gif" height="10" width="3"><img src="images/polls/bar{option}.gif" height="10" width="{param}"><img src="images/polls/bar{option}-r.gif" height="10" width="3">


    This would not be used anywhere else so you don't have to add it to the list of codes.
    Creator of the Civ3MultiTool

  • #2
    This one (or similar) wold also be needed
    NAME: bar0
    REPLACEMENT TEXT: <img src="images/polls/bar{option}-l.gif" height="10" width="3"><img src="images/polls/bar{option}-r.gif" height="10" width="3">


    :worship:
    Creator of the Civ3MultiTool

    Comment


    • #3
      Could you tell us what exactly this would accomplish?
      It would make it possible to add bars to the ranking in Locutus POLL without overrunning the size limit

      Comment


      • #4
        The limit of a page is 20000 bytes. If you would write all that code for 120 civs you must understand that [bar=x]width[/bar] is mush less memory consuming then <img src="images/polls/barx-l" width="3" height="10"><img src="images/polls/barx" width="width" height="10"><img src="images/polls/barx-r" width="3" height="10"> for each post. With the smaller code it will be possible to add bars ass for standard polls to all the civs in Locutus' POLL.
        Creator of the Civ3MultiTool

        Comment


        • #5
          when all the bar codes are replaced with the html code, how big will the page size be? better to make a graph on excel and attach the image.....
          Co-Founder, Apolyton Civilization Site
          Co-Owner/Webmaster, Top40-Charts.com | CTO, Apogee Information Systems
          giannopoulos.info: my non-mobile non-photo news & articles blog

          Comment


          • #6
            The header is counted from the first entry, and that is the only entry with header. (Current Header: 678)
            <TABLE> <TR><TH>Type</TH><TH>Including header</TH><TH>Excluding header</TH></TR> <TR><TD>Current (no ranking)</TD><TD>18756</TD><TD>18078</TD></TR> <TR><TD>Top 16 bared BB-code</TD><TD></TD><TD>19489</TD></TR> <TR><TD>Top 16 bared BB-code (no empty ending cells)</TD><TD></TD><TD>18537</TD></TR> <TR><TD>Top 16 bared HTML</TD><TD></TD><TD>21969</TD></TR> <TR><TD>Top 16 bared HTML (no empty ending cells)</TR><TD></TD><TD>21017</TD></TR></TABLE>
            Saved from no empty ending cells (top 16): 952
            Saved from using BB-codes 2480 bytes (16 civs) = 155 bytes/civ

            No empty ending cells means that the entries without ranking will have one cell less then the other entries. (AFAIK no browsers have problem with this)

            Also the bar0 code is not needed as no 0-length bar will appear as bars only are significant for the top 16.

            As it looks right now the only one that would fit inside the limit is the "Top 16 bared BB-code (no empty ending cells)"
            And attaching a image is not good as it mostly are cashed even after a update, and also would need a new thread.

            <SMALL>Edit: forgot to end the table, screwed up the entire page.</SMALL>
            Creator of the Civ3MultiTool

            Comment

            Working...
            X