• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
XenForo Smilie XML Generator

XenForo Smilie XML Generator 1.0

No permission to download
#1
MatthewH submitted a new resource:

XenForo Smilie XML Generator - A smilie XML generator for Windows.

View attachment 105105 XenForo Smilie XML Generator View attachment 105107

Yes hello XenForo.
So I bet you're wondering why I made this, it's a pretty simple program, however it's useful in situations such as I was in earlier where I had 109 images that I need to have as smilies, it would have taken quite some time to get all set up.

However, after making a simple console application in a couple minutes, it...
Read more about this resource...
 

GliX

Active member
#5
Could you add the ability to specify smilie categories? And why you add it to all smilies, even if they are larger?
PHP:
<sprite_params w="18" h="18"/>
 
#6
Wow - what a awesome way to import big smilie directorys.:love: Many thank to share this with us. (y)
You're very welcome! That was the purpose for it!

Could you add the ability to specify smilie categories? And why you add it to all smilies, even if they are larger?
PHP:
<sprite_params w="18" h="18"/>
I'll add those two options.
However, with category you must know the ID of the category.

Since there's some interest and downloads, I'll add a few things..
  • Ability to specify size parameters.
  • The characters to use for the smilie. Right now it uses { }. So it would be {smiliename} to use said smilie. I'll adjust that.
  • And I'll add category ID selection.
 

otto

Well-known member
#7
Hello,

is there a way to import directly in a defined smilie group? If not - than this will be a suggestion. :D ;)

Argh... you have do it yesterday, i dint have seen the update. :) Sorry.
 

Tim

Active member
#8
I tried to generate a smilie XML just now and I get the following error...

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Smilie_XML_Generator.main.generate_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at MetroFramework.Controls.MetroButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
XenForo Smilie XML Generator
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Tim/Documents/WEBSITES/XenForo%20Smilie%20XML%20Generator/XenForo%20Smilie%20XML%20Generator.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
MetroFramework
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Tim/Documents/WEBSITES/XenForo%20Smilie%20XML%20Generator/MetroFramework.DLL
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Any thoughts on what went wrong for me?
 
#9
I tried to generate a smilie XML just now and I get the following error...

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Length cannot be less than zero....


Any thoughts on what went wrong for me?
You need to make sure you replace the @ symbol with a PERIOD (DOT) symbol in Step 2.
 
#10
I followed the instructions, got an XML file and when I tried to import it, it gave me this error:

The provided file was not a valid XML file. Please provide a valid XML file.

Does anyone know what format Xenforo expect for a smilie XML file?
 
#11
You're very welcome! That was the purpose for it!


I'll add those two options.
However, with category you must know the ID of the category.

Since there's some interest and downloads, I'll add a few things..
  • Ability to specify size parameters.
  • The characters to use for the smilie. Right now it uses { }. So it would be {smiliename} to use said smilie. I'll adjust that.
  • And I'll add category ID selection.
Ok, I found the problem! Looks like when you added Categories support, you must have forgotten to open the "<smilies>" element just after the categories element in the outputted XML file!

Once I added back in that opening tag, it worked!

I did *NOT* add categories, so you may find that you tested it with categories, but forgot to test it again without categories.

Anyone else running into this problem, if you just find this line in the exported XML file:

<smilie_categories />

And change it to say:

<smilie_categories />
<smilies>


It will import properly.