[ABD] IP Country Flag Olympus 0.5.0a [phpBB 3.0.4] + SVN

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
_mayhem_
Registered User
Posts: 53
Joined: Fri Apr 18, 2008 9:17 pm
Location: Turkey - istanbul
Name: Unsal ASLANBAS
Contact:

Re: [BETA] IP Country Flag Olympus 0.1.8a

Post by _mayhem_ » Fri Dec 12, 2008 12:41 pm

site = http://www.forum.sonmermi.com
phpbbversiyon = 3.0.2
site language = english, Turkish
mod versiyon = release_beta_018a
mod fix instal = ok
dp update = ok
install = ok

error

nemberlist.php

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3845: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3847: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3848: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3849: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
index.php - viewforum.php

Code: Select all

blue flags
viewtopic.php

Code: Select all

Parse error: syntax error, unexpected ')' in C:\Inetpub\vhosts\sonmermi.com\httpdocs\Forum\viewtopic.php on line 1461
http://www.forum.sonmermi.com/memberlis ... ofile&u=72

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 1210: Missing argument 5 for get_user_avatar(), called in /memberlist.php on line 1623 and defined
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3845: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3847: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3848: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3849: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2987)
http://uabnet.com ==)) Turkish Board.

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.1.8a

Post by 3Di » Fri Dec 12, 2008 4:23 pm

Beta 0.1.8.a it is only for 3.0.1 phpBB.

The new version it is not yet available but running on my site though.

Please read this topic before to ask, thank you. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

satandream
Registered User
Posts: 383
Joined: Thu Mar 06, 2008 12:47 pm

Re: [BETA] IP Country Flag Olympus 0.1.8a

Post by satandream » Sun Dec 14, 2008 7:02 pm

how is the progress on this modification?

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.1.8a

Post by 3Di » Sun Dec 14, 2008 10:22 pm

Hopefully I'll release the new package (for phpBB 3.0.4) during the Christmas Holydays, it will be a huge job that requires me to be in front of my PC for one/two days. Due to the fact I also have a real job.
Thanks. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

satandream
Registered User
Posts: 383
Joined: Thu Mar 06, 2008 12:47 pm

Re: [BETA] IP Country Flag Olympus 0.1.8a

Post by satandream » Mon Dec 15, 2008 10:25 am

Oki i was thinking it was abandone as its a useful mod ;)
As long as its coming for 3.0.4 its fine

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.1.8a + SVN

Post by 3Di » Wed Dec 31, 2008 12:16 am

I set-up a SVN Repository: http://ip-country-flag-olympus.googleco ... svn/trunk/ for those they know what that means.

Consider though the SVN version is not supported in this Topic, please refer to my demo-board instead for that. :ugeek:

Regards.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

IntellectualThinker
Registered User
Posts: 30
Joined: Tue Dec 23, 2008 5:15 pm

Re: [BETA] IP Country Flag Olympus 0.1.8a

Post by IntellectualThinker » Wed Dec 31, 2008 11:15 pm

3Di wrote:Beta 0.1.8.a it is only for 3.0.1 phpBB.

The new version it is not yet available but running on my site though.

Please read this topic before to ask, thank you. :)
Blah i should have read the entire thread before i installed this one, however i didnt run into as many problems as others have had.

I managed to get it to install on 3.04 i didnt have any real issues expect for on includes/functions_display.php

Finding:

Code: Select all

function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $alt = 'USER_AVATAR')
{
	global $user, $config, $phpbb_root_path, $phpEx;

	if (empty($avatar) || !$avatar_type)
	{
		return '';
Replacing with:

Code: Select all

function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $userip, $alt = 'USER_AVATAR')
{
	// ---- IP Country Flag Olympus -----------------------------------------
	// add
	// , $db
	global $user, $config, $phpbb_root_path, $phpEx, $db;

	if (empty($avatar) || !$avatar_type)
	{
		// ---- IP Country Flag Olympus -----------------------------------------
		// add
		$flag = ip_country_to_flag($userip);
		$country = strtoupper($flag);
		// ---- IP Country Flag Olympus -----------------------------------------
		// replace
		// return '';
		return '<img src="images/avatars/gallery/avatar_flags/' .  $flag . '.gif" alt="' . $user->lang[$country] . '" title="' . $user->lang[$country] . '"" />'
	// ---- IP Country Flag Olympus -----------------------------------------
Is when i get the error of

Code: Select all

Parse error: syntax error, unexpected '}' in /home/desktopd/public_html/includes/functions_display.php on line 1353
However removing that one edit all seems to work except for the admins flag showing up in viewthread.php. Other than that from what i can tell it works..Ill keep tabs on your SVN to see if and when you toss a fix for later 3.0x versions as well though.
A New Era In Political Discussion
http://discusspolitics.org

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.1.8a + SVN

Post by 3Di » Thu Jan 01, 2009 12:09 am

IntellectualThinker wrote:Is when i get the error of

Code: Select all

    Parse error: syntax error, unexpected '}' in /home/desktopd/public_html/includes/functions_display.php on line 1353
You probably overwrote the closing bracket

Code: Select all

	}
that must be after the replacement.


That should look that way, once edited:

Code: Select all

function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $userip, $alt = 'USER_AVATAR')
{
	// ---- IP Country Flag Olympus -----------------------------------------
	// add
	// , $db
	global $user, $config, $phpbb_root_path, $phpEx, $db;

	if (empty($avatar) || !$avatar_type)
	{
		// ---- IP Country Flag Olympus -----------------------------------------
		// add
		$flag = ip_country_to_flag($userip);
		$country = strtoupper($flag);
		// ---- IP Country Flag Olympus -----------------------------------------
		// replace
		// return '';
		return '<img src="images/avatars/gallery/avatar_flags/' .  $flag . '.gif" alt="' . $user->lang[$country] . '" title="' . $user->lang[$country] . '"" />'
	// ---- IP Country Flag Olympus -----------------------------------------
	}
notice the last closing bracket after my comment?

IntellectualThinker wrote:Other than that from what i can tell it works..Ill keep tabs on your SVN to see if and when you toss a fix for later 3.0x versions as well though.
I'm currently working on porting the new version BETA 0.5.0 for phpBB 3.0.4 onto the SVN, it is a question of days and this huge task will be completed.

Also note: is better you to remove the 0.1.8a version because the new one it is a rewrite and you'll be more confortable installing it from scratch, I have not yet planned to make an upgrade patch for the moment also if the installer is able to take care of the uninstallation of the DB related things not more needed now.

Thanks. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

IntellectualThinker
Registered User
Posts: 30
Joined: Tue Dec 23, 2008 5:15 pm

Re: [BETA] IP Country Flag Olympus 0.1.8a + SVN

Post by IntellectualThinker » Thu Jan 01, 2009 1:42 am

Awesome, i went ahead and removed it. Ill just wait for your next rewrite. I was able to get it to work, however if the update is complete rewrite i want to start clean :) Im subscribing to this topic and i have bookmarked your svn as well :)
A New Era In Political Discussion
http://discusspolitics.org

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.1.8a + SVN

