![]() |
Php Code Integration...
Hey i have some php codes that i wanna use with the template of my forum and i also wan´t this php pages use the usergroup access so i can put one that only moderators and higher can visit and so on...
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=62164" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=62164</a>
That what you need? |
Quote:
|
Why not?
You can, did you even read the page I linked to? Quote:
Regarding your second statement: https://vborg.vbsupport.ru/showthrea...is_member_of#3 Or in php: PHP Code:
|
Can you give me an example of how i should do it?
|
Bump
|
Quote:
|
i can´t put the php code in the template it wont work so how do i fix this?
|
Login would dictate that you put the PHP code in the PHP file...
Then call the template in the PHP file. Did you read the link I gave you? Everything is there which you need to create a custom page to display information that you want. |
yes but were in that file should i put my php code????
Can you show me an example?? i don´t now anything about php.. |
Put it under the bit which says:
PHP Code:
|
when i put it right under that the code will come above the header.
|
yes i would like to do that samething on that portal hack with this code
PHP Code:
|
Bump
|
vB templates operates different, you save your code in a variable and then put it in a template. The final code is outputted when the script finishes executing, only then is the data displayed.
vB: Processing -> Output Other small PHP files: Output (header) -> Processing -> Output (Dynamic content) -> (Processing e.t.c.) If you don't want to do it that way then just use the HTML output from a vB and try and hack it up to fix your custom page. |
can you give me an example because i don´t understand what you mean..
(im bad in english) |
Can you post your whole custom page code that you have now?
|
i don?t have any other then this https://vborg.vbsupport.ru/showthread.php?t=62164 right now and i don?t now how i should do thats why im asking for an example..
|
Okay, in your file, find:
PHP Code:
PHP Code:
|
Quote:
|
Fix what? It can't get any easier...Simply Find that line in the PHP file and add something below. Then replace the X with usergroup ids...
|
Quote:
|
Quote:
|
Quote:
|
You don't put it in the template. You put it in the PHP file...
|
Quote:
i put the code in the php file like you said and it shows above everything and i have tried to put it in template file but then its not working.. |
Show me your PHP file and your template.
|
here is the test.php file:
Code:
<?php Code:
$stylevar[htmldoctype] |
You're meant to put all your HTML in the template, and all your processing in the PHP file.
|
Quote:
|
Yes, you assign variables and use those variables in your template. See how most vBulletin templates have variables in them?
|
Quote:
|
Look in the postbit template. Look at all those variables used. You can do the same thing.
|
nobody that can an easier way?
|
Look if you won't help us by trying it first, then how can we help you back? That code is very easy to do, even my 5-year old niece can do it
|
Quote:
as the other said if you have no idee of php,html, etc than you should check some books or online tutorials first, if you don't know/understand what the people here are writing |
All times are GMT. The time now is 04:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|