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)
-   -   Simple Zodiac Hack (https://vborg.vbsupport.ru/showthread.php?t=37938)

HyperS 04-29-2002 01:21 PM

This is a great hack Slynderdale. Congrats!

I want to release some hacks very soon. I have some good ideas so I think people will like them.

I was watching at that screenshot of your profile and I was wondering how did you add that picture at the top of the profile. Did you make it as a custom field and made people just enter the url or did you use something better?

Slynderdale 04-29-2002 04:02 PM

Quote:

Originally posted by HyperS
This is a great hack Slynderdale. Congrats!

I want to release some hacks very soon. I have some good ideas so I think people will like them.

I was watching at that screenshot of your profile and I was wondering how did you add that picture at the top of the profile. Did you make it as a custom field and made people just enter the url or did you use something better?

Something better :)
Its actually a picture hack i made, its almost done.
More info here:
https://vborg.vbsupport.ru/showthrea...=&pagenumber=1

212rikanmofo 04-30-2002 01:01 PM

you said this hack is for vb 2.2.5?

in your instructions it stated to find this line in my members.php

Code:

// Set birthday fields right here!
    if ($userinfo[birthday] == '0000-00-00') {
        $birthday = "N/A";
    } else {
        $bday = explode("-",$userinfo[birthday]);
        if (date("Y")>$bday[0] and $bday[0]>1901 && $bday[0]!='0000') {
          $birthday = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0]));
        } else {
          // lets send a valid year as some PHP3 don't like year to be 0
          // $calformat2 should not contania year identifier so the year doesn't matter
          $birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993));
        }
        if ($birthday=="") {
          $birthday="$bday[1]-$bday[2]-$bday[0]";
        }
    }
    eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
  }

but in mine members.php its:
Code:

    // Set birthday fields right here!
    if ($bbuserinfo[birthday] == '0000-00-00') {
        $daydefaultselected = "selected";
        $monthdefaultselected = "selected";
    } else {
        $birthday = explode("-",$bbuserinfo[birthday]);
        $dayname = "day".$birthday[2]."selected";
        $$dayname = "selected";
        $monthname = "month".$birthday[1]."selected";
        $$monthname = "selected";
        if (date("Y")>$birthday[0] && $birthday[0]!='0000')
          $year = $birthday[0];
    }
    eval("\$birthday = \"".gettemplate("register_birthday")."\";");
  } else {
                $birthday = '';
        }

so what exactly do i change? im afraid to change it, since it's like almost different... and i have vb 2.2.5

Slynderdale 04-30-2002 01:30 PM

Quote:

Originally posted by 212rikanmofo
you said this hack is for vb 2.2.5?

in your instructions it stated to find this line in my members.php

Code:

// Set birthday fields right here!
    if ($userinfo[birthday] == '0000-00-00') {
        $birthday = "N/A";
    } else {
        $bday = explode("-",$userinfo[birthday]);
        if (date("Y")>$bday[0] and $bday[0]>1901 && $bday[0]!='0000') {
          $birthday = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0]));
        } else {
          // lets send a valid year as some PHP3 don't like year to be 0
          // $calformat2 should not contania year identifier so the year doesn't matter
          $birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993));
        }
        if ($birthday=="") {
          $birthday="$bday[1]-$bday[2]-$bday[0]";
        }
    }
    eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
  }

but in mine members.php its:
Code:

    // Set birthday fields right here!
    if ($bbuserinfo[birthday] == '0000-00-00') {
        $daydefaultselected = "selected";
        $monthdefaultselected = "selected";
    } else {
        $birthday = explode("-",$bbuserinfo[birthday]);
        $dayname = "day".$birthday[2]."selected";
        $$dayname = "selected";
        $monthname = "month".$birthday[1]."selected";
        $$monthname = "selected";
        if (date("Y")>$birthday[0] && $birthday[0]!='0000')
          $year = $birthday[0];
    }
    eval("\$birthday = \"".gettemplate("register_birthday")."\";");
  } else {
                $birthday = '';
        }

so what exactly do i change? im afraid to change it, since it's like almost different... and i have vb 2.2.5

ahhh...i made it on 2.2.3, any ways, i added the instructions below in the text for you to add it also i updated the zip file in the first post

212rikanmofo 04-30-2002 06:50 PM

hrmm thanks for the fix, but its still not working, i tried to enter this into my postbit template and the image doesnt show up:

Code:

<img src="{imagesfolder}/zodiac/$zodiacimage" alt="$zodiacsign" align="absmiddle" border="0">
hrmm help me please...

Slynderdale 05-01-2002 03:38 PM

hmm just add $zodiacimage and tell me what it says

212rikanmofo 05-02-2002 05:14 AM

nothing shows up at all when i add $zodiacimage into my postbit template.... hrmmm

archgimp 05-15-2002 06:05 PM

well for some reason nothing is showing up @ all in our postbit either...

I've tried several permutations and have currently got this:

PHP Code:

Posts$post[posts]<br>
    
Sign: <img src="{imagesfolder}/zodiac/$zodiacsign.gif" alt="$zodiacsignalign="absmiddle" border="0"><br>
                
$zodiacimage
                Chinese Sign
$chinesezodiacsign<BR>
                
Age$userage<BR>
    
$modaw<br

it's giving me a broken image box tho; and in that it says http://correct.path.to/imagedir/zodiac/ .gif

anyone have any ideas?

Much appreciated if anyone has any ideas...

merci beaucoup,

--gimP

Boofo 06-29-2002 02:08 AM

I just installed your zodiac hack and when I went in to view the profile, none of the info was there. I went in and set the year for my birthday and it changed the whole date to December 31, 1969 for some reason and my birthday is on January 31st of another year. In my profile in the user cp it still shows the right date but in the profile view it shows the other date and the zodiac info does not show up. Any ideas on this one? :)

Boofo 06-30-2002 08:12 AM

Slynderdale, are you still supporting this hack? I can't get it to work.


All times are GMT. The time now is 08:31 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.01254 seconds
  • Memory Usage 1,758KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)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
  • (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