Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
How's progress?.
When will v1 be released.
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Quote:
Originally Posted by
KyleeIsProzZ
How's progress?.
When will v1 be released.
I could release it in a few hours, but I think I'll wait until the v2.0 of the Emulator is released, as I know there will be a different database?
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Quote:
Originally Posted by
C0R3G4M3R
I could release it in a few hours, but I think I'll wait until the v2.0 of the Emulator is released, as I know there will be a different database?
do you know when the v2 emu is being released or a planned release? i'm really hoping that i'll be able to use habbase on my hotel, and i'll probably use azure mainly because of your housekeeping. i love the ability to edit the catalogue through housekeeping.
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Quote:
Originally Posted by
iPadBoy11
do you know when the v2 emu is being released or a planned release? i'm really hoping that i'll be able to use habbase on my hotel, and i'll probably use azure mainly because of your housekeeping. i love the ability to edit the catalogue through housekeeping.
No I don't know, but i hope in the next days/weeks.
Category editing works, but items editing dosen't work (deletes every setting of the current selected item :/ )..
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Quote:
Originally Posted by
C0R3G4M3R
No I don't know, but i hope in the next days/weeks.
Category editing works, but items editing dosen't work (deletes every setting of the current selected item :/ )..
Skype? I'll help you m8
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Quote:
Originally Posted by
KyleeIsProzZ
Progress?
You can now write and view news, but not edit them I'm working on it.
EDIT:
Now you can edit and delete news and also edit users.
Only a small Problem with writing the news: Author is always 0
Here's the code if someone can help, just answer please :)
PHP Code:
<?php
if (isset($_POST['submit'])) {
$title = mysql_real_escape_string($_POST['title']);
$shortstory = mysql_real_escape_string($_POST['shortstory']);
$longstory = mysql_real_escape_string($_POST['longstory']);
$image = mysql_real_escape_string($_POST['image']);
$author = mysql_result(mysql_query("SELECT username FROM users WHERE id = '".$_SESSION['user']['id']."' LIMIT 1"), 0);
mysql_query("INSERT INTO cms_news (title, shortstory, longstory, image, author, published) VALUES('$title', '$shortstory', '$longstory', '$image', '$author','" . time() . "')") or die(mysql_error());
echo '<div class="col col-1 msg g">Success! The news article is now posted on {hotelname}!</div>';
};
?>
And the HTML:
PHP Code:
<form id="post_news" name="post_news" method="post" action="">
<input type="text" class="text" style="float: left; width: 50%; margin-right: 1%; margin-bottom: 10px;" name="title" id="title" placeholder="Title..." />
<input type="text" class="text" style="float: left; width: 49%; margin-bottom: 10px;" name="image" id="image" placeholder="top_story_news.png" />
<textarea name="shortstory" class="text" style="margin-bottom: 10px;" id="shortstory" placeholder="Your shortstory text for the post"></textarea>
<textarea name="longstory" class="text mceEditor" rows="5" id="longstory">Your longstory text for the post</textarea>
<input type="submit" name="submit" style="margin-top: 10px;" id="submit" class="btn g" value="Post" />
</form>
And if I didn't said it yet: I'm still learning PHP :'D
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Quote:
Originally Posted by
C0R3G4M3R
You can now write and view news, but not edit them I'm working on it.
EDIT:
Now you can edit and delete news and also edit users.
Only a small Problem with writing the news:
Author is always 0
Here's the code if someone can help, just answer please :)
PHP Code:
<?php
if (isset($_POST['submit'])) {
$title = mysql_real_escape_string($_POST['title']);
$shortstory = mysql_real_escape_string($_POST['shortstory']);
$longstory = mysql_real_escape_string($_POST['longstory']);
$image = mysql_real_escape_string($_POST['image']);
$author = mysql_result(mysql_query("SELECT username FROM users WHERE id = '".$_SESSION['user']['id']."' LIMIT 1"), 0);
mysql_query("INSERT INTO cms_news (title, shortstory, longstory, image, author, published) VALUES('$title', '$shortstory', '$longstory', '$image', '$author','" . time() . "')") or die(mysql_error());
echo '<div class="col col-1 msg g">Success! The news article is now posted on {hotelname}!</div>';
};
?>
And the HTML:
PHP Code:
<form id="post_news" name="post_news" method="post" action="">
<input type="text" class="text" style="float: left; width: 50%; margin-right: 1%; margin-bottom: 10px;" name="title" id="title" placeholder="Title..." />
<input type="text" class="text" style="float: left; width: 49%; margin-bottom: 10px;" name="image" id="image" placeholder="top_story_news.png" />
<textarea name="shortstory" class="text" style="margin-bottom: 10px;" id="shortstory" placeholder="Your shortstory text for the post"></textarea>
<textarea name="longstory" class="text mceEditor" rows="5" id="longstory">Your longstory text for the post</textarea>
<input type="submit" name="submit" style="margin-top: 10px;" id="submit" class="btn g" value="Post" />
</form>
And if I didn't said it yet: I'm still learning PHP :'D
Author is stored as INT in the database. You need to insert the user id or change the author in cms_news to VARCHAR ;)
Good luck with your project.
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Re: HubbASE (for RevCMS and compatible to Azure only) [Housekeeping]
Closed once theres no updates in the last 4 weeks. If you wish it reopened, shoot me a PM :):