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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2008, 06:56 PM
Tom McConnell Tom McConnell is offline
 
Join Date: Aug 2008
Location: 3DMypage & Lipllies.com
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Cannot make a php include work in my footer template

I have used the following help files:

http://www.vbulletin.com/forum/showt...18#post1066718

http://www.vbulletin.com/docs/html/t..._externalfiles

but cannot make a php include work in my footer.

I enabled in vBulletin Options -> Plugin System

I made myfile.php

ob_start();
include('http://www.3dmypage.com/myincludes/3dmypage_foot_neut.php');
$includedphp = ob_get_contents();
ob_end_clean();

and put it in the http://3dmypage.com/forums/includes/ directory (the help files do not tell you what directory to use).

I put : $includedphp in the footer template at the very bottom.

End result (no footer menu): http://3dmypage.com/forums/

The included footer menu should look like the bottom of this: http://www.3dmypage.com
Reply With Quote
  #2  
Old 08-07-2008, 07:42 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to create a plug-in that has this code in it for it to work.

PHP Code:
ob_start();
include(
'http://www.3dmypage.com/myincludes/3dmypage_foot_neut.php');
$includedphp ob_get_contents();
ob_end_clean(); 
Try global start for the hook location.
Reply With Quote
  #3  
Old 08-07-2008, 08:35 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're not following the instructions given in the help files...

It doesn't say anywhere to create a new file (myfile.php) and add that PHP code. Follow the documentation thoroughly and you have more chance of it working.

http://www.vbulletin.com/docs/html/t..._externalfiles
Reply With Quote
  #4  
Old 08-08-2008, 04:50 AM
Tom McConnell Tom McConnell is offline
 
Join Date: Aug 2008
Location: 3DMypage & Lipllies.com
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For all newbies, to create a plug-in go to;
Control Panel Home -> Plugins & Products (bottom of left panel) -> Add New Plugin

It works now. Help file would be more clear if the line "Create a Plug-in for global_start with these contents:" had some direction for creating a plug-in. If you search the manual for "create plug in", nothing returns for actually creating a plug-in. Remeber, some of us are new to this.
Reply With Quote
  #5  
Old 08-08-2008, 09:30 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a whole section on the Plugin System further down the right hand side menu.
Reply With Quote
  #6  
Old 08-08-2008, 12:48 PM
Tom McConnell Tom McConnell is offline
 
Join Date: Aug 2008
Location: 3DMypage & Lipllies.com
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read all that before post.

But how nice if somewhere near the begining of the plug-in section there was a line "Control Panel Home -> Plugins & Products (bottom of left panel) -> Add New Plugin"

I am done with this. It works.

Thank you, again.
Reply With Quote
  #7  
Old 08-08-2008, 09:17 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It says Plugins & Products right in the menu of that section of the admin panel, its really kind of hard to miss. And if you expand that It says add new plug-in. I do not see how its hard to find for anyone.
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 07:24 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.05228 seconds
  • Memory Usage 2,217KB
  • 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
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (7)postbit
  • (7)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
  • 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