vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Country Flag Hack v2.0 (https://vborg.vbsupport.ru/showthread.php?t=27485)

DPoole 06-22-2003 09:30 PM

flag dont look squashed to me - thats the way its shows and looks ok

add <br> before and after it to make a space

Splitfyre 06-22-2003 10:19 PM

Thanks. Ya I found that it was just the Australia flag that's squished in that flag icon set.

Splitfyre 06-26-2003 04:34 AM

Quick Question: I have Country showing up twice in my registration.

I've checked the register.php file and I've also checked the registration templates. Why would the Country selection showup twice?

http://www.futurelooks.com/forums/register.php

Ninth Dimension 06-28-2003 02:24 AM

Just installed this hack on a 2.3.0 board, and it's working a charm, thank you very much

Quote:

09-06-01 at 10:46 AM AJR said this in Post #1
Known Problems:
- Countries with a dash (-) or comma (,) will not show up
automatically in as selected when you or the member edit
their profile (Congo, Korea, and Micronesia are the only 3)
Anyone know a fix please let me know.

Taking a very quick glance as your code, I think it's not working because you are using variables named after the countries to call whichever country needs to be selected. In thory this works, until an invalid char comes into the arrangement, amnd breaks the variable.

In other words $ctryTogoselected - $ctryUnited_Kingdomselected & even $ctryBritish_Indian_Ocean_Territoryselected are all valid variable names, but $ctryUmm_al-Qaiwanselected is not. (all the computer see's is $ctryUmm_al).

Update the variables to remove the hyphens and comma's and it will work

(sorry if someone else has already posted this soloution, i've not read the thread or anything, i just knew this was the problem from looking at the code.

anyway, like i said, great hack, thank you very much.

Ninth Dimension 06-28-2003 02:33 AM

Quote:

06-26-03 at 06:34 AM Splitfyre said this in Post #243
Quick Question: I have Country showing up twice in my registration.

I've checked the register.php file and I've also checked the registration templates. Why would the Country selection showup twice?

http://www.futurelooks.com/forums/register.php


It's controled by the template, i can't see a mistake in the file edit causing this, all I can suggest is that you maybe use my template, it's unmodified (bar the flag hack that is).

it's attached as a .txt

Sin City 06-29-2003 12:57 AM

great hack.... i used it along with the store ... only problem is.... when i buy the flag... it shows up in the "Your Country Flag" option in the store in the "Country" field.... but i don't see a flag anywhere in my posts, or in the member list... what's wrong?

also, when a new user tries to sign up it says to make sure and fill out all necessary fields, even though they have filled them all in (there is no profile field for the flag either since its in the store)... what can i do to fix that?

ajk 06-29-2003 12:59 AM

The users at Drumsmith.com really like the Country Flag hack.

Is there a way I can use the small flags in one place, then use the large in another?

Thanks

Sin City 06-30-2003 06:10 AM

Quote:

Yesterday at 02:57 AM Sin City said this in Post #246
great hack.... i used it along with the store ... only problem is.... when i buy the flag... it shows up in the "Your Country Flag" option in the store in the "Country" field.... but i don't see a flag anywhere in my posts, or in the member list... what's wrong?

also, when a new user tries to sign up it says to make sure and fill out all necessary fields, even though they have filled them all in (there is no profile field for the flag either since its in the store)... what can i do to fix that?

bump

Sin City 07-01-2003 02:45 AM

can anyone help me please?

Ninth Dimension 07-01-2003 08:04 AM

Quote:

06-29-03 at 02:57 AM Sin City said this in Post #246
great hack.... i used it along with the store ... only problem is.... when i buy the flag... it shows up in the "Your Country Flag" option in the store in the "Country" field.... but i don't see a flag anywhere in my posts, or in the member list... what's wrong?

also, when a new user tries to sign up it says to make sure and fill out all necessary fields, even though they have filled them all in (there is no profile field for the flag either since its in the store)... what can i do to fix that?

From the sounds of it you have not made any of the template changes, i recomend going back to the instructions and following them again.

Ninth Dimension 07-01-2003 08:12 AM

Quote:

06-29-03 at 02:59 AM ajk said this in Post #247
The users at Drumsmith.com really like the Country Flag hack.

Is there a way I can use the small flags in one place, then use the large in another?

Thanks

This is easy in theory, but will require some hard coded changes.

Basicly you find a 2nd set of flags, all with the same file names as the small set only with something like "big_" tapped onto the front of the filename, or maybe save the flags on your server space in a diffrent location (such as "images/largeflags/").

Once you have the files you need to find the file that controls whichever flag you want to be displayed as large. lets say for example it's the postbit flag you want displayed large, you need to open admin/functions.php and search for the following line:
Code:

  $flag = "<img src=\"images/flags/$Country.gif\" alt=\"$Countryalt\" align=\"absmiddle\" border=\"0\">";
All you need to do then is edit the line to point to your large image (be it adding the big_ or changing the path, etc..)

I hope this helps? Personally I recomend looking at the install file again and using it to make your edits, then sinatlling them, just be careful not to add/remove any needed quote marks.

good luck.

Ninth Dimension 07-10-2003 01:13 PM

I've noticed at least one flag is missing (maybe more) so i've decided to upload it here...

just download the image and save to your flag images directory. (you might need to rename it Europe.gif with a capital E).

Alien 07-10-2003 07:26 PM

Anyone ever figure out how to get this to display on the forumhome? :)

Ninth Dimension 07-10-2003 08:14 PM

Quote:

Today at 09:26 PM Alien said this in Post #253
Anyone ever figure out how to get this to display on the forumhome? :)
get what to display? not much point in showing the user there own country flag because they already know it :p

Bulleh 07-18-2003 04:17 PM

strange but Wen i go to USER CP , and edit profile i can change my flag
but normall users cant, why is this?

Kane Da Don 07-31-2003 03:05 AM

great hack i installed it but for some reason it wont show in the postbit at all it shows in the getinfo and in the members but not in the postbit is their a way around this i put it in version 2.3.0

Alien 07-31-2003 07:10 PM

Quote:

07-10-03 at 05:14 PM Ninth Dimension said this in Post #254
get what to display? not much point in showing the user there own country flag because they already know it :p

Well... umm... aww crumbs! ;)

but what if everyone had a short-term memory and needed to be reminded? Yeah that's it!

CRego3D 08-30-2003 11:50 PM

Quote:

06-16-03 at 01:29 PM CRego3D said this in Post #238
One last request :)

http://www.linuxcult.com/forum/membe...hat=datejoined

as you see, the "distro" images is where the flags woudl be .. is there a way I can "sort" by them ? :)

love this hack .. hehe

bump ? :)

basically, how can i "sort by country/flag" in the memberlist.php ..

Logtenberg 09-09-2003 10:00 PM

I upgraded my board to 2.3 from 2.03 and I had the country flag hack installed on my old version.

So all I did to get this this hack to work was change the code on the php pages and upload.

Now I get:

Parse error: parse error, expecting `T_STRING' in /home/ryan/public_html/forum/admin/functions.php on line 2248

Warning: Cannot modify header information - headers already sent by (output started at /home/ryan/public_html/forum/admin/functions.php:2248) in /home/ryan/public_html/forum/admin/functions.php on line 1668

Fatal error: Call to undefined function: set_bbarraycookie() in /home/ryan/public_html/forum/showthread.php on line 265

-----------------------

One thing I also noticed while doing the search and replace,
was that in member.php the code that to replace didn't match the code in the instruction file i.e.:

find:

$templatesused .= "register_birthday,modifyprofile_custo....

on my member.php this line reads:

$templatesused = 'register_birthday,modifyprofile_custo...

Notice the missing period on my member.php

I went ahead and replaced this code anyways... could this be the problem? do I need to remove the period?

----------------------

UPDATE:

I removed the country flag hack code from member.php and uploaded it. The above error no longer appeared, in the postbits the flag for each member appeared properly, the registration process worked with the flag... So I know the problem must be with the code on member.php

Thanks

reismarktq2 09-11-2003 02:44 PM

My users are having a problem where the flags they've purchased (I'm using Lesane's Store Hack and the flag add-on in conjunction with this hack) are disappearing at random intervals. I have no idea what's causing it. Some people are saying it happens when they update their profiles; others say it's also happening at other times.

I'm running vB 2.3.0 and in addition to the store stuff, I've also added a bunch of flags to the original set (including some customs and the entire set of U.S. states).

Can anyone help out?

Logtenberg 09-17-2003 08:24 PM

Quote:

Originally Posted by Logtenberg
I upgraded my board to 2.3 from 2.03 and I had the country flag hack installed on my old version.

So all I did to get this this hack to work was change the code on the php pages and upload.

Now I get:

Parse error: parse error, expecting `T_STRING' in /home/ryan/public_html/forum/admin/functions.php on line 2248

Warning: Cannot modify header information - headers already sent by (output started at /home/ryan/public_html/forum/admin/functions.php:2248) in /home/ryan/public_html/forum/admin/functions.php on line 1668

Fatal error: Call to undefined function: set_bbarraycookie() in /home/ryan/public_html/forum/showthread.php on line 265


-----------------------

One thing I also noticed while doing the search and replace,
was that in member.php the code that to replace didn't match the code in the instruction file i.e.:

find:

$templatesused .= "register_birthday,modifyprofile_custo....

on my member.php this line reads:

$templatesused = 'register_birthday,modifyprofile_custo...

Notice the missing period on my member.php

I went ahead and replaced this code anyways... could this be the problem? do I need to remove the period?

----------------------

UPDATE:

I removed the country flag hack code from member.php and uploaded it. The above error no longer appeared, in the postbits the flag for each member appeared properly, the registration process worked with the flag... So I know the problem must be with the code on member.php

Thanks

UPDATE 2:

I found out about the period problem in a previous post and therefore made the necessary changes to the member.php code. The only problem I'm getting now is when someone attempts to edit their profile. The following error occurs:

Fatal error: Call to undefined function: show_nopermission() in /home/ryan/public_html/forum/member.php on line 242

Please Help!

reismarktq2 09-30-2003 12:00 AM

BUMP... please help!

Logtenberg 10-31-2003 12:43 AM

How would you search users by where their from (country flag)? What's the variable that needs to be used?

Thanks

Kohhal 01-21-2004 07:30 AM

This is the greatest hack I have on my forums, is anyone working on a version for vBulletin3???

Found it here! :D

FutureDEV 06-07-2004 08:57 PM

Where can I get the vb3 version of this hack? Thanks!

Kohhal 06-08-2004 08:53 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=60538" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=60538</a>

FutureDEV 06-08-2004 07:54 PM

Thanks, Ill check it out.

Snake 06-12-2005 12:30 PM

Nevermind. Found it!


All times are GMT. The time now is 04:53 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.01553 seconds
  • Memory Usage 1,811KB
  • 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
  • (1)bbcode_code_printable
  • (9)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
  • (28)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