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)
-   -   Birthday, User Age and Zodiac Hack v1.2 (Working Version) (https://vborg.vbsupport.ru/showthread.php?t=50482)

Boofo 03-20-2003 05:55 PM

Quote:

Today at 11:25 AM SmartGnome said this in Post #39


Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz

Did you download the update? Is the birthday showing up at all?

Slynderdale, try to have a little more class than that, will you, please? ;)

Boofo 03-20-2003 06:05 PM

Quote:

Today at 11:25 AM SmartGnome said this in Post #39


Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz

Make sure you are in the "start get info" section of member.php with the birthday code. There are 2 birthday codes in that file. The one you should be changing is right above the referrals code. Can you also attach a picture here? It should be working fine. ;)

snyx 03-20-2003 06:52 PM

Quote:

[i]Yesterday at 04:26 PM Boofo [high]Please lick the install button if you find this hack useful.[/high] [/B]
I did, but it tastes like crap. ;)

Boofo 03-20-2003 08:07 PM

Quote:

Today at 02:52 PM snyx said this in Post #43
I did, but it tastes like crap. ;)
LOL I'm sure it does, by now. ;) Thanks!

nnjj.net 03-20-2003 08:19 PM

There are 2 birthday codes in that file. The one you should be changing is right above the referrals code

I found one only
this is my file if you like to check

thanx

Boofo 03-20-2003 08:25 PM

Quote:

Today at 04:19 PM nnjj.net said this in Post #45
There are 2 birthday codes in that file. The one you should be changing is right above the referrals code


I found one only
this is my file if you like to check

thanx

I found your problem. You have it in the wrong part. It needs to be the birthday code right above this in your file that needs to be changed. Revert the other code back. :)

Quote:

// Find out how much personal glamour does this user has
And we are not allowed to post vbulletin files here. Remove the attachment from your last message, please. ;)

Boofo 03-20-2003 08:28 PM

Quote:

Today at 11:25 AM SmartGnome said this in Post #39


Boofo the same with me. Birthday is entered, images are in images/zodiac

No zodiac img, no zodiac names and no age displayed.

Did I forgot something ??? Update a counter fi :D

Greetzz

Make sure you are replacing the correct birthday code. It is the birthday code right above this line that needs to be changed.:

PHP Code:

  // Get referrals
  
if ($usereferrer) {
    if (
$backcolor=="{firstaltcolor}") {
            
$backcolor="{secondaltcolor}";
            
$bgclass "alt2";
        } else {
                
$backcolor="{firstaltcolor}";
            
$bgclass "alt1";
        }
    
$refcount $DB_site->query_first("SELECT count(*) AS count
                                       FROM user
                                       WHERE referrerid = '
$userinfo[userid]'");
    
$referrals $refcount[count];
    eval(
"\$referrals = \"".gettemplate("getinfo_referrals")."\";");
  } else {
        
$referrals '';
    } 


Slynderdale 03-20-2003 08:52 PM

Your not allowed yo post full vbulletin members nnjj.net, copy right issues

amykhar 03-20-2003 10:00 PM

Installed in minutes and worked immediately. Thank you :)

Amy

Boofo 03-20-2003 11:01 PM

You're very welcome, young lady. ;)

nnjj.net 03-21-2003 09:14 AM

thanx alot its working great now and sorry for the file
BTW what if I want to use pictures for the chines zodiac instead of words ?

Boofo 03-21-2003 09:23 AM

Quote:

Today at 05:14 AM nnjj.net said this in Post #51
thanx alot its working great now and sorry for the file
BTW what if I want to use pictures for the chines zodiac instead of words ?

Just make sure you upload the images to the zodiac directory and the names need to be the same as they are in the code (example: Hare.gif). If you come across a good set of images, let me know and I can include them in the file for others to use, too. ;)

You will also need to change:

PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}"><normalfont><b>Chinese Zodiac Sign:</b></normalfont></td>
    <
td bgcolor="{secondaltcolor}"><normalfont>$chineszodiacsign</normalfont></td>
</
tr

to:

PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}"><normalfont><b>Chinese Zodiac Sign:</b></normalfont></td>
    <
td bgcolor="{secondaltcolor}"><normalfont>$chinesezodiacimage</normalfont></td>
</
tr

in the getinfo template.

sabret00the 03-21-2003 10:42 AM

Quote:

Yesterday at 12:25 PM Boofo said this in Post #31
There's already been a gender hack released a while ago. ;)
i know but i'm lazy just thought it would've been nice to have it all integrated into one great hack ;)

SmartGnome 03-21-2003 11:48 AM

Works :banana:

Was in the wrong birthday part [dumb] :laugh: and install is clicked.

Last stupid question:

I'm a noob for VB [just changes from wbb to here], how can I put these into the postbit. I did use the vars, but no show :(

Again thanks for this nice addy Boofo

Greetzz

Boofo 03-21-2003 12:14 PM

Quote:

Today at 06:42 AM sabret00the said this in Post #53
i know but i'm lazy just thought it would've been nice to have it all integrated into one great hack ;)
I've done a few hack installs myself where I wished the very same thing. ;)

Boofo 03-21-2003 12:18 PM

Quote:

Today at 07:48 AM SmartGnome said this in Post #54
Works :banana:

Was in the wrong birthday part [dumb] :laugh: and install is clicked.



Thanks! ;)

Quote:

Last stupid question:
No question is stupid if you don't know the answer. ;)

Quote:

I'm a noob for VB [just changes from wbb to here], how can I put these into the postbit. I did use the vars, but no show :(

Again thanks for this nice addy Boofo

Greetzz
Erwin released an Age in postbit hack a while back just for that. The zodiacs would take some coding in the functions.php but could be done. The reason I never did it is because I didn't want to over-inflate the postbit with alot of the same info that is in the profile. I like to have fresh info in different places so users will take the time to check it all out. ;)

Boofo 03-21-2003 01:51 PM

Quote:

Today at 06:42 AM sabret00the said this in Post #53
i know but i'm lazy just thought it would've been nice to have it all integrated into one great hack ;)
You must really be tired. You completely missed the install button. It's around here somewhere, I think. ;)

NuclioN 03-21-2003 02:05 PM

Quote:

Today at 02:18 PM Boofo said this in Post #56


I like to have fresh info in different places so users will take the time to check it all out. ;)

I wonder if this is happening, most of our members like to have info right before their nose and are unwilling to cross different sections of the forum to harvest it.

I see the postbit as the nervecenter of a forum and there it's all come togehter to make a forum as interactive and rich in personal info as possible, without overloading it. The balance is a challenge, i admit that but in the mean time...it would be a nice addon if this images are displayed in the postbit to. ;)

Boofo 03-21-2003 02:12 PM

Ok, Ok, you talked me into it. I will work on this later today and post it here when I have it finished. ;)

Boofo 03-21-2003 02:42 PM

NuclioN, in the admin/functions.php file, copy the birthday code and the zodiac code (below it) AFTER the following code and put the same variables you are using in the profile where you want them to show up in the postbit. That should do it.

PHP Code:

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


nnjj.net 03-21-2003 04:17 PM

thanx alot I will search for nice pictures and update you about it ;)

Boofo 03-21-2003 04:22 PM

Thanks. Did you code work for you ok, then?

NuclioN 03-21-2003 05:42 PM

Do you mean we should paste all the code in functions.php as it is done in member.php under the code you placed above? I've tried that and it gives a parse error.

Parse error: parse error in /forum/admin/functions.php on line 439

Fatal error: Call to undefined function: getuserinfo() in /forum/admin/sessions.php on line 341

Boofo 03-21-2003 07:57 PM

Ok, for a quick fix so you can use this in the postbit, too, until I can look at it further, use Erwin's Age in Postbit Hack for the birthday part and then copy the zodiac part below it and it will work, I tested it that way here.

NOTE: This wasn't written for the postbit, yet, only for the getinfo where it works fine. I will see what I can do about porting it to work in the postbit for you.

Slynderdale 03-21-2003 08:42 PM

Boofo im not trying to mean or any thing but I fixed all the bugs with the zodiac hack before you released this and also made a few improvments including with the age, the code you have in this hack is 90% of version 1.0 of my old hack with some fixes.

The version 2.0 of my hack was completly rewritten for alot less code and also fixed the bugs in 1.0. I also made it so it doesnt need to replace that chunk of code any more so its compatible with all future versions of vB and made it esier to read.

Also I added template support so you dont have to go in and edit the member.php file and thn reupload it to the server every time you wanna make a change to the way it looks.

I thank you though for wanting to help and fixing up my original code, Im sorry if this sounds mean at all. It wasnt meant to. Also im sorry for any previous posts I made that offended you. I consider you a freind and the last thing I want is for a freind to be mad at me.

SmartGnome 03-21-2003 10:05 PM

Quote:

Yesterday at 08:42 PM NuclioN said this in Post #63
Do you mean we should paste all the code in functions.php as it is done in member.php under the code you placed above? I've tried that and it gives a parse error.

Parse error: parse error in /forum/admin/functions.php on line 439

Fatal error: Call to undefined function: getuserinfo() in /forum/admin/sessions.php on line 341


Boofo, I get the same parse error. Will look to it further tomorrow.

I attache a file with other gifs for the zodiacs. Meko is searching for chinese pics :D

Cu

Boofo 03-21-2003 10:32 PM

Quote:

Today at 06:05 PM SmartGnome said this in Post #66



Boofo, I get the same parse error. Will look to it further tomorrow.

I attache a file with other gifs for the zodiacs. Meko is searching for chinese pics :D

Cu

https://vborg.vbsupport.ru/showthrea...943#post370943 ;)

NuclioN 03-22-2003 08:08 AM

It's working great boofo, tnx :)

Boofo 03-22-2003 08:24 AM

Glad to hear it. ;)

Littlebit 03-22-2003 11:36 PM

Quote:

03-19-03 at 07:26 PM Boofo said this in Post #1 [high]Please lick the install button if you find this hack useful.[/high]
heheh :laugh:

this is a neat idea! Thank you...clicking install :)

Boofo 03-23-2003 12:37 AM

Thank you and enjoy!

By the way, would you mind wiping off the button when you are done licking it. Other users, you know. ;)

Kars10 03-26-2003 04:52 PM

Cool Hack buddy!!
Thanks for sharing with us...

[high]* Kars10 kicks install ;)[/high]

212rikanmofo 04-19-2003 02:50 PM

boofo this isnt workin for me, it shows the age of the person but says nothing for the zodiac and chinese zodiac field... i double checked everything to see if i put your code in the correct place and i did... the user has there full birthdate set, but it doesnt show the zodiac or chinese zodiac, the age shows though... weird, plz help!

Boofo 04-19-2003 05:35 PM

Did you upload the image files for the zodiac signs? Also, make sure the zodiac filenames are capitalized in the first letter after you upload them.

212rikanmofo 04-19-2003 11:27 PM

yup they are capitolized and upload to my images folder, but still nothing shows up for zodian sign or chinese zodiac sign, only the Age shows... :(

Lysithea 04-20-2003 01:41 AM

Hey, I'm pretty new at adding hacks but this one worked very well. Thank you Boofo!

I like the zodiac sign images, but I was wondering if you also had images for the chinese zodiac signs? (i.e. ox, bull, tiger, rabbit, etc...) :)

Boofo 04-20-2003 05:06 AM

You're very welcome. I haven't found a good set of the chinese zodiac images yet. I will post them here when I find a set that looks good. ;)

Boofo 04-20-2003 05:11 AM

Quote:

Yesterday at 06:27 PM 212rikanmofo said this in Post #75
yup they are capitolized and upload to my images folder, but still nothing shows up for zodian sign or chinese zodiac sign, only the Age shows... :(
The images need to be in the images/zodiac folder. Check the code again and make sure you put the code in the right place in the member.php file. That will make a difference.

gmarik 04-20-2003 07:58 AM

Is it working on 2.3.0?

TheComputerGuy 04-20-2003 07:35 PM

Works here, thanks alot!


All times are GMT. The time now is 03:18 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.01375 seconds
  • Memory Usage 1,848KB
  • 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
  • (4)bbcode_php_printable
  • (19)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
  • (40)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