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)
-   -   RPG Elements Hack (https://vborg.vbsupport.ru/showthread.php?t=35318)

[hhhh] 06-09-2002 10:46 AM

]
Quote:

Open Admin/functions.php ---->

Find:
.................................................. .......................................
if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}
.................................................. ..........................................
Add after it:
.................................................. ..........................................

// Element Hack v2.0
// by Zajako

$ele = $post[element];

If ($ele == 0)
{
$elename = "none";
}
If ($ele == 1)
{
$elename = "light";
}
If ($ele == 2)
{
$elename = "water";
}
If ($ele == 3)
{
$elename = "wind";
}
If ($ele == 4)
{
$elename = "lightning";
}
If ($ele == 5)
{
$elename = "earth";
}
If ($ele == 6)
{
$elename = "fire";
}
If ($ele == 7)
{
$elename = "dark";
}
If ($ele == 8)
{
$elename = "omega";
}
If ($ele == 9)
{
$elename = "alpha";
}

$eicon = '<img src="images/elements/'.$elename.'" border="0" alt="'.$elename.'" align="absmiddle">';
Edit
Quote:

$ele = $post[element];

If ($ele == 0)
{
$elename = "none.gif";
}
If ($ele == 1)
{
$elename = "light.gif";
}
If ($ele == 2)
{
$elename = "water.gif";
}
If ($ele == 3)
{
$elename = "wind.gif";
}
If ($ele == 4)
{
$elename = "lightning.gif";
}
If ($ele == 5)
{
$elename = "earth.gif";
}
If ($ele == 6)
{
$elename = "fire.gif";
}
If ($ele == 7)
{
$elename = "dark.gif";
}
If ($ele == 8)
{
$elename = "omega.gif";
}
If ($ele == 9)
{
$elename = "alpha.gif";
}
:d:D

zajako 06-10-2002 07:09 PM

that does not iclude any of the database stuf

here is the file for 3.1

XtremeVigilante 06-23-2002 03:20 AM

I can't get this hack to work on my VB. My members select an element andit automatically resets back to none.

XtremeVigilante 06-23-2002 04:50 AM

I have tried every single think that was mentioned in here and I get nothing.

zajako 08-25-2002 10:03 PM

fix this line
$eicon = '<img src="images/elements/'.$elename.'" border="0" alt="'.$elename.'" align="absmiddle">';

to

$eicon = '<img src="images/elements/'.$elename.'.gif" border="0" alt="'.$elename.'" align="absmiddle">';

azork 09-25-2002 01:47 PM

zajako, how do the hidden elements work?

Esdee 10-29-2002 02:41 PM

Quote:

Originally posted by zajako
fix this line
$eicon = '<img src="images/elements/'.$elename.'" border="0" alt="'.$elename.'" align="absmiddle">';

to

$eicon = '<img src="images/elements/'.$elename.'.gif" border="0" alt="'.$elename.'" align="absmiddle">';

Thanks man, I was really wondering why the images didn't work.
Awesome hack BTW ;)

MoonSlasher 10-31-2002 06:37 PM

Hey Zajako, thanks for the hack.

Lechuong 08-28-2003 04:22 AM

i am hacking RPG ,but myfile showthread.php in error
can U give me ? thz thz
my email: daoquoctruong@yahoo.com


All times are GMT. The time now is 01:23 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.01009 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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