Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2009, 07:31 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Burning out need HELP!! Pulling a nonvb PHP script into external page OS-Commerce

HELP!!!!! My brain is starting to fry.......

OK I figured out how to make a Non-Vb page from digging around. I figured out how to pull in the header, navbar and footer. I even figured out how to pull in basic HTML into the body area. Check it out....

http://www.scalemotorcars.com/forum/externaltest3.php

So for right now the body area is an Iframe. That basically is a hokey way to go about things so I need an experts advice.

I want to pull the OS-Commerce php index script into the page and fuse the two together without the use of the I-frame. All links would have to rotate in that page so I don't have to do the same for all the Cart files. Heres where the I-frame works so perfectly but it looks horrible and I'm concerned about browser compatibility and future support for it.

Heres the link to the stand alone OS-C php script. http://www.scalemotorcars.com/catalo...aintenance.php its closed until I can figure this out or until someone here has mercy on me. Thanks in advance....
Reply With Quote
  #2  
Old 01-25-2009, 02:59 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you mean something like this? https://vborg.vbsupport.ru/showthread.php?t=62164

Integrating your cart files will be a lot harder, unless you can code the PHP yourself, you will probably need to hire a coder to do this for you.
Reply With Quote
  #3  
Old 01-25-2009, 01:12 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Dismounted, Ya thats the one I started with. I did have another question on that template.

PHP Code:
// ######################### REQUIRE BACK-END ############################ 
require_once('./global.php'); 
I might have a way to integrate my cart but I need the non Vb page on the sites root outside the forum root.

I tried changeing the /global.php to /forum/global.php but it didnt work at all. Any ideals...

Also I forgot to mention that the Iframe doesn't work anyway. I can get it to look ok but when someone goes to check out the paypal system boots the transaction. I guess the Iframe creates some kind of security risk so if anyone else wants to try the Ifram save your time. Its not going to work right...

Anyone else have any ideals before I hock grandma's ring to get this done right...
Reply With Quote
  #4  
Old 01-25-2009, 02:20 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should chdir() to the forum homedirectory before including global.
Reply With Quote
  #5  
Old 01-25-2009, 04:42 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you please give me an example.
Reply With Quote
  #6  
Old 01-25-2009, 04:50 PM
Voltar Voltar is offline
 
Join Date: Mar 2006
Location: Bakersfield, California
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scalemotorcars View Post
Could you please give me an example.

PHP Code:
chdir('/path/to/your/forum/dir/');
require_once(
'./global.php'); 
Is that what you meant?
Reply With Quote
  #7  
Old 01-29-2009, 08:41 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That worked thanks... :up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04572 seconds
  • Memory Usage 2,219KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete