Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Custom pages based on your vBulletin forum ! Details »»
Custom pages based on your vBulletin forum !
Version: 1.00, by AliMadkour AliMadkour is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 01-05-2010 Last Update: 01-05-2010 Installs: 66
Supported Uses Plugins
Additional Files  

Elsalam Alikom
Hi
with that Product you can make pages based on your vBulletin forum
just create a new template with prefix page_
ex:
when I create a template
page_Ali
the url of that page will be :
http://www.example.com/forum/pages.php?p=Ali

and you can also make a default fpage
edit template called pages_default
and write your own code !


Installing product :
Upload : pages.php to your vBulletin root folder
Install the xml file via AdminCP
Make it as Installed !
Enjoy

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

Download Now

File Type: zip vb4-product-madkour_custom_pages.zip (108.1 KB, 549 views)

Screenshots

File Type: jpg ar-sc.jpg (38.9 KB, 0 views)
File Type: jpg en-sc.jpg (53.3 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-17-2010, 10:16 PM
durdan1 durdan1 is offline
 
Join Date: Aug 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 02-20-2010, 01:44 AM
irtehun irtehun is offline
 
Join Date: Sep 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to add php code, but the page wont show... any ideas why?
Reply With Quote
  #24  
Old 03-03-2010, 08:44 PM
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
Posts: 584
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is much needed, but the directions here are very bad, how i nthe heck to you create pages?
Reply With Quote
  #25  
Old 03-05-2010, 04:35 AM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 03-29-2010, 02:23 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 03-30-2010, 04:14 AM
customcolor customcolor is offline
 
Join Date: Mar 2010
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #28  
Old 04-01-2010, 01:59 PM
Sworm Sworm is offline
 
Join Date: Feb 2008
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StarBuG View Post
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
Reply With Quote
  #29  
Old 05-17-2010, 06:45 AM
MrKramer MrKramer is offline
 
Join Date: Mar 2009
Location: Netherlands
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 05-27-2010, 09:59 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sworm View Post
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
Reply With Quote
  #31  
Old 06-03-2010, 09:53 PM
vikris's Avatar
vikris vikris is offline
 
Join Date: Feb 2010
Location: Skopje, Macedonia
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:29 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.05009 seconds
  • Memory Usage 2,329KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete