The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#212
|
||||
|
||||
i hope you will get the rest of it, how to use the installer-uninstaller.
if you are not sure, erwin will be able to smack you in the head... heh, with explanations on how to use it. |
#213
|
|||
|
|||
can anyone assist me this...im am still lost...
|
#214
|
||||
|
||||
Anyone get this to work with vb 2.2.9?
I can't get past the member.php file before the code blows up! |
#215
|
||||
|
||||
Works fine from 2.2.1 all the way to 2.2.9 on my forums.
Tip: Remember, EACH time you upgrade, you need to add the modifyprofile_country template AGAIN, and run the db query AGAIN. |
#216
|
||||
|
||||
I did that part already, but the member.php file fowls up everything right after uploading the file!
Someone willing to share their file with me? |
#217
|
||||
|
||||
Firstly great hack and althought installation steps are a little bit long, it works ok in v.2.2.9! Thx for sharing..
And a few comments that might help some people while installing: If these are already mentioned in the hack thread, my apologies.. VBSTATS and THIS HACK If you use Bane's vbstat hack the image directory's of these 2 hacks clashes. To use them both, I applied such a method: 1- rename image directory of this hack to cflags and edit these files: memberlist.php member.php functions.php user.php find: images/flags/ Replace it AS: images/cflags/ Now you can use 2 hacks together.. ASSIGNING TEMPLATE TO DEFAULT SET: Quote:
To cure this edit user.php and find: PHP Code:
Before that add: PHP Code:
Hope this helps.. Enjoy. Ps. I dont have subscription in this thread, so do not address me here, ty.. |
#218
|
|||
|
|||
there are subtle code differences in 2.2.9 vs the documentation for the country hack... so here's the members.php instructions to match 2.2.9
4 - Open member.php find: $templatesused = 'register_birthday,modifyprofile_customtext,regist er_customfields,usercpnav,modi fyprofile'; Replace it with // Country Hack Replace // $templatesused .= "register_birthday,modifyprofile_customtext,regist er_customfields,usercpnav,modi fyprofile"; $templatesused .= "register_birthday,modifyprofile_customtext,modify profile_country,register_custo mfields,usercpnav,modifyprofile"; // Country Hack End find: eval("\$customtext = \"".gettemplate("modifyprofile_customtext")."\";") ; } } Below it add: // Country Hack if (!$getcountry=$DB_site->query_first("SELECT country FROM user WHERE userid=$bbuserinfo[userid]")) { $country=""; $ctrdefaultselected = "selected"; } else { $country="$getcountry[country]"; $countryalt = str_replace("%20"," ",$country); $countrysel = str_replace("%20","_",$country); $flag="<img src=\"images/flags/$country.gif\" alt=\"$countryalt\" align=\"absmiddle\" border=\"0\">"; $ctryname = "ctry".$countrysel."selected"; $$ctryname = "selected"; } eval("\$countrytext.= \"".gettemplate("modifyprofile_country")."\";") ; // Country Hack End find: $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); Replace it with: // Country Hack Replace // $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]',country='".addslashes($country)."' WHERE userid='$bbuserinfo[userid]'"); // Country Hack End find: if ($userinfo[yahoo]!="") { eval("\$userinfo[yahooicon] = \"".gettemplate("yahoo")."\";"); } else { $userinfo[yahoo]=" "; } Below it add: // Country Hack $getctry=$DB_site->query_first("SELECT country FROM user WHERE userid=$userid"); $country=$getctry[country]; $countryalt = str_replace("%20"," ",$country); if ($country!="") { $flag = "<img src=\"images/flags/$country.gif\" alt=\"$countryalt\" align=\"absmiddle\" border=\"0\">"; } else { $flag = ""; } // Country Hack End |
#219
|
||||
|
||||
BINGO! ... that worked like a charm!
Thanks, you two! |
#220
|
||||
|
||||
Hey everyone, I'm new to vB, I pruchased it yesterday, and I would really like this hack. I'm so unfamiliar with all of these hacks but I am trying to learn.
Would someone be able to possibly help me install this hack? |
#221
|
||||
|
||||
Thanks a lot
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|