The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Except for the actual content, the only things I need to edit there would be lines 4-6, correct? I know how to do 5 and 6, but what do I put in place of:
define('THIS_SCRIPT', 'MAIN_INDEX'); |
#12
|
|||
|
|||
![]()
You would replace 'main_index' with a unique name for your script... Usually it would be the same name as the php file itself.
|
#13
|
|||
|
|||
![]() |
#14
|
|||
|
|||
![]()
I just tried it with an install of 3.7.2 as I haven't used that since 3.6 and it still works.
do you have the <?PHP at the very top of the page at line 0 with NO spaces before it? You cannot have any spaces or lines sent to the browser before you included global.php. edit: I attached the php I just tested with. change the forum path in the chdr call |
#15
|
|||
|
|||
![]()
I tried again, and managed to get it to work, but it's still not using the css:
http://nintendohub.com/test2.php |
#16
|
|||
|
|||
![]()
I looked at the source, its because you have VB storing the CSS in files and its giving you a relative path to the CSS file. So since the page is not in the forum directory the browser cannot locate the appropriate CSS file.
Someone else may be able to get this working with usiing external style sheets but I have never used that option. |
#17
|
||||
|
||||
![]()
You need to put a base element at the TOP of your headinclude template (change URL to match your site). With this element, it also does not require images to have absolute paths.
HTML Code:
<base href="http://nintendohub.com/forum/" />
|
#18
|
|||
|
|||
![]()
Great!
I finally stumbled on to this suggestion (after days or reading and playing) and it seems to work with my very limited skills ![]() I would like to have a condition of viewing the page, or at least some of the pages that I present with this. Neither of the statements below work for me, can you tell me what I am missing? <if condition="is_member_of($bbuserinfo,5,6,7,9,10,13) "> $vbphrase[not_yet_full_member] <else/> Welcome Back to the forums! </if> <?php if condition="is_member_of($bbuserinfo,5,6,7,9,10,13) " { ?> This is for a member<br> <?php } else { ?> This is for a guest<br> <?php } ?> Thanks ![]() |
#19
|
||||
|
||||
![]()
Where are you putting that code? In a template or a plugin. (Also, please use the code/html/php tags.)
The first one won't work because it is <else />, not <else/>. The second one won't work in a template because you can't put php in a template. It also won't work in a plugin because your if statement is incorrect. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|