Thread: vBindex v2.1
View Single Post
  #366  
Old 08-29-2002, 02:59 PM
Gohan's Avatar
Gohan Gohan is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01192 seconds
  • Memory Usage 1,901KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete