Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Details »»

Version: , by slinky (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-12-2001 Last Update: Never Installs: 0
 
No support by the author.

I have two domains, thelaw.com and thelawforums.com. I set it up as 2 separate domains for a couple of reasons (price is great for 2 separate domains, usesseparate bandwidth, space, and traffic on two different servers, etc.) It's being virtual hosted.

I'm using vBportal for thelawforums, and the front page for it is really nice. So nice, that I'd say that the front page contains many elements of what I'd like to put on the home page of thelaw.com. Sticky polls are great, the "active topics" which would lead to discussion are great, etc.. Given the way that the pages are built at thelawforums, I'm wondering whether I'll have a problem pulling text from thelawforums home page onto the home page of thelaw.com (which is currently on an MS/ASP system that I'm thinking of switching to UNIX/PHP).

Has anyone done something like this? If I would switch it to a PHP based system I'm thinking it's a lot easier but still may involve a whole lot of work pulling info from the other domain. I'm also wondering whether I'll have an issue with access to and from mySQL from a separate domain. I'm a bit new to PHP and have been learning it for the past few weeks.

Anyone?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-13-2001, 12:46 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use PHP on an MS server.

If you do use PHP, you can pull includes from across domains.

PHP Code:
<?php include("http://www.thelawforums.com/info.php"); ?>
I'm pretty sure you can do this in ASP too, although I wouldn't have the foggiest idea how.
Reply With Quote
  #3  
Old 05-20-2001, 05:02 AM
slinky
Guest
 
Posts: n/a
Default

Quote:
Originally posted by tubedogg
You can use PHP on an MS server.

If you do use PHP, you can pull includes from across domains.

PHP Code:
<?php include("http://www.thelawforums.com/info.php"); ?>
Just moved all my asp server stuff on thelaw.com to php! I'm much happier and have been getting into php programming. Thanks for the reply but I'm not sure how this is supposed to work. I can always use absolute addresses, for example:

PHP Code:
require('http://www.thelawforums.com/forums/global.php'); 
but the other stuff, like functions, don't seem to work. Even if I put the functions.php in an include, I still get this error:

Fatal error: Call to undefined function: getpermissions() in /www/thelaw/index.php on line 12

which deals with this line of code:

PHP Code:
$permissions=getpermissions(); 
Not sure why this doesn't work... this is probably going to be a bigger pain than even I had thought....
Reply With Quote
  #4  
Old 05-20-2001, 05:17 AM
Kier Kier is offline
 
Join Date: Oct 2001
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't pull PHP pages from an HTTP address, as the target HTTP server will process the PHP page and send HTML, rather than the source PHP code.
Reply With Quote
  #5  
Old 05-20-2001, 06:10 AM
slinky
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Kier
You can't pull PHP pages from an HTTP address, as the target HTTP server will process the PHP page and send HTML, rather than the source PHP code.
True - but that's fine. I'm trying to pull the html results of the PHP code generated by vBulletin in one domain and put them into another html page on another domain. For example, the code that creates the calendar in vBulletin is based upon the calendar template. I want to pull the results of the template (created in my forums on thelaw.com) and embed it into my home page on another domain (thelaw.com).

The problem I run into is that several templates may create one element, for example the calendar (calendarbit, calendarbit_today, etc.). You can't just paste php code from one template into the html page as <?php ?> code because there are calls to other templates which include functions, etc. which results in undefined functions or variables. I'm not sure I'm using includes correctly, if at all and I have to include templates which are located in the mySQL database, not in a file like the global.php. How would I include the calendar template so that I can call it and build the calendar? I see the variable $headinclude
but I don't see where the value for this variable is set and therefore it must be called in from another template that calls calendar... I know... I'm still a little green but I've got a good learning curve.
Reply With Quote
  #6  
Old 05-20-2001, 06:21 AM
Kier Kier is offline
 
Join Date: Oct 2001
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to move this to the hack requests forum, as this is becoming more suitable to that forum than this.
Reply With Quote
  #7  
Old 05-20-2001, 06:33 AM
slinky
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Kier
I'm going to move this to the hack requests forum, as this is becoming more suitable to that forum than this.
Sounds about right... oh... I also see what you mean about the http requests... mmm...
Reply With Quote
Reply

Thread Tools

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:40 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.06316 seconds
  • Memory Usage 2,255KB
  • Queries Executed 22 (?)
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
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (6)postbit
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete