Announcement

Collapse
No announcement yet.

[RELEASE v2.0.x] Country Flag Hack v2.0

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

  • #46
    hello?

    i just need to fix the scroll bar to choose the flags now. AJR there?

    Comment


    • #47
      THANK YOU!!!!!!!!!!!!!!!!!!!

      i want to thank AJR & webhost for all thier help, it worked after i installed 1.0 and the problem was with the v2.0 tables. THANKS SO MUCH!!!!!!!!!!!!!!!!!!!!! can u help me with the star signs :P

      Comment


      • #48
        I have added a new country to the "modifyprofile_country" template, it shows up ok as a user changing profile and for a new user, but is missing from the admin control panel as an admin changing a user or adding a user.

        Have I done something wrong?

        Update:

        It seems the same issue that requires the template to be the default -1 also stops any changes made by using the control panel "edit" being shown afterwards in the admin control panel.

        I had to modify the -1 template in phpmyadmin and then "revert to original" to get it to show up.

        This kinda defeats the purpose of having it in a template
        Last edited by Delhaze; Sat 22nd Sep '01, 2:44pm.

        Comment


        • #49
          Delhaze... make your changes to the 'modifyprofile_country' template, then execute the attached file. This file will:

          - Verify that you have a modified template for 'modifyprofile_country'
          - Once verified, it will then delete the original 'modifyprofile_country' template
          - Finally it will change the modified template to an original template.

          I programmed in the verification because if you DIDN'T modify the 'modifyprofile_country' template, it would delete the original and you'd be left with no template and no country dropdown list! I've checked template_change.php numerous times to make sure it works!
          `,,`,,`
          AJ
          AJ's VPinMAME Table Downloads
          Visual Pinball Forums
          `,,`,,`

          Comment


          • #50
            Originally posted by AJR
            Delhaze... make your changes to the 'modifyprofile_country' template, then execute the attached file. This file will:

            - Verify that you have a modified template for 'modifyprofile_country'
            - Once verified, it will then delete the original 'modifyprofile_country' template
            - Finally it will change the modified template to an original template.

            I programmed in the verification because if you DIDN'T modify the 'modifyprofile_country' template, it would delete the original and you'd be left with no template and no country dropdown list! I've checked template_change.php numerous times to make sure it works!
            This wouldn't work for me, my template set id is different so the verification fails.

            Comment


            • #51
              Thanks ! COOL Hack ! I will try it tonight !

              Comment


              • #52
                In the Install instructions it states the below were it shows up twice.

                I can only find it once in my user.php, can anyone help please.

                Lost!

                Brian

                5 - Open admin/user.php

                Find the FIRST line of this code (this shows up 2 times in user.cp):
                makeinputcode("Birthday<br>(Format yyyy-mm-dd)","birthday");

                Comment


                • #53
                  Realist,

                  Simply paste it after the first time you see it. It is true that the exact syntax of the code appears only once in the script. What the author was implying is that there is a second line in the script that looks very familiar to the first, and was trying to avoid confusion

                  And to the author, GREAT WORK! My members are having a lot of fun with this hack
                  Professional Slacker

                  Comment


                  • #54
                    Originally posted by Trillian
                    Realist,

                    Simply paste it after the first time you see it. It is true that the exact syntax of the code appears only once in the script. What the author was implying is that there is a second line in the script that looks very familiar to the first, and was trying to avoid confusion

                    And to the author, GREAT WORK! My members are having a lot of fun with this hack
                    I dont thing thats correct, the second line that is similar also needs code to be added below it. Read the first page of the thread and it should be clearer.

                    Comment


                    • #55
                      Okay, can somebody tell me what I did wrong...I wanted the large flags (provided by webhost) so I downloaded all the files unzipped them into the flags folder (at the same time erasing the original flags)...but...all the different pages are still trying to find the old image and saying 'not found'? Can anybody help?

                      James

                      Comment


                      • #56
                        Hi,

                        The hack has been working great, but I thought you should know there's an error in your instructions. The flag for Great Britain, "Great Britain.gif", is referred to as "Great Britan.gif" (without the "I") in your instructions. You might want to change that. The flag obviously won't display without the change.

                        Thanks!
                        Last edited by aldamon; Tue 16th Oct '01, 12:19pm.

                        Comment


                        • #57
                          Showing flag in memberlist

                          Hi there,

                          here's what I did to display the flag in memberlist:

                          Open memberlist.php and find

                          PHP Code:
                          if ($userinfo[receivepm]) {
                                eval(
                          "\$userinfo[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
                              } else {
                                
                          $userinfo[pmlink] = "&nbsp;";
                              } 
                          Just below it add

                          PHP Code:
                          // Country Hack
                          if (!$userinfo[country]) {
                            
                          $flag "&nbsp;";
                          } else {
                            
                          $Country=$post[country];
                            
                          $Countryalt str_replace("%20"," ",$Country);
                            
                          $flag "<img src=\"images/flags/$Country.gif\" alt=\"$Countryalt\" border=\"0\">";
                          }
                          // Country Hack End 
                          Now you need to modify memberlist and memberlistbit template.

                          In the template memberlist you need to increase the colspan of the td tag to 7:

                          PHP Code:
                          <td bgcolor="{ categorybackcolor }" colspan="7"><normalfont color="{ categoryfontcolor }"><b>$bbtitle Members List</b></normalfont></td
                          After you done that, insert

                          PHP Code:
                          <td bgcolor="{ tableheadbgcolor }" align="center"><smallfont color="{ tableheadtextcolor }"><b>Country Flag</b></smallfont></td
                          wherever you like. Be sure the remember where it was since you need to insert it at the same place in memberlistbit. E.g. if you add it after Email you need to put the following

                          PHP Code:
                          <td bgcolor="{ firstaltcolor }">$flag</td
                          just after

                          PHP Code:
                          <td bgcolor=" { secondaltcolor } ">$userinfo[useremail]</td
                          Please omit the spaces around the {} brackets. You may need to change the order of first- and secondaltcolor to get alternating colors.

                          Alternatively, you could leave memberlist alone and insert only $userinfo[country]. This will display the countries name.
                          Last edited by orca; Mon 29th Oct '01, 2:46am.
                          Ueli

                          Comment


                          • #58
                            AJR, Your that man! I got it running, and it works Perfect!! thnx m8! Keep the good hacks comming

                            Comment


                            • #59
                              Hi... I got the hack up and running. I love it! The problem? This guy tried to help with another, replaced my '.php' with the originals and now I can't seem to get the drop down box. I tried replacing all and basically starting over. The people who had flags still have them. I only see a section where the drop down box should be. Any suggestions? I love this hack!
                              Are We Fighting?
                              Am I Winning?

                              Comment


                              • #60
                                I Figured It Out All By Myself! *pats own back*

                                Yay! It works! I don't know what I did, but I got it working! It looks great. Thanks AJR!

                                And thanks to Orca for the memberslist add on. It works like a charm!

                                On to tackle my next hack.
                                Are We Fighting?
                                Am I Winning?

                                Comment

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