The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Ok, I have added a new template and here is the code below. I am trying to make the custom template for a new page of the forum but I don't want it visible to everyone, how do I make it where only members of the forum can access the page even from the direct link and show an error message of them having to log in to see the page? Please help
![]() Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tbody> <tr> <td class="tcat" colspan="5"> MY HEADER HERE! </td> </tr> </tbody> <tbody id="collapseobj_forumbit_1" style=""> <tr align="center"> <td class="alt1Active" align="center" id="f4"> <br> THE CONTENT I WANT WILL GO HERE <tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="5"><img src="IMAGE GOES HERE" alt="" width="1" height="12" /></td></tr> </tbody> </table> $footer </body> </html> |
#2
|
|||
|
|||
![]() Code:
<if condition="$show['member']"> YOU ARE A MEMBER <else /> YOU DON'T HAVE PERMISSION </if> PHP Code:
|
#3
|
|||
|
|||
![]()
Where would I put that code to get it to work properly?
|
#4
|
|||
|
|||
![]()
The first piece of code would go in your template (Change the bits in uppercase as appropriate). Or you can use the second piece of code in the PHP code for your page.
|
#5
|
|||
|
|||
![]()
Neither seemed to work
![]() |
#6
|
||||
|
||||
![]()
Please post the template you have now.
|
#7
|
|||
|
|||
![]()
I'm working with The proweb by vBSkinworks and the onlydev one as well.
|
#8
|
||||
|
||||
![]()
Please post the template you are using for your page - not the name of your style...
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|