Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Knoman Knoman is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-29-2001 Last Update: Never Installs: 237
 
No support by the author.

After my rantings in the other thread about people posting my codes, I've decided to forget everything that happen and post my version of the EXP/HP/MP hack. Most people will not need this hack because it will only apply to gaming forums; specifically RPG forums.

This hack works in such a way that:

HP drops and rises according to the members activeness.
MP determins how long a user has been with the forums, and how active they are.
EXP determins how close a user is to reaching the next level.

EDIT: To prevent non-legit vb owners from installing this hack, I have removed it from this post. Instead, just scroll down to Neo's post in this thread and download the file.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 11-03-2001, 06:52 PM
Mr. X's Avatar
Mr. X Mr. X is offline
 
Join Date: Oct 2001
Location: Iowa
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #53  
Old 11-03-2001, 07:03 PM
Mr. X's Avatar
Mr. X Mr. X is offline
 
Join Date: Oct 2001
Location: Iowa
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

duh. forgot to attach
Reply With Quote
  #54  
Old 11-03-2001, 07:36 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

use valign tags... like valign="bottom" and such
Reply With Quote
  #55  
Old 11-05-2001, 09:31 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

easy to understand and easy to install

all the best
Reply With Quote
  #56  
Old 11-07-2001, 05:57 AM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #57  
Old 11-07-2001, 06:22 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #58  
Old 11-07-2001, 11:30 AM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #59  
Old 11-07-2001, 03:22 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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>
Reply With Quote
  #60  
Old 11-07-2001, 06:51 PM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #61  
Old 11-07-2001, 07:14 PM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:58 PM.


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.04946 seconds
  • Memory Usage 2,401KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete