vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

LightBringer 08-29-2002 03:20 AM

RenzukenX, I believe you have to take the actual shoutbox code that you would normally insert into the forumhome template and insert it into home.
Then you have to find the code where you evaulate the template forumhome_shoutbox and change it to home_shoutbox.

That's just a guess though. I TOO would like a shout box on my front page, but have been unable to find one that resembles what VB.org has here. :)

NTLDR 08-29-2002 10:57 AM

Quote:

Originally posted by RenzukenX
but when I place the $the_shoutbox into that table nothing at all shows up. I was wondering if anyone could help.
You need to add the PHP code that displays that part of the shoutbox into vbindex.php

Gohan 08-29-2002 11:01 AM

Quote:

Originally posted by NTLDR


You need to add the PHP code that displays that part of the shoutbox into vbindex.php

Please explain, mate? I'm really confused cuz i was try it and not lucky :surprised:

NTLDR 08-29-2002 11:12 AM

You need to create the template how you want it for the shoutbox that will be displayed on the home page. The instead of adding the PHP code from it to the forum/index.php file follow the instructions but add it to the vBindex.php file.

Gohan 08-29-2002 02:59 PM

not lucky :(
check: http://saxxon.squadcenter.de

what did i do:

Step 1
vbindex.php
PHP Code:

eval("dooutput(\"".gettemplate('home')."\");"); 

change to:

PHP Code:

    $shout             $DB_site->query_first("SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 1");
    
$shout[timestamp]  = vbdate('n-j-y, g:i:s a'$shout[timestamp]);
    
$shout[shout_text] = bbcodeparse($shout[shout_text]);
    eval(
"\$the_shoutbox .= \"".gettemplate("home_shoutbox")."\";");
    eval(
"dooutput(\"".gettemplate('home')."\");"); 

Step 2
template (home_right) p.s. i was modify home_right template
PHP Code:

<td width=165 valign="top">
<
table cellpadding="0" cellspacing="0" border="0" width=165>
<
tr>
    <
td width=165 valign="top">
    <
table cellpadding="0" cellspacing="0" border="0" width="165" align="center" bgcolor="{tablebordercolor}" >
    <
tr>
        <
td>
        <
table cellpadding="4" cellspacing="1" border="0" width="165">
        <
tr>
            <
td bgcolor="{tableheadbgcolor}"><center><normalfont><b>Downloads</b></normalfont></center></td>
        </
tr>
        <
tr>
            <
td bgcolor="{firstaltcolor}">
            <
smallfont>
            <
center><b>Custom Maps</b></center>
            <
p>
            
You will need these custom maps to be able to play on the 4th server!
            <
p>
            <
b><big>?</big></b> <a href=http://4th.croox.de/Maps2/allmaps.zip>Map-Pack</a>
            
<p>
            <
center>Or Download them Individually</center>
            <
p>
            <
b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-obj_thunder.pk3>Thunder</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-zutphen.pk3><b>Zutphen</b></a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-courtyardv1_1.pk3>Courtyard</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/push_cityhall.pk3>CityHall Push</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/thefarm.pk3>The Farm</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-dasboot.pk3> <b>Dasboot</b></a>
            
<p>
            <
b>Bold</b> = Upgrade or new map
            
<p>
            <
center>For Download Instructions click <a href="misc.php?action=faq&page=5">here</a></center>
            </
smallfont>
            </
td>
        </
tr>
        </
table>
        </
td>
    </
tr>
    </
table>
    </
td>
</
tr>
</
table>
</
td

change to:

PHP Code:

<td width=165 valign="top">
<
table cellpadding="0" cellspacing="0" border="0" width=165>
<
tr>
    <
td width=165 valign="top">
    <
table cellpadding="0" cellspacing="0" border="0" width="165" align="center" bgcolor="{tablebordercolor}" >
    <
tr>
        <
td>
        <
table cellpadding="4" cellspacing="1" border="0" width="165">
        <
tr>
            <
td bgcolor="{tableheadbgcolor}"><center><normalfont><b>Downloads</b></normalfont></center></td>
        </
tr>
        <
tr>
            <
td bgcolor="{firstaltcolor}">
            <
smallfont>
            <
center><b>Custom Maps</b></center>
            <
p>
            
You will need these custom maps to be able to play on the 4th server!
            <
p>
            <
b><big>?</big></b> <a href=http://4th.croox.de/Maps2/allmaps.zip>Map-Pack</a>
            
<p>
            <
center>Or Download them Individually</center>
            <
p>
            <
b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-obj_thunder.pk3>Thunder</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/User-zutphen.pk3><b>Zutphen</b></a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-courtyardv1_1.pk3>Courtyard</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/push_cityhall.pk3>CityHall Push</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/thefarm.pk3>The Farm</a><br>
            
<b><big>?</big></b> <a href=http://4th.croox.de/Maps2/user-dasboot.pk3> <b>Dasboot</b></a>
            
<p>
            <
b>Bold</b> = Upgrade or new map
            
<p>
            <
center>For Download Instructions click <a href="misc.php?action=faq&page=5">here</a></center>
            </
smallfont>
            </
td>
        </
tr>
        </
table>
        </
td>
    </
tr>
    </
table>
    </
td>
</
tr>
<
tr>
    <
td>&nbsp;</td>
</
tr>
<
tr>
    <
td width=165 valign="top">
    <
table cellpadding="0" cellspacing="0" border="0" width="165" align="center" bgcolor="{tablebordercolor}" >
    <
tr>
        <
td>
        <
table cellpadding="4" cellspacing="1" border="0" width="165">
        <
tr>
            <
td bgcolor="{tableheadbgcolor}"><center><normalfont><b>Shoutbox</b></normalfont></center></td>
        </
tr>
        <
tr>
            <
td bgcolor="{firstaltcolor}">
            <
table width="100%" cellpadding="2" cellspacing="0">
            
$the_shoutbox
            
</table>
            </
td>
        </
tr>
        </
table>
        </
td>
    </
tr>
    </
table>
    </
td>
</
tr>
</
table>
</
td

Step 3
Add new template (home_shoutbox)
PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}" colspan="6"><smallfont><b>Posted by <a href="$bburl/member.php?s=$sesion[sessionhash]&action=getinfo&userid=$shout[userid]class="small">$shout[username]</aon $shout[timestamp]</b></smallfont><br/><smallfont>$shout[shout_text]</smallfont></td>
</
tr

I did wrong?

morrow 08-29-2002 03:01 PM

Presently I am using 2 frames on my page. I'd like to get rid of the frames. The only thing with the frames is that other links open up in my bottom frame which I like because it keeps people on my site. If I install this hack, will I be able to do basically the same thing using this hack?

Thanks!

NTLDR 08-29-2002 03:19 PM

Quote:

Originally posted by Gohan
not lucky :(
check: http://saxxon.squadcenter.de
I did wrong?

The PHP code needs to go before the home_right template is eval'd.

NTLDR 08-29-2002 03:23 PM

Quote:

Originally posted by morrow
Presently I am using 2 frames on my page. I'd like to get rid of the frames. The only thing with the frames is that other links open up in my bottom frame which I like because it keeps people on my site. If I install this hack, will I be able to do basically the same thing using this hack?
This can be done with this hack, but not by default, it would be posible to set it up as two frames via the templates though, so that the header is in one, and the body in the other.

morrow 08-29-2002 03:36 PM

Sorry, you're talking to a retard. How can I do this? Sorry, I don't mean to be a hassle.

Also, You mention that this software is much lighter than PHPPortals... and that many features have been eliminated because people don't use them so much. What's an example of some of these features. The reason I ask is because I donated my $$$ to phpportals already and want to know if I should scrap that project (and it has been a project) for this.

Thanks for all of your help.

NTLDR 08-29-2002 03:44 PM

Quote:

Originally posted by morrow
Sorry, you're talking to a retard. How can I do this? Sorry, I don't mean to be a hassle.
vB as you may know, is all split up into templates, so the vBindex page has five main templates, the header (with the buttons etc), the footer (with the copyright and stuff), the left side, the right side and the bit in the middle.

All these templates contain HTML code, by changing this from the default code you can make it so that the header part is one frame and the rest is displayed in another so that when someone views an exteral site the header bit is still there.

Quote:

and that many features have been eliminated because people don't use them so much. What's an example of some of these features.[/B]
Its easier to say what is included, as I don't know all the fuctions that vBportal does.

Here's what it does:
  • Latest News Items;
  • Latest x threads;
  • Buddies on/offline;
  • Poll on front page;
  • Welcome box, with avatar and number of new posts/threads;
  • Supports extra pages based on forums layout.


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