View Full Version : Lesane's Store and zajako's Hotel Integration (v1.1)
Link14716
07-25-2002, 10:00 PM
Lesane's Store Hack /// INTEGRATION /// zajako's Hotel Hack
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
DISCLAIMER: I do not own the hotel hack, nor the store hack. I did not help make either hack, not am I good friends (or really know) either creator of either of these 2 hacks. None of the code here was hand written by me, I only arranged it in the correct way to get them to work together. I made this for me, myself, and I, and decided to release it to show how to get it to work. It is not 100% garunteed to work, it took me a while last night to get to work, but it probably will. You may post bugs in the thread, but some might be the hotel or the store hack, so I may point you to one of those threads. I actually didn't ask either creator if I could release this, but hopefully I won't be shot. I don't garuntee support on this addon, but I will try my best.
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+
Now, onto the hack.
-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
To use this, you must have the following two hacks installed:
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
zajako's Hotel Hack: https://vborg.vbsupport.ru/showthread.php?s=&threadid=39533
Lesane's Store Hack: https://vborg.vbsupport.ru/showthread.php?s=&threadid=36991
-+-+-+-+-+-+-+-+-+-+-+
INSTALL INSTRUCTIONS
-+-+-+-+-+-+-+-+-+-+-+
Open up the zip file and read 'install.txt'.
UPDATE 9/13/02
Because I am no longer the idiot I once was, security has been upped, a minor but very important change has been made to the part to be added to the store.php file and also a nice tip on how to make it so no one can use the hotel.php script to gain free rooms. IT is really just a matter of re-installing, if you want upgrading instructions, ask me. ;)
UPDATE 10/22/02
Well, people actually care about this hack. Yaye!?!? Well, the problem with all that crap has been fixed...... I just figured that no one cared and, well, I didn't have much time.....
Enjoy! If there are any bugs, please let me know. If you install this hack, please click the Install (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=41525) buttom. :D
v1.0 Downloads: 91
wolfe
07-26-2002, 12:24 AM
will install it m8 :D
DrkFusion
07-26-2002, 12:27 AM
Great Addition, too bad my forums with the store is gone...let me get my friend to come here and download it and install it :)
Sounds promising.
Drk
Link14716
07-26-2002, 12:42 AM
Thanks for the comments. I just hope neither zajako or Lesane starts hurling objects at my.... ummm.... yeah. :nervous:
wolfe
07-26-2002, 01:35 AM
hey m8 on the Hotel Hack you can't have ' in the names still :(
ZiRu$
07-26-2002, 02:12 AM
FINALLY.........
can you prune ALL messages in hotels after certain amount of time?
Did you hear what he said???
He made a hack so they work together he didnt edit their code... jesus.
Link14716
07-26-2002, 03:35 AM
Originally posted by wolfe
hey m8 on the Hotel Hack you can't have ' in the names still :(
I forgot to mention that the code is from v1.5, 1.6 is messed up with the room name... but I may try to combine them together to get it to work how I need it to....
Link14716
07-26-2002, 03:42 AM
Originally posted by ZiRu$
FINALLY.........
can you prune ALL messages in hotels after certain amount of time?
Yeah, sure, jump into phpMyAdmin and do it yourself. I don't know PHP, really, I just understand some of it, tried with some storew code mixed in a spot, made a room, see if the templates or the money comes out right,. try again. I swotre, I made at least 0 rooms testing it out, I probably could have only made 2 if I knew php, not to mention all the parse errors I got..... If you want that abilitie built in to the admin CP, wait til someone like zajako gets around to doing it, hence, I don't know enough to. If I did, I would probably have a hotel hack of my own with store integration out of the box, well, zip.:D
proxyMX
07-28-2002, 02:53 AM
Neo, your attitude stinks like dead fish, try being nice once in a while big mr ultimate loser
proxyMX
07-28-2002, 03:42 AM
Btw thanks a gazillion for this hack, it was just what i was after
zajako
07-28-2002, 01:38 PM
YAY i don't need to make this hack like some people were requesting :P
thanks link
Link14716
07-28-2002, 08:24 PM
no prob ;)
I knew a lot of people wanted it and I wanted it to, so I arranged your code in with some from the store and got it to work after 1,000,000 parse errors and db errors, heh. :D
Link14716
07-30-2002, 05:42 PM
I am guessing you like it, Keta ;)
proxyMX
07-30-2002, 11:18 PM
dont marry her, have me lol
ZiRu$
08-01-2002, 03:02 PM
Damn......you need both installed :(
gengar003
08-02-2002, 04:58 PM
How about some screen shots?
And how much does a room cost? Is it editable?
Link14716
08-02-2002, 07:36 PM
It is, like every other store option, editable. No need for a screen shot, looks exactly like every other store action in the store screen, and then exactly like it did with the Hotel when buting a room.
Link14716
08-02-2002, 07:39 PM
Originally posted by ZiRu$
Damn......you need both installed :(
Of course you need both installed, it is an integration of the two :banana:
ExAvIoUr
08-08-2002, 08:07 PM
Database error in vBulletin 2.2.6:
Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,messageread,folderid) VALUES
(NULL,,,16,'Your room Key sent by sonic','Your room is ready. It is room 1 and is named Test. Your key is za23470ja15ko904. To goto your room click
here (http://xx.xxx.xx.xx/gsu/room.php?action=enterroom&roomnumber=1&roomkey=za23470ja15ko904)',1028840685,0,0)
mysql error: You have an error in your SQL syntax near ',16,'Your room Key sent by sonic','Your room is ready. It is room 1 and is name' at line 3
mysql error number: 1064
Date: Thursday 08th of August 2002 05:04:45 PM
Script: http://xx.xxx.xx.xx/gsu/gsu/store.php?action=dobuyroom
Referer: http://xx.xxx.xx.xx/gsu/store.php?action=hotel
what did i do wrong?
Link14716
08-09-2002, 12:29 AM
Hmm..... go to hotel.php?action=buyroom
do all the crap their, and tell me if you get an error.
ExAvIoUr
08-09-2002, 08:37 PM
it works but it doesn't take out ne money?
Link14716
08-11-2002, 10:27 PM
like I said, go to the location above and try it out, tell me if there are any errors. If there are, ask about it in the hotel thread *points to first post*, if not I will TRY to make a fix for it.
Also, once the error hits, the querys stop, thus money is AFTER those ++++s, so of course it can't take out the money.
proxyMX
08-12-2002, 12:16 AM
CRATER, BRING OUT YOUR STORES DAMNIT!
Link14716
09-14-2002, 03:11 AM
UPDATE 9/13/02
Because I am no longer the idiot I once was, security has been upped, a minor but very important change has been made to the part to be added to the store.php file and also a nice tip on how to make it so no one can use the hotel.php script to gain free rooms. IT is really just a matter of re-installing, if you want upgrading instructions, ask me. ;)
Main post is updated, and well, new attachment. ;)
dynamite
09-16-2002, 02:10 AM
I was installing the hack but I believe part of the storehotel.txt file has some junk in it... at the bottom it contains:
If ($other =="otheremailaddyperson")
{
$toaddress = $otheremail;
$subject = "Your room key ".$bbuserinfo[username];
$mailcontent = 'Your room is ready. It is room '.$roomnumber[roomnumber].' and is named '.$roomname.'. Your key is '.$key.'. To goto your room use this link http://www.vggmn.com/twz/forums2/room.php?action=enterroom&roomnumber='.$roomnumber[roomnumber].'&roomkey='.$key;
$additional_headers = "From: Hotel@vggmn.com\n"
."Reply-To: "."webmaster@vggmn.com";
@mail($toaddress, $subject, $mailcontent, $additional_headers);
}
evallaw rules, govern this Agreement, and you expressly agree that jurisdiction for any claim or dispute arising from the use of the Service or Software resides in the federal and state courts of the Commonwealth of Virginia.
Doc. #48668-2 2
("dooutput(\"".gettemplate('store_hotel_dobuyroom')."\");");
}
Of course I don't know what needs to be fixed, so it is causing some problems:dead:
Otherwise this is really cool!!!
Link14716
09-26-2002, 12:04 AM
All I can say is.... what ther hell???
EDIT: I see now. Something with the eval was parsed into whatever that is....... I will look into it and try to fixc the error.....
influence
10-01-2002, 03:31 AM
im getting the same error. please try to fix it ASAP because when people click on store thats the first thing that shows.
influence
10-01-2002, 03:34 AM
Parse error: parse error, unexpected T_STRING in /home/rapflava/public_html/forums/store.php on line 1070
evallaw rules, govern this Agreement, and you expressly agree that jurisdiction for any claim or dispute arising from the use of the Service or Software resides in the federal and state courts of the Commonwealth of Virginia.
Doc. #48668-2 2
("dooutput(\"".gettemplate('store_hotel_dobuyroom')."\");");
}
line starting with evallaw is line 1070
Koyske8000
10-02-2002, 09:02 PM
looks nice!
influence
10-04-2002, 01:29 AM
someone going help me out with the problem im having?
Schorsch
11-11-2002, 05:31 PM
is the hack working now ?? or just errors in it ? :ermm:
regards,
Schorsch
Link14716
11-11-2002, 07:39 PM
I fixed it over a month ago....
Schorsch
11-11-2002, 08:32 PM
Originally posted by Link14716
I fixed it over a month ago....
thanks Link14716, works fine :)
insanctus
03-08-2003, 12:32 PM
ok how do you fix the
Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,messageread,folderid) VALUES (NULL,,,1,'Your room
insanctus
03-08-2003, 03:39 PM
N/M fixed...
Now I am trying to figure out a way to make them pay weekly rent lmao if they do not have the rent it closes there hotel :)
Charles Henshaw
03-30-2003, 07:40 AM
07-28-02 at 03:53 AM proxyMX said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=278057#post278057)
Neo, your attitude stinks like dead fish, try being nice once in a while big mr ultimate loser
*Points and laughs at neo* Good one ;)
kaotic
05-23-2003, 04:58 PM
Err...
What exactly does this integration do? I don't believe it was mentioned anywhere.. or if it was... I just missed it. :confused:
Link14716
05-23-2003, 05:20 PM
It makes people pay to create a hotel room.
kaotic
05-23-2003, 07:12 PM
Yeah, but I don't get how Lesane's Store Hack fits into the equation.
Link14716
05-24-2003, 01:46 AM
The store hack is required, since it is the point system that is used.. It also adds an action to the store...
Shadow_NL
05-25-2003, 09:17 AM
Great hack, thanks a lot.
I found an error though, when you add a ' in a name of the room (ie Shadow_NL's room) it will give a database error. Can you fix this?
ShadowOne
01-22-2006, 06:29 PM
update for newer versions of vB? post if you do
i would like to add this to our site
Marco van Herwaarden
01-22-2006, 08:11 PM
Why you want this to be ported to vB3.5 if all it does is integrating 2 vB2 hacks that themself have not been ported AFAIK?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.