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)

orca 11-02-2001 03:05 PM

If you update, the template modifyprofile_country is deleted if you ran the query. Just redo the template.
This works, I just did it on my site.

webhost 11-03-2001 03:01 AM

It worked fine for me without any changes, if you read through this post it states somewhere in here to change it from a custom template to a main template which I did, when I dumped my old database and restored template followed.

orca 11-03-2001 07:19 AM

I had it also as custom template...it was removed anyway after running the update script.

Mark Hewitt 11-03-2001 02:51 PM

I've just reinstalled it in 2.2.0, no problems at all. And no template changes required! :D

xug 11-04-2001 09:32 PM

When you have looked well why you was copying and pasting some of this great hack in vb2.2.0 you would have seen that there are now some functions that will not work properly.

Old hack text :
// Country Hack Replace
// $DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield." parentemail,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotificat ion,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup, referrerid,nosessionhash) VALUES (NULL,'".addslashes(htmlspecialchars($username))." ','".addslashes($password)."', '".addslashes(htmlspecialchars($email))."',".$news tyleval."'".addslashes(htmlspe cialchars($parentemail))."','$coppauser','".addsla shes(htmlspecialchars($homepag e))."','".addslashes(htmlspecialchars($icq))."','" .addslashes(htmlspecialchars($ aim))."','".addslashes(htmlspecialchars($yahoo))." ','".addslashes($signature)."' ,'$adminemail','$showemail','$invisible','".addsla shes($usertitle)."','".time(). "','$cookieuser','".addslashes($prunedays)."','".t ime()."','".time()."','$newuse rgroupid','".addslashes($timezoneoffset)."','$emai lnotification','$receivepm','$ emailonpm','$options','".addslashes($birthday)."', '".addslashes($umaxposts)."',' ".addslashes($startofweek)."','".addslashes($ipadd ress)."','$pmpopup','".addslas hes($testreferrerid['userid'])."','$nosessionhash')");
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield." parentemail,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotificat ion,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup, referrerid,nosessionhash,country) VALUES (NULL,'".addslashes(htmlspecialchars($username))." ','".addslashes($password)."', '".addslashes(htmlspecialchars($email))."',".$news tyleval."'".addslashes(htmlspe cialchars($parentemail))."','$coppauser','".addsla shes(htmlspecialchars($homepag e))."','".addslashes(htmlspecialchars($icq))."','" .addslashes(htmlspecialchars($ aim))."','".addslashes(htmlspecialchars($yahoo))." ','".addslashes($signature)."' ,'$adminemail','$showemail','$invisible','".addsla shes($usertitle)."','".time(). "','$cookieuser','".addslashes($prunedays)."','".t ime()."','".time()."','$newuse rgroupid','".addslashes($timezoneoffset)."','$emai lnotification','$receivepm','$ emailonpm','$options','".addslashes($birthday)."', '".addslashes($umaxposts)."',' ".addslashes($startofweek)."','".addslashes($ipadd ress)."','$pmpopup','".addslas hes($testreferrerid['userid'])."','$nosessionhash','".addslashes($country)."')" );
// Country Hack End

Must be :
// Country Hack Replace
// $DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield." parentemail,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotificat ion,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup, referrerid,nosessionhash,avatarid) VALUES (NULL,'".addslashes(htmlspecialchars($username))." ','".addslashes($password)."', '".addslashes(htmlspecialchars($email))."',".$news tyleval."'".addslashes(htmlspe cialchars($parentemail))."','$coppauser','".addsla shes(htmlspecialchars($homepag e))."','".addslashes(htmlspecialchars($icq))."','" .addslashes(htmlspecialchars($ aim))."','".addslashes(htmlspecialchars($yahoo))." ','".addslashes($signature)."' ,'$adminemail','$showemail','$invisible','".addsla shes($usertitle)."','".time(). "','$cookieuser','".addslashes($prunedays)."','".t ime()."','".time()."','$newuse rgroupid','".addslashes($timezoneoffset)."','$emai lnotification','$receivepm','$ emailonpm','$options','".addslashes($birthday)."', '".addslashes($umaxposts)."',' ".addslashes($startofweek)."','".addslashes($ipadd ress)."','$pmpopup','".addslas hes($testreferrerid['userid'])."','$nosessionhash','$avatarid')");
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield." parentemail,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotificat ion,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup, referrerid,nosessionhash,avatarid,country) VALUES (NULL,'".addslashes(htmlspecialchars($username))." ','".addslashes($password)."', '".addslashes(htmlspecialchars($email))."',".$news tyleval."'".addslashes(htmlspe cialchars($parentemail))."','$coppauser','".addsla shes(htmlspecialchars($homepag e))."','".addslashes(htmlspecialchars($icq))."','" .addslashes(htmlspecialchars($ aim))."','".addslashes(htmlspecialchars($yahoo))." ','".addslashes($signature)."' ,'$adminemail','$showemail','$invisible','".addsla shes($usertitle)."','".time(). "','$cookieuser','".addslashes($prunedays)."','".t ime()."','".time()."','$newuse rgroupid','".addslashes($timezoneoffset)."','$emai lnotification','$receivepm','$ emailonpm','$options','".addslashes($birthday)."', '".addslashes($umaxposts)."',' ".addslashes($startofweek)."','".addslashes($ipadd ress)."','$pmpopup','".addslas hes($testreferrerid['userid'])."','$nosessionhash','$avatarid','".addslashes($c ountry)."')");
// Country Hack End

At the end off both lines the '$avatarid' needs to be inserted in the script for vb2.2.0, because when you have copied this part from the vb2.0.3 hack version it's not available

This was just what i found in a flash and maybe there are more things that needs to be adjusted !!

My $0.02

Logtenberg 11-07-2001 11:10 PM

When trying to view a members profile I get this error (Just installed flag hack)

Database error in vBulletin: Invalid SQL: UPDATE user SET profileviews=profileviews+1 WHERE userid=4196
mysql error: Unknown column 'profileviews' in 'field list'
mysql error number: 1054
Date: Wednesday 07th of November 2001 07:59:46 PM
Script: /forum/member.php?s=&action=getinfo&userid=4196
Referer: http://66.78.40.13/forum/showthread....oto=nextnewest

Anyone know the problem?

Also - I noticed that when I edited the required files and saved them, the size of the files would always increase be 2 or more kilobytes. Where did this extra size come from? (I am using windows 2000 and am editing the files in wordpad)

webhost 11-07-2001 11:16 PM

looks like u need to add a field to the user table

Logtenberg 11-07-2001 11:17 PM

What field would that be? did I miss a step?

webhost 11-07-2001 11:23 PM

Unknown column 'profileviews' in 'field list'

place that profileviews has a new field in your user table, should say smth in the instructions

xug 11-12-2001 03:12 AM

Is this hack working on V2.2.0 or not ?????


All times are GMT. The time now is 03:16 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
  • Page Generation 0.01171 seconds
  • Memory Usage 1,753KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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