vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   WordPress Header/Footer to show on vB forum (https://vborg.vbsupport.ru/showthread.php?t=222261)

falco008 01-17-2010 07:22 PM

hi ,

I have tried to integrate this into my site but I cant get it to work, i have made the plugins as mentionned :

for the footer:

Code:

ob_start();
include('../wordpress/wp-content/themes/gazette/footer.php');
$wp_footer = ob_get_contents();
ob_end_clean();

but i get this error,

for the header :
Code:

ob_start();
include('.../wordpress/wp-load.php');
include('../wordpress/wp-content/themes/gazettte/header.php');
  $wp_header = ob_get_contents();

but i get this error






Warning: include(.../wordpress/wp-load.php) [function.include]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 75

Warning: include() [function.include]: Failed opening '.../wordpress/wp-load.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in [path]/global.php(400) : eval()'d code on line 75

Warning: include(../wordpress/wp-content/themes/gazettte/header.php) [function.include]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 76

Warning: include() [function.include]: Failed opening '../wordpress/wp-content/themes/gazettte/header.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in [path]/global.php(400) : eval()'d code on line 76


any help would be appreciated

kpmedia 01-21-2010 06:06 PM

Code:

include('../wordpress/wp-content/themes/gazette/footer.php');
Is your blog/site hosted at http://www.yoursite.tld/wordpress ?

If not, then remove "/wordpress" from the include code.

Code:

include('.../wordpress/wp-load.php');
There are too many periods there. You have 3, and there needs to only be 2.

All this said, however, you're not likely to have better luck than I or others have had.

While it "looks" okay integrated, vB is functionally broken in some way. The vB editor messes up image html/bbcode.

I've given up, it clearly doesn't work right.

I'm having to write PHP to pull in RSS from WP, for my footer. The navbar has been replaced on both my WP and vB install using a JS-based menu. WP displays the CSS version with an "enable JS" error message. vB displays just the "enable JS to see site menu" error, no sitewide menu.

Look and feel is simply editing code both in WP and vB, editing/adding CSS and templates.

There's no simple way to bridge the visual portion of WP/vB right now, not from what I've seen and tried.

falco008 02-11-2010 08:02 AM

hi.. thanks for your replies..

I actually now jyst noticed the problem of the vb editior messing with image html/bbcode

did you or anyone else find the problem?

kpmedia 02-11-2010 08:28 AM

No. I've looked at it as much as I can do. The problem likely lies in code that is above my comprehension level right now.

I just gave up on the visual bridge, and have implemented alternative approaches. I'll chronicle them sometime this spring after the sites are done.

I'll just keep monitoring vB+WP for potential future sites.

falco008 02-11-2010 09:03 AM

could you hint me on the alternative approaches?
I have put my new site live before I discovered the editor problem.. now I need to fix it fast..

any help would be appreciated

I know that disabling the plugin stops the mess with the vb editor..
I also noticed that i cannot access the blogs anymore when I enable the plugin again...(vblogs)

I have no programming xp but maybe we call some wordpress functions that interfere with vbulletin and these need to be turned off once the header is called?

Demo16 02-17-2010 02:25 PM

I've tried the same approach but I got so many problems. CSS style problems and php problems when trying to create a new thread. Any different solution?

legion! 04-05-2011 06:43 AM

i dont understand...that tutorial works fine for me....i created a new thread and it works good...quick reply also works fine...is there a bug im not seeing?

kpmedia 04-05-2011 05:16 PM

Quote:

Originally Posted by legion! (Post 2181026)
i dont understand...that tutorial works fine for me....i created a new thread and it works good...quick reply also works fine...is there a bug im not seeing?

Keep looking. Use the site -- use everything.
The issue was an insane amount of unescaped slashes, along with chewing up CSS (conflicting naming conventions). It also caused a number of db connection failures, possibly for sending bad data. I tried everything I could think of before simply giving up. It was far easier to just use a different nav. I now load a special PHP include file for nav and footer, independent of either CMS. It's manually updated. Not that I change nav/header or footer very often.

The "cached output" method also didn't work, which is an alternative approach by Pixo.

.

legion! 04-06-2011 04:18 AM

yea im havin some log in issues right now...damn thats a shame...cuz it looked like it works fine...i mean if you can fix the log in issue it would work fine

doc fluty 04-09-2011 08:40 AM

I would LOVE this


All times are GMT. The time now is 12:54 PM.

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.01206 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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