Page 19 of 25

Posted: Fri Feb 16, 2007 4:38 pm
by brandsrus
MattiEsport wrote: I have problem :\ www.esport.webd.pl i have installed that mod and i dont see any flags before nicks :/ help plz. My nick is 1.
Your board doesn't exist anymore :(

Posted: Wed Feb 21, 2007 7:35 pm
by hanebu
Got it installed. Works fine. But i thougt the flag is displayed in the userpostings also?

How can i get the flags displayed under the avatar or under location in each posting of a make?

Thank you.

Tommy

Posted: Wed Feb 21, 2007 8:05 pm
by Mitron
Hey ycl6,

I downloaded Country Flags 2.3.2 from here but noticed you had Country Flags 2.3.3 listed on Sourceforge. I downloaded that version but no matter what application I use (I've tried Windows built in ZIP, WinZIP, 7Zip and WinRAR) I cannot fully extract the archive. WinRAR does allow me to extract some files, but not the images.

Any plans on fixing the zip file or should we just use 2.3.2?

BTW, good to see someone took over this mod. I actually combined the original one by Nuttzy with the State Flag mod so people could display both country and state flags. The state/providence flag selection was dependent on the Country selection, in that only those states/providences for the selected country would be able to be selected. I really need to make that more dynamic though so you don't have to return to the page to select the state flag. I may work on that a bit more if I get some free time and provide to you as an add-on to this one if you like. :)

Posted: Thu Feb 22, 2007 9:56 am
by Mustek
problems here, after I installed the mod my forum won't view viewtopic.php anymore:
http://mustek.xurion.nl/forum/viewtopic.php?t=4

I need a fast reply, thanks!

Posted: Thu Feb 22, 2007 1:19 pm
by ycl6
Mitron wrote: Any plans on fixing the zip file or should we just use 2.3.2?

Hi, sorry about it, the package on SF has been re-uploaded.

~Mac

Posted: Thu Feb 22, 2007 1:21 pm
by ycl6
Mustek wrote: problems here, after I installed the mod my forum won't view viewtopic.php anymore:
http://mustek.xurion.nl/forum/viewtopic.php?t=4

I need a fast reply, thanks!

Can you turn debug mode so that we know what's the problem?

includes/constants.php

Code: Select all

// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging off
If that doesn't show the error message, then you need to contact your host regarding the error setting in php.ini.

~Mac

Posted: Thu Feb 22, 2007 1:56 pm
by Mustek
debug is already on

-edit-
if you need some files, I can send them to you.
-edit 2-
The problem is in the viewtopic.php file because i reupped my back-up file and it's working again.

Posted: Fri Feb 23, 2007 2:53 pm
by Xcetera
Thank you for this mod. Works great. Much appreciated.

Double row of Flags ... Help?

Posted: Sat Mar 03, 2007 10:13 pm
by jasonkpowers
I installed this mod with some effort a few weeks back (as I was still learning mods etc...) and now have a double row of flag options. A user can only select one flag from either row though, not two different flags....
Any idea how to get rid of one row, the row that 'works'?

Here's a screen shot...

Image

Posted: Tue Mar 06, 2007 1:34 pm
by ycl6
Please use http://pastebin.com/ to provide us a copy of your profile_add_body.tpl. Also, which one doesn't work? Top or bottom?

~Mac

Posted: Tue Mar 06, 2007 7:42 pm
by TCBen
can this be added to a current site if people dont have them selected who have already signed up what would happen?

Posted: Tue Mar 06, 2007 11:01 pm
by 3Di
TCBen wrote: can this be added to a current site if people dont have them selected who have already signed up what would happen?


If I correctly understood your question.. : Yes.

well, as far as I know nothing it is displayed on their sides untill they decide to make a choice. The same for people who signs up and does not select a flag, though.

Correct me if I'm wrong here.

Re: [2.0.21] Country Flags MOD

Posted: Tue Mar 27, 2007 3:42 am
by Sam Spade
The instructions say:

Code: Select all

#-----[ AFTER, ADD ]---------------------------------------
#
			'L_COUNTRY' => $lang['Country'],

#
#-----[ OPEN ]---------------------------------------------
#
includes/functions_selects.php

# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/usercp_avatar.php 

# 
#-----[ FIND ]------------------------------------------ 
# 

function display_avatar_gallery($mode, &$cat
Is there something missing there, that needs to be done in the functions_selects.php, or is it just some line someone forgot to delete?

Re:

Posted: Tue Mar 27, 2007 4:27 am
by jasonkpowers
ycl6 wrote: Please use http://pastebin.com/ to provide us a copy of your profile_add_body.tpl. Also, which one doesn't work? Top or bottom?

~Mac


Couldn't get that link to work... The top one is the one that doesn't work.
This is the code, thanks for the help!

Code: Select all

<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">

{ERROR_BOX}

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
		<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	</tr>
</table>

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
	<tr> 
		<th class="thHead" colspan="2" height="25" valign="middle">{L_REGISTRATION_INFO}</th>
	</tr>
	<tr> 
		<td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
	</tr>
	<!-- BEGIN switch_namechange_disallowed -->
	<tr> 
		<td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
		<td class="row2"><input type="hidden" name="username" value="{USERNAME}" /><span class="gen"><b>{USERNAME}</b></span></td>
	</tr>
	<!-- END switch_namechange_disallowed -->
	<!-- BEGIN switch_namechange_allowed -->
	<tr> 
		<td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="username" size="25" maxlength="25" value="{USERNAME}" /></td>
	</tr>
	<!-- END switch_namechange_allowed -->
	<tr> 
		<td class="row1"><span class="gen">{L_NAME_FIRST}: 
		<!-- BEGIN switch_name_first_required --> 
		*
		<!-- END switch_name_first_required -->
		<!-- BEGIN switch_name_first_display -->
		</span><br />
		<span class="gensmall">{L_NAME_FIRST_DISPLAY_WARNING}</span>
		<!-- END switch_name_first_display -->
		</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="name_first" size="25" maxlength="64" value="{NAME_FIRST}" /></td>
	</tr>
	<tr> 
		<td class="row1"><span class="gen">{L_NAME_LAST}: 
		<!-- BEGIN switch_name_last_required --> 
		*
		<!-- END switch_name_last_required -->
		<!-- BEGIN switch_name_last_display -->
		</span><br />
		<span class="gensmall">{L_NAME_LAST_DISPLAY_WARNING}</span>
		<!-- END switch_name_last_display -->
		</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="name_last" size="25" maxlength="64" value="{NAME_LAST}" /></td>
	</tr>
	

	<tr> 
		<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
		<td class="row2"><input type="text" class="post" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" /></td>
	</tr>
	<!-- BEGIN switch_edit_profile -->
	<tr> 
	  <td class="row1"><span class="gen">{L_CURRENT_PASSWORD}: *</span><br />
		<span class="gensmall">{L_CONFIRM_PASSWORD_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="cur_password" size="25" maxlength="32" value="{CUR_PASSWORD}" />
	  </td>
	</tr>
	<!-- END switch_edit_profile -->
	<tr> 
	  <td class="row1"><span class="gen">{L_NEW_PASSWORD}: *</span><br />
		<span class="gensmall">{L_PASSWORD_IF_CHANGED}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="{NEW_PASSWORD}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
		<span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
	  <td class="row2"> 
		<input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
	  </td>
	</tr>
	<!-- Visual Confirmation -->
	<!-- BEGIN switch_confirm -->
	<tr>
		<td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
	  <td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
	</tr>
	<!-- END switch_confirm -->
	<tr> 
	  <td class="catSides" colspan="2" height="28">&nbsp;</td>
	</tr>
	<tr> 
	  <th class="thSides" colspan="2" height="25" valign="middle">{L_PROFILE_INFO}</th>
	</tr>
	<tr> 
	  <td class="row2" colspan="2"><span class="gensmall">{L_PROFILE_INFO_NOTICE}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_ICQ_NUMBER}:</span></td>
	  <td class="row2"> 
		<input type="text" name="icq" class="post" style="width: 100px"  size="10" maxlength="15" value="{ICQ}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_AIM}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" style="width: 150px"  name="aim" size="20" maxlength="255" value="{AIM}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_MESSENGER}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" style="width: 150px"  name="msn" size="20" maxlength="255" value="{MSN}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_YAHOO}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" style="width: 150px"  name="yim" size="20" maxlength="255" value="{YIM}" />
	  </td>
	</tr>
	<!-- BEGIN only_show_notbot -->

	<tr> 
	  <td class="row1"><span class="gen">{L_WEBSITE}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" style="width: 200px"  name="website" size="25" maxlength="255" value="{WEBSITE}" />
	  </td>
	</tr>
	<!-- END only_show_notbot -->

	<tr> 
	  <td class="row1"><span class="gen">{L_LOCATION}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" style="width: 200px"  name="location" size="25" maxlength="100" value="{LOCATION}" />
	  </td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">{L_FLAG}:</span></td>
	  <td class="row2"><span class="gensmall">
		<table><tr>
			<td>{FLAG_SELECT}&nbsp;&nbsp;&nbsp;</td>
	  		<td><img src="images/flags/{FLAG_START}" name="user_flag" /></td>
		</tr></table>
	  </span></td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">{L_FLAG}:</span></td>
	  <td class="row2"><span class="gensmall">
		<table><tr>
			<td>{FLAG_SELECT}&nbsp;&nbsp;&nbsp;</td>
	  		<td><img src="images/flags/{FLAG_START}" name="user_flag" /></td>
		</tr></table>
	  </span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_OCCUPATION}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" style="width: 200px"  name="occupation" size="25" maxlength="100" value="{OCCUPATION}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_INTERESTS}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" style="width: 200px"  name="interests" size="35" maxlength="150" value="{INTERESTS}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_SIGNATURE}:</span><br /><span class="gensmall">{L_SIGNATURE_EXPLAIN}<br /><br />{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"> 
		<textarea name="signature" style="width: 300px" rows="6" cols="30" class="post">{SIGNATURE}</textarea>
	  </td>
	</tr>
	<tr> 
	  <td class="catSides" colspan="2" height="28">&nbsp;</td>
	</tr>
	<tr> 
	  <th class="thSides" colspan="2" height="25" valign="middle">{L_PREFERENCES}</th>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_PUBLIC_VIEW_EMAIL}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="viewemail" value="1" {VIEW_EMAIL_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="viewemail" value="0" {VIEW_EMAIL_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_HIDE_USER}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="hideonline" value="1" {HIDE_USER_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="hideonline" value="0" {HIDE_USER_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}:</span><br />
		<span class="gensmall">{L_NOTIFY_ON_REPLY_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_POPUP_ON_PRIVMSG}:</span><br /><span class="gensmall">{L_POPUP_ON_PRIVMSG_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="radio" name="popup_pm" value="1" {POPUP_PM_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="popup_pm" value="0" {POPUP_PM_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_ALWAYS_ADD_SIGNATURE}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="attachsig" value="1" {ALWAYS_ADD_SIGNATURE_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="attachsig" value="0" {ALWAYS_ADD_SIGNATURE_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_BBCODE}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="allowbbcode" value="1" {ALWAYS_ALLOW_BBCODE_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="allowbbcode" value="0" {ALWAYS_ALLOW_BBCODE_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_HTML}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="allowhtml" value="1" {ALWAYS_ALLOW_HTML_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="allowhtml" value="0" {ALWAYS_ALLOW_HTML_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_BOARD_LANGUAGE}:</span></td>
	  <td class="row2"><span class="gensmall">{LANGUAGE_SELECT}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_BOARD_STYLE}:</span></td>
	  <td class="row2"><span class="gensmall">{STYLE_SELECT}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TIMEZONE}:</span></td>
	  <td class="row2"><span class="gensmall">{TIMEZONE_SELECT}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_DATE_FORMAT}:</span><br />
		<span class="gensmall">{L_DATE_FORMAT_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" name="dateformat" value="{DATE_FORMAT}" maxlength="14" class="post" />
	  </td>
	</tr>
	<!-- BEGIN switch_avatar_block -->
	<tr> 
	  <td class="catSides" colspan="2" height="28">&nbsp;</td>
	</tr>
	<tr> 
	  <th class="thSides" colspan="2" height="12" valign="middle">{L_AVATAR_PANEL}</th>
	</tr>
	<tr> 
		<td class="row1" colspan="2"><table width="70%" cellspacing="2" cellpadding="0" border="0" align="center">
			<tr> 
				<td width="65%"><span class="gensmall">{L_AVATAR_EXPLAIN}</span></td>
				<td align="center"><span class="gensmall">{L_CURRENT_IMAGE}</span><br />{AVATAR}<br /><input type="checkbox" name="avatardel" />&nbsp;<span class="gensmall">{L_DELETE_AVATAR}</span></td>
			</tr>
		</table></td>
	</tr>
	<!-- BEGIN switch_avatar_local_upload -->
	<tr> 
		<td class="row1"><span class="gen">{L_UPLOAD_AVATAR_FILE}:</span></td>
		<td class="row2"><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_SIZE}" /><input type="file" name="avatar" class="post" style="width:200px" /></td>
	</tr>
	<!-- END switch_avatar_local_upload -->
	<!-- BEGIN switch_avatar_remote_upload -->
	<tr> 
		<td class="row1"><span class="gen">{L_UPLOAD_AVATAR_URL}:</span><br /><span class="gensmall">{L_UPLOAD_AVATAR_URL_EXPLAIN}</span></td>
		<td class="row2"><input type="text" name="avatarurl" size="40" class="post" style="width:200px" /></td>
	</tr>
	<!-- END switch_avatar_remote_upload -->
	<!-- BEGIN switch_avatar_remote_link -->
	<tr> 
		<td class="row1"><span class="gen">{L_LINK_REMOTE_AVATAR}:</span><br /><span class="gensmall">{L_LINK_REMOTE_AVATAR_EXPLAIN}</span></td>
		<td class="row2"><input type="text" name="avatarremoteurl" size="40" class="post" style="width:200px" /></td>
	</tr>
	<!-- END switch_avatar_remote_link -->
	<!-- BEGIN switch_avatar_local_gallery -->
	<tr> 
		<td class="row1"><span class="gen">{L_AVATAR_GALLERY}:</span></td>
		<td class="row2"><input type="submit" name="avatargallery" value="{L_SHOW_GALLERY}" class="liteoption" /></td>
	</tr>
	<!-- END switch_avatar_local_gallery -->
	<!-- END switch_avatar_block -->
	<tr>
		<td class="catBottom" colspan="2" align="center" height="28">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />&nbsp;&nbsp;<input type="reset" value="{L_RESET}" name="reset" class="liteoption" /></td>
	</tr>
</table>

</form>

Re: Re:

Posted: Tue Mar 27, 2007 2:39 pm
by mfrankena
jasonkpowers wrote: <tr>
<td class="row1"><span class="gen">{L_FLAG}:</span></td>
<td class="row2"><span class="gensmall">
<table><tr>
<td>{FLAG_SELECT}&nbsp;&nbsp;&nbsp;</td>
<td><img src="images/flags/{FLAG_START}" name="user_flag" /></td>
</tr></table>
</span></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_FLAG}:</span></td>
<td class="row2"><span class="gensmall">
<table><tr>
<td>{FLAG_SELECT}&nbsp;&nbsp;&nbsp;</td>
<td><img src="images/flags/{FLAG_START}" name="user_flag" /></td>
</tr></table>
</span></td>
</tr>


Notice anything strange here ?
The code for the selectbox is in there twice.
remove on of the pieces of code, so it looks like this:
tr>
<td class="row1"><span class="gen">{L_FLAG}:</span></td>
<td class="row2"><span class="gensmall">
<table><tr>
<td>{FLAG_SELECT}&nbsp;&nbsp;&nbsp;</td>
<td><img src="images/flags/{FLAG_START}" name="user_flag" /></td>
</tr></table>
</span></td>
</tr>


That should do the trick ;-)