vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Country Flag and simcard model and .. (https://vborg.vbsupport.ru/showthread.php?t=228371)

Charlie98902 11-26-2009 02:47 PM

Quote:

Originally Posted by Welshy2008 (Post 1921234)
There is No square with a red X in it - is there?

No there isn't.

Welshy2008 11-26-2009 02:49 PM

Move all the Flag GIFs to the "buttons" folder and forget about the two flas folders Charlie.

;)

MikeHolohan 11-26-2009 02:53 PM

finally got this to work... thanks...

thanks to you too Welshy2008, you were a big help...

Welshy2008 11-26-2009 02:55 PM

You're Welcome Mike,

I'm happy to put back into the vB.org community - I have taken enough out of it. :|

bart6767 11-26-2009 02:58 PM

Good to see you got it to work and can you post up everything you did to get it right ?

Charlie98902 11-26-2009 02:59 PM

Okay saw a bit I forgot to edit. The field # did that and in firefox there's nothing but in IE there is a red x. I don't want the flag gifs to be scattered. Can I not use the folder flags?

Now the code was edited to: / public_html / testvb / images / buttons / Flags /

Still as mentioned in this post.

Welshy2008 11-26-2009 02:59 PM

Charlie, Have you changed the Green code bit below, on your forum


Code:

<span class="username guest">{vb:raw post.username}</span>
                                        </vb:if>
                                        <span class="usertitle">
                                                {vb:raw post.usertitle}
<!--  Flags Start  -->
<if condition="$post['field7']">
        Country: <img src="http://www.Your ForumAddress.com/testvb/images/buttons/Flags/$post[field7].GIF"/>
<!--//  Flags End  -->
                                        </span>
                                        {vb:raw template_hook.postbit_userinfo_left}
                                        <vb:if condition="$show['reputation']">
                                                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
                                        </vb:if>


Welshy2008 11-26-2009 03:04 PM

Charlie it is the address that is wrong.

The only reason that I put them in three folder is that as ONE folder - it was too bid to Upload, I could only do it in three.

Like I mentioned above take ALL of the flags out of EACH of the three folders and store them ALL in the "buttons" folder. DO not put the three seperate folders in the Buttons folder! ONLY the contents of each.

If you do that and then add the following - it should work on you test forum...

Code:

<!--  Flags Start  -->
<if condition="$post['field7']">
        Country: <img src="http://www.Your ForumAddress.com/testvb/images/buttons/$post[field7].GIF"/>
<!--//  Flags End  -->


Charlie98902 11-26-2009 03:05 PM

Yes getting red x in IE8 and nothing but Country: in firefox.

Code now as it is in my template.

Code:

<!--  Flags Start  -->
<if condition="$post['field11']">
        Country: <img src="http://www.dvdnextcopysupportforum.com/testvb/images/buttons/Flags/$post[field11].GIF"/>
<!--//  Flags End  -->

I can only assume that you must absolutly must put the gifs in the buttons folder with no folder for the flags?

Welshy2008 11-26-2009 03:05 PM

On the red x, Charlie, if you right click it, it will show the route that you have the flag.GIFs stored.

It has to the same as my code in the post above.

Welshy2008 11-26-2009 03:09 PM

Quote:

Originally Posted by Charlie98902 (Post 1921249)
I can only assume that you must absolutly must put the gifs in the buttons folder with no folder for the flags?


That is EXACTLY right and what I have been saying in my posts. Can You do That and get back to me, Charlie?

Charlie98902 11-26-2009 03:11 PM

Says this:

Code:

http://www.dvdnextcopysupportforum.com/testvb/testvb/images/buttons/Flags/$post[field11].GIF

Charlie98902 11-26-2009 03:11 PM

Quote:

Originally Posted by Welshy2008 (Post 1921253)
That is EXACTLY right and what I have been saying in my posts. Can You do That and get back to me, Charlie?

Yes I can but wanted to avoid this option.

Welshy2008 11-26-2009 03:19 PM

Quote:

Originally Posted by Charlie98902 (Post 1921256)
Says this:

Code:

http://www.dvdnextcopysupportforum.com/testvb/testvb/images/buttons/Flags/$post[field11].GIF



Do you realise that you have TWO testvb in there?

I do not understand why you do not want them all in the same "Buttons" folder, Sorry?

Charlie98902 11-26-2009 03:20 PM

Okay the same thing and now all the gifs are in the buttons folder.

Code:

<!--  Flags Start  -->
<if condition="$post['field11']">
        Country: <img src="http://www.dvdnextcopysupportforum.com/testvb/images/buttons$post[field11].GIF"/>
<!--//  Flags End  -->

I did use F5 and did a hard cache too. Yes and I edited that out too.

Charlie98902 11-26-2009 03:30 PM

Here is something that may be the issue?

I am on my test forum so the URL is ending in .com/testvb. the image path is /testvb/images/buttons that is why the testvb was in there twice but I took it out with the same results.

Welshy2008 11-26-2009 03:31 PM

Is your [fieldidX] field 7 or 11 Charlie. You posted 7 earlier and your last few posts say 11.

Charlie98902 11-26-2009 03:32 PM

Quote:

Originally Posted by Welshy2008 (Post 1921269)
Is your [fieldidX] field 7 or 11 Charlie. You posted 7 earlier and your last few posts say 11.

field11 is what it says.

Welshy2008 11-26-2009 03:32 PM

If you are happy to set up a temporary account for me with Admin permissions - I would be happy to take a look for you.

Welshy2008 11-26-2009 03:34 PM

You have put all flags in the "buttons" folder? There are no sub folders with the flags shared between them within the buttons folder - no?

Charlie98902 11-26-2009 03:35 PM

Sent and this is the url - http://www.dvdnextcopysupportforum.com/testvb

Charlie98902 11-26-2009 03:36 PM

That is correct no folder labeled flags now.

LordDB 11-26-2009 04:41 PM

ensure you have the correct spelling of the image 'button or buttons folder! Use this:
Code:

<img src="{vb:stylevar imgdir_buttons}/flags/{vb:raw post.field5}.GIF" alt="My Country" border="" />
worth adding also about 'GIF or gif' check it if you have the red 'x' showing...then it'll show you the image path!

Charlie98902 11-26-2009 04:47 PM

This is what is used now as the flag.gif are in the button folder only now.
Code:

<!-- Country Flags Start -->
<vb:if condition="$post['field11']">Country: <img src="http://www.dvdnextcopysupportforum.com/testvb/images/buttons/$post[field11].GIF" alt="Users Flag on dvdnextcopysupportforum.com!" border=""/>
</vb:if>
<!--// Country Flags End -->


LordDB 11-26-2009 05:04 PM

change:

$post[field11].GIF

to:

$post[field11].gif

Charlie98902 11-26-2009 05:06 PM

But all the gif flags are labeled GIF?

Charlie98902 11-26-2009 05:25 PM

Thanks everyone but to be honest this is more hassle than it is worth to be honest. Just not going to use it. Might try another one if another mod gets posted.

Welshy2008 11-26-2009 06:35 PM

FOR vB4 Beta - This code will add Alt Text to your Flag on mouseover.

Find:

Code:

</vb:if>
                                        <span class="usertitle">
                                                {vb:raw post.usertitle}

ADD Below:

Code:

<!-- Country Flags Start -->
<vb:if condition="$post['fieldX']">
        Country: <img src="http://www.yourforumaddress.com/images/buttons/$post[field1X].GIF" alt="Users Flag on yourforumnamehere!" border="" />
</vb:if>
<!--// Country Flags End -->


** SAVE TEMPLATE **


** Replace the ‘X’ with your FieldID number **


That should work for you?!

Welshy2008 11-26-2009 06:40 PM

Charlie, It's a shame - all it would have took is a look in your root directory and it would have been up and running. I can almost guarantee that you have put them in a wrong root folder somewhere.

It is a common mistake, and one that I have done in the past too.

Not to worry though Mate.

Charlie98902 11-26-2009 06:43 PM

It is fine thanks for the efforts.

bart6767 11-26-2009 08:18 PM

Quote:

Originally Posted by Welshy2008 (Post 1921333)
FOR vB4 Beta - This code will add Alt Text to your Flag on mouseover.

Find:

Code:

</vb:if>
                                        <span class="usertitle">
                                                {vb:raw post.usertitle}

ADD Below:

Code:

<!-- Country Flags Start -->
<vb:if condition="$post['fieldX']">
        Country:<img src="http://www.yourforumaddress.com/images/buttons/$post[field1X].GIF" alt="Users Flag on yourforumnamehere!" border="" />
</vb:if>
<!--// Country Flags End -->


** SAVE TEMPLATE **


** Replace the ‘X’ with your FieldID number **


That should work for you?!

I tryed this and all i get is a red X

LordDB 11-26-2009 08:57 PM

Quote:

Originally Posted by Charlie98902 (Post 1921305)
But all the gif flags are labeled GIF?

check in your 'flags' folder and see if the flag images end in '.gif
', if they do, then change GIF to gif

not this:

flags/{vb:raw post.field5}.GIF

but:

flags/{vb:raw post.field5}.gif

make sure your root image path is correct, too!

Charlie98902 11-26-2009 09:14 PM

I will at a later time as I have this thread bookmarked. Doing some other things currently.

bart6767 11-26-2009 09:42 PM

Ok i got this code to work .

Code:

<!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field7}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) -->

It works fine but how do i stop the red x showing up for members who have not picked a flag ?

Welshy2008 11-27-2009 08:40 AM

daPLAYBOY ALL the flags end in .GIF

Welshy2008 11-27-2009 08:40 AM

daPLAYBOY ALL the flags end in .GIF

Welshy2008 11-27-2009 08:43 AM

Quote:

Originally Posted by bart6767 (Post 1921393)
Ok i got this code to work .

Code:

<!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field7}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) -->

It works fine but how do i stop the red x showing up for members who have not picked a flag ?

Have you got the 'Set Default' as "None"? OR make it compulsory?!

LordDB 11-27-2009 09:11 AM

uppercase or lowercase? you decide! :)

@Welshy2008 I'm using my own 3D flags which are smaller and have lowercase .gif...not what's posted!

here's a link to download 3D flags:

http://www.3dflags.com/world/

bart6767 11-27-2009 09:13 AM

Quote:

Originally Posted by Welshy2008 (Post 1921549)
Have you got the 'Set Default' as "None"? OR make it compulsory?!

Its set to none.

bart6767 11-27-2009 12:27 PM

Quote:

Originally Posted by Welshy2008 (Post 1921549)
Have you got the 'Set Default' as "None"? OR make it compulsory?!

How can i fix this so that flags dont show up a red x if a member has not picked a flag ?

This is the code that im useing . and i have done every thing in post 1 .

Code:

<!-- yahoomobil(yaghoub) -->
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field7}.GIF" alt="Users Flag!" border="" />
<!-- yahoomobil(yaghoub) -->



All times are GMT. The time now is 04:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01466 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete