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

Reply
 
Thread Tools Display Modes
  #11  
Old 12-02-2007, 12:35 AM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SBlueman View Post
Thank you, much appreciated!

--------------- Added [DATE]1196562561[/DATE] at [TIME]1196562561[/TIME] ---------------

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

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

PHP Code:
<?php echo get_option('vbb_VBURL'?>
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.
Reply With Quote
  #12  
Old 12-02-2007, 12:51 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 [DATE]1196564035[/DATE] at [TIME]1196564035[/TIME] ---------------

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
Reply With Quote
  #13  
Old 12-06-2007, 05:38 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I have gotten this far:

http://gridironfans.com/nflblog/

Which is trying to match:

http://gridironfans.com/

Could anyone help?
Reply With Quote
  #14  
Old 12-07-2007, 08:25 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this work:?
http://www.vbulletin.com/forum/showt...ight=file+html
http://www.vbulletin.com/docs/html/t..._externalfiles
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 08:02 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.03397 seconds
  • Memory Usage 2,197KB
  • Queries Executed 13 (?)
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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete