![]() |
How would one get the country flags to appear on the memberlist.php page?
I know that would require code added to the memberlist.php file as well as modfying the memberlist templates, but I'm not sure what would need adding to memberlist.php. |
Hey all,
This hack has proven so popular on my forums that I've done my own update to it to include ever-so-slightly larger-sized flags, updates to several flags from the original release (like Rwanda, whose flag changed on December 31, 2001, Martinique, Reunion, Tuvalu, etc), and to include several flags that weren't in the original, such as the British countries (England, Ireland, Wales, Scotland, Isle of Man, Channel Islands, etc), countries in dispute (like Northern Cyprus, Tibet, French Guiana, etc), and more. All it takes is an upload of the new flag image files as well as a modification to the modifyprofile_country template. I've attached a text file containing the mods to this post and will attach two zips with the new flag images to my next two posts. Hope y'all like it! |
Here's the first zip (74k) containing the updated flags for 2002 from A-M.
|
And here's the second zip (54k) containing the updated flags for 2002 from N-Z!
|
Bump...
|
I want to add this hack for my flags, use the avatar for photos and the medals for medals, is this possible? Thanks in advance! I am also wanting to add the star hack. Any known complications?
|
Quote:
|
How do I run a query? I am new at this, was ready to install hack and got stuck here...
================================================== == 1 - Add to database-Table user, field named: country properties: ( country varchar(50) NOT NULL ) In phpMyAdmin, you can run this query: ALTER TABLE user ADD country VARCHAR (50) NOT NULL ================================================== == |
Works with 2.2.3! Updated instructions attached!
|
can we had the flag name be reflected in text format so that if I select SIngapore flag..
It will display the GIF file as well as display "Country : Singapore" ? |
Quote:
|
Hey all... I have updated the Country Flag Hack to v2.1. This version should work with all 2.2.x versions. See other additions and download v2.1 in the first post of this thread.
|
Updated! Thanks!
|
somehow it appears under my profile and all that but not in the Member list... I am using vB 2.2.4
|
Great work my friend!!!
|
I am using version 2.2.4 and it works great for NEW MEMBERS ONLY. ??
A new member can register and the flag will show Exsisting members can see the drop down in their user cp and select their country flag. but it does not show ?? Also none of the flags show on the members list. Any help, thanks PS, very <--COOL--> hack :D |
Make the modifyprofile_country template default by making it (-1) using phpmyadmin as per the instructions.
|
sorry newbe here .... how do I do that then ??
I am in the phpMyAdmin area, what do I do next ? |
OK, I followed the instructions :) and did the search and changed the template to -1
BUT it still don't work for oldtimers on the board. Is it something to do with 2.2.4 ?? |
does anyone have an answer to this as its driving my members nuts :)
|
Most of it works fine on my 2.2.4, will display flags for old members no problems.
Whenever I try to logout or view a member profile I get a parse error in member.php, line 500 and something. Everything seems to be replaced and added OK, and I thought I'd followed all instructions. I don't have access to anything other than notepad to count the lines. Before I count them all on the screen, anyone got any ideas on what might be causing this? |
Quote:
|
so does anyone have any suggestions as to how i can get this cool hack working 100% ?
|
anyone got this working on vbb2.2.5 yet?
|
I noticed a syntax error...
Quote:
4 - Open member.php find: PHP Code:
|
Another one :
Quote:
PHP Code:
|
Quote:
PHP Code:
|
I think that is all the syntax errors there were...
Satan |
Defnitely works on 2.2.5.
|
I'm going to miss this in vb3.0. I hope it is ported!
|
Just wanted to let you know that I followed your directions to a "T" and your hack installed just as described. Although the instructions were lengthy, the result was on the money. :cool:
Thanks for making such a GREAT hack! |
the hack works great, but one thing thats not working is the user registering part, when a user submits, it keeps saying please filled all required fields, and ALL fields are filled out... i think it has to do with the registrationadult template, but the dropdown menu where you select your country doesnt even show up at all under the registration form, under enter your email...
here's what part of my registrationadult template looks like: Code:
<td bgcolor="{secondaltcolor}"><normalfont><b>Email:</b></normalfont><br> |
Well, I spoke too soon as well. I ran into a similar problem. I'm in the process of removing the hack so that I can get my registeration back. Everything worked, but I got a SQL error everytime someone tried to register.
UPDATE: Well, after un-installing the hack the error is still there. So, I'm going to have to take more drastic measures to get my board back to 100%. FYI, this is the SQL Error I'm getting. Database error in vBulletin 2.2.5: Invalid SQL: INSERT INTO userfield (userid,field5,field6,field7,field1,field2,field3, field4) VALUES (,'Demo Account','Demo','Demo','','','','') mysql error: You have an error in your SQL syntax near ''Demo Account','Demo','Demo','','','','')' at line 1 mysql error number: 1064 Date: Thursday 25th of April 2002 02:22:37 AM Script: http://www.interpug.com/private/foru...m/register.php Referer: http://www.interpug.com/private/forum/register.php |
I downloaded a fresh copy of vBulletin 2.2.5 and uploaded a clean copy of register.php and everything is back to normal. So, obviously something is up with the register.php changes. Too many people are complaining about it to be a fluke, or a typo on the installer's part.
If the register.php worked properly, it would be a GREAT hack. Does anyone know if I can install everything BUT the register.php changes? I don't really care to make the user choose their flag when they join. |
mashby, i also need a fix for this
something is wrong with the register.php when i have the hack, when a user registers, there is no drop down box where they can choose there country, it wont show up at all. and therefore they cant register since it's a required field, so i had to take it out, but the rest of the hack works great. just that one fault, is there a fix for this please? |
My error was that the register just didn't work. Everything appeared ok, but register.php just didn't work.
Since my problem was a little different. I would check through the code that you have to alter in your templates and in register.php again. It sounds like you may just be missing something in the template you have to create. |
i checked the template so many times, and thats not the problem
... i dont know why its not showing up at all when a user registers |
Make sure you've made the template -1 so that it's default. This hack is temperamental like that. Also make sure that you database inserts in register.php includes the country variable as well.
|
Remember, each time you upgrade vB, you need to run the database query again to make that country select list template -1 again. This is the only hack that I know of that requires this.
|
i already ran that -1 query already, and what do you mean include register.php? im not understanding, do i have to include it in a template? clarify this for me please...
|
All times are GMT. The time now is 09:25 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:
|