Post by 3Di » Thu Jan 01, 2009 1:47 am

I'm actually working on the SVN version, as you can see checking it.

You could try it live following this link: http://gold.io3di.com

Regards.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.1.8a + SVN

Post by 3Di » Thu Jan 01, 2009 2:30 pm

I released a premodded package for BETA testers based on the SVN revision 29.

That package it is only supported and can be downloaded in this topic: http://gold.io3di.com/viewtopic.php?f=7&t=89

This topic instead it is intended to support still BETA 0.1.8a till the new one will be released here.

Thanks.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.5.0 [phpBB 3.0.4] + SVN

Post by 3Di » Sat Jan 03, 2009 7:54 pm

BETA 0.5.0 public release has been released today for phpBB 3.0.4.

See the first post for download link.


No upgrades patches have been released yet for BETA 0.1.8a, nor I think I will release them, actually.

Thanks. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

satandream
Registered User
Posts: 383
Joined: Thu Mar 06, 2008 12:47 pm

Re: [BETA] IP Country Flag Olympus 0.5.0 [phpBB 3.0.4] + SVN

Post by satandream » Mon Jan 05, 2009 4:20 am

which includes/functions_user.php do you have as i dont find nothin there and i run phpBB 3.04

and i get

Code: Select all

Parse error: syntax error, unexpected '*', expecting ')' in /var/www/vhosts/dreambox-center.com/httpdocs/forum/viewtopic.php on line 1179
// --- IP Country Flag Olympus start --------------------
// replace
*/
'avatar' => ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height']) : '',
*/

// add
// $row['user_ip']
'avatar' => ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height'], $row['user_ip']) : '',
'age' => '',
// --- IP Country Flag Olympus end ----------------------

where the line is */ in 1179

saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Re: [BETA] IP Country Flag Olympus 0.5.0 [phpBB 3.0.4] + SVN

Post by saaiberke » Mon Jan 05, 2009 9:59 am

I think it must be:

Code: Select all

// --- IP Country Flag Olympus start --------------------
// replace
/*
'avatar' => ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height']) : '',
*/

// add
// $row['user_ip']
'avatar' => ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height'], $row['user_ip']) : '',
'age' => '',
// --- IP Country Flag Olympus end ----------------------
Grtz,

Nic

User avatar
3Di
Former Team Member
Posts: 14484
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [BETA] IP Country Flag Olympus 0.5.0 [phpBB 3.0.4] + SVN

Post by 3Di » Mon Jan 05, 2009 3:38 pm

saaiberke wrote:I think it must be:

Code: Select all

// --- IP Country Flag Olympus start --------------------
// replace
/*
'avatar' => ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height']) : '',
*/

// add
// $row['user_ip']
'avatar' => ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height'], $row['user_ip']) : '',
'age' => '',
// --- IP Country Flag Olympus end ----------------------
Grtz,

Nic
Yes, you are correct. I made a mistake while porting the code to the installation.txt file (do not know why though because the SVN is correct :) ).

Also to be noted this error lies in viewtopic.php and not in includes/functions_user.php as satandream above posted. ;)

I updated the two download links with the BETA 0.5.a ones that fixes this error and also another one in the same installation.txt file, as follows .. for those they are using still BETA 0.5.0 .. :

When you find the first

Code: Select all

#
#-----[ OPEN ]--------------------------------------------- 
#
includes/functions_user.php
related to the function get_username_string stuff, you must replace it with

Code: Select all

#
#-----[ OPEN ]--------------------------------------------- 
#
includes/functions_content.php
That's all, two mistakes I made while porting by hand the code to the script. The SVN is correct though. :lol: :ugeek:
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

Locked

Return to “[3.0.x] Abandoned MODs”