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)

DWZ 05-18-2002 09:25 PM

Quote:

Originally posted by webhost
In register.php find this
PHP Code:



if ($action=="register") {

  if (!
$allowregistration) {

    eval(
"standarderror(\"".gettemplate("error_noregister")."\");");

    exit;

  }



  if (
$bbuserinfo[userid]!=and !$allowmultiregs) {

    
$getuser=$DB_site->query_first("SELECT username FROM user WHERE userid='$bbuserinfo[userid]'");

    
$username=$getuser[username];



    eval(
"standarderror(\"".gettemplate("error_alreadyregistered")."\");");



    exit;

  } 


After it put this


PHP Code:


" if($country==""){
    eval("
standarderror('Please select your country.');");
    exit;
 }" 


Great :D

Thanks for that :)

But just to check, should those " at the start and end be there in the code I'm puting in be there?

webhost 05-18-2002 09:33 PM

PHP Code:

if($country==""){ 
eval(
"standarderror('Please select your country.');"); 
exit; 



DWZ 05-18-2002 11:59 PM

Quote:

Originally posted by webhost
PHP Code:

if($country==""){ 
eval(
"standarderror('Please select your country.');"); 
exit; 



yep, thats what I thought :)

Will test it now

DWZ 05-19-2002 12:05 AM

OK, just tried it, didn't work :(

As soon as I hit the register link, it says "Please select your country."

I hadn't even got to the signup page yet before it said it...

Any ideas?

webhost 05-19-2002 01:28 AM

remove that and place here.

Find
PHP Code:

// Country Hack

  
$country trim($country);
// Country Hack End 

and place this after it

PHP Code:

if($country==""){
    eval(
"standarderror('Please select your country.');");
    exit;
 } 


so it should like this when finished

PHP Code:

// Country Hack

  
$country trim($country);
if(
$country==""){
    eval(
"standarderror('Please select your country.');");
    exit;
 }
// Country Hack End 


DWZ 05-19-2002 01:41 AM

That worked great :D

Thanks for all your help webhost.

refertech 06-03-2002 01:49 AM

Great work man. I would it be possible to see the country name in the users profile. I dont reconize alot of the flags.
Installed great for me in 2.2.6. :)

aldamon 06-07-2002 02:31 PM

I'm so attached to this hack that I probably won't upgrade to vB 3.0 until it is ported.

freehtml 06-08-2002 01:24 PM

I can't seems to find find:
$templatesused .= "register_birthday,modifyprofile_customtext,regist er_customfields,usercpnav,modi fyprofile";

In my member.php (version 2.2.6)...

ciscoman 07-07-2002 09:22 PM

It should be this
$templatesused = 'register_birthday,modifyprofile_customtext,regist er_customfields,usercpnav,modi fyprofile';


All times are GMT. The time now is 12:53 AM.

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.01238 seconds
  • Memory Usage 1,751KB
  • 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
  • (7)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (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