Thread Rating:
  • 3 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Code Modification] 244 Countries Flags with Wiki Links in Postbit
#41
Thx for this !
Reply
#42
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.
Reply
#43
(10-28-2011, 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?
Reply
#44
(02-13-2011, 12:57 AM)pinguy Wrote:
(02-12-2011, 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


Attached Files Thumbnail(s)
   
Reply
#45
(01-31-2012, 10:27 PM)mattias Wrote:
(10-28-2011, 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.
Reply
#46
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.


.zip   Blank PNG.zip (Size: 168 bytes / Downloads: 89)


(02-05-2012, 08:16 PM)saqibmanzoor Wrote:
(02-13-2011, 12:57 AM)pinguy Wrote:
(02-12-2011, 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.
[Image: Jn29h.png]
DONATE TO PINGUY OS or show some love on Flattr.com
Reply
#47
Very Nice, the flags are crisp and clear very very nice thank you alot
Reply
#48
This user has been denied support. This user has been denied support.
Working perfectly on my forum.
Thank you so much Pinguy, i really love your modification. Thumbs Up.
Reply
#49
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
Reply
#50
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??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)