vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=195)
-   -   Blaze (https://vborg.vbsupport.ru/showthread.php?t=124671)

stako 01-04-2007 11:12 AM

Could someone tell me how can I add a link to the forum home in the header when someone clicks on the logo???

Thanks :)

Luky 01-04-2007 12:10 PM

How to get all online stats to the right hand column of the homepage!
Demo
Open the template manager and in titles search: FORUMHOME and replace with this code (TAKE A BACKUP OF OLD CODE: ctrl+a ctrl+c open note pad ctrl+v)

PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    
$headinclude
    
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</
head>
<
body>
$header
$navbar

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<
tr>
    <
td width="250" valign="top" style="padding-right: 15px;">
        <
table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
        <
thead>
            <
tr>
                <
td class="tcat" colspan="2"><if condition="$show['guest']">Login<else />Control Panel</if></td>
            </
tr>
        </
thead>
        </
table>
        <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center" style="border-top: 0px;">
        <
tr>
            <
td class="alt1">
                <if 
condition="$show['member']">

                    <
div class="smallfont">
                        <
strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <
phrase 1="$pmbox[lastvisitdate]2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if 
condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]2="$vbphrase[total_x_nav_compiled]3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                        <if 
condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
                    </
div>

                <else />

                    <!-- 
login form -->
                    <
form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                    <
script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
                    <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0" align="center">
                    <
tr>
                        <
td class="smallfont" nowrap="nowrap"><label for="navbar_username">$vbphrase[username]:</label></td>
                        <
td><input type="text" name="vb_login_username" id="navbar_username" size="20" accesskey="u" tabindex="101" value="$vbphrase[username]onfocus="if (this.value == '$vbphrase[username]') this.value = '';" class="textfield" /></td>
                    </
tr>
                    <
tr>
                        <
td class="smallfont" nowrap="nowrap"><label for="navbar_password">$vbphrase[password]:</label></td>
                        <
td><input type="password" name="vb_login_password" id="navbar_password" size="20" tabindex="102" class="textfield" /></td>
                    </
tr>
                    <
tr>
                        <
td colspan="2" class="smallfont" align="center"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label> &nbsp;&nbsp;&nbsp;<input type="submit" value="$vbphrase[log_in]tabindex="104" title="$vbphrase[enter_username_to_login_or_register]accesskey="s" class="textfield" /></td>
                    <
tr>
                    </
table>
                    <
input type="hidden" name="s" value="$session[sessionhash]/>
                    <
input type="hidden" name="do" value="login" />        
                    <
input type="hidden" name="vb_login_md5password" />
                    <
input type="hidden" name="vb_login_md5password_utf" />
                    </
form>
                    <!-- / 
login form -->

                </if>
            </
td>
        </
tr>
        </
table>

        <
br />

        <
table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
        <
thead>
            <
tr>
                <
td class="tcat" colspan="2">Forum Statistics</td>
            </
tr>
        </
thead>
        </
table>
        <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center" style="border-top: 0px;">
        <
tr>
            <
td class="alt1">
                <
div class="smallfont">
                    <
strong>Forum Members:</strong$numbermembers<br />
                    <
strong>Total Threads:</strong$totalthreads<br />
                    <
strong>Total Posts:</strong$totalposts<br />
                    <
strong>Online:</strong$totalonline (<phrase 1="$numberregistered2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)<br />
<
strong>Members Online Now:</strong$activeusers
<br />
<
strong>Most Members Online:</strong> <phrase 1="$recordusers2="$recorddate3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase><br />
<
strong>Members Visited Today:</strong$whotoday<br />

                </
div>
            </
td>
        </
tr>
        </
table>
    </
td>
    <
td valign="top">
        <!-- 
main -->

        <!-- 
guest welcome message -->
        <if 
condition="$show['guest']">
            <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
            <
tr>
                <
td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
            </
tr>
            <
tr>
                <
td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="faq.php?$session[sessionurl]2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase></td>
            </
tr>
            </
table>
            <
br />
        </if>
        <!-- / 
guest welcome message -->

        
$forumbits

        
<!-- /main -->

        <!-- 
what's going on box -->
        <table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
        <thead>
            <tr>
                <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
            </tr>
        </thead>
        </table>
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
        <!-- today'
s birthdays -->
        <
tbody>
            <
tr>
                <
td class="thead" colspan="2">
                    <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
                    
$vbphrase[todays_birthdays]
                </
td>
            </
tr>
        </
tbody>
        <
tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
            <
tr>
                <
td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]border="0" /></a></td>
                <
td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
            </
tr>
        </
tbody>
        <!-- 
end today's birthdays -->
        <tbody>
            <tr>
                <td class="thead" colspan="2">
                    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
                    <if condition="$show['
todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
                </td>
            </tr>
        </tbody>
        <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
            <tr>
                <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
            </tr>
        </tbody>
        <tbody>
            <tr>
                <td class="thead" colspan="2">
                    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_key')"><img id="collapseimg_forumhome_key" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_key].gif" alt="" border="0" /></a>
                    Forum Key
                </td>
            </tr>
        </tbody>
        <tbody id="collapseobj_forumhome_key" style="$vbcollapse[collapseobj_forumhome_key]">
            <tr>
                <td colspan="2" class="alt2">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td width="33%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /><br /><div class="smallfont">$vbphrase[forum_contains_new_posts]</div></td>
                            <td width="34%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /><br /><div class="smallfont">$vbphrase[forum_contains_no_new_posts]</div></td>
                            <td width="33%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /><br /><div class="smallfont">$vbphrase[forum_is_closed_for_posting]</div></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </tbody>
            <tr>
                <td class="tfoot" align="center" colspan="<if condition="$vboptions['
showmoderatorcolumn']">6<else />5</if>">
                    <div class="smallfont"><strong>
                        <a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
                        &nbsp; &nbsp;
                        <a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
                    </strong></div>
                </td>
            </tr>
        </tbody>
        </table>
        <!-- end what'
s going on box -->
    </
td>
</
tr>
</
table>

$footer
</body>
</
html

This needs to ahve the mod, Visitors today. in Blaze, find the visitors today file by searching for
PHP Code:

$whotoday 

and replacing all contents of that file with nothing. Don't delete it, just empty it :D

P.S It may look better if you remove 'Most users ever online was ' from that most users online phrase, but it may not look as good on other themes, so trial and error is the way to go!

I hope you like my minor mod for this skin, i suck at PHP!

This skin rocks.

EDIT: Oh and i did try to add members who posted today aswell, but it made it look realy bad as it repeated alot of names, it also looked fake.

unenergizer 01-04-2007 08:32 PM

I really like this one Andrew. Great Job! It would be nice if I could creat styles as popular as yours! Great work!

Andrew B.

ben07 01-05-2007 10:00 PM

Could someone provide the XML for vb 3.6.2?

Luky 01-08-2007 11:45 AM

Quote:

Originally Posted by ben07 (Post 1151616)
Could someone provide the XML for vb 3.6.2?

Time to upgrade my friend!

Andrew 01-08-2007 01:24 PM

I only support the current version of vBulletin with my styles, so I don't save the previous versions of the .XML file unfortunately. If somebody doesn't have them, then you might have to upgrade or try and import the newer version of the style and check for error (A lot of times it will still work - You just might have to do a couple of quick template edits to get it to 100% functionality.)

got3n 01-08-2007 04:18 PM

Nvm Fixed.

ben07 01-09-2007 10:28 PM

Ok, I've upgraded and I was hoping if you could help me with one more thing.

http://img134.imageshack.us/img134/5391/image3kk5.jpg
How do I move the Control Panel section to be moved liked the one pictured below?

TexasBlake 01-11-2007 11:04 PM

Last night I began making the change after 4 years of phpBB to vBulletin. I was VERY excited to see this theme, as it is almost identical to the color scheme on our main index webpage: www.texasbbqrub.com


However. I'm having a problem with the forum right now. it seems like it is not displaying the footer or header backgrounds. Unless template.html goes somewhere, but in one of the posts in this 11 page thread I read that it's jsut for personal use.

Here is the vBulletin site I am working on http://www.texasbbqrub.com/forum/

Anyone have any pointers? I'm pretty new to vBulletin and I wanted to get the theme set up before I do anything else so I can see how it looks. Thanks in advance.

Andrew 01-11-2007 11:08 PM

Somewhere in your vBulletin options you have a trailing forward slash after your forum URL. If you look at the source code it's looking for http://forum.texasbbqrub.com//images...background.gif, which has two forward slashes at the end of the URL.


All times are GMT. The time now is 08:09 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.01559 seconds
  • Memory Usage 1,895KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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