vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Lesane's Store and zajako's Hotel Integration (v1.1) (https://vborg.vbsupport.ru/showthread.php?t=41525)

Link14716 07-25-2002 10:00 PM

Lesane's Store and zajako's Hotel Integration (v1.1)
 
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/showthrea...threadid=39533
Lesane's Store Hack: https://vborg.vbsupport.ru/showthrea...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 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?

Neo 07-26-2002 02:42 AM

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

Quote:

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

Quote:

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

Keta 07-29-2002 06:43 PM

yayyyyyyyyyyyyyyyyyyyyy

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

Quote:

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

PHP Code:

Database error in vBulletin 2.2.6:

Invalid SQLINSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,messageread,folderidVALUES 

(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 

[url=http://xx.xxx.xx.xx/gsu/room.php?action=enterroom&roomnumber=1&roomkey=za23470ja15ko904]here[/url]'
,1028840685,0,0)
mysql errorYou 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:  [url]http://xx.xxx.xx.xx/gsu/gsu/store.php?action=dobuyroom[/url]
Referer: [url]http://xx.xxx.xx.xx/gsu/store.php?action=hotel[/url] 

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/roo...om&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



Quote:

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

Quote:

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
PHP Code:

Invalid SQLINSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,messageread,folderidVALUES (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

Quote:

07-28-02 at 03:53 AM proxyMX said this in Post #10
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.


All times are GMT. The time now is 02:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01366 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete