vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Lynne 01-28-2015 10:26 PM

And what is in the template?

DoubleYou 01-29-2015 07:32 AM

Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>
   
    <h2 class="blockhead">Title</h2>
    <div class="blockbody">
      <div class="blockrow">
        Text
      </div>
    </div>
   
    {vb:raw footer}
  </body>
</html>


Lynne 01-29-2015 06:20 PM

Hmmm, nothing really wrong there.

It seems to not like this line:
$navbits = construct_navbits(array('' => '404 Seite'));

Try retyping it and see if that may help. (Even remove it for a sec, which will break things, but see what happens.)

Yogesh Sarkar 02-24-2015 10:21 AM

Hello Lynne. What code do we need to add to the custom page to make it a login page for users? Currently users cannot directly access the login page.

Lynne 02-24-2015 05:58 PM

I do not have the code to create a login page. You would need to make your template have a login form. You would need to create that yourself.

Duckface 04-23-2015 11:58 AM

How would you add php within the template?

Because I have the following and it's not working:

Code:

<form action=" <?php echo basename($_SERVER['PHP_SELF']); ?>" method="POST">
https://vborg.vbsupport.ru/external/2015/04/7.png

Lynne 04-23-2015 09:29 PM

You add php to the .php page. You cannot enter php into a template.

friendlymela 07-21-2015 03:32 PM

i want to make a different kind of home page someone help me?

Colossal31 09-24-2015 08:06 PM

Does anyone know how I could make this a memberlist page that shows just one usergroup?

Dave 09-24-2015 08:18 PM

Quote:

Originally Posted by Colossal31 (Post 2555702)
Does anyone know how I could make this a memberlist page that shows just one usergroup?

You could simply copy the "showgroups.php" script for this and make some modifications to it so it only shows the usergroup you want to display:
- Removing the $groupcache/$modcache functionality.
- Select the right usergroupid's.

If however your usergroup contains a lot of members, you should copy the memberlist.php script and make your modifications to it.
Or just simply hook into memberlist_fetch its $hook_query_where variable and make sure it only selects specific usergroup's based on a GET variable.


All times are GMT. The time now is 01:26 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.02414 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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