The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi All,
I've installed vBulletin, and all is well... Now I need to install a few lines of php code to password protect the forums. I am using a membership program to manage all aspects of that. My problem is that I don't know where to find the vBulleting template files to insert the code into a web page above the body area. The page where I insert the code should be an index type of page that is "called" everywhere a user may go in vBulletin. Something like a header file would work... Any suggestions where to insert the 5 lines of php code I have? Thanks, Sam. |
#2
|
|||
|
|||
![]()
<a href="http://www.vbulletin.com/docs/html/plugin_system" target="_blank">Plugin System</a>
Hook Location: global_start or global_setup_complete |
#3
|
|||
|
|||
![]()
Opserty,
I have around 3 hours of 'back end work' on vB. Where can I find the above location or files? Thanks very much for answering my question. Cheers, Sam |
#4
|
|||
|
|||
![]()
You don't need to edit files, did you read through the link I provided? Use The Plugin Manager and create a plugin with the hook location I mentioned above.
|
#5
|
|||
|
|||
![]() Quote:
I went through the setup and created a plugin for both variables, and no luck. I also tested the code, and it works fine on a sample page that I am protecting. How I need to protect my entire installation of vBulletin, and no progress on that front. Any suggestions? Thanks, Sam --------------- Added [DATE]1213614361[/DATE] at [TIME]1213614361[/TIME] --------------- Follow up... Where is the template for example that 'calls' the header image (/images/misc/vbulletin3_logo_white.gif) for example. IF I can edit that template, I can insert my code so that vBulletin, the vB BLOG and vB Project areas are all protected. Any advice? Thanks, Sam |
#6
|
|||
|
|||
![]()
That would be the 'header' template. Please be aware however that you can not insert PHP-code directly into templates.
|
#7
|
|||
|
|||
![]() Quote:
Then what is your suggestion for inserting my 5 lines of php code to make my membership site? Sam |
#8
|
|||
|
|||
![]()
See the manual: Including External Files
|
#9
|
|||
|
|||
![]()
Hi Marco,
The directions in the above URL worked perfectly! ![]() Thanks a bunch!!!! Preta Dag! Sam |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|