[ABD] Wall

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.
superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: [BETA] Wall

Post by superj707 »

adcantu wrote:nice supaj, thanks for the addition. We may need to release a new mod with credit to this one and our collaborated modifications. Seems that most of the support has disappeared here. Ive had about 10 people in the past week ask me howto custom profile page lol.

Maybe linking mine publicly here was a bad idea. I joke.

I do believe that you and I have at the least taken this mod to a level worthy of a new release.
thanks a bunch I appreciate your support and gratitude.

User avatar
DBM
Registered User
Posts: 159
Joined: Tue Oct 25, 2005 10:29 pm
Contact:

Re: [BETA] Wall

Post by DBM »

superj707 wrote:
adcantu wrote:nice supaj, thanks for the addition. We may need to release a new mod with credit to this one and our collaborated modifications. Seems that most of the support has disappeared here. Ive had about 10 people in the past week ask me howto custom profile page lol.

Maybe linking mine publicly here was a bad idea. I joke.

I do believe that you and I have at the least taken this mod to a level worthy of a new release.
thanks a bunch I appreciate your support and gratitude.
Is there anything we can download to try out the changes you have made?

Thanks. :)

User avatar
adcantu
Registered User
Posts: 212
Joined: Wed Apr 21, 2004 12:08 am

Re: [BETA] Wall

Post by adcantu »

not currently, the new version has a download a few pages back by wmtoo, then you can read the modifications that myself and supaj have made in the pages after.

User avatar
hww
Registered User
Posts: 177
Joined: Tue Sep 30, 2008 2:52 pm
Location: Wollongong, N.S.W., Australia

Re: [BETA] Wall

Post by hww »

adcantu wrote:Ive had about 10 people in the past week ask me howto custom profile page lol.

Maybe linking mine publicly here was a bad idea. I joke.
Although I'm not one of the ones who PMed you, I did take a look at your site about a week ago. Your custom profile pages do look very nice, and I can understand why you've been getting requests :lol:
Sorry for my English, but I am Australian. Forgive me please.

User avatar
adcantu
Registered User
Posts: 212
Joined: Wed Apr 21, 2004 12:08 am

Re: [BETA] Wall

Post by adcantu »

hww wrote:
adcantu wrote:Ive had about 10 people in the past week ask me howto custom profile page lol.

Maybe linking mine publicly here was a bad idea. I joke.
Although I'm not one of the ones who PMed you, I did take a look at your site about a week ago. Your custom profile pages do look very nice, and I can understand why you've been getting requests :lol:

http://www.phpbb.com/community/viewtopi ... &t=1547285

brandon_0007
Registered User
Posts: 113
Joined: Thu Apr 10, 2008 12:46 am

Re: [BETA] Wall

Post by brandon_0007 »

I was wondering if anyone figured out how to make comments delete from the database instead of striking the text. I have to manually delete them from the database. What a pain in the a@@ right? Ha ha.

trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

Re: [BETA] Wall

Post by trickoff »

I found a easy solution on making the avatars smaller if you allow big sized images as avatars.

I made it as follows...

in includes/functions_display.php i added this code:

Code: Select all

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

	if (empty($avatar) || !$avatar_type)
	{
		if (empty($avatar_width) && empty($avatar_height))
		{
			return '<img src="' . $phpbb_root_path . 'images/no_avatar.gif"  alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
		}
		elseif ( empty($avatar_height) )
		{
			return '<img src="' . $phpbb_root_path . 'images/no_avatar.gif" width="' . $avatar_width . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
		}
		elseif ( empty($avatar_width) )
		{
			return '<img src="' . $phpbb_root_path . 'images/no_avatar.gif" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
		}
	}


	$avatar_img = '';

	switch ($avatar_type)
	{
		case AVATAR_UPLOAD:
			$avatar_img = $phpbb_root_path . "download/file.$phpEx?avatar=";
		break;

		case AVATAR_GALLERY:
			$avatar_img = $phpbb_root_path . $config['avatar_gallery_path'] . '/';
		break;
	}
	$avatar_max_dimensions = 110;
	if ( $avatar_width >= $avatar_height )
	{
	$avatar_width_new = ( $avatar_width > $avatar_max_dimensions ) ? $avatar_max_dimensions : $avatar_width ;
	$avatar_height_new = ( $avatar_width_new == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $avatar_width * $avatar_height) : $avatar_height ;
	}
	else 
	{
	$avatar_height_new = ( $avatar_height > $avatar_max_dimensions ) ? $avatar_max_dimensions : $avatar_height ;
	$avatar_width_new = ( $avatar_height_new == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $avatar_height * $avatar_width) : $avatar_width ;
	}

	
	$avatar_img .= $avatar;
	return '<img src="' . $avatar_img . '" width="' . $avatar_width_new . '" height="' . $avatar_height_new . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';

}
just a copy of existing function get_user_avatar with max. dimension info

$avatar_max_dimensions = 110;
change 110 to the max dimension u want to have


