Announcement

Collapse
No announcement yet.

[RELEASE v2] Astrological Signs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #61
    [email protected]
    Real Web Host

    Comment


    • #62
      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
      Real Web Host

      Comment


      • #63
        Signs on V2.0.3 it works but...

        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.
        Der DSA Limbus (My Fantasy Roleplaying Site (only in German)
        Die DSA Ring Foren

        Comment


        • #64
          tubedogg


          Did you give up trying to get this to work?
          Real Web Host

          Comment


          • #65
            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

            Comment


            • #66
              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.
              -Jason / WTF.com

              "I think I've been quite clear that the new style will be in vB4." - Allen Lin / February 16, 2012

              Comment


              • #67
                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

                Comment


                • #68
                  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.
                  Real Web Host

                  Comment


                  • #69
                    I have the Astrological Sign hack working...

                    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
                    `,,`,,`
                    AJ
                    AJ's VPinMAME Table Downloads
                    Visual Pinball Forums
                    `,,`,,`

                    Comment


                    • #70
                      What did you put in functions.php and where?
                      Real Web Host

                      Comment


                      • #71
                        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!
                        `,,`,,`
                        AJ
                        AJ's VPinMAME Table Downloads
                        Visual Pinball Forums
                        `,,`,,`

                        Comment


                        • #72
                          =(

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

                          Comment


                          • #73
                            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) {
                            `,,`,,`
                            AJ
                            AJ's VPinMAME Table Downloads
                            Visual Pinball Forums
                            `,,`,,`

                            Comment


                            • #74
                              yeah

                              yup i got that right

                              Comment


                              • #75
                                oh my gosh

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

                                now i get this

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X