Page 1 of 2

Requesting preferences php tags

Posted: Tue Mar 09, 2021 5:30 am
by Hyuhjhih
Requesting admin to add certain prefences and layout php tags which is currently unavailable.
Requires admin level. From administrative control panel
Image
  • table or textbox
  • alignment
  • highlight
  • background
  • goto, target

Re: Requesting preferences php tags

Posted: Sun May 09, 2021 3:52 pm
by makazuwr32
I wish for addition of Spoiler php tag.

Re: Requesting preferences php tags

Posted: Sun May 09, 2021 4:12 pm
by Stratego (dev)
i can set if u specify these on all (2 required field to fill):

BBCode usage
Here you define how to use the BBCode. Replace any variable input by the corresponding token (see below).
Examples:

Code: Select all

[highlight={COLOR}]{TEXT}[/highlight]
[font={SIMPLETEXT1}]{SIMPLETEXT2}[/font]
HTML replacement
Here you define the default HTML replacement. Do not forget to put back tokens you used above!
Examples:

Code: Select all

<span style="background-color: {COLOR};">{TEXT}</span>
<span style="font-family: {SIMPLETEXT1};">{SIMPLETEXT2}</span>
optionally: Help line
This field contains the mouse over text of the BBCode.
Help line text


also here i found some help on how to fill:
TOKENS
Tokens are placeholders for user input. The input will be validated only if it matches the corresponding definition. If needed, you can number them by adding a number as the last character between the braces, e.g. {TEXT1}, {TEXT2}.

Within the HTML replacement you can also use any language string present in your language/ directory like this: {L_<STRINGNAME>} where <STRINGNAME> is the name of the translated string you want to add. For example, {L_WROTE} will be displayed as “wrote” or its translation according to user’s locale.

Please note that only tokens listed below are able to be used within custom BBCodes.
TOKEN WHAT CAN IT BE?
{TEXT} Any text, including foreign characters, numbers, etc… You should not use this token in HTML tags. Instead try to use IDENTIFIER, INTTEXT or SIMPLETEXT.
{SIMPLETEXT} Characters from the latin alphabet (A-Z), numbers, spaces, commas, dots, minus, plus, hyphen and underscore
{INTTEXT} Unicode letter characters, numbers, spaces, commas, dots, minus, plus, hyphen, underscore and whitespaces.
{IDENTIFIER} Characters from the latin alphabet (A-Z), numbers, hyphen and underscore
{NUMBER} Any series of digits
{EMAIL} A valid email address
{URL} A valid URL using any protocol (http, ftp, etc… cannot be used for javascript exploits). If none is given, “http://” is prefixed to the string.
{LOCAL_URL} A local URL. The URL must be relative to the topic page and cannot contain a server name or protocol, as links are prefixed with “https://www.ageofstrategy.net/
{RELATIVE_URL} A relative URL. You can use this to match parts of a URL, but be careful: a full URL is a valid relative URL. When you want to use relative URLs of your board, use the LOCAL_URL token.
{COLOR} A HTML colour, can be either in the numeric form #FF1234 or a CSS colour keyword such as fuchsia or InactiveBorder

Re: Requesting preferences php tags

Posted: Mon May 10, 2021 2:55 am
by Hyuhjhih
Html spoiler

Code: Select all

<span class="spoiler-inline-js"><input type="button" value="{INTTEXT}" class="button2" style="font-size:10px; padding: 0px 3px; border-radius: 2px;" onclick="XYZ.style.display = XYZ.style.display==='none' ? 'block' : 'none';" /><div style="margin-top: 3px; padding: 5px; border: 1px dotted darkgray; display: none;">{TEXT}</div></span>
BBC

Code: Select all

[spoiler={INTTEXT;defaultValue=Spoiler}]{TEXT}[/spoiler]
Html Strike through

Code: Select all

<span style="text-decoration: line-through;">{TEXT}</span>
BBC

Code: Select all

[st]{TEXT}[/st]
I don't know whether the strike through will acquire the default or adjusted font color.


Html topic progress bar

Code: Select all

<style> @-webkit-keyframes progress{to{background-position: 30px 0;}}@-moz-keyframes progress{to{background-position: 30px 0;}}@keyframes progress{to{background-position: 30px 0;}} </style><div style="display: inline-block; background-color: #282828; border-radius: 7px; box-shadow:inset 0px 0px 6px 2px rgba(255,255,255,.3); height: 17px; padding: 6px; width: 380px;"><div style="display: inline-block; height: 100%; width: {PERCENT}%; max-width: 100%; background-color: #75ff30; border-radius: 3px;"><div style="width: 100%; height: 15px; border-radius: 20px; -webkit-animation: progress 1s linear infinite; -moz-animation: progress 1s linear infinite; animation: progress 1s linear infinite; background-repeat: repeat-x; background-size: 30px 30px; background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);"></div></div></div>
Didn't checked it. But hope it looks fine.

BBC

Code: Select all

[progress]{PERCENT}[/progress]
Code available and set only by topic owners and moderators
Can help moderators or design leaders know if a topic, after a good discussion with other forumers ,is ready to check, go through , or keep on pending.

Html alignment

Code: Select all

<span style="display: block; text-align: right;">{TEXT}</span>

<span style="display: block; text-align: left;">{TEXT}</span>
BBC

Code: Select all

[rt]Text[/rt]

[lt]Text[/lt]

Re: Requesting preferences php tags

Posted: Mon May 10, 2021 3:04 am
by Hyuhjhih
Html highlight

Code: Select all

<span style="background-color: {COLOR}">{TEXT}</span>
Font Style wont be neccessary to be defined i think

BBC

Code: Select all

[hil={COLOR}]{TEXT}[/hil]

Re: Requesting preferences php tags

Posted: Mon May 10, 2021 3:17 am
by Hyuhjhih
Html text box

Code: Select all

<p><div style="text-align:center"><div style="display:inline-block;background-color:{COLOR2};border:{HEIGHT}px solid {COLOR1};border-radius: 8px;padding:10px 15px;">{TEXT}</div></div></p>
BBC

Code: Select all

[tcbox={HEIGHT}, {COLOR1}, {COLOR2}[Sp][/Sp]]{TEXT}[/tcbox]
For background defined, which should be used, TxtWCJ, TxtWC,TxrWL?

It could be hard to give bg, unless it is specified under a text box.


Table, it is huge to type without errors, so i am not sure if i can define all perimeters, but i had used the table defined before in AOGods . So it would be nice if you add a default table picker of layouts in post editing panel.

Re: Requesting preferences php tags

Posted: Mon May 10, 2021 4:12 am
by Hyuhjhih
Html goto-target/anchor

To anchor

Code: Select all

<a name="{TEXT}">{TEXT1}</a>
To target

Code: Select all

<a href="#{TEXT}">{TEXT2}</a>
BBC

To anchor

Code: Select all

[anchor={TEXT}]{TEXT1}[/anchor]
To target

Code: Select all

[goto={TEXT}]{TEXT2}[/goto]

Re: Requesting preferences php tags

Posted: Mon May 10, 2021 10:47 am
by Maxbirykov2004
@Hyuhjhih you literally computer genius that well know at least 2 computer languages...

Re: Requesting preferences php tags

Posted: Mon May 10, 2021 11:35 am
by Hyuhjhih
@Maxbirykov2004 some old pm's in your chart if you had forgot me by chance.
Genius? Not quite. I was on that field a few years back and (deep heartedly)had to quit it on some pressures and now I am continuing in my astro field( which I love lesser).

Re: Requesting preferences php tags

Posted: Mon May 10, 2021 1:08 pm
by Maxbirykov2004
Hyuhjhih wrote: Mon May 10, 2021 11:35 am @Maxbirykov2004 some old pm's in your chart if you had forgot me by chance.
Genius? Not quite. I was on that field a few years back and (deep heartedly)had to quit it on some pressures and now I am continuing in my astro field( which I love lesser).
Okay

Re: Requesting preferences php tags

Posted: Tue May 11, 2021 11:37 am
by Hyuhjhih
Hope you saw this @Stratego (dev)

Re: Requesting preferences php tags

Posted: Tue May 11, 2021 1:25 pm
by Stratego (dev)
yes!

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 10:01 am
by makazuwr32
So... Are these requested php tags in on forum?

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 11:32 am
by Hyuhjhih
[hil=#00FF80]Not Yet[/hil]

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 12:21 pm
by Stratego (dev)
[anchor]anchorme[/anchor]

[progress]100[/progress]

spolied egg


Unwanted

[rt]rightie[/rt]

[lt]leftie[/lt]



[tcbox]sdfasdf asd asdf asdf asdf[/tcbox]

highlight

[goto]gotothat[/goto]

not sure all works - but here they are

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 12:31 pm
by makazuwr32
[hil=000080]test
test
test[/hil]

[lt]left
left
left[/lt]

[rt]right
right
right[/rt]

[progress]what is here?[/progress]





[tcbox] what does this do?[/tcbox]

Test results:
St tag is working well.

Spoiler hides but does not open, does not show contents and does not want to change name.

Other tags do not work.

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 12:35 pm
by Badnorth



Re: Requesting preferences php tags

Posted: Wed May 12, 2021 12:35 pm
by Stratego (dev)
also i go replace all TEXTs to SIMPLETEXT and always use that .
to avoid hacking the page.


strike

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:27 pm
by Hyuhjhih
Somethings missing.( New BBC stock?(i hope not) which i might be missing updates?)

The spoiler inttext seems not defined in acp. Need verification.

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:30 pm
by Hyuhjhih
Good Work Daniel. Thanks.For trying.
I will get nodes and antids in new format

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:32 pm
by Hyuhjhih
Alignments missing parameters in acp. Please verify.

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:33 pm
by Hyuhjhih
Progress bar, the @webkit, @moz nodes seems missing in acp. Please verify.

[progress=]12[/progress]

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:35 pm
by Hyuhjhih

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:35 pm
by Hyuhjhih
from 👈🏻 click

The target is not specified in html format. Please verify
But still working
Thanks

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:39 pm
by Hyuhjhih
Well glad i started AoForum's new era. The formative era :lol: <=|

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:43 pm
by Hyuhjhih
Txtbox, some perimeters are missing or not defined in acp. Since major part i made is Arg.text , and is not pleased by you, i will try it in simpletext. Or did you meant the
var.{TEXT}, Which will never in a lifetime cause security issues.

(and stratego, you can believe me as "not a hacker", the reason i left this field is personal matters :D

I hope you didn't wrote the XYZ.style in html. It was just an example. Assuming you must have didn't noticed it, and just to make you remember, the XYZ should be replaced with any valid style you have in your phpbb pack.

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 1:49 pm
by Hyuhjhih
I am going to make a guide topic here so that new players or the present players who don't know how to define php, could follow the format I have provided. Cause here i can see even makz is struggling to use hil.
Don't worry mak. I know its confusing at start. ;)

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 2:04 pm
by makazuwr32
Thank you,
Hyuhjhih
This will greatly expand possibilities for forum.

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 2:05 pm
by Hyuhjhih
😥 keep trying. Define makz

Re: Requesting preferences php tags

Posted: Wed May 12, 2021 2:06 pm
by Maxbirykov2004
WOW