vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Php Code Integration... (https://vborg.vbsupport.ru/showthread.php?t=159484)

John3971 10-04-2007 07:02 PM

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...

Opserty 10-04-2007 07:08 PM

<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?

John3971 10-04-2007 07:11 PM

Quote:

Originally Posted by Opserty (Post 1353012)

no i can?t use php there and it don?t have so you can choose who should have access to different pages..

Opserty 10-04-2007 07:16 PM

Why not?

You can, did you even read the page I linked to?
Quote:

Instructions:
Create a new file, whatever you want to call it (let's say test.php).
Open up test.php and add the following (replace TEST with whatever template you want to show):
<php code>
Its a PHP file...you can write PHP in it.

Regarding your second statement: https://vborg.vbsupport.ru/showthrea...is_member_of#3

Or in php:
PHP Code:

if(!is_member_of($vbulletin->userinfo6XYZ))
{
    
// You aren't a member of group X Y or Z
    
print_no_permission();



John3971 10-04-2007 07:19 PM

Can you give me an example of how i should do it?

John3971 10-05-2007 08:21 PM

Bump

Opserty 10-05-2007 09:09 PM

Quote:

Can you give me an example of how i should do it?
How you should do what?

John3971 10-06-2007 03:58 PM

i can´t put the php code in the template it wont work so how do i fix this?

Opserty 10-06-2007 04:19 PM

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.

John3971 10-06-2007 04:33 PM

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..


All times are GMT. The time now is 10:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02100 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete