Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by AJR AJR is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-05-2001 Last Update: Never Installs: 114
 
No support by the author.

UPDATED TO v2.1 - 3/11/2002

Version 2.1 - March 11, 2002
================================================== ==
Well, it's been awhile! I sorta disappeared there while
doing many other things! I guess v2.0 that was supposed
to use the same images as vBStats didn't go as planned
(thanks Bane ). I removed this hack from my site
awhile ago when I was having some other problems. I have
finally decided to add it back and it worked great in 2.2.0,
and I'm sure it will work in all other 2.2.x versions.

Changes:
- Updated to work with vBulletin 2.2.x
- Added Display Flag in Member List - Thanks Orca
- Used slightly larger flag images by X-Fan (I did run
them through Ulead's 16-color optimization which cut
the total file size from 271K to 54K!)
- Added 'align="absmiddle"' to image tag for text vertical centering
- Fixed Bane's name in docs below where I botched it up!
- Support for 280 Countries


Version 2.0 - September 6, 2001
================================================== ==
Changes from v1.0:
- Images have been changed from country codes to country names
- Flags will now have their ALT text as country name.
- Modified Hack to work with Bane's vbStats hack that will be released in the future.
- Added CP Addon by Stasik and modded it for new country names
- Changed country field in USER table from CHAR(2) to VARCHAR(50)
- Support for 226 countries

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.
- The 'modifyprofile_country' template needs to be changed
to a default original templatesetid of -1 (changed templates
have the templatesetid set to 2) or else the Admin CP addon
will not work (Any ideas why?). To do this, use phpMyAdmin
and run this query:
UPDATE template SET templatesetid="-1" where title="modifyprofile_country"
This will move the template from the custom to default templates
and will be found in the 'User Option Templates' group.

Any questions or comments can be posted here. Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #252  
Old 07-01-2003, 08:12 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #253  
Old 07-10-2003, 01:13 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #254  
Old 07-10-2003, 07:26 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone ever figure out how to get this to display on the forumhome?
Reply With Quote
  #255  
Old 07-10-2003, 08:14 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #256  
Old 07-18-2003, 04:17 PM
Bulleh Bulleh is offline
 
Join Date: May 2003
Location: Leicester
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

strange but Wen i go to USER CP , and edit profile i can change my flag
but normall users cant, why is this?
Reply With Quote
  #257  
Old 07-31-2003, 03:05 AM
Kane Da Don's Avatar
Kane Da Don Kane Da Don is offline
 
Join Date: Sep 2002
Location: Vegas
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #258  
Old 07-31-2003, 07:10 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Well... umm... aww crumbs!

but what if everyone had a short-term memory and needed to be reminded? Yeah that's it!
Reply With Quote
  #259  
Old 08-30-2003, 11:50 PM
CRego3D CRego3D is offline
 
Join Date: May 2002
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ..
Reply With Quote
  #260  
Old 09-09-2003, 10:00 PM
Logtenberg Logtenberg is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #261  
Old 09-11-2003, 02:44 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05363 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete