This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Custom Alertbox Text  (Read 2059 times)

Shruik

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Custom Alertbox Text
« on: October 03, 2012, 09:47:42 pm »
Hello everybody,
well i tried to fullfill this tutorial: viewtopic.php?f=61&t=778 and i got stuck at a point... first i had to add the alertbox because in my version of the "cracked" wow.exe it was disabled but it works now BUT the box is empty...
You can check out my loginscreen here. I exactly followed steffs tutorial but the message doesn´t show up. For those who want to see the .html file as well go to this page.
Thanks for reading
Shruik
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
"If you don´t like modelchanging, you don´t know the fascination of it"

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Custom Alertbox Text
« Reply #1 on: October 03, 2012, 10:38:52 pm »
You should read tuts carefully.

Your html

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
    </head>
    <body>
        <p>
            Breaking News

            Wildchild hört auf

            Alexi "Wildchild" Laiho schwört dem Alkohol ab!
        </p>
        <p>
            So nebenbei:

            Das Message System geht

            und klein Shruik freut sich wie der Schneekönig.
        </p>
    </body>
</html>

Right form ( the SERVERALERT: is not obsolet!!! )

SERVERALERT:
<html><body>
<p>TEST1
Message number 1
Message number 1 Line2

</p>
<p>TEST2
Message number 2
Message number 2 Line2

</p>
</body></html>

Also the alert box is full included in XML/LUA so the change of the wow.exe dont kill it. If you have set a wrong path to the alert page or you have sthe wrong form it will just not show.

Try my altert page to see if your client works.

http://chaoticunited.com/maruum/news/
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Shruik

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: Custom Alertbox Text
« Reply #2 on: October 03, 2012, 10:56:27 pm »
Don´t worry i tested it with your usual .html code but as it didn´t work i wondered if i used any wrong html tags and asked someone who is into html to "improve" this file  :roll:
However: It doesn´t work with your page either...
For testing purposes i even changed both,
SERVER_ALERT_BETA_URL = "http://chaoticunited.com/maruum/news/";
and
SERVER_ALERT_URL = "http://chaoticunited.com/maruum/news/";
to your url and nothing happened... Gonna watch over it tomorrow again - now i´m going to sleep ;)
Thanks for your help
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
"If you don´t like modelchanging, you don´t know the fascination of it"

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Custom Alertbox Text
« Reply #3 on: October 04, 2012, 12:14:40 am »
And have you only the modified glueStrings.lua in your patches?
I tested it and my url works fine.




Just for testing delete ALL custom patches. Create one patch that only contains the

InterfaceGlueXMLGlueStrings.lua

with modded settings for

SERVER_ALERT_URL = "http://chaoticunited.com/maruum/news/";

and start client. You should also put all changes on intreface in a local patch like patch-deDE-4.MPQ or
patch-enGB-4.MPQ depending on your clients local. WHY? The local patches get loaded and some interface and DBC files are in there. So if you try to mod a file and pack it direct in a data folder patch you will have no changes.

Also dont IMPROOF the html structure. The client only supports the tags i used. I tested some time around with this  ;) Just use my template and only add new lines.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954