Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2014, 06:56 AM
s.wolder s.wolder is offline
 
Join Date: Oct 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default WP Header and Footer on vBulltin forum

Hi,

I have bought a PDF instruction on how to integrate vBulletin into a WP theme, so the vB forum is shown within the same header and footer as the rest of the site. The instructions are bought from obscureclouddon including 7 days of e-mail support, but so far I received no response on my support requests. So now I hope that someone here, would be kind enough to help me find a solution for a problem I ran into.

I'm a rookie in php, wp and vBulltin, so I hope you have some patience

The idea with the theme integration is, that a plugin in vBulletin calls a header and a footer file (copies of the original theme header and footer, that can be modified as wished).

But now I get the following error:

Fatal error: Call to undefined function do_action() in /var/www/gourmetbar.dk/public_html/wp-content/themes/twentyeleven/footer2.php on line 27.

My footer2 file looks like this. I've commented out two lines that first gave me an error (the lines starting with "//x"). I've also deleted closing body and header tags in the end of the file (instructed in the instructions):

Code:
<?php
/**
 * Template for displaying the footer
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

	</div><!-- #main -->

	<footer id="colophon" role="contentinfo">

			<?php
				/*
				 * A sidebar in the footer? Yep. You can can customize
				 * your footer with three columns of widgets.
				 */
//x				if ( ! is_404() )
//x					get_sidebar( 'footer' );
			?>

			<div id="site-generator">
				<?php do_action( 'twentyeleven_credits' ); ?>
				<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
			</div>
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>
I really hope that someone can help.
Reply With Quote
  #2  
Old 05-02-2014, 01:22 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by s.wolder View Post
Hi,

I have bought a PDF instruction on how to integrate vBulletin into a WP theme, so the vB forum is shown within the same header and footer as the rest of the site. The instructions are bought from obscureclouddon including 7 days of e-mail support, but so far I received no response on my support requests. So now I hope that someone here, would be kind enough to help me find a solution for a problem I ran into.

I'm a rookie in php, wp and vBulltin, so I hope you have some patience

The idea with the theme integration is, that a plugin in vBulletin calls a header and a footer file (copies of the original theme header and footer, that can be modified as wished).

But now I get the following error:

Fatal error: Call to undefined function do_action() in /var/www/gourmetbar.dk/public_html/wp-content/themes/twentyeleven/footer2.php on line 27.

My footer2 file looks like this. I've commented out two lines that first gave me an error (the lines starting with "//x"). I've also deleted closing body and header tags in the end of the file (instructed in the instructions):

Code:
<?php
/**
 * Template for displaying the footer
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

    </div><!-- #main -->

    <footer id="colophon" role="contentinfo">

            <?php
                /*
                 * A sidebar in the footer? Yep. You can can customize
                 * your footer with three columns of widgets.
                 */
//x                if ( ! is_404() )
//x                    get_sidebar( 'footer' );
            ?>

            <div id="site-generator">
                <?php do_action( 'twentyeleven_credits' ); ?>
                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
            </div>
    </footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>
I really hope that someone can help.
You say you are a rookie but you have been registered here since 2009 ?

I would suggest since you purchased the pdf on how to do this you also hit them up for support. They cost you money but here it's free.

Hope ya get it worked out.
Reply With Quote
  #3  
Old 05-02-2014, 02:47 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since vB 5 doesn't use plugins in the sense that older versions of vB did, I tend to believe what you purchased is for vB 3 or 4.
Reply With Quote
  #4  
Old 05-02-2014, 05:50 PM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This really looks like a solution for vb4; not vb5.

If you want to do similar on vb5, it will involve some manual customization. Problematic but doable.
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 05:35 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.03710 seconds
  • Memory Usage 2,195KB
  • 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_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_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