vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

ragtek 06-14-2009 05:51 AM

PHP Code:

        if(is_member_of($vbulletin->userinfox,y,z))
        {
                
print_no_permission();
        } 

Or, what i would do: https://vborg.vbsupport.ru/showthrea...ht=permissions

atambo 06-15-2009 12:25 PM

I am having trouble with the Who's Online Modification. I got the page to work.

It says all you have to do is just open up includes/functions_online.php and find:

PHP Code:

    case 'bugs.php'
        
$userinfo['activity'] = 'bugs'
        break; 

So i go to my ftp, drag the file functions_online.php to my desktop and edit it with dreameaver. I use dreamweaver to try and find the code above and it can't be found? Can someone let me know the actuall code i need to find so that i can make this work please! By the way i am using vBulletin 3.7.2 if this helps.

ragtek 06-15-2009 12:35 PM

Quote:

Originally Posted by atambo (Post 1830037)
I am having trouble with the Who's Online Modification. I got the page to work.

It says all you have to do is just open up includes/functions_online.php and find:

PHP Code:

    case 'bugs.php'
        
$userinfo['activity'] = 'bugs'
        break; 

So i go to my ftp, drag the file functions_online.php to my desktop and edit it with dreameaver. I use dreamweaver to try and find the code above and it can't be found? Can someone let me know the actuall code i need to find so that i can make this work please! By the way i am using vBulletin 3.7.2 if this helps.

no, pls no fileedit!
it works also without;)
where'sthe post with the fileedit?

1. create a plugin at hook online_location_process
PHP Code:

if ($filename == 'myfile.php')
{
    
$userinfo['activity'] = 'myhack';


2. create a plugin at hook online_location_unknown
PHP Code:

if ($userinfo['activity'] == 'myhack')
{
    
$handled true;
    
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], $vbphrase['my_hack']);
    
$userinfo['where'] = '<a href="myfile.php?' $vbulletin->session->vars['sessionurl_q'] ."\">$vbphrase[my_hack]</a>";



atambo 06-15-2009 01:20 PM

Okay thank you, but i don't know where i should place that code.

ragtek 06-15-2009 01:25 PM

<a href="http://www.vbulletin.com/docs/html/plugin_system" target="_blank">http://www.vbulletin.com/docs/html/plugin_system</a>

trickfly 06-16-2009 10:28 PM

dosent work can someone help me ?

adriano29 06-17-2009 08:16 AM

I added the conditions to show other templates with do=mypage but it doesn't work.
I added it exactly before ?>

PHP Code:

if ($_REQUEST['do'] == 'steptwo')
{
    eval(
'print_output("' fetch_template('STEPTWO') . '");');
}  
if (
$_REQUEST['do'] == 'stepthree')
{
    eval(
'print_output("' fetch_template('STEPTHREE') . '");');
}  
if (
$_REQUEST['do'] == 'stepfour')
{
    eval(
'print_output("' fetch_template('STEPFOUR') . '");');


Anyone can help me?
I created all templates, anything, but still doesn't work.



EDIT: FIXED IT! Thanks anyway!

ilrglen 06-27-2009 03:29 AM

Okay, I think I understand the whole page and template thing and got it to work on my site. My problem, however, is that I have some 2000 pages on my site and what I'm hearing is that I am going to have to create a template for each of them if I want them all restricted to registered members. Is this correct? And can vBulletin handle that many templates? Or is there an easier way to do this. Any help appreciated.

HMBeaty 06-27-2009 05:08 AM

Quote:

Originally Posted by ilrglen (Post 1838213)
Okay, I think I understand the whole page and template thing and got it to work on my site. My problem, however, is that I have some 2000 pages on my site and what I'm hearing is that I am going to have to create a template for each of them if I want them all restricted to registered members. Is this correct?

Yes
Quote:

Originally Posted by ilrglen (Post 1838213)
And can vBulletin handle that many templates?

Yes

ilrglen 06-28-2009 01:57 AM

Quote:

Originally Posted by Redlinemotorsports (Post 1838244)
Yes

Yes

I guess I'll be doin' it the hard way then. Thanks for all your help.

Oh, and do you think vBulletin could handle 10-20,000 templates? That is what I expect to have for pages on my site in the future.


All times are GMT. The time now is 02:03 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
  • Page Generation 0.05084 seconds
  • Memory Usage 1,760KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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