The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
need help with addign pages, and logging in
I've added a few additional PHP pages to our forum
How can I set it to force a login (like rest of forum) so no content on the page is shown until you are logged in ? |
#2
|
||||
|
||||
Use a conditional like this:
HTML Code:
<if condition="$show['member']">$header</if> |
#3
|
|||
|
|||
I put this on my php page that I've created ?
when I do, all i get is : $header on the page I don't have a template for this, it is just a php page thx for the response |
#4
|
|||
|
|||
You could try:
Code:
if (!$vbulletin->userinfo['userid']) { print_no_permission(); } |
#5
|
|||
|
|||
neither of these work properly
trying to incorporate a php include function for a script that hide download links with it, and still not working. if i create the page and put in the php include, no template & no header& no permissions carried over, it works like a charm If i create template ,to get headers & footer... etc... as inidcated by other posts, and try to incorporate the same php include function, the links break I keep getting a %3C in front of where the php include function is ? anyone ? |
#6
|
||||
|
||||
How about posting your code for the php and the template you are using?
|
#7
|
|||
|
|||
The php page and template I created :
https://vborg.vbsupport.ru/showthread.php?t=62164 exactly as indicated here php include needs to point to another php page as part of the script ( lets call it xxxx.php ) when i create just a regular page with html coding and the php include at the top , which looks like Code:
<?php include"xxxx.php"; ?> |
#8
|
||||
|
||||
Why create a template and try to call a different php file? simply include your stuff in your template. Maybe you need to do a "Require once" for it but without you supply code on what you are trying to do its going to be difficult to help.
|
#9
|
||||
|
||||
Quote:
@swiper the fox, have a look at my custom page mod. I have included that permission option that you want. It is for vb 4 but that part can be applied for vb 3 as well. https://vborg.vbsupport.ru/showthread.php?t=235359 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|