Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2012, 11:57 AM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default New-B vBulletin Owner - First Question

Hello all,
I just took the plunge and purchased a vBulletin Publishing suite license this weekend. I have it set up in a sub-domain that is not accessible to the general public until I get it all set up (probably going to take a couple months).

I have been running UBBThreads for 10 years, so I have a lot of work ahead to get it all transferred over to vB.

My first question is, with Threads I could make other pages that would match the style and look of the main Threads pages. Can I do this with vB?
Reply With Quote
  #2  
Old 07-16-2012, 01:31 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep.

Lynne's article here should get you on the right track.

https://vborg.vbsupport.ru/showthrea...ht=custom+page
Reply With Quote
  #3  
Old 07-16-2012, 01:45 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's also this article: www.vbulletin.org/forum/showthread.php?t=229194 It's a less flexible solution but only requires that you create a template with your content.

Edit: ...actually, what I said above it's quite correct - your custom template would still need to be a complete html page, so this option is really just a shortcut.
Reply With Quote
  #4  
Old 07-16-2012, 02:17 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys! A million other questions to follow
Reply With Quote
  #5  
Old 07-21-2012, 10:52 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
Yep.

Lynne's article here should get you on the right track.

https://vborg.vbsupport.ru/showthrea...ht=custom+page
Well, I started to try this, and step 1 was straight forward and I undersood it - create a .php page based on the example and upload it to my vB root directory. Easy enough. However, being very new to vB I got stuck at step 2. It says "Create a Template" in your MASTER STYLE. Do I just make a HTML page that looks like the example? How do I tell it to be in my MASTER STYLE? (Is that the same a "Default Style?"). Also, what file extension does the template need and where do I put it?

Also, the instructions for adding my new page to Who's Online - is that code I put in the template? DOes it matter where in the template? I'm sure these instructions make perfect sense if I understood vB better, but can you help me out and explain a little more about "how" I create the Template in the "MASTER STYLE and where do I put it and what file extension does it need?

Thanks in advance.
Reply With Quote
  #6  
Old 07-21-2012, 11:08 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To create it in your master style you will need to be in Debug mode, the code for who's online is entered in to a plugin using the plugin manager>add new plugin
Reply With Quote
  #7  
Old 07-21-2012, 11:43 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
To create it in your master style you will need to be in Debug mode, the code for who's online is entered in to a plugin using the plugin manager>add new plugin
Ok, I modified my config.php and entered debug mode. I see that it now lists all the Templates used and Included Files, Hooks, etc. Ok, now what? I see in step 2 of the instructions that it provides HTML code for a template. Do I simply make a file with that code in it, or is there some other process I must follow? If I create this template for my new page from a stand alone editor, I know the file name is case sensitive, but what file extension, if any, do I give it (for example, in UBBThreads, which i'm moving from, templates had a .tpl extension. I guess what I'm asking is can you break down Step #2 in the above linked instructions and walk me through HOW I create a template for a page and put it where it needs to be. I got step one ok - created a page and uploaded it to my root. Sorry for the dumb questions, but I'm new at vBulletin and it seems to work quite differently from what I'm used to.

EDIT: Ok, stand by - I think the light bulb just went on. I found where I can "Add New Template" based on the "MASTER STYLE" in the Admincp. I copied the HTML in your example into that Template editor, then went to my "mypage.php" script and viola! It worked!

I'll play around awhile more - don't go too far - I may need you again!
Reply With Quote
  #8  
Old 07-21-2012, 11:58 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For MASTER STYLE, Go to Admincp > Styles and Templates > Style Manager > MASTER STYLE and create a new template
Reply With Quote
  #9  
Old 07-22-2012, 12:15 AM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks - see my edit above. I sort of stumbled on it and so far it seems to be working. Thanks for your help. Don't go too far thought LOL!
Reply With Quote
  #10  
Old 07-22-2012, 12:34 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you're sorted
Reply With Quote
Reply

Thread Tools
Display Modes

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:38 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.04283 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete