-
uberEmu ChatLinks [Habblet, C#]
Proof:
http://i761.photobucket.com/albums/x.../link_uber.png
How to activate this!?
Open RoomUser.cs
Search for:
Code:
ServerMessage ChatMessage = new ServerMessage(ChatHeader);
Replace the whole ServerMessage with:
Code:
string Site = "";
ServerMessage ChatMessage = new ServerMessage(ChatHeader);
ChatMessage.AppendInt32(VirtualId);
if (Message.Contains("http://") || Message.Contains("www."))
{
string[] Split = Message.Split(' ');
foreach (string Msg in Split)
{
if (Msg.StartsWith("http://") || Msg.StartsWith("www."))
{
Site = Msg;
}
}
Message = Message.Replace(Site, "{0}");
}
ChatMessage.AppendStringWithBreak(Message);
if (Site != "")
{
ChatMessage.AppendBoolean(false);
ChatMessage.AppendBoolean(true);
ChatMessage.AppendStringWithBreak(Site.Replace("http://", ""));
ChatMessage.AppendStringWithBreak(Site);
}
ChatMessage.AppendInt32(GetSpeechEmotion(Message));
ChatMessage.AppendBoolean(false);
Thats the C# code :D
Open your CMS (uberCMS)
Go to HabbletProxy.php
Replace the whole File with:
Code:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'
| http://www.meth0d.org & http://www.sulake.biz
| #######################################################################
| 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.
\======================================================================*/
require_once "global.php";
$hid = '';
$url = '';
if (isset($_POST['url']))
{
$url = $_POST['url'];
}
if (isset($_GET['habbletKey']))
{
$hid = $_GET['habbletKey'];
}
switch (strtolower($hid))
{
case "credits":
$tpl->Init();
$credits = new Template('cproxy-credits');
$tpl->AddTemplate($credits);
$tpl->Output();
break;
case "news":
$tpl->Init();
$news = new Template('cproxy-news');
$tpl->AddTemplate($news);
$tpl->Output();
break;
case "externallink":
$tpl->Init();
$link = new Template('cproxy-link');
$link->SetParam('TargetLink', $url);
$tpl->AddTemplate($link);
$tpl->Output();
break;
default:
exit;
}
?>
Goto Inc -> Tpl ->
Make a new Copy & paste cproxy-news
Rename your copy of cproxy-news to cproxy-link
Open cproxy-link
Delete all whats inside the file
Paste this in this in the file:
Code:
<div class="habblet-container ">
<div id="external-link-container">
<h2><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/233/web-gallery/v2/images/registration/warning_sign.png"/> Security warning</h2>
<p>You are now leaving Habbo.com. For the safety and privacy of your Habbo account, remember to never enter your password unless you're on the real Habbo web site. Also be sure to only download software from sites you trust.</p>
<p><strong>%TargetLink%</strong></p>
<p class="clearfix" style="padding: 0">
<a href="#" class="new-button" onclick="ExternalClickHandler.clickCancel('/link_to?url=%TargetLink%'); return false;"><b>Annuleren</b><i></i></a>
<a href="/link_to?url=%TargetLink%" class="new-button red-button" onclick="ExternalClickHandler.clickContinue('/link_to?url=%TargetLink%'); return false;"><b>Continue to %TargetLink%</b><i></i></a>
</p>
</div>
</div>
<!-- dependencies
-->
Download & paste this in your CMS folder!
link_to.php
Add to .htacces
Code:
RewriteRule ^link_to(|/)$ link_to.php
Then you're done :D
Credits
50% me - C# code
50% PEJump2 - Habblet
-
Re: uberEmu ChatLinks [Habblet, C#]
-
Re: uberEmu ChatLinks [Habblet, C#]
hey, the link does not redirect to the site =/
-
Re: uberEmu ChatLinks [Habblet, C#]
-
Re: uberEmu ChatLinks [Habblet, C#]
Ohh i'm sorry ;p
Thanks for Sharing !
-
Re: uberEmu ChatLinks [Habblet, C#]
OMG wichard, great release.
But Everytime I update something in your emu, i cant chat in the game, like everything but talking to people in rooms work D:
-
Re: uberEmu ChatLinks [Habblet, C#]
i have this:
http://www.plaatjesupload.nl/bekijk/...317326-890.png
---------- Post added at 11:15 AM ---------- Previous post was at 10:59 AM ----------
same as news & links
-
Re: uberEmu ChatLinks [Habblet, C#]
Very nice! AARON PUT THIS ON PHOENIX NAO <3
-
Re: uberEmu ChatLinks [Habblet, C#]
Doesn't let me talk..
---------- Post added at 12:34 PM ---------- Previous post was at 12:29 PM ----------
Now it works thanks :P
-
Re: uberEmu ChatLinks [Habblet, C#]
I know right, some things that I install on wichards emulator, does not let me speak SOMETIMES. IT's working now but at random times, i cant speak!..
-
Re: uberEmu ChatLinks [Habblet, C#]
screen looks like habbo.. I tried Google on habbo.nl and get 100% same as in screen.
-
Re: uberEmu ChatLinks [Habblet, C#]
Quote:
Originally Posted by
WizardKing
screen looks like habbo.. I tried
Google on habbo.nl and get 100% same as in screen.
Um it does work tho, I just tried it...
-
Re: uberEmu ChatLinks [Habblet, C#]
It works in the emu but the part of CMS doesn't works..
-
Re: uberEmu ChatLinks [Habblet, C#]
Quote:
Originally Posted by
simoneihg
It works in the emu but the part of CMS doesn't works..
What do you mean? Everything works fine!
Did you install it correctly, including the .htaccess and the tpl and the other thing?
-
Re: uberEmu ChatLinks [Habblet, C#]
Yes, i added cproxy-link,replaced habbletAjax downloded the file i did everything when i click on the site it doesn't appear anything.
-
Re: uberEmu ChatLinks [Habblet, C#]
PM me your MSN, I'll T'V you.
---------- Post added at 11:30 PM ---------- Previous post was at 11:27 PM ----------
Quote:
Originally Posted by
simoneihg
Yes, i added cproxy-link,replaced habbletAjax downloded the file i did everything when i click on the site it doesn't appear anything.
Please PM me your MSN details, I'll TV you.
-
Re: uberEmu ChatLinks [Habblet, C#]
when i press on the link nothing happens.. :S
i can't see the top box
-
Re: uberEmu ChatLinks [Habblet, C#]
Nothing to add in external_variables? because i have this message:
"Advertising is strictly prohibited.. blablabla"
Thank you for the codes ;)
-
Re: uberEmu ChatLinks [Habblet, C#]
For me doesn't appear the text box to let access the site..
-
Re: uberEmu ChatLinks [Habblet, C#]
-
Re: uberEmu ChatLinks [Habblet, C#]
I believe you Flurrie. It looks cool.
-
Re: uberEmu ChatLinks [Habblet, C#]
Works 100% Thanks Wichard
-
Re: uberEmu ChatLinks [Habblet, C#]
Wichard why did you decide to cut the development short and not develop the entire code. You do realize that Habbo continues with {0}, {1}, {2}, etc for parsing more than one link. I suggest you update your code and release it when it is ready so there will not be as much complaining, errors, and flame.
I'll leave you to figuring out how to complete your code yourself, I already gave you enough hints.
-
Re: uberEmu ChatLinks [Habblet, C#]
Quote:
Originally Posted by
Herron
Wichard why did you decide to cut the development short and not develop the entire code. You do realize that Habbo continues with {0}, {1}, {2}, etc for parsing more than one link. I suggest you update your code and release it when it is ready so there will not be as much complaining, errors, and flame.
I'll leave you to figuring out how to complete your code yourself, I already gave you enough hints.
And who'r you? Hebbo? o_O
-
Re: uberEmu ChatLinks [Habblet, C#]
Quote:
Originally Posted by
PEjump2
And who'r you? Hebbo? o_O
No, I am god. When I am not god, I am Jesus.
Nice PHP. I think you are my hero.