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)

zajako 02-21-2002 10:00 PM

This hack lets your members choose an element (as in rpg elements)
You give them a choice on a list and they can become a Fire (or whatever) elemented person.
Its mainly for RPG boards but im sure you can find many other uses for it :}
It also displays it on there post bit aka sidebar :}
again for an active demonstration goto my forums at
http://www2.fate-fx.com/tf/forums/index.php
and you can check it out. i will be using images to rep the elements I can upgrad it to do that if you would like.

here it is...

this is the link to the 1.0 version, i will attach the 2.0 version on the end of this forum so that people may choose to use the old aswell

Vivi Ornitier 02-22-2002 12:09 PM

Yeah upgrade it for the images and ill use it!

Gamingforce 02-22-2002 02:28 PM

Hi, I added this hack to my board with several modifications however whenever I select a class (in this case), it doesn't change. It still displays the default "none" title. Is anyone else having a similar problem?

zajako 02-22-2002 05:59 PM

pm me the changes you made and I will look at it.

Psychdrone 02-22-2002 07:01 PM

Quote:

Originally posted by Gamingforce
Hi, I added this hack to my board with several modifications however whenever I select a class (in this case), it doesn't change. It still displays the default "none" title. Is anyone else having a similar problem?
Dito

I tryied changing it on your board, and it did not work!

afterlab 02-22-2002 07:29 PM

Such a rockstar, zajako! ;D

zajako 02-22-2002 07:39 PM

lol thx afterlab. I am going to upload 2.0 it should fix those bugs guys:}

2.0 is up guys :}
here is an ex. dont mind my insane resolution. it kinda distorts things. but you can get the basic picture.

Vivi Ornitier 02-22-2002 11:20 PM

VERY VERY nice hack! This is a must for all RPG forums. A must install, very easy too. ALso i found something that anybody who has install Lesane's Awards hack might wanna watch for. If u installed his hack, u wan't be able to find the first step of the hack, well at least for me i couldn't, so follow my steps.

Look for these lines in admin/function.php

eval("\$post[profile] = \"".gettemplate("postbit_profile")."\";");
eval("\$post[search] = \"".gettemplate("postbit_search")."\";");
eval("\$post[buddy] = \"".gettemplate("postbit_buddy")."\";");

And above them add:

The part of the hack that Zakajo specified, I won't put it here or else non-registered people will find it.

Great hack and GREAT work!!

btw: I'm having troubles getting the <br> take out

$eicon = '<br><center><img src="http://www2.fat . . .
My code is $eicon = '<center><img src="http://www2.fat

but it still displays the picture on a new line??

zajako 02-23-2002 02:23 AM

try removing the center tags.
I see you are using my element icons :}
I don't mind
Also if you have any suggestions I will try to impliment them >:}

Vivi Ornitier 02-23-2002 03:32 AM

ya it worked! nice!

Iezugod 04-12-2002 07:24 AM

The element images were Incredibly Small and blury. I created new ones using Paint Shop Pro.

For a preview, check out www.ultimatemetroid.com/forums

my elements are:

http://www.ultimatemetroid.com/forum...ments/fire.gif
Fire

http://www.ultimatemetroid.com/forum...ents/water.gif
Water

http://www.ultimatemetroid.com/forum...ents/light.gif
Light

http://www.ultimatemetroid.com/forum...ents/earth.gif
Earth

http://www.ultimatemetroid.com/forum.../lightning.gif
Lightning

http://www.ultimatemetroid.com/forum...ments/wind.gif
Wind

http://www.ultimatemetroid.com/forum...ments/dark.gif
Dark

http://www.ultimatemetroid.com/forum...ements/ice.gif
The HIDDEN Ice element

and

http://www.ultimatemetroid.com/forum...ents/omega.gif
Omega

I also have the problem, where everytime someone edits their profile, if they don't specify an element, it automatically sets it back to none.

zajako 04-21-2002 07:50 PM

yes this problem is a thing that I will fix in a future update.

AtmosPhere 05-08-2002 09:42 AM

Great hack, i didnt like the idea of images cluttering the postbit though, so i simply changed it to Text instead of images. Hope his was ok ;)

AtmosPhere 05-08-2002 10:46 AM

I unmodified it again, and re-installed the hack, now i am having problems as it always displays "none" on a new line
HELP!

AtmosPhere 05-09-2002 05:19 PM

I really need help
this hack has been installed but its defunct
this should be in the beta release forum man!

zajako 05-17-2002 02:17 PM

contact me by aim the aim name is zajako2

I can take a look and fix it.

zajako 05-26-2002 06:36 AM

ok, i have completed an update finaly...

this time it is using the db. This is a much better version of the hack anyways, all previous problems were fixed and hopefully this will be an easy install

Also please notify me by aim of any and all errors

v2.0.....

err, whoops....
I forgot there already was a 2.0 I should learn to count or at least realize i updated my hack already

owel this is the 3.0 version and the file says 2.0 so make me feel good by pertending the file says 3.0 :P

Christoff 06-08-2002 02:53 PM

So now after reloading the profile page there is the right element selected (the one, that user selected before) or is it still 'none'?

zajako 06-08-2002 06:33 PM

still none however i have fixed that

Open the admin panel and open User option templates>modifyprofile

then find
PHP Code:


<select name="element">
                              
        <
option value="0" selected>None</option>
        <
option value="1" >Light</option>
        <
option value="2" >Water</option>
        <
option value="3" >Wind</option>
        <
option value="4" >Lightning</option>
        <
option value="5" >Earth</option>
        <
option value="6" >Fire</option>
        <
option value="7" >Dark</option>
    
          

        </
select

and replace with

PHP Code:

<select name="element">
                                <
option value="$bbuserinfo[element]selected>Current Element</option>
        <
option value="0" >None</option>
        <
option value="1" >Light</option>
        <
option value="2" >Water</option>
        <
option value="3" >Wind</option>
        <
option value="4" >Lightning</option>
        <
option value="5" >Earth</option>
        <
option value="6" >Fire</option>
        <
option value="7" >Dark</option>
    
          

        </
select

that will fix the problem with the element returning to none.

(note that fix only works for the newest version of the element hack)

Christoff 06-08-2002 09:04 PM

I have downloaded your attachment... you've said that you named the archive wrong... but I think taht it is really ver 2.0 because inside the files are same as in 2.0!

[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 03:51 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.01416 seconds
  • Memory Usage 1,816KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete