1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Country Flags [Deleted]

Discussion in 'Code Modifications' started by John L., Jun 18, 2012.

  1. John L.

    John L. Well-Known Member

    LP-John submitted a new resource:

    Country Flags (version 1.0) - Easily add country flags to your users profile and messages with small SQL mod.

    Read more about this resource...
     
  2. Adam Howard

    Adam Howard Well-Known Member

    In Step 4, you require people to manually update their database using that query

    Wouldn't it be possible to update this through AdminCP and just run Rebuild User Caches ?

    I'm just trying to understand what you have done in this, that would require a manual database update?!
     
  3. John L.

    John L. Well-Known Member

    The SQL code is used to add the the country fields to the custom user field you created. There is no easy way to mass add field options. So this is a SQL query that inserts it for you. Saves quite a bit of time.
     
  4. Adam Howard

    Adam Howard Well-Known Member

    I see now... Your download doesn't include any modification, only the flag photos.

    huh :confused:

    I like the concept, will have no problem installing this, but do wonder if this could be made easier for those less confident or tech aware (noobs).

    I'm going to play around with this (if you don't mind)
     
  5. John L.

    John L. Well-Known Member

    Well I did put it in the code modification section, not an addon haha. No there is no addon to install or anything like that. Sure, go ahead if you want to.
     
    TheVisitors likes this.
  6. Adam Howard

    Adam Howard Well-Known Member

    You're right. Sorry about my oversight.

    Please do not mistake my inquire or me thinking "out loud" as negative criticism or any sign of disrespect.

    I think you've done a wonderful job at what you have accomplished and I have the highest respect toward anyone who offers a free resources to the community here. :cool:
     
  7. Gopala Subramanium

    Gopala Subramanium Active Member

    Hi, followed the steps exactly but unable to see flag...

    About

    Gender:
    Male​
    Birthday:
    Dec 29, 1977 (Age: 34)​
    Home page:
    Location:
    17D Pkt 3, Mayur Vihar Phase I, Delhi - 91​
    Occupation:
    Techno Freek​
    Country:
    [​IMG] India​

     
  8. John L.

    John L. Well-Known Member

    Make sure that you can access the img paths. Always test the path the code generates. If your default style exists somewhere else then it will not load.
     
  9. Gopala Subramanium

    Gopala Subramanium Active Member

  10. John L.

    John L. Well-Known Member

  11. Gopala Subramanium

    Gopala Subramanium Active Member

    Sorry, it is still not working :(

    In Extra.css changed (what you actually told):
    From:
    Code:
    /* START FLAGS */
    .flag{background:url(@imagePath/xenforo/flags/flags.png) no-repeat;height:11px;width:16px;}
    To:
    Code:
    /* START FLAGS */
    .flag{background:url(https://www.fixmystuff.in/FMS_Forum/styles/default/xenforo/flags/flags.png) no-repeat;height:11px;width:16px;}
    Value Display HTML changed (what you actually wrote):
    From:
    Code:
    <img src="/styles/default/xenforo/clear.png" class="flag flag-{$choice}" alt="{$value}" /> {$value}
    To:
    Code:
    <img src="https://www.fixmystuff.in/FMS_Forum/styles/default/xenforo/clear.png" class="flag flag-{$choice}" alt="{$value}" /> {$value}
     
  12. John L.

    John L. Well-Known Member

    Can you either link me or post a screenshot, not copy and past the HTML into the post.
     
  13. Gopala Subramanium

    Gopala Subramanium Active Member

    Sure...Screenshot attached.
     

    Attached Files:

  14. Gopala Subramanium

    Gopala Subramanium Active Member

  15. John L.

    John L. Well-Known Member

    I unfortunately need to be logged in to view a member profile. Can you change that for a moment so I can see for myself? Also, what browser are you using?
     
  16. Gopala Subramanium

    Gopala Subramanium Active Member

    Sure, i can, but i don't think we have the option to display the member profile page to guests. I'm using Google Chrome.
     
  17. John L.

    John L. Well-Known Member

    I don't see why not. Works perfectly fine for me though.
     
  18. Gopala Subramanium

    Gopala Subramanium Active Member

    :( lemme try again...Thanks for all the help. Cheers.
     
  19. John L.

    John L. Well-Known Member

    I just have to see what you're seeing. So if you can enabled unregistered group to see member profiles that should help.
     
  20. Gopala Subramanium

    Gopala Subramanium Active Member

    Extremely sorry, issue cracked. Absolutely nothing wrong in your code...There was some problem in TMS, it was not applying the modification. I deleted the earlier and created a new template modification and changed the executing order, it worked like a charm. Thanks for all support. Sorry, as i should not have bothered you before checking this at my end.
     

Share This Page