now open your memberlist.php

find:

Code: Select all

'POSTER_AVATAR'		=> ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'],
replace with:

Code: Select all

'POSTER_AVATAR'		=> ($user->optionget('viewavatars')) ? get_user_avatar_topic($row['user_avatar'],
It works fine and u can use it on every page on your forum where the function get_user_avatar is used

e.g. function get_user_avatar_topic, function get_user_avatar_profil, function get_user_avatar_memberlist.......

have fun ;-)

trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

Re: [BETA] Wall

Post by trickoff »

Forgot to ask one thing, for me it's impossible to get the Reply link to work, it only links bak to you own profile, or the profile you are visiting.
Anyone else that found a smart way of solving this?

superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: [BETA] Wall

Post by superj707 »

trickoff wrote:Forgot to ask one thing, for me it's impossible to get the Reply link to work, it only links bak to you own profile, or the profile you are visiting.
Anyone else that found a smart way of solving this?
I had this exact same problem I think it might have to do with your cookie setting on your board. look into it and make sure everything is set correctly.

superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: [BETA] Wall

Post by superj707 »

trickoff wrote:I found a easy solution on making the avatars smaller if you allow big sized images as avatars.

I made it as follows...

in includes/functions_display.php i added this code:

Code: Select all

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

	if (empty($avatar) || !$avatar_type)
	{
		if (empty($avatar_width) && empty($avatar_height))
		{
			return '<img src="' . $phpbb_root_path . 'images/no_avatar.gif"  alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
		}
		elseif ( empty($avatar_height) )
		{
			return '<img src="' . $phpbb_root_path . 'images/no_avatar.gif" width="' . $avatar_width . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
		}
		elseif ( empty($avatar_width) )
		{
			return '<img src="' . $phpbb_root_path . 'images/no_avatar.gif" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
		}
	}


	$avatar_img = '';

	switch ($avatar_type)
	{
		case AVATAR_UPLOAD:
			$avatar_img = $phpbb_root_path . "download/file.$phpEx?avatar=";
		break;

		case AVATAR_GALLERY:
			$avatar_img = $phpbb_root_path . $config['avatar_gallery_path'] . '/';
		break;
	}
	$avatar_max_dimensions = 110;
	if ( $avatar_width >= $avatar_height )
	{
	$avatar_width_new = ( $avatar_width > $avatar_max_dimensions ) ? $avatar_max_dimensions : $avatar_width ;
	$avatar_height_new = ( $avatar_width_new == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $avatar_width * $avatar_height) : $avatar_height ;
	}
	else 
	{
	$avatar_height_new = ( $avatar_height > $avatar_max_dimensions ) ? $avatar_max_dimensions : $avatar_height ;
	$avatar_width_new = ( $avatar_height_new == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $avatar_height * $avatar_width) : $avatar_width ;
	}

	
	$avatar_img .= $avatar;
	return '<img src="' . $avatar_img . '" width="' . $avatar_width_new . '" height="' . $avatar_height_new . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';

}
just a copy of existing function get_user_avatar with max. dimension info

$avatar_max_dimensions = 110;
change 110 to the max dimension u want to have


now open your memberlist.php

find:

Code: Select all

'POSTER_AVATAR'		=> ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'],
replace with:

Code: Select all

'POSTER_AVATAR'		=> ($user->optionget('viewavatars')) ? get_user_avatar_topic($row['user_avatar'],
It works fine and u can use it on every page on your forum where the function get_user_avatar is used

e.g. function get_user_avatar_topic, function get_user_avatar_profil, function get_user_avatar_memberlist.......

have fun ;-)
Do you think there is an advantage to your solution verses the one I provided one page back ? http://www.phpbb.com/community/viewtopi ... &start=225

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Wall

Post by darkonia »

i find both solutions very nice, thx
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

phpmods
Registered User
Posts: 9
Joined: Fri May 08, 2009 9:10 pm

Re: [BETA] Wall

Post by phpmods »

Comments may be approved after the publish option?

User avatar
Berk888
Registered User
Posts: 27
Joined: Sun Sep 28, 2008 8:35 pm
Location: Kiev, Ukraine
Contact:

Re: [BETA] Wall

Post by Berk888 »

depends on what can I write comments on the wall or not?
I can not understand the law
Image

trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

Re: [BETA] Wall

Post by trickoff »

I noticed now that the email wall_notify.txt doesn't send when you get a new comment. Is this working for anyone else?

User avatar
Ashley.S.
Registered User
Posts: 468
Joined: Mon Aug 04, 2008 6:01 pm
Location: Falmouth, Cornwall, UK
Name: Ashley .S.
Contact:

Re: [BETA] Wall

Post by Ashley.S. »

ohhh this mod looks better than the current one I am using, so I'm going to watch this closely
Regards,
-Ashley.S. [ ProphpBB Free Forum Hosting Moderator ]

Locked

Return to “[3.0.x] Abandoned MODs”