Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2008, 09:33 AM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom Pages?

Can anyone tell me where the mod is for making custom pages is please.

Im using 3.7.4
Reply With Quote
  #2  
Old 11-11-2008, 09:34 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the box at the top is a search - where it says All Posts change that to Titles Only and in the long white box if you type custom pages it will tell you all the mods for custom pages.

I hope this can help
Reply With Quote
  #3  
Old 11-11-2008, 02:13 PM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may seem silly, but would it be possible to take a page & just edit it with my own details then name that file a different name?
Reply With Quote
  #4  
Old 11-11-2008, 02:18 PM
Sawa Dee SohL Sawa Dee SohL is offline
 
Join Date: Aug 2008
Location: www.TheSocialRev.com
Posts: 277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are two ways to create these custom pages. One way requires making a PHP file, like mycustompage.php and making a template like MYCUSTOMPAGE. The other way is a bit simpler and just requires making a template.

There is a difference in how the pages will appear (based on what method you use). The harder way will make things look more "pretty" because it will have a URL that looks something like
http://www.Example.com/forums/lol.php
while the easier way will have a URL like
http://www.Example.com/forum/misc.ph...e&template=lol

(lol being the example name of the page you are creating)

The harder method will be able to have a custom breadcrumb, and the easy one will have a breadcrumb that is basically the template name.

I only use the easier method, and this is how I do it:

Bring up the AdminCP and go to the Style Manager. For the style that you want to have the page in, click the options select bar (it says "All Style Options") and select "Add New Template" (and click go if the page doesn't automatically change).

Now you will be faced with two important boxes (the Title box and the Template box). For the title, you can have it whatever you want, but it must have "custom_" in front of it (for instance, custom_lolz). It should all be lowercase because everything after "custom_" will be within the URL, and every internet link should always be lowercase.

Now for the Template box, you should copy this code and paste it in there to begin with:

HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat">%ARTICLE1_TITLE%</td>
</tr>
<tr>
    <td class="alt1">
    %ARTICLE1_CONTENT%
    </td>
</tr>
</table>

$footer
</body>
</html>
You can have more than one article (with a title and content) on a custom page. To do that, just copy the code between the:

HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
...
</table>
(including the table tags) and paste it under the last the last closing table tag.

Now, for your first article, you need a title. Replace %ARTICLE1_TITLE% with your choice for the title. Now that you put your article's title down, it's time to do the content. This uses standard HTML, so you need to remember that more than one space will just show as one space and you should use the following tags for things you want to do:

The PHP Code I used for; bold, italics, line breaks, and underlines was:


line break: <br />
bold: <strong></strong>
italics: <em></em>
underline: <span style="text-decoration: underline"></span>

The content that you type up will replace %ARTICLE1_CONTENT%.

Once you're done with your page, save the template. If you want it to display for all styles, you will need to copy the template contents (and title) to a new template within the other styles. The URL for the page will be something like http://Example.com/forum/misc.php?do...mplate=%TITLE% where %TITLE% is whatever came after "custom_" in the template's title. So a template named custom_lolz would have a URL of http://Example.com/forum/misc.php?do=page&template=lolz.

I hope this helps, sorry it's so long >_>
Reply With Quote
  #5  
Old 11-11-2008, 03:23 PM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got it. That was a great help.
Thank you VERY MUCH
Reply With Quote
  #6  
Old 11-11-2008, 10:23 PM
Sawa Dee SohL Sawa Dee SohL is offline
 
Join Date: Aug 2008
Location: www.TheSocialRev.com
Posts: 277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem - I don't know the 'clean' way to make the URL look prettier - but my friend does, and if you need that also, I'm sure I can get how to do it for ya
Reply With Quote
  #7  
Old 11-11-2008, 10:28 PM
iNRoC iNRoC is offline
 
Join Date: Jul 2008
Location: Clifton, New Jersey
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dmknights View Post
Can anyone tell me where the mod is for making custom pages is please.

Im using 3.7.4
Search 'Easy Pages' in 3.7 Mods and you will find it, I use it often and is probably the fasted way to make a vB based page from your admincp.
Reply With Quote
  #8  
Old 11-11-2008, 11:12 PM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

'Easy Pages' seems good, however it would be good if it didnt give link names as 'easy_page'
Reply With Quote
Reply


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 07:36 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.03685 seconds
  • Memory Usage 2,233KB
  • Queries Executed 13 (?)
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_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete