MyBB Community Forums

Full Version: [Code Modification] 244 Countries Flags with Wiki Links in Postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Thx for this !
The undisclosed.png idea doesnt work for me, for now I just force people to choose country flag. No big deal, I will work a solution for this, maybe using javascript so there wont be much to change BUT something pointed to the script along with a minor code change.

If I come up with a solution soon, Ill post it.
(2011-10-28, 03:26 AM)Anubis® Wrote: [ -> ]The undisclosed.png idea doesnt work for me, for now I just force people to choose country flag. No big deal, I will work a solution for this, maybe using javascript so there wont be much to change BUT something pointed to the script along with a minor code change.

If I come up with a solution soon, Ill post it.

Did you find a solution yet?
(2011-02-13, 12:57 AM)pinguy Wrote: [ -> ]
(2011-02-12, 05:55 PM)Sammyed Wrote: [ -> ]Wow! This could go also @profile page and memberlist page!

Hats off Pinguy Smile


Edited: I was able to do it in the memberlist page but, I´m having problems at profile page LOL.

What would be the variable there?, I tried $memprofile but I´m able to see it myself, but for the rest of the users it shows X´s

If it is showing the X its because you forgot to remove the X and add the ID number for the fid Smile

Nice , pinguy can you tell me bout these two plugins? what is the name of these two plugins? please check the screen shot. thank you
(2012-01-31, 10:27 PM)mattias Wrote: [ -> ]
(2011-10-28, 03:26 AM)Anubis® Wrote: [ -> ]The undisclosed.png idea doesnt work for me, for now I just force people to choose country flag. No big deal, I will work a solution for this, maybe using javascript so there wont be much to change BUT something pointed to the script along with a minor code change.

If I come up with a solution soon, Ill post it.

Did you find a solution yet?

Sorry life been rather busy. I will work on it some today and let you know later on how it is coming along and if I have a solution yet for you.
Sorry I haven't come back to this thread in awhile. To fix the blank flags showing on the forum, make a copy of undisclosed.png and name it just .png

Or just download the zip file I have added. Remember its only called .png so in linux you will have to have it show hidden files and in windows make sure you have it so it show files extensions.

[attachment=25509]


(2012-02-05, 08:16 PM)saqibmanzoor Wrote: [ -> ]
(2011-02-13, 12:57 AM)pinguy Wrote: [ -> ]
(2011-02-12, 05:55 PM)Sammyed Wrote: [ -> ]Wow! This could go also @profile page and memberlist page!

Hats off Pinguy Smile


Edited: I was able to do it in the memberlist page but, I´m having problems at profile page LOL.

What would be the variable there?, I tried $memprofile but I´m able to see it myself, but for the rest of the users it shows X´s

If it is showing the X its because you forgot to remove the X and add the ID number for the fid Smile

Nice , pinguy can you tell me bout these two plugins? what is the name of these two plugins? please check the screen shot. thank you

Thats just edits to the theme template not plugins.
Very Nice, the flags are crisp and clear very very nice thank you alot
Working perfectly on my forum.
Thank you so much Pinguy, i really love your modification. Thumbs Up.
For all users who have had an error for the broken image when a user has their country as "Undisclosed" I have created a little fix.

REMEMBER TO PUT fidX as your custom fields ID

PLACE THIS IN YOUR POST_BIT INSTEAD

<?php
$flag = array("Undisclosed");
if(!in_array($mybb->post['fidX'],$flag)) { 
echo '<img src="images/flags/' . $post['fid4'] . '.png"  ALIGN=ABSMIDDLE></a>';
}
?>

then run this query on your forum's db

UPDATE mybb_userfields SET fidX='Undisclosed' WHERE fidX IS NULL

I have removed the wikipedia link as it is a little buggy (For me) - Sorry if my code is not the best, I'm not very good with PHP at the moment but I do try my best Smile

I hope I have helped some users Smile
i am having problem mine doesnt show even though i placed the code in postbit_classic and as well as i upload the images to root/images where do i have to upload the text file??
Pages: 1 2 3 4 5 6