vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

persianvb 02-05-2010 07:23 AM

1 Attachment(s)
hi

How do I remove the advertising and Announcements?

Thanks,

firstimecaller 02-08-2010 11:14 AM

Any tips on using these fundamentals for creating a vB wrapper for other scripts?

edit: I've got this part sorted pretty much. I'm making static files updated by chron'ed script to save on overhead.

I want the look of the vB4 style I've created to wrap around some other scripts on my site. I've used a plugin to create new tabs to cover these sections. I need to generate the top and bottom (a wrapper) of the page to include in the templates of these other scripts.

So, I need to set which tab is 'on' and then generate segments of the page.

Lynne 02-08-2010 07:42 PM

Some of the navtab mods allow you to set a navtab on, and some don't. I know my article and ragtek's artilce about adding navtabs cover setting them on, but I don't know about other mods.

borbole 02-08-2010 10:53 PM

Thank you Lynne. I was looking for something like this and it helped me a lot in the hack that I created. :)

teamshultz 02-09-2010 01:46 AM

How would you apply one of the built in layouts to a custom page? I'd like to do this so I can easily add widgets.

Lynne 02-09-2010 03:24 AM

Quote:

Originally Posted by teamshultz (Post 1977981)
How would you apply one of the built in layouts to a custom page? I'd like to do this so I can easily add widgets.

This article has nothing to do with building pages for the CMS. You may only use the layouts and widgets on pages within the CMS.

teamshultz 02-09-2010 11:00 PM

Ahh, I see. Thank you. Could you possibly direct me to some reading materials?

OcR Envy 02-10-2010 02:08 PM

Hi Lynne!

So I'm trying to create an extra page in my UserCP. I'm finding that although it renders the UserCP template correctly it's missing some fields on the left sidebar.

The following don't display:
Inbox, Sent Items, Edit Email & Password, Edit Ignore List, All Moderation Listings(Deleted Items, Moderated Items, New Items)

My code thus far:

PHP Code:

<?php

error_reporting
(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT''shoop');
define('CSRF_PROTECTION'true);  
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array('USERCP_SHELL',
);
$actiontemplates = array();
require_once(
'./global.php');
require_once(
'includes/functions_user.php'); 

$navbits construct_navbits(array('' => 'shoop'));
construct_usercp_nav('pokersites');
$navbar render_navbar_template($navbits);

$pagetitle 'shoop';


$templater vB_Template::create('USERCP_SHELL');
$templater->register_page_templates();
$templater->register('navbar'$navbar);
$templater->register('pagetitle'$pagetitle);
print_output($templater->render());

?>


Lynne 02-10-2010 07:23 PM

Quote:

Originally Posted by teamshultz (Post 1978714)
Ahh, I see. Thank you. Could you possibly direct me to some reading materials?

Tons of stuff over on vb.com. Go to their Home page link and you should see Don's name on the third (I think) article. Click to see all his articles.
Quote:

Originally Posted by OcR Envy (Post 1979138)
Hi Lynne!

So I'm trying to create an extra page in my UserCP. I'm finding that although it renders the UserCP template correctly it's missing some fields on the left sidebar.

The following don't display:
Inbox, Sent Items, Edit Email & Password, Edit Ignore List, All Moderation Listings(Deleted Items, Moderated Items, New Items)

My guess would be you need to include a certain phrasegroup in the phrasegroup array.

OcR Envy 02-11-2010 11:55 AM

Yep for anyone interested I just edited up usercp.php to my liking :)


All times are GMT. The time now is 09:04 PM.

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.03633 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)pagenav_pagelink
  • (3)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