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)
-   -   Yet another Stats/Level Hack (https://vborg.vbsupport.ru/showthread.php?t=31775)

Mr. X 11-03-2001 06:52 PM

Ok ok, last question :)

Check out the attached shot.

How do I make it so that signatures stay on the bottom? theres way to much space cuz I guess the bars and stuff stretch out the table?

Here is the code I have:

PHP Code:

<smallfont><br>
                  <
p> <b>Level$showlevel<br>
                    
Member ID$post[userid]</b><br>
                    
HP$hp $maxhp 
                  
<table width="100" border="0" cellspacing="0" cellpadding="0" bordercolor="#000000">
                    <
tr
                      <
td bgcolor="#9E9E9E"><img src="images/bar/bhg.gif" width="$hpf%" height="9"><img src="images/bar/bhb.gif" width="1" height="9"></td>
                    </
tr>
                  </
table>
                  
MP$mp $maxmp 
                  
<table width="100" border="0" cellspacing="0" cellpadding="0" bordercolor="#000000">
                    <
tr
                      <
td bgcolor="#9E9E9E"><img src="images/bar/bmg.gif" width="$mpf%" height="9"><img src="images/bar/bmb.gif" width="1" height="9"></td>
                    </
tr>
                  </
table>
                  
Exp$ep
                  <
table width="100" border="0" cellspacing="0" cellpadding="0" bordercolor="#000000">
                    <
tr
                      <
td bgcolor="#9E9E9E"><img src="images/bar/bxg.gif" width="$ep%" height="9"><img src="images/bar/bxb.gif" width="1" height="9"></td>
                    </
tr><smallfont></table

Here is how I put it in my postbit template:

PHP Code:

<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->

<
table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr>
    <
td bgcolor="$post[backcolor]width="175" valign="top" nowrap>
    <
a name="post$post[postid]"></a>
    
$post[firstnewinsert]
    <
normalfont><b>$post[username]</b></normalfont><br>
    <
smallfont>$post[usertitle]</smallfont><br>
    
$post[avatar]<p>
    <
smallfont><smallfont><br>
                  <
p> <b>Level$showlevel<br>
                    
Member ID$post[userid]</b><br>
                    
HP$hp $maxhp 
                  
<table width="100" border="0" cellspacing="0" cellpadding="0" bordercolor="#000000">
                    <
tr
                      <
td bgcolor="#9E9E9E"><img src="images/bar/bhg.gif" width="$hpf%" height="9"><img src="images/bar/bhb.gif" width="1" height="9"></td>
                    </
tr>
                  </
table>
                  
MP$mp $maxmp 
                  
<table width="100" border="0" cellspacing="0" cellpadding="0" bordercolor="#000000">
                    <
tr
                      <
td bgcolor="#9E9E9E"><img src="images/bar/bmg.gif" width="$mpf%" height="9"><img src="images/bar/bmb.gif" width="1" height="9"></td>
                    </
tr>
                  </
table>
                  
Exp$ep
                  <
table width="100" border="0" cellspacing="0" cellpadding="0" bordercolor="#000000">
                    <
tr
                      <
td bgcolor="#9E9E9E"><img src="images/bar/bxg.gif" width="$ep%" height="9"><img src="images/bar/bxb.gif" width="1" height="9"></td>
                    </
tr><smallfont></table>Registered$post[joindate]<br>
    
Location$post[field2]<br>
    
Posts$post[posts]</smallfont></td>
    
    <
td bgcolor="$post[backcolor]width="100%" valign="top">
    <
smallfont>$post[icon] <b>$post[title]</b></smallfont>
    <
p><normalfont>$post[message]</normalfont></p>
    
$post[attachment]
    <
p>$post[signature]</p>
    <
p>$post[editedby]</p>
    <
p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
    </
td>
</
tr>
<
tr>
    <
td bgcolor="$post[backcolor]width="175" height="16" nowrap><smallfont>$post[foldericon]
    
$post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>
    
    <
td bgcolor="$post[backcolor]width="100%" valign="middle" height="16">
        <
table width="100%" border="0" cellpadding="0" cellspacing="0">
        <
tr valign="bottom">
            <
td><smallfont>$onlinestatus
            $post
[profile$post[pmlink$post[useremail$post[homepage$post[search$post[buddy]
            <!-- $ 
post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
            </
smallfont></td>
            <
td align="right" nowrap><smallfont>
            <
a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
            <
a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
            </
smallfont></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
td></tr></table>

<!-- 
spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table

Also one last thing then I'll shutup. Can I have the postnumber/location/register information on TOP of the stats instead of on the very bottom, while maintaining the signatures be at the very bottom as they were before the hack? Thanks for any help! :)

Mr. X 11-03-2001 07:03 PM

duh. forgot to attach

Neo 11-03-2001 07:36 PM

use valign tags... like valign="bottom" and such

fonzerelli_79 11-05-2001 09:31 PM

just a small note to say thanks for a great hack knoman

easy to understand and easy to install

all the best

trilOByte 11-07-2001 05:57 AM

Quote:

Originally posted by neo
use valign tags... like valign="bottom" and such
I have the same problem (see attachment), but I'm no coder and I can't figure out where to put the valign tags. At least when I try, I can't seem to get the message at the top of the cell and everything else at the bottom - I don't even know if this is possible without splitting the cell. If someone knows how to do this, I'd be very grateful :)

Neo 11-07-2001 06:22 AM

ok, i believe the sig thing is in the postbit template, so go into that and find where the sig code itself is, then see if there is a <tr> or <td> and put a valign="bottom" and if that does not work [post the code and i will try and fix it for yah

trilOByte 11-07-2001 11:30 AM

Thanks neo...
Here's the code ...

Code:

<td bgcolor="$post[backcolor]" width="100%" valign="top">
        <smallfont>$post[icon] <b>$post[title</b></smallfont>
        <p><normalfont>$post[message]</normalfont></p>
        $post[attachment]
        <p>$post[signature]</p>
        <p>$post[editedby]</p>

what I want to do is

valign="top" ---> $post[message]

but

valign="bottom" ---> $post[attachment] and everything else beneath. I don't know if this is possible or not, but everything I try ends up is screwy tables - no surprise to me cos I can't code worth squat :)

Any help would be gratefully appreciated :)

ta :)

Neo 11-07-2001 03:22 PM

[QUOTE]Originally posted by trilOByte
Thanks neo...
Here's the code ...

Code:

<td bgcolor="$post[backcolor]" width="100%" valign="top">
        <smallfont>$post[icon] <b>$post[title</b></smallfont>
        <p><normalfont>$post[message]</normalfont></p>
        $post[attachment]
        <p>$post[signature]</p>
        <p>$post[editedby]</p>


trilOByte 11-07-2001 06:51 PM

Yes I've tried that neo and not surprisingly, it does drop the message as well. What I want, is for the message to be aligned to the top, but the sig and everything beneath it in the code shown, to be aligned to the bottom (I thought I was pretty clear that this is what I am trying to do). This I do not know how to do. I don't code html - or any other language, so if anyone can advise - I'd be grateful :)

trilOByte 11-07-2001 07:14 PM

I tried replacing the above code with..

<td bgcolor="$post[backcolor]" width="100%" valign="top" height="233">
<smallfont>$post[icon] <b>$post[title]</b></smallfont>
<p><normalfont>$post[message]</normalfont></p>
$post[attachment]
<p><smallfont></smallfont></p>
</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" width="100%" valign="bottom">
<p>$post[signature]</p>
<p>$post[editedby]</p>
<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report
this post to a moderator</a> | $post[iplogged]</smallfont></p>
</td>

But the tables get screwed up - any suggestions?


All times are GMT. The time now is 09:38 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.01810 seconds
  • Memory Usage 1,836KB
  • 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
  • (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