Forum Tips

Find all FAQs, HOWTOs and guides here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Locked
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Forum Tips

Post by Zoey76 »

I'll be updating this post with useful forum tips.

New forum bbcode for GitHub:

[commit]2d6af28bc61162a76d37f74e529e922c9c76f446[/commit]

Code: Select all

[commit]2d6af28bc61162a76d37f74e529e922c9c76f446[/commit]

Code: Select all

[commitdp]b2f62330ea3834687fa98900af2372aa0b2d284e[/commitdp]
SPOILER:
For example using changeset and ticket forum tags:
Core:
Changeset 4586

Code: Select all

[changeset]4586[/changeset]
Ticket #5237

Code: Select all

[ticket]5237[/ticket]
Datapack:
DP Changeset 7929

Code: Select all

[dpchangeset]7929[/dpchangeset]
DP Ticket #4154

Code: Select all

[dpticket]4154[/dpticket]
Last edited by Zoey76 on Fri Apr 22, 2011 12:09 pm, edited 1 time in total.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Code Tags

Post by Zoey76 »

Code Tags:

XML:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><note>    <to>Tove</to>    <from>Jani</from>    <heading>Reminder</heading>    <body>Don't forget me this weekend!</body></note>

Code: Select all

[code=xml]<?xml version="1.0" encoding="UTF-8"?><note>    <to>Tove</to>    <from>Jani</from>    <heading>Reminder</heading>    <body>Don't forget me this weekend!</body></note>
[/code]

Java:

Code: Select all

class HelloWorldApp {    public static void main(String[] args) {        System.out.println("Hello World!"); // Display the string.    }}

Code: Select all

[code=java]class HelloWorldApp {    public static void main(String[] args) {        System.out.println("Hello World!"); // Display the string.    }}
[/code]

PHP:

Code: Select all

<?php    //Hello world in PHP    print("Hello World");?>

Code: Select all

[code=php]<?php    //Hello world in PHP    print("Hello World");?>
[/code]

Python:

Code: Select all

def hello():    print "Hello World!"

Code: Select all

[code=python]def hello():    print "Hello World!"
[/code]

Diff/Patch:

Code: Select all

### Eclipse Workspace Patch 1.0#P L2_GameServerIndex: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java===================================================================--- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 4422)+++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (working copy)@@ -390,6 +391,9 @@        SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar);        Announcements.getInstance().showAnnouncements(activeChar); +       if (activeChar.getLevel() == 85)+           activeChar.sendMessage("Hello mate!");+               if (showClanNotice)        {            NpcHtmlMessage notice = new NpcHtmlMessage(1);

Code: Select all

[code=diff]### Eclipse Workspace Patch 1.0#P L2_GameServerIndex: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java===================================================================--- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 4422)+++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (working copy)@@ -390,6 +391,9 @@        SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar);        Announcements.getInstance().showAnnouncements(activeChar); +       if (activeChar.getLevel() == 85)+           activeChar.sendMessage("Hello mate!");+               if (showClanNotice)        {            NpcHtmlMessage notice = new NpcHtmlMessage(1);
[/code]

Note about diff/patch:
Is not recomended to share diff/patchs using the forum since it changes tabs for spaces, which breaks this diffs.
The best way is to attach a zipped file.

As alternative to attachments you can use pastebin.com or other site with such function.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Using Spoilers (New)

Post by Zoey76 »

Spoilers:
SPOILER:
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.

Code: Select all

[spoiler]This program is free software: you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation, either version 3 of the License, or (at your option) any laterversion. This program is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE. See the GNU General Public License for moredetails. You should have received a copy of the GNU General Public License along withthis program. If not, see <http://www.gnu.org/licenses/>.[/spoiler]
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Forum Tips

Post by Zoey76 »

Display code!

Display Gists with:

Code: Select all

[gist=Zoey76]8391277[/gist]
Gist by: Zoey76
Display Pastebins with:

Code: Select all

[pastebin]vfZtYWhT[/pastebin]
[pastebin]vfZtYWhT[/pastebin]
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Forum Tips

Post by Zoey76 »

Added GitHub BBCode for commits, includes colours and diff-download button!
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Locked