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)

---MAD--- 08-27-2005 11:32 AM

the online thing doesnt work :S

Adrian Schneider 08-27-2005 06:19 PM

Quote:

Originally Posted by MAD_PLayEr1
the online thing doesnt work :S

Yes it does.

What version of vBulletin are you using? Post the edits you made.

geoff4787 08-30-2005 05:15 AM

Thanks, great tutorial!

o0stephane0o 08-30-2005 07:27 AM

SirAdrian it works like a charm, thanks a lot ;)

digidivakathy 08-31-2005 12:43 PM

PLEASE could someone help me with this?

I have made a vBulletin powered page with bio information about my team members and have managed to get everything perfect in FF, but I have one little problem in IE and don't know how to fix it. The time stat is over to the far right instead of at the bottom above the nav bar. I'm sure it's something very tiny, but I just don't know what it is...can anyone help me?

http://www.digiscrapdivas.com/forums/AAM_suzy.php

That's the page. If you have any other suggestions on how to make it look better, feel free to let me know, but I'm happy with it other than the little problem I described.

I'm sorry if this isn't the right place to ask this, but there are so many help forums out there that I didn't know where to start.

Thanks so much!!

Huijting 08-31-2005 08:46 PM

Quote:

Originally Posted by SirAdrian
After calling global.php (and before the main output)
PHP Code:

if (!is_member_of($bbuserinfo6) AND !is_member_of($bbuserinfo8) AND !is_member_of($bbuserinfo13))
{
    
print_no_permission();


Replace "$bbuserinfo" with "$vbulletin->userinfo" if you are using 3.5


Thank U for this one , i have seen all the pages :squareeyed: and found it here

Rob

Adrian Schneider 08-31-2005 09:01 PM

Quote:

Originally Posted by digidivakathy
I have made a vBulletin powered page with bio information about my team members and have managed to get everything perfect in FF, but I have one little problem in IE and don't know how to fix it. The time stat is over to the far right instead of at the bottom above the nav bar. I'm sure it's something very tiny, but I just don't know what it is...can anyone help me?

Try cleaning up your HTML a bit in your template, just as an example I noticed you opened a new <tr> without closing the last one, things like that will break the page, just keep in mind that IE and FFX render things differently, so it may appear fine on one and not the other...

Also, best place for that kind of thing would be the PHP / MySQL / JS / (X)HTML forum.

MRGTB 08-31-2005 11:56 PM

Quote:

Then find:
PHP Code:

        case 'modcplogin':
            
$userinfo['action'] = $vbphrase['moderator_control_panel_login'];
            break; 

Below add:
PHP Code:

        case 'test':
            
$userinfo['action'] = 'Viewing Test Page';
            break; 


Just to slightly improve on this for people who want to also add a link on there "Who's Online" page that links to the test page when clicked. You can also use this as a replacment for the above bottom code.

PHP Code:

case 'test'
            
$userinfo['action'] = 'Viewing Test Page';
            
$userinfo['where'] = "<a href=\"test.php\">Test</a>";
            break; 


BlueBulletRL 09-11-2005 12:17 AM

I am currently trying to integrate a paypal store that I had purchased into my website. I used the template in the thread and couldn't get it to work the store actually uses a few files that it calls and uses. I tried adding the main page which calls all the files to the template file and use the ob_start(); thing such as you pointed out but still am unable to get it to bring up my page. Any insight and help and kicks in the right direction would be greatly appreciated. Oh and also my paypal store uses a mysql backend. Thanks

ok sweet looks like I got it to work........somewhat I get the page to display like my store front however when I click on one of my products instead of reloading the page like it should with just the product and all the details it just reloads my whole front page again. This is driving me nuts I'm gonna keep trying but if anyone has any ideas please let me know. Oh and it uses this at the end of the page do=buy&pid=6 within the actual file it does a post within its self thanks guys I NEED HELP!

Nullifi3d 09-16-2005 06:41 PM

Quote:

Originally Posted by SirAdrian
After calling global.php (and before the main output)
PHP Code:

if (!is_member_of($bbuserinfo6) AND !is_member_of($bbuserinfo8) AND !is_member_of($bbuserinfo13))
{
    
print_no_permission();


Replace "$bbuserinfo" with "$vbulletin->userinfo" if you are using 3.5

IMO, an array would be better.

vB 3.0.x:
PHP Code:

if (!in_array($bbuserinfo['usergroupid'], array(6,8,13))) print_no_permission(); 

vB 3.5.x:
PHP Code:

if (!in_array($vbulletin->userinfo['usergroupid'], array(6,8,13))) print_no_permission(); 



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

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02303 seconds
  • Memory Usage 1,761KB
  • 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
  • (7)bbcode_php_printable
  • (5)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