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 09-05-2010 08:50 PM

Quote:

Originally Posted by Guitar Guy (Post 2094256)
Hello,

First off, I just want to say that this is a top-notch guide, in my opinion.

I just have a quick question:
How do I add dividers to sections? Is it in the template? Or the PHP page? What's the code?
Also, How do I add the shadow effect behind the whole box?

What your output looks like is in the html, so it is in the template. Usually users use CSS to put a border around a div. The shadow is also just CSS that you would apply to the div:

HTML Code:

div.yourclass {
border:5px solid red;
-moz-box-shadow:-2px 2px 2px #C8C8C8;
-webkit-box-shadow:-2px 2px 2px #C8C8C8;
}


Guitar Guy 09-06-2010 03:01 AM

Thank you for the response, but it's not entirely what I'm asking.

What I'm trying to do is basically divide this page:

http://img299.imageshack.us/img299/6...policypage.jpg


into sections that look like pieces from the "What's Going On" box:

http://img715.imageshack.us/img715/9...goingonbox.jpg


Here is the code that I currently have for the page:

PHP 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}


    <
STYLE TYPE="text/css">
    <!--
    
{text-indent30pt;}
    -->
    </
STYLE>

  </
head>
  <
body>

    {
vb:raw header}
    
    {
vb:raw navbar}
    
    <
div id="pagetitle">
    <
h1>{vb:raw pagetitle}</h1>
    </
div>
    
    <
br />
    <
div class="block">
        <
center><h2 class="blockhead">What information do we collect?</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>We collect information from you when you register on our siteWhen ordering or registering on our site, as appropriateyou may be asked to enter youre-mail addressYou mayhowevervisit our site anonymously.</p>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">Why do we collect this information?</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
ul>
                <
li>To personalize your experience (your information helps us to better respond to your individual needs);</li><br />

                <
li>To improve our website (we continually strive to improve our website offerings based on the information and feedback we receive from you);</li><br />

                <
li>To improve customer service (your information helps us to more effectively respond to your customer service requests and support needs);</li><br />

                <
li>To process transactionsyour informationwhether public or private, <em>will not be soldexchangedtransferred, or given to any other company for any reason whatsoeverwithout your consentother than for the express purpose of delivering the purchased product or service requested.</em></li><br />

                <
li>To send periodic emailsthe email address you provide for order processingwill <em>only</embe used to send you information and updates pertaining to your order.</li>
            </
ul>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">How do we protect your information?</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>We implement a variety of security measures to maintain the safety of your personal information when you place an order or entersubmit, or access your personal informationWe offer the use of a secure serverAll supplied sensitive/credit information is transmitted via Secure Socket Layer (SSLtechnology and then encrypted into our Payment gateway providers database only to be accessible by those authorized with special access rights to such systems, and are required to?keep the information confidentialAfter a transactionyour private information (credit cardssocial security numbersfinancialsetc.) will not be stored on our servers.</p>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">Do we use cookies?</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>Yes (Cookies are small files that a site or its service provider transfers to your computers hard drive through your Web browser (if you allowthat enables the sites or service providers systems to recognize your browser and capture and remember certain information). We use cookies to understand and save your preferences for future visits and keep track of advertisements.</p>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">Do we disclose any information to outside parties?</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>We do not selltrade, or otherwise transfer to outside parties your personally identifiable informationThis does not include trusted third parties who assist us in operating our websiteconducting our business, or servicing youso long as those parties agree to keep this information confidentialWe may also release your information when we believe release is appropriate to comply with the lawenforce our site policies, or protect ours or others rightsproperty, or safetyHowevernon-personally identifiable visitor information may be provided to other parties for marketingadvertising, or other uses.</p>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">Third party links</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>Occasionallyat our discretionwe may include or offer third party products or services on our websiteThese third party sites have separate and independent privacy policiesWe therefore have no responsibility or liability for the content and activities of these linked sitesNonethelesswe seek to protect the integrity of our site and welcome any feedback about these sites.</p>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">California Online Privacy Protection Act Compliance</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>Because we value your privacy we have taken the necessary precautions to be in compliance with the California Online Privacy Protection ActWe therefore will not distribute your personal information to outside parties without your consent. As part of the California Online Privacy Protection Actall users of our site may make any changes to their information at anytime by logging into their control panel and going to the 'Settings' page.</p>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">Childrens Online Privacy Protection Act Compliance</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>We are in compliance with the requirements of COPPA (Childrens Online Privacy Protection Act), we do not collect any information from anyone under 13 years of ageOur websiteproducts and services are all directed to people who are at least 13 years old or older.</p>
            </
div>
        </
div>
    </
div>

    <
br />

    <
div class="block">
        <
center><h2 class="blockhead">Your Consent and Policy Changes</h2></center>
        <
div class="blockbody">
            <
div class="blockrow restore"><br />
            <
p>By using our siteyou consent to our web site privacy policy. If we decide to change our privacy policywe will update the Privacy Policy modification date below. If you have any questions regarding this policyplease either ask in the <a href="http://www.defeatthesystem.com/forum.php";>forum</a> or <a href="mailto:support@defeatthesystem.com">Email Support</a>.</p>
            </
div>
        </
div>
    </
div>
<
br /><br /><br /><span></span><span></span><center><div style='font-size:7pt; font-family:Arial; color:gray; text-decoration:none;'>This policy was last modified on August 182010<span></span><span></span><span></span>
<
br /><span></span><span></span><div style='font-size:7pt; font-family:Arial; color:gray; text-decoration:none;'>Please also visit our Terms of Service section establishing the use, disclaimers, and limitations of liability governing the use of our website <a style='color:#3C3C3C; text-decoration:none;' href='http://www.defeatthesystem.com/terms.php'>Here</a></center></div><span></span><span></span><span></span></div><center>

    {
vb:raw footer}
  </
body>
</
html

I basically want to have pieces like the "What information do we collect?" and "Why do we collect this information?" in that box, etc, etc

Thank you in advance for your help.

Regards,
Guitar Guy

Lynne 09-06-2010 03:35 AM

If you want to make your page look more like the other section, then you need to use the same sort of CSS for your page.

Dusty Miller 09-06-2010 10:26 AM

Is there a way of adding php scripts in a custom page. I am trying to add a form in which people can add search their details and I want to query an external database...

Where should the php code be inserted..

I want to user the vBulletin wrapper to control users, usergroup levels etc.

Lynne 09-06-2010 01:48 PM

You can insert the php code anywhere under where it says Main Script and before your template is being rendered.

Bill_Reilly 09-07-2010 11:14 PM

noob question, sorry... if I want to place a little javascript on my page(basically a calculator) where do I place the code that would normally go within the head tags?

Lynne 09-08-2010 12:38 AM

Quote:

Originally Posted by Bill_Reilly (Post 2095239)
noob question, sorry... if I want to place a little javascript on my page(basically a calculator) where do I place the code that would normally go within the head tags?

Within the head tags of your template.

Bill_Reilly 09-08-2010 02:55 AM

well yea. That gives me errors, which is why I asked. I had it as an shtml page already, so I'm just attempting to copy and paste working code.......

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3332

vBulletin Message
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Lynne 09-08-2010 03:17 AM

You may want to try putting <vb:literal> tags around the javascript and see if that works. If it still doesn't, you may want to start a thread in the general discussions area and ask for help with your code.

Bill_Reilly 09-08-2010 03:22 AM

Putting those around the header portion of the code worked. Thank you :)


All times are GMT. The time now is 11:08 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.01679 seconds
  • Memory Usage 1,861KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)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