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)

webhost 11-12-2001 08:40 AM

yes

xug 11-12-2001 10:55 AM

When I go to step 3 of the installation :

3 - Open showthread.php (or admin/functions.php for v2.0.3)

find:
$post[joindate]=vbdate($registereddateformat,$post[joindate]);

Just above add:
// Country Hack
if (!$post[country]) {
$flag = "";
} else {
$Country=$post[country];
$Countryalt = str_replace("%20"," ",$Country);
$flag = "<img src=\"images/flags/$Country.gif\" alt=\"$Countryalt\" border=\"0\">";
}
// Country Hack End

----------

I can't find the line that I need to search for !!!!!!
I work with VB2.2.0
Please HELP!

webhost 11-12-2001 11:00 AM

put it right under this

PHP Code:

$jointime = (time() - $post[joindate]) / 86400// Days Joined
        
if ($jointime 1) { // User has been a member for less than one day.
            
$postsperday "$post[posts]";
        } else {
            
$postsperday sprintf("%.2f",($post[posts] / $jointime));
        } 


xug 11-12-2001 11:27 PM

I have done everything what is written in this thread and got only errors.

I uninstalled it and hope that there will be an new update version soon in this forum.

webhost 11-13-2001 12:43 AM

xug

I sent you a pm, Send your php files to me for this and I will fix them for you. E-mail address in the pm.

xug 11-13-2001 12:50 AM

I sended a reply !
Thanks for all the help !

Matt 11-17-2001 03:04 AM

I installed :) Problem is it shows up in the profile fine but nothing shows up where I put $flag in my postbit template :(

Any ideas why not?

over 11-17-2001 03:36 PM

has anyone tried this hack for 2.2.1 ? or is it just me that can't find a couple parts in the files to modify?

Bane 11-23-2001 07:56 AM

Could try this I guess, I tried to do the changes when I installed on 2.2.1, I also corrected the horrible maiming of my name (Bain?) in the docs :p Lemme know how it turns out for the 2.2.1 users, this is a quick change so sorry, just put it together for a friend doing an install.


NOTE:
In the docs you will notice the following for every file edit::
Code:

FIND:
error_reporting(7);

BELOW this ADD:
/* Hacks Added to this File
##############################
[vB v2.2.0] Country Flag Hack v2.0 (X) [Date]
############################## */

This is NOT NEEDED. It is something that I do to better track the changes that I made to each file, where X = the number of changes I made to the file, and Date = the date I did it, so I can see quickly if my version is the latest. This is not in anyway necessary but my mate is about as scatterbrained as I am about these things so I included it for him.

Good luck all.

over 11-23-2001 10:13 AM

ta for the update :) installin the now :)


All times are GMT. The time now is 05: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.01327 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (1)bbcode_php_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