![]() |
Quote:
I spent about an hour on this stupid Hack and it doesn't seem to be working at all. What have I done wrong? AO |
anyone can tell whether it will work on vb 3.6.4?
|
Quote:
AO |
Quote:
This should work on any version of vB you have. It's just a template modification. For those having trouble with it, make sure your adding the modifications to the right template. Some of you are using postbit and some of you are using postbit_legacy. If you do the modification to one template, and your forum isn't using that layout, then, naturally, it's not going to show up. |
Nice and simple. Very good list of flags as well.
<<Installed>> |
Cool.
BTW i saw many sites and forums in which after registering countryflag is shown automatic ally.Will this mod work that way or not? and registered users will need to select flag manually??? |
Ok 3.68 here and working fine, how do you add flags?
Edit: nm figured it out. |
Note:
- for different templates works: 1.Find: <div class="info">$vbphrase[posts]: $post[posts]</div> BELOW, ADD: <!-- / flags start --> <div> <if condition="$post[fieldX]"><img src="images/flags/$post[fieldX].gif"></if> </div> <!-- / flags end --> 2.Find: <div> $vbphrase[posts]: $post[posts] </div> BELOW, ADD: <!-- / flags start --> <div> <if condition="$post[fieldX]"><img src="images/flags/$post[fieldX].gif"></if> </div> <!-- / flags end --> |
Mine stopped working since I've installed another hack... why since this hack is very simple ???
|
I do not see any images? It's probably something stupid as other seem to feel it's an easy install. Images are upload into their appropriate directory, paths are good, postbit legacy code entered etc etc and still no images after 2 hours of trying to see what I am doing wrong.
|
thanks and installed............good work
|
Quote:
No suggestions? I'm using 3.6.8 |
Hi, I am using your flag program on my global hayabusa site www.BusaNation.com board, it looks great, however, can you take it a step further? Can you take on creating a program that would now TALLEY how many Canadians, americains, UK, etc.... and creat a statistics so that users could see how many flags are represented on my site? asd a user clicks thier country of origin flag, a program would then tally it and show in flag icons so i can place it on my portal home page a visual of the flags and how many users i.e
USA=1000 Canada 55 UK= 2500 spain etc..... just shows the flag icon with a total? from the most to the least in that order, i think it would be awesome and i want to add this to my site? Duane tybal71@hotmail.com www.BusaNation.com:up: |
Still no images showing up. Anyone have any suggestions?
|
Went on great, thank you.
This is cool now that my site has gone kind of international. :D |
does this shows flags automatically of all users by detecting registration ip or otherway or users have to edit profile for something to display flag?
|
It creates a profile field that the user needs to fill in.
But its a drop down so pretty easy. |
What would cause the images to not show?
Here's what I posted in the postbit - legacy <!-- / flags start --> <div> <if condition="$post[field8]"><img src="images/flags/$post[field8].gif"></if> <if condition="$post[field9]"><img src="images/region/$post[field9].gif"></if> </div> My profile fields are 8 and 9 I uploaded the images to images/flags and images/region Any thoughts? I've been trying to figure this out for some time and this is the first addon I've had a problem with. |
Any one know how to get a hold of the CODER? , I cant pM him and he is not taking emails? I want to talk to him about his flag program to do something for my site.
|
Installed this hack but nothing happens? I suppose this hack shows a flag on postbit? Can anyone help me?
Look here.. http://www.animeheist.com/forum/show...61&postcount=1 |
Quote:
Quote:
|
iogames, what do you mean by profile field problem? care to explain a little bit more? Thanks
|
This mod shows up in the memberlist. Except it shows up as Canada USA , etc.
Is there any way instead of the writing it shows the flags instead |
Reserved
thanks |
I have the same question please...:confused::confused:
Quote:
|
If you go to Admin->User Profile Fields->Add New User Profile->Single Selection Menu>
In the box where it says "Options Enter the options that the user can choose from. Separate each option with a new-line (carriage return)." That is where you put in all the flags list |
Ok, now I understand it
Thanks;);) |
I tried installing it but it isn't showing? What could be the problem?
|
Quote:
postbit (Like on this forum, Avatar and User Info is on top of each post) postbit_legacy (Avatar and User Info is on the side) Quote:
It should be showing up, unless your forum isn't using postbit_legacy. Are the images not showing at all, or are they broken images? If they're broken, then you might need to add the flags folders to your skin's images folder, and not the one in your forum root. |
Beautiful hack that worked perfectly for what I need. I sort of rewrote to meet my needs. I run a local forum so I don't need country flags but more of an area identifier.
I was wondering however, how would you make it a conditional on if the user wants it displayed in their postbit? The field is already something I had in the profile, but now I just added images to go along with the field to display on the postbit. I have some users who don't want it displayed and I am at a loss on how to accomplish that with your hack. Thanks so much!!!!! Ash |
The only way I can think of to do that would be to make the field optional. Then it will only show if the user has filled out the field.
|
I thought of that, but I need this field to show in the profiles. It seems redundant to have them fill the information out twice.
I tried to look at the coding on the birthday/age field. There is an option on what of that to display or hide. So I thought I could possibly do it with this as well. I am not a coder, so I am sorry if this seems a bit dense. lol |
What I meant was, you can still change the existing fields you already have to an optional setting, and that way users who don't want it showing can, er, "unfill" the option in their User CP.
Then you can add an if conditional like if condition="$post[fieldX]" around the code, where X is the field ID. That way, if they fill it out, it shows, if they don't it doesn't. |
Yes that's what I thought you meant, however they *have* to have this filled in. I just want to give them the option to show it in their postbit or not.
|
Quote:
|
Quote:
Create a new profile field with the question of whether they would like the flags to show in their profile. Make the field a multiple-selection check box, but only create one option: "Yes". Put in the instructions to leave it blank if they don't want it to show. Make sure to make it mandatory and to put it on the same page as the flag options, show during registration, etc. Then wrap your flag code with <div> tags and put an IF condition around the div. Sort of like so: Code:
<if condition="$post['fieldX']"> Hrm, maybe don't make it mandatory. It will HAVE to filled in then. Just make sure to put it on the same page. |
I've just been informed by one of my members that there's one incorrect flag in your update, Digital Jedi (and also presumably in the original hack too).
Georgia (the country) should be Attachment 75279. It changed in 2004, here's the Wikipedia article for verification. |
Thanks, R-D. I updated the zip in my post
|
Hello,
first: thank you! Second, i have small questions: 1. its possible to make the flags "hover", do dislpay the flag-name if users take the mouse over the flag? How to make it? 2. its possible to make the flag-name displayed over/under the flags (with Font size 1)? This is default: http://bildupload.sro.at/a/images/flags.jpg and this is what i want (made by GIMP :)): http://bildupload.sro.at/a/images/flags1.jpg How to change the code in the templates? Thanks, Hunter (sorry 4 my poor english) |
Quote:
|
All times are GMT. The time now is 01:42 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|