vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Custom pages based on your vBulletin forum ! (https://vborg.vbsupport.ru/showthread.php?t=232324)

durdan1 02-17-2010 10:16 PM

How can I add my content to the php page file? like html content? What do you mean "create a new template" How do I create a new template? what is a template? is it the same as a style? Sorry for my newb questions. I was just so used to the mod called bf easy pages and now it doesn't work with vbulletin 4.0.2 All I did was enter my html code and it would display it. I don't know where to enter the html code with this. Can you please clarify my questions? thank you :)

irtehun 02-20-2010 01:44 AM

I am trying to add php code, but the page wont show... any ideas why?

Battle_Ring 03-03-2010 08:44 PM

this is much needed, but the directions here are very bad, how i nthe heck to you create pages?

zeroality 03-05-2010 04:35 AM

4.0.2 broke this (doesn't display the style correctly), but you can easily fix it by replacing all {vb:var vbcsspath} with {vb:raw vbcsspath} in the page_default (or your own custom) template.

StarBuG 03-29-2010 02:23 PM

The breadcrumb navigation only shows "My Page" for all custom pages.

Is there a way to use the title of the custom page instead?

Great mod by the way.

customcolor 03-30-2010 04:14 AM

installed!


starbug....

You can control the product from AdminCP->Settings->Options->Custom Pages
and you can also rename pages.php

i did that and it says the same name on all the custom pages:( so if you make more than one then they all have the same breadcrumb...that can be an issue

Sworm 04-01-2010 01:59 PM

Quote:

Originally Posted by StarBuG (Post 2012282)
The breadcrumb navigation only shows "My Page" for all custom pages.

Is there a way to use the title of the custom page instead?

Great mod by the way.

AdminCp/Options/Custom Pages/ Change Nav Title with all you want

But

if you have more of 1 page , this edit will change the titles of all your custom pages

MrKramer 05-17-2010 06:45 AM

good mod... installed and works like a charm.

1 question.

Is it possible to load comments on the page ( so that people can comment on that page?

how will i do that, what code etc.

anyone that can help me with that?

Thank you in advance

Dragonsys 05-27-2010 09:59 PM

Quote:

Originally Posted by Sworm (Post 2014046)
AdminCp/Options/Custom Pages/ Change Nav Title with all you want

But

if you have more of 1 page , this edit will change the titles of all your custom pages

is there anyway to make the breadbrmb work with the subpages?
For example, my main page is called Games, one subpage is Mablibs
instead of having the breadcrumb be {home_icon} Games for lal pages
could it be {home_icon} Games > Madlibs?

I have been looking at the code, but I am not familiar enough with VB4 yet, to figure it out...

EDIT: Ok, I got it working.

replace (in page.php)
Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

//$navbits = construct_navbits(array('' => $vbulletin->options[bbtitle]));
$navbits = construct_navbits(array('games.php' => $vbulletin->options[madkour_custom_pages_nav]));
$navbar = render_navbar_template($navbits);

with
Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$subpagetitle = $HTTP_GET_VARS[p];
if($subpagetitle == ""){ $navbits = construct_navbits(array('games.php' => $vbulletin->options[madkour_custom_pages_nav]));
 } else { $navbits = construct_navbits(array('games.php' => $vbulletin->options[madkour_custom_pages_nav], '' => $subpagetitle)); }


//$navbits = construct_navbits(array('' => $vbulletin->options[bbtitle]));
//$navbits = construct_navbits(array('games.php' => $vbulletin->options[madkour_custom_pages_nav]));
$navbar = render_navbar_template($navbits);

This sets the breadcrumb to your template name
so if the page is page_test the breadcrumb will be test

vikris 06-03-2010 09:53 PM

Somehow I can't get this thing to work :(. When I create custom template, namely page_example and when I call that page in the browser ....?p=example it gives me this:

Notice: Use of undefined constant p - assumed 'p' in C:\wamp\www\upload\pages.php on line 9

Notice: Undefined variable: HTTP_GET_VARS in C:\wamp\www\upload\pages.php on line 9

Notice: Undefined variable: p in C:\wamp\www\upload\pages.php on line 10


Any help? Using VB 4.0.3 PL1 on a local test site on WAMP.


All times are GMT. The time now is 12:26 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.01067 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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