Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Aug 2007, 18:07
utw-Mephisto utw-Mephisto is offline
 
Join Date: Feb 2005
vbulletin show header and footer external pages

I want to give our member a file and image hosting but I want to avoid using the same server I run the forum on.

Is it possible to host a page on a different server but show the header and footer (maybe even navbar) on external pages ?
Reply With Quote
  #2  
Old 02 Dec 2007, 01:46
SBlueman SBlueman is offline
 
Join Date: Jan 2006
I am very interested in this as well. I'd like to have my vBulletin header with navbar on a wordpress main page.
Reply With Quote
  #3  
Old 02 Dec 2007, 01:48
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
If it is correctly tied in (not sure if you can do that from different servers or how to), you can use the templates, if not, the HTML code is located within the templates (but a lot of editing would be required to remove and replace phrases) and such or you can use the view source.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #4  
Old 02 Dec 2007, 01:51
SBlueman SBlueman is offline
 
Join Date: Jan 2006
They would be on the same server in my instance.

My main page: http://gridironfans.com/
My forum: http://gridironfans.com/forums
My blog: http://gridironfans.com/nflblog
Reply With Quote
  #5  
Old 02 Dec 2007, 01:54
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Originally Posted by SBlueman View Post
They would be on the same server in my instance.

My main page: http://gridironfans.com/
My forum: http://gridironfans.com/forums
My blog: http://gridironfans.com/nflblog
A custom script could be code to fetch templates and such from your vbulletin installation (and phrases and such) and completely integrate it. Since paths must be edited and such... I wrote one once for one of my sites. I don't have the code anymore.

You need to rewrite paths and such in the files (wish vBulletin would allow for things like FORUM_ROOT constants in vBulletin so that you could define them and than expand vBulletin without having it say it can't find the file (which bugged the heck out of me)), which I think I did for maybe 7 things... But just including classes and function files should do the trick for you. Allowing you to access all of your vBulletin.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #6  
Old 02 Dec 2007, 01:58
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Sounds like this is way over my head....I wonder if anyone would want to tackle that on. I can only imagine how much it would cost to hire someone.

Bummer...
Reply With Quote
  #7  
Old 02 Dec 2007, 02:01
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Actually, it would require a very minimal knowledge of PHP and vBulletin's code. All you have to do is do something like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now that code will probably not work (wrote it without actually thinking of file names... But then, while it is running, find any PHP errors / warnings that occur (usually file could not be found at location blah blah), go to that line in the class file and hard code your file paths. Just keep track of these because this makes updating a PITA since you have to add those hard coded file paths manually.

This is why I think a definable FORUM_ROOT variable would be a really really really really nice feature.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #8  
Old 02 Dec 2007, 02:06
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Wow...I am embarrassed to say I don't know what you posted meant. I am a novice when it comes to this and to be honest with you putting my site together was a lot of hit and miss and many a night of "Uh oh...I messed up my site!".

Thank you for your replies though. Maybe they can help someone with a little more knowledge than myself who wishes to do this on their site.
Reply With Quote
  #9  
Old 02 Dec 2007, 02:19
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Originally Posted by SBlueman View Post
Wow...I am embarrassed to say I don't know what you posted meant. I am a novice when it comes to this and to be honest with you putting my site together was a lot of hit and miss and many a night of "Uh oh...I messed up my site!".

Thank you for your replies though. Maybe they can help someone with a little more knowledge than myself who wishes to do this on their site.
I probably didn't explain very well. I will write a true post up right now for you. Be back in a bit with a better explanation.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #10  
Old 02 Dec 2007, 02:20
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Thank you, much appreciated!

--------------- Added 02 Dec 2007 at 02:29 ---------------

BTW.....another modification uses something like this to call files from vbulletin:

<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>(<?php echo intval($vbridge[count]) ?>) comments</a>
It's from the Wordpress/vBulletin integration mod.

Again....I have no idea what I am talking about and this probably isn't a help. I was just throwing it out there, seeing if it would be relevant at all.

Last edited by SBlueman; 02 Dec 2007 at 02:29. Reason: Auto-Merged DoublePost
Reply With Quote
  #11  
Old 02 Dec 2007, 02:35
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Originally Posted by SBlueman View Post
Thank you, much appreciated!

--------------- Added 02 Dec 2007 at 02:29 ---------------

BTW.....another modification uses something like this to call files from vbulletin:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It's from the Wordpress/vBulletin integration mod.

Again....I have no idea what I am talking about and this probably isn't a help. I was just throwing it out there, seeing if it would be relevant at all.
Anything I just wrote just got dumped because my iMac just randomly shut off. But I will tell you why that won't work...

This is how they are fetching your vBulletin URL:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The function get_option goes into WordPress' option table to find the value you ask for, in this case vbb_VBURL, and will return the value. And that is linking to your vBulletin. I am not sure if you do that.

Now back to rewriting that post for you.

-- EDIT --

Here's what I whipped up:

The Basics

Basically, what you are doing to "link" your main site to your vBulletin installation is by using vBulletin code to access things like cookies, database, and other data. So, if you know vBulletin's code base (and I assume you do since you have a Coder title) you have a good head start.

Linking The Platforms

All I believe you have to do, since most of this code is untested, is require ./forum/global.php since this is what sets and includes most of the files within your main vBulletin installation.

After that, if you need specific classes or functions is doing require('./forum/includes/functions_X.php');

File Paths

Most likely, global.php will spit out "Could Not Find File" errors (actually it's PHP that spits out the errors). You will be told a file and line number. Go to the line number in the specified file and change the relative path (something like ./includes/class_user.php) and change them to an absolute path (something like /home/www/youraccount/forum/includes/class_user.php). That way it will know the exact location.

Sadly, upgrading will overwrite the file paths so you will have to re do them. That's why a constant or "relative" constant would be useful in coding your site to revolve around vBulletin.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration

Last edited by King Kovifor; 02 Dec 2007 at 02:43.
Reply With Quote
  #12  
Old 02 Dec 2007, 02:51
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Coder...heh......my modifications range from a bbcode that I stumbled upon to a code for a pre-defined list of tags for the Zoints tag modification that was coded for my site by a friend that I shared.

Again though, thank you for the reply. I'll see if I can find someone who can make sense of this and help my site. Hopefully others benefit from this great info here as well.

--------------- Added 02 Dec 2007 at 02:53 ---------------

BTW....I also found this discussion on vbulletin.com's forum. Some might find it useful regarding this subject as well:

http://www.vbulletin.com/forum/archi...hp/t-7236.html

Last edited by SBlueman; 02 Dec 2007 at 02:53. Reason: Auto-Merged DoublePost
Reply With Quote
  #13  
Old 06 Dec 2007, 07:38
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Well I have gotten this far:

http://gridironfans.com/nflblog/

Which is trying to match:

http://gridironfans.com/

Could anyone help?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 15:03.

Layout Options | Width: Wide Color: