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)
-   -   Astrological Signs (https://vborg.vbsupport.ru/showthread.php?t=12660)

webhost 07-01-2001 09:14 PM

Tubedogg,
I had a member on the board that was a virgo, sign not showing up. I went to my mysql database in went to his sign field and typed in virgo for his sign and went back and looked at his profile and it is now showing up, so somehow the virgo sign info, is not getting sent to the database.

Joey

webhost 07-02-2001 09:08 AM

Can you help me? I am still working on this zodaic hack from hell thing, now having trouble with the register.php file which is keeping people from registering on my board. here is the problem area.
1- getbirthdays();
2- }
3- }
4- else
5- $birthday = 0;
6- }

Problem is on line number 4 above getting parse error on this line

Joey

ztsky 07-02-2001 12:13 PM

tubedogg:
I download the neweset hack zip and done everything,but
Parse error: parse error in /home/realweb/public_html/forums/member.php on line 423

why?
I think it's a bug here.

webhost 07-02-2001 12:35 PM

ztsky



use this in your member.php instead had the same problem this week end. Register.php fix at the bottom. Only Bug I still have is virgo sign not showing up. I am working on that.
=========member.php--------------

// Birthday Stuff...
if ($calbirthday == 1) {
if ( ($day == -1 and $month != -1) or ($day !=-1 and $month == -1) ) {
eval("standarderror(\"".gettemplate("error_birthda yfield")."\");");
exit;
}
elseif (($day == -1) and ($month==-1)) {$birthday = 0;}
else {
if (($year>1901) and ($year<date("Y"))) {
$birthday = $year . "-" . $month . "-" . $day;
if (($day > 20 and $month == 03) xor ($day < 20 and $month == 04)) { $sign = "aries"; }
elseif (($day > 19 and $month == 04) xor ($day < 21 and $month == 05)) { $sign = "taurus"; }
elseif (($day > 20 and $month == 05) xor ($day < 22 and $month == 06)) { $sign = "gemini"; }
elseif (($day > 21 and $month == 06) xor ($day < 23 and $month == 07)) { $sign = "cancer"; }
elseif (($day > 22 and $month == 07) xor ($day < 23 and $month == 08)) { $sign = "leo"; }
elseif (($day > 22 and $month == 08) xor ($day < 23 and $month == 09)) { $sign = "virgo"; }
elseif (($day > 22 and $month == 09) xor ($day < 24 and $month == 10)) { $sign = "libra"; }
elseif (($day > 23 and $month == 10) xor ($day < 22 and $month == 11)) { $sign = "scorpio"; }
elseif (($day > 21 and $month == 11) xor ($day < 22 and $month == 12)) { $sign = "saggittarius"; }
elseif (($day > 21 and $month == 12) xor ($day < 20 and $month == 01)) { $sign = "capricorn"; }
elseif (($day > 19 and $month == 01) xor ($day < 19 and $month == 02)) { $sign = "aquarius"; }
elseif (($day > 18 and $month == 02) xor ($day < 20 and $month == 03)) { $sign = "pisces"; }
else { $sign == ""; }
}
else {
$birthday = "0000" . "-" . $month . "-" . $day;
if (($day > 20 and $month == 03) xor ($day < 20 and $month == 04)) { $sign = "aries"; }
elesif (($day > 19 and $month == 04) xor ($day < 21 and $month == 05)) { $sign = "taurus"; }
elseif (($day > 20 and $month == 05) xor ($day < 22 and $month == 06)) { $sign = "gemini"; }
elseif (($day > 21 and $month == 06) xor ($day < 23 and $month == 07)) { $sign = "cancer"; }
elseif (($day > 22 and $month == 07) xor ($day < 23 and $month == 08)) { $sign = "leo"; }
elseif (($day > 22 and $month == 08) xor ($day < 23 and $month == 09)) { $sign = "virgo"; }
elseif (($day > 22 and $month == 09) xor ($day < 24 and $month == 10)) { $sign = "libra"; }
elseif (($day > 23 and $month == 10) xor ($day < 22 and $month == 11)) { $sign = "scorpio"; }
elseif (($day > 21 and $month == 11) xor ($day < 22 and $month == 12)) { $sign = "saggittarius"; }
elseif (($day > 21 and $month == 12) xor ($day < 20 and $month == 01)) { $sign = "capricorn"; }
elseif (($day > 19 and $month == 01) xor ($day < 19 and $month == 02)) { $sign = "aquarius"; }
elseif (($day > 18 and $month == 02) xor ($day < 20 and $month == 03)) { $sign = "pisces"; }
else { $sign == ""; }
}
}
}
else {$birthday = 0;}

-------register.php---------------

// Birthday Stuff...
if ($calbirthday == 1) {
if ( ($day == -1 and $month != -1) or ($day !=-1 and $month == -1) ) {
eval("standarderror(\"".gettemplate("error_birthda yfield")."\");");
exit;
}
elseif (($day == -1) and ($month==-1)) {$birthday = 0;}
else {
if (($year>1901) and ($year<date("Y"))) {
$birthday = $year . "-" . $month . "-" . $day;
if (($day > 20 and $month == 03) xor ($day < 20 and $month == 04)) { $sign = "aries"; }
elseif (($day > 19 and $month == 04) xor ($day < 21 and $month == 05)) { $sign = "taurus"; }
elseif (($day > 20 and $month == 05) xor ($day < 22 and $month == 06)) { $sign = "gemini"; }
elseif (($day > 21 and $month == 06) xor ($day < 23 and $month == 07)) { $sign = "cancer"; }
elseif (($day > 22 and $month == 07) xor ($day < 23 and $month == 08)) { $sign = "leo"; }
elseif (($day > 22 and $month == 08) xor ($day < 23 and $month == 09)) { $sign = "virgo"; }
elseif (($day > 22 and $month == 09) xor ($day < 24 and $month == 10)) { $sign = "libra"; }
elseif (($day > 23 and $month == 10) xor ($day < 22 and $month == 11)) { $sign = "scorpio"; }
elseif (($day > 21 and $month == 11) xor ($day < 22 and $month == 12)) { $sign = "saggittarius"; }
elseif (($day > 21 and $month == 12) xor ($day < 20 and $month == 01)) { $sign = "capricorn"; }
elseif (($day > 19 and $month == 01) xor ($day < 19 and $month == 02)) { $sign = "aquarius"; }
elseif (($day > 18 and $month == 02) xor ($day < 20 and $month == 03)) { $sign = "pisces"; }
else { $sign == ""; }
}
else {
$birthday = "0000" . "-" . $month . "-" . $day;
if (($day > 20 and $month == 03) xor ($day < 20 and $month == 04)) { $sign = "aries"; }
elseif (($day > 19 and $month == 04) xor ($day < 21 and $month == 05)) { $sign = "taurus"; }
elseif (($day > 20 and $month == 05) xor ($day < 22 and $month == 06)) { $sign = "gemini"; }
elseif (($day > 21 and $month == 06) xor ($day < 23 and $month == 07)) { $sign = "cancer"; }
elseif (($day > 22 and $month == 07) xor ($day < 23 and $month == 08)) { $sign = "leo"; }
elseif (($day > 22 and $month == 08) xor ($day < 23 and $month == 09)) { $sign = "virgo"; }
elseif (($day > 22 and $month == 09) xor ($day < 24 and $month == 10)) { $sign = "libra"; }
elseif (($day > 23 and $month == 10) xor ($day < 22 and $month == 11)) { $sign = "scorpio"; }
elseif (($day > 21 and $month == 11) xor ($day < 22 and $month == 12)) { $sign = "saggittarius"; }
elseif (($day > 21 and $month == 12) xor ($day < 20 and $month == 01)) { $sign = "capricorn"; }
elseif (($day > 19 and $month == 01) xor ($day < 19 and $month == 02)) { $sign = "aquarius"; }
elseif (($day > 18 and $month == 02) xor ($day < 20 and $month == 03)) { $sign = "pisces"; }
else { $sign == ""; }
}
}
}
else {$birthday = 0;}


if ($showbirthdays) {

Joey

snyx 07-06-2001 03:56 AM

what versions are you all using this on?

webhost 07-07-2001 08:47 PM

vb2.0.1

snyx 07-07-2001 09:06 PM

and it works for you?

webhost 07-07-2001 09:15 PM

Only probelm I have is the virgo gif will not show up but I am working on that now. But if you look back a couple of posts you will see that I had to change some script to make it work.

Joey

snyx 07-07-2001 10:45 PM

I see, I see, plus I reg. and my picses sign didnt come up, check, we had the same problem running it on tha beta.

webhost 07-07-2001 10:51 PM

I looked when you registered on my board and you did have a
picses sign by your birthday
Joey

snyx 07-08-2001 01:13 AM

LOL! Your right it works, but ya see, THIS is the pisces sign http://forums.realwebhost.net/images/sign/cancer.gif

snyx 07-08-2001 01:14 AM

plus inform me when ya get that virgo sign working

webhost 07-08-2001 01:26 AM

Corrected below

Joey

webhost 07-08-2001 01:28 AM

Did you get the rest of the hack working? I was able to go into my database table and insert virgo and it showed up on the board. I 'll let you know when I have it working.

Joey

webhost 07-08-2001 02:37 AM

Snyx go here and look at the symbol for Pisces. I believe it matchs what I have.
Look on the left side torwards the top. Here is the link.
http://www.astrology.com/

Joey

snyx 07-08-2001 04:49 AM

I stand corrected. I made the icons too, I really should know. LOL, anyways did you ever get the hack 100% working? (sorry if im slow)

webhost 07-14-2001 03:01 PM

This is the latest I have done with this hack, with the help of tubedogg I have all working except the virgo sign, it still will not show up. I am using vb 2.0.1

Joey

daydreamer 07-15-2001 08:39 PM

Hello all,

I am getting:

Parse error: parse error in /home2/kicks/gardenkicks-www/member.php on line 426

Any ideas? Thanks

webhost 07-15-2001 08:42 PM

Which file did you use? If you used mind the one right above your post send me your member.php file and I will look at it. If you did not download my zip and compare the changes I made to the ones you made.

daydreamer 07-15-2001 09:00 PM

I used the one just above...

How do I send it to you?

Thanks

webhost 07-15-2001 09:13 PM

JOEYMOSES1@HOME.COM

webhost 08-02-2001 01:29 PM

tubedogg please help

Will you probably know by now how everything has chnaged with the new
version of vb 2.0.3, now alot of stuff got moved from the showthread.php file to the functions.php file.
Your hack still works in the member profile section but does not in the showthread page, it does not show up at all. Can you tell me what I need to do to fix this.

Joey:(

Tarion 08-07-2001 10:22 AM

only in the Threadpage, not in the Memberlist. V2.0.3 has to much changes and so the Hack dosen't work. I've must change many things in function.php, all my hard work to get the sings in member.php aren't worked.

webhost 08-27-2001 09:55 AM

tubedogg

Did you give up trying to get this to work?

Matt*is*thick 09-03-2001 02:54 AM

Tubedogg

Sorry to bother yer! Just wondered are you planning on doing an updated version of this hack as I would LOVE to install it on my board :)

Alien 09-20-2001 01:06 AM

Anyone have this working on 2.0.3, and if so what has changed so it will go in without a problem? The last 2 pages of this thread don't persuade me to continue without asking...

Thanks. :)

cyrus 09-20-2001 08:25 PM

Im using 2.0.3 too, everything was fine but in showthread.php

seems stuff has changed since the hack was made

any one got a FIX for this to make this hack work ??? I LOVE THIS !!!!!!!!

thanks

webhost 09-20-2001 08:54 PM

Man I have tried moving the stuff to functions.php, tried putting information in both files including showthread.php and just put in showthread.php by itself . I have beat my head against this thing for to long, maybe Tubedogg,Firefly, or Madman can come with a fix. I tried all kinds of stuff but not the right one.

AJR 09-20-2001 10:47 PM

I am using vBulletin 2.0.3 with vBPortal 2.0.1 and a list of other hacks, and I have the Astrological hack working fine (except for the Virgo?!? sign not showing for the dates).

Make sure if you have other hacks installed like the Stars, Country Flag, vBPortal, etc that you verify the $DB_site->query lines! I changed nothing in showthread.php, only admin/functions.php. Here is what I had to edit:

Files:
member.php
register.php
admin/functions.php
admin/misc.php

Templates:
postbit
added postbit_sign

Ran this query in phpMyAdmin:
ALTER TABLE user ADD sign VARCHAR(25) not null


In the member.php and register.php files, I had to add the {} brackets to these lines:
if (($year>1901) and ($year<date("Y"))) {
.....
} else {
....
}

Otherwise the script would get a parse error.

After I installed everything above, I ran the 'Update Counters' for 'Update Users' in the Admin CP. I then went into phpMyAdmin and did a replacement:

UPDATE user SET sign = "virgo" WHERE birthday > 0000-00-00 AND sign = ""

With the exception of a few stragglers, most of the user records where the user entered their birthday but the sign field is still empty at this point (after updating counters) means they should be a Virgo!

Other than the above, that was it! You can see my board at http://www.vpforums.com

webhost 09-20-2001 10:53 PM

What did you put in functions.php and where?

AJR 09-20-2001 11:39 PM

Here's the code I replaced. There was one line I couldn't place that was supposed to go in admin/functions:

$templatesused .= ",postbit_sign";

But it seems to work fine without it!

tkhjosh 09-21-2001 05:03 AM

Parse error: parse error in /home/httpd/www/forums/member.php on line 438

AJR 09-21-2001 05:08 AM

Make sure the // Birthday Stuff looks like this:

PHP Code:

  // Birthday Stuff... 
  
if ($calbirthday == 1) { 
    if ( (
$day == -and $month != -1) or ($day !=-and $month == -1) ) { 
        eval(
"standarderror(\"".gettemplate("error_birthdayfield")."\");"); 
        exit; 
    } elseif ((
$day == -1) and ($month==-1)) {
        
$birthday 0;
    } else { 
        if ((
$year>1901) and ($year<date("Y"))) { 
            
$birthday $year "-" $month "-" $day
            if ((
$day 20 and $month == 03) xor ($day 20 and $month == 04)) { $sign "aries"; } 
            elseif ((
$day 19 and $month == 04) xor ($day 21 and $month == 05)) { $sign "taurus"; } 
            elseif ((
$day 20 and $month == 05) xor ($day 22 and $month == 06)) { $sign "gemini"; } 
            elseif ((
$day 21 and $month == 06) xor ($day 23 and $month == 07)) { $sign "cancer"; } 
            elseif ((
$day 22 and $month == 07) xor ($day 23 and $month == 08)) { $sign "leo"; } 
            elseif ((
$day 22 and $month == 08) xor ($day 23 and $month == 09)) { $sign "virgo"; } 
            elseif ((
$day 22 and $month == 09) xor ($day 24 and $month == 10)) { $sign "libra"; } 
            elseif ((
$day 23 and $month == 10) xor ($day 22 and $month == 11)) { $sign "scorpio"; } 
            elseif ((
$day 21 and $month == 11) xor ($day 22 and $month == 12)) { $sign "saggittarius"; } 
            elseif ((
$day 21 and $month == 12) xor ($day 20 and $month == 01)) { $sign "capricorn"; } 
            elseif ((
$day 19 and $month == 01) xor ($day 19 and $month == 02)) { $sign "aquarius"; } 
            elseif ((
$day 18 and $month == 02) xor ($day 20 and $month == 03)) { $sign "pisces"; } 
            else { 
$sign == ""; } 
        } else { 
            
$birthday "0000" "-" $month "-" $day
            if ((
$day 19 and $month == 04) xor ($day 21 and $month == 05)) { $sign "taurus"; } 
            elseif ((
$day 20 and $month == 05) xor ($day 22 and $month == 06)) { $sign "gemini"; } 
            elseif ((
$day 21 and $month == 06) xor ($day 23 and $month == 07)) { $sign "cancer"; } 
            elseif ((
$day 22 and $month == 07) xor ($day 23 and $month == 08)) { $sign "leo"; } 
            elseif ((
$day 22 and $month == 08) xor ($day 23 and $month == 09)) { $sign "virgo"; } 
            elseif ((
$day 22 and $month == 09) xor ($day 24 and $month == 10)) { $sign "libra"; } 
            elseif ((
$day 23 and $month == 10) xor ($day 22 and $month == 11)) { $sign "scorpio"; } 
            elseif ((
$day 21 and $month == 11) xor ($day 22 and $month == 12)) { $sign "saggittarius"; } 
            elseif ((
$day 21 and $month == 12) xor ($day 20 and $month == 01)) { $sign "capricorn"; } 
            elseif ((
$day 19 and $month == 01) xor ($day 19 and $month == 02)) { $sign "aquarius"; } 
            elseif ((
$day 18 and $month == 02) xor ($day 20 and $month == 03)) { $sign "pisces"; } 
            else { 
$sign == ""; } 
        } 
    } 
  } else {
    
$birthday 0;
  } 

After the last } the script should continue with the following line:
if ($verifyemail and $email!=$bbuserinfo['email'] and $bbuserinfo['usergroupid']==2) {

tkhjosh 09-21-2001 05:15 AM

yup i got that right

tkhjosh 09-21-2001 05:16 AM

Parse error: parse error in /home/tcclan/www/forums/member.php on line 1213

now i get this

TheComputerGuy 11-25-2001 03:14 PM

Anyword or any ideas on some of the changes for 2.2.1 cause that would be so awesome if it would work...


All times are GMT. The time now is 04:17 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.01366 seconds
  • Memory Usage 1,880KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)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