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)

Lynne 10-16-2008 04:30 PM

Quote:

Originally Posted by DeanoUK (Post 1641873)
Maybe I've missed the answer to this in the previous 58(!) pages, but how do I get the footer to work in the new page?

The footer is there, but the usual 'whos online' etc info isn't. This would be nice to see.

Cheers in advance.

Do you mean whos online or currently active users? If the later..... Adding Currently Active Users to your own vB page

jerx 10-21-2008 01:51 PM

I am trying to integrate coppermine gallery into vbulletin. Coppermine allows to include a custom header and footer. You can use html or php files for your custom header and footer.

I already tried it, but it does not seem to work. One problem is that the gallery is called from a sub directory (/forumroot/gallery). If I copy the needed vb files to the gallery directory, I get this error:

Quote:

Fatal error: Call to a member function query_first_slave() on a non-object in /gallery/includes/functions.php on line 1310
Would it be possible to solve the problem? If not, are there any other possibilities to include vb' s header and footer into coppermine gallery?

Lynne 10-21-2008 02:22 PM

Do not copy the vb files to another folder because very often they call other vb files and won't be able to find them. Do a chdir, as mentioned already, in order to change to the vb forums directory and include them.

jerx 10-21-2008 03:17 PM

Thanks, now I can run the file from within the gallery file without copying vb files to the gallery directory. But I still get the error I posted above, when I try to include the file in coppermine. The file executes fine when I run it stand alone.

Tanpapasmurf 10-28-2008 12:50 AM

OK, I have it working but the page comes up completly white.

I replaced TEST with my style name, and test with my navbar display, and test page with Home.php

My template is called Home

I copied and pasted everything that was said to be coppied into everything but it still comes up white, Any suggestions?

--------------- Added [DATE]1225161376[/DATE] at [TIME]1225161376[/TIME] ---------------

Found my issue, Sorry :)

Chunky Monkey 10-28-2008 02:55 PM

Hi,

With regular forums, the breadcrumbs look like this:

Quote:

Site Name > Category Name > Top Level Forum Name
-Subforum Name
I see you can change

Code:

$navbits[$parent] = 'My custom page';
so that it appears

Quote:

Site Name
- My custom page
How can I do something like this

Quote:

Site Name > My Custom Application
- Custom page in my custom application
Where "My Custom Application" is a link that takes you back to the custom page's main page, just like how when viewing forums the link might take you back to a category or top level forum?

That is, how can I add a "breadcrumb" to that first row? How would I add two, if necessary?

Quote:

Site Name > My Custom Application > Specific Functionality
- Custom page for specific functionality in my application
Thank you!

Chunky Monkey 10-29-2008 04:22 PM

I figure it out. For anyone interested, you simply add items to the navbits array in the order you want them to appear, specifying the url of any link as the array key and the text to display as the value.

Another question I have, though, is how to pass a meta description tag that is dynamically generated via the php script? Right now it appears to be using the forum's default meta description tag.

Thanks!

JamesAB 11-05-2008 07:29 PM

Would a custom page still get displayed correctly if the forums are turned off?

I'm thinking of using this method to create a custom 404 error page that would perfectly match our forum's design, but I would need the page to work when the forums are both on & off.

Thanks,
James

Digital Jedi 11-07-2008 04:19 AM

Quote:

Originally Posted by JamesAB (Post 1660080)
Would a custom page still get displayed correctly if the forums are turned off?

I'm thinking of using this method to create a custom 404 error page that would perfectly match our forum's design, but I would need the page to work when the forums are both on & off.

Thanks,
James

As far as I know, vB powered pages will always be blocked out with the Forum Closed message.

ragtek 11-07-2008 07:49 AM

Not if you make this:
PHP Code:

if (THIS_SCRIPT == 'yourscript)
{
    $vbulletin->options['
bbactive'] = true;
    $vbulletin->options['
banning'] = false;
    $servertoobusy = 0;
    $vbulletin->userinfo['
permissions']['forumpermissions'] |= $vbulletin->bf_ugp_forumpermissions['canview'];




All times are GMT. The time now is 05:40 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.02459 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (7)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