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 (Complete) (https://vborg.vbsupport.ru/showthread.php?t=27044)

Sarge 09-01-2001 09:35 PM

1 - Add to database-Table user, field named: country
( country varchar(2) NOT NULL )

Before I screw up my database

should the part I insert into "Run SQL query/queries on database" textbox in phpmyadin is

Table user, field named: country
( country varchar(2) NOT NULL )

or do I use the

- Add to database-Table user, field named: country
( country varchar(2) NOT NULL )

when I insert it.

Thanks for the help!

AJR 09-01-2001 09:39 PM

In phpMyAdmin, you can run this query:

ALTER TABLE user ADD country CHAR (2) not null

Sarge 09-01-2001 09:43 PM

4 mins on that reply.. not bad
:)

Sarge 09-01-2001 11:39 PM

Parse error: parse error in /home/dlrarmy/public_html/forums/register.php on line 93

That was probably my fault... I don't know. I thought I did it right.


Anyways besides in register.php I have the hack installed and it looks really good!



http://www.dlrarmy.com/images/vb.gif

Sarge 09-01-2001 11:43 PM

I wonder if the parse error was because of my stars hack?

AJR 09-01-2001 11:45 PM

Looks good Sarge! Got a few hacks installed do ya :). For your register error, make sure your register.php looks like this around the line 90's (I put in some code above and below the hack):

PHP Code:

  //MaxPosts by User
  
$optionArray explode(","$usermaxposts);
  while (list(
$key$val) = each($optionArray))
  {
     eval (
"\$maxpostsoptions .= \"".gettemplate("modifyoptions_maxposts")."\";");
  }
  
$postsdefaultselected "selected";
// Country Hack
  
eval("\$countrytext.= \"".gettemplate("modifyprofile_country")."\";");
// Country Hack End
  // Referrer 

Just make sure you put the eval line for the country hack in the right place.

Sarge 09-02-2001 08:10 AM

<!-- Database error in vBulletin: Invalid SQL: INSERT INTO user (userid,username,password,email,parentemail,coppau ser,homepage,icq,aim,yahoo,signature,adminemail,sh owemail,invisible,usertitle,joindate,cookieuser,da ysprune,lastvisit,lastactivity,usergroupid,timezon eoffset,emailnotification,receivepm,emailonpm,opti ons,birthday,maxposts,startofweek,ipaddress,pmpopu p,referrerid,nosessionhash,country) VALUES (NULL,'Kinta Kunte','eeeeee','e@blackman.com','','0','http://www.dlrarmy.com','','','','','1','1','0','Recruit' ,'999421680','1','-1','999421680','999421680','3','0','1','1','1','15 ','1966-3-4','-1','1','209.244.79.18','1','0','1','','','pg')
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
Date: Sunday 02nd of September 2001 05:08:00 AM
Script: /forums/register.php
Referer: http://www.dlrarmy.com/forums/register.php

I changed it and this is what I got..

Want me to send you the register file so you can look it over? I know this has to do because I have hacked the sheettz out of my forums.

My users are digging this hack by the way
Thanks
Sarge

AJR 09-02-2001 08:29 AM

Just read what the error is telling you... field mismatch - means either there are too many column names, or too many values. After matching them up, you have too many values trying to be inserted into the database.

It looks like you have the stars hack installed because the extra spaces are the ,'','', below from the error message:

'1','','','pg')

If you have the stars hack installed, make sure on the $DB_site->query line just before VALUES you have the following:

nosessionhash,starlevel,starimg,country)

Currently you only have:

nosessionhash,country)

If you don't get what I mean let me know.

Afterburner 09-02-2001 09:10 AM

nice hack

Sarge 09-02-2001 04:25 PM

Quote:

Originally posted by AJR
Just read what the error is telling you... field mismatch - means either there are too many column names, or too many values. After matching them up, you have too many values trying to be inserted into the database.

It looks like you have the stars hack installed because the extra .

I just emailed you bro.
Thnks for doing this hack i have been waiting a long time for this
Thanks
Sarge


All times are GMT. The time now is 02:09 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.01133 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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