[BETA] Simple Ignore 1.4.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Ravenhearte
Registered User
Posts: 96
Joined: Fri Oct 10, 2003 3:45 pm
Location: Just this side of sane.
Contact:

Post by Ravenhearte » Fri Dec 26, 2003 5:56 pm

vHiker, I did ya one better on the appending start. I appended the topic link. This'll take ya right to where you were when you hit ignore.

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewtopic.php 
# 
#-----[ FIND ]------------------------------------------ 
# 
$temp_url = append_sid("viewtopic.$phpEx?mode=ignore&t=" . $postrow[$i]['topic_id'] . "&ignoree_id=" . $postrow[$i]['user_id']);
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
$temp_url = append_sid("viewtopic.$phpEx?mode=ignore&ignoree_id=" . $postrow[$i]['user_id'] . "&p=" . $postrow[$i]['post_id'] . "&highlight=#" . $postrow[$i]['post_id']);
# 
#-----[ FIND ]------------------------------------------ 
# 
$temp_url = append_sid("viewtopic.$phpEx?mode=unignore&t=" . $postrow[$i]['topic_id'] . "&ignoree_id=" . $postrow[$i]['user_id']);
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
$temp_url = append_sid("viewtopic.$phpEx?mode=unignore&ignoree_id=" . $postrow[$i]['user_id'] . "&p=" . $postrow[$i]['post_id'] . "&highlight=#" . $postrow[$i]['post_id']);
Last edited by Ravenhearte on Fri Dec 26, 2003 6:38 pm, edited 1 time in total.

Ravenhearte
Registered User
Posts: 96
Joined: Fri Oct 10, 2003 3:45 pm
Location: Just this side of sane.
Contact:

Post by Ravenhearte » Fri Dec 26, 2003 6:37 pm

also, heres a hack for anyone using the custom profiles mod.

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewtopic.php
# 
#-----[ FIND ]------------------------------------------ 
# 
while ( list($code_name, $value) = each($xd_block) )
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
if (! isset($ignored_ids[$postrow[$i]['user_id']]) && ! $ignored_ids[$postrow[$i]['user_id']] )
{
# 
#-----[ FIND ]------------------------------------------ 
# 
$template->pparse('body');
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
}

mr_swinson
Registered User
Posts: 227
Joined: Tue May 13, 2003 6:44 pm
Location: Georgia, my home.

New image for Simple Ignore

Post by mr_swinson » Tue Jan 27, 2004 4:23 pm

Image

I created that image above for those who wants to use any theme from FI Apple. Should fit well with this mod! :D I'll install/try this mod out a little later on. 8)

Staff: Please let me know if the image chooses not to load up successfully, even though it's from a free-hosting site. I'll change it into ZIP so that users can get the image. :D

Khyron
Registered User
Posts: 75
Joined: Wed Jan 29, 2003 8:29 pm

Post by Khyron » Fri Jan 30, 2004 5:12 pm

thanks anyways, figured it out, again, great mod

*EDIT*
Last edited by Khyron on Sat Jan 31, 2004 6:09 pm, edited 1 time in total.
http://www.speed-freekz.com
Cars, Bikes, 4x4, and More.

User avatar
NoahK
Registered User
Posts: 217
Joined: Wed Nov 12, 2003 4:49 am
Location: Atlanta, GA
Contact:

Post by NoahK » Fri Jan 30, 2004 8:04 pm

Okay things I had to custom edit, was to make sure someone could not ignore themselves! Other than that, everything works great except for the fact that people can still send me PMs after I ignore them.
Come play Final Fantasy Tactics: Online!
Features:
- Pick one of 351 class combinations. Battle 150 different monsters. Find over 2,200 weapons, armor, and items. Fight in tournaments or play the Gil Slots. Anything goes!

yomanfu
Registered User
Posts: 11
Joined: Fri Feb 20, 2004 4:26 pm

still beta?

Post by yomanfu » Thu Mar 11, 2004 4:20 am

Would you say this mod is stable enough to install it on a online forum?

Thanks

adam s
Registered User
Posts: 215
Joined: Fri Apr 05, 2002 3:21 am

Post by adam s » Mon Mar 15, 2004 3:09 pm

There's a slight typo in the version available for download now.

You have:

Code: Select all

$lang['Is_ignored'] = ' Is On Your Ignore List.'
$lang['Has_ignored'] = ' Has Ignored You.';
$lang['Ignore_user'] = 'Ignore this user';
$lang['Unignore_user'] = 'Unignore this user';
You're missing a ; at the end of that first line of code. It should be:

Code: Select all

$lang['Is_ignored'] = ' Is On Your Ignore List.';
$lang['Has_ignored'] = ' Has Ignored You.';
$lang['Ignore_user'] = 'Ignore this user';
$lang['Unignore_user'] = 'Unignore this user';

Tom_S
Registered User
Posts: 524
Joined: Tue Jul 29, 2003 6:54 pm
Location: 127.0.0.1
Contact:

Missing Code

Post by Tom_S » Mon Mar 15, 2004 8:41 pm

In the privmsg.php it says:

Code: Select all

#-----[ FIND ]------------------------------------------ 
#
			$to_userdata = $db->sql_fetchrow($result);
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
			
			if ( isset($ignored_ids[$to_userdata['user_id']]) && $ignored_ids[$to_userdata['user_id']] ) 
			{
				message_die(GENERAL_ERROR, $to_username . $lang['Has_ignored']); 
			}
# 
but this part of the code isn't in my privmsg.php

Code: Select all

#-----[ FIND ]------------------------------------------ 
#
			$to_userdata = $db->sql_fetchrow($result);
# 
I have multiple mods installed and assume that could be it so with that in mind is there a more specific place I can add this new statement?
I went back in Time...
Image

Tom_S
Registered User
Posts: 524
Joined: Tue Jul 29, 2003 6:54 pm
Location: 127.0.0.1
Contact:

Post by Tom_S » Tue Mar 16, 2004 6:26 pm

:roll: Bump...

I am using 2.0.6 if that helps?
I went back in Time...
Image

User avatar
NoahK
Registered User
Posts: 217
Joined: Wed Nov 12, 2003 4:49 am
Location: Atlanta, GA
Contact:

Post by NoahK » Tue Mar 16, 2004 10:52 pm

The PM part of the ignore thing does not work for me either. It still allows PMs to go through if the person you're sending it to has you ignored.
Come play Final Fantasy Tactics: Online!
Features:
- Pick one of 351 class combinations. Battle 150 different monsters. Find over 2,200 weapons, armor, and items. Fight in tournaments or play the Gil Slots. Anything goes!

Zaratan
Registered User
Posts: 2
Joined: Wed Apr 14, 2004 4:58 am

PM ignore fix.

Post by Zaratan » Wed Apr 14, 2004 5:08 am

Code: Select all

#-----[ OPEN ]------------------------------------------ 
# 
privmsg.php
# 
#-----[ FIND ]------------------------------------------ 
#
	if ( $submit )
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
	//Get user ignore settings 
	$sql = "SELECT ignored_id FROM " . $table_prefix . "ignoreuser WHERE user_id = " . $userdata[user_id]; 
	if ( !($result = $db->sql_query($sql)) ) 
	{ 
	   message_die(GENERAL_ERROR, 'Error retrieving ignore user data', '', __LINE__, __FILE__, $sql); 
	} 
	$ignored_ids = array(); 
	while( $row = $db->sql_fetchrow($result) ) 
	{ 
	   $ignored_ids[$row['ignored_id']] = true; 
	}
Should read:

Code: Select all

#-----[ OPEN ]------------------------------------------ 
# 
privmsg.php
# 
#-----[ FIND ]------------------------------------------ 
#
	if ( $submit )
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
	//Get user ignore settings 
	$sql = "SELECT user_id FROM " . $table_prefix . "ignoreuser WHERE ignored_id = " . $userdata[user_id]; 
	if ( !($result = $db->sql_query($sql)) ) 
	{ 
	   message_die(GENERAL_ERROR, 'Error retrieving ignore user data', '', __LINE__, __FILE__, $sql); 
	} 
	$ignored_ids = array(); 
	while( $row = $db->sql_fetchrow($result) ) 
	{ 
	   $ignored_ids[$row['user_id']] = true; 
	}
Previously it only worked when you ignored yourself :D

Zaratan
Registered User
Posts: 2
Joined: Wed Apr 14, 2004 4:58 am

Post by Zaratan » Wed Apr 14, 2004 5:13 am

Tom_S wrote: :roll: Bump...

I am using 2.0.6 if that helps?

Code: Select all

	if ( $submit )
	{
		if ( !empty($HTTP_POST_VARS['username']) )
		{
			$to_username = $HTTP_POST_VARS['username'];

			$sql = "SELECT user_id, user_notify_pm, user_email, user_lang, user_active 
				FROM " . USERS_TABLE . "
				WHERE username = '" . str_replace("\'", "''", $to_username) . "'
					AND user_id <> " . ANONYMOUS;
			if ( !($result = $db->sql_query($sql)) )
			{
				$error = TRUE;
				$error_msg = $lang['No_such_user'];
			}

			$to_userdata = $db->sql_fetchrow($result);
			if ( isset($ignored_ids[$to_userdata['user_id']]) && $ignored_ids[$to_userdata['user_id']] ) 
			{
				message_die(GENERAL_ERROR, $to_username . $lang['Has_ignored']); 
			}
This is what my 2.0.6 code looks like with this bit added. Hope this helps.

karlsson
Registered User
Posts: 12
Joined: Fri Mar 07, 2003 4:53 am
Location: Somerville, MA
Contact:

Post by karlsson » Mon Apr 26, 2004 4:49 pm

Does this mod work on 2.0.8?

I desperately need to add this ignore feature to my site, and I tried one that I found but it doesn't seem to work right with my 2.0.8:

http://www.gunnerx.net/phpBB21/viewtopic.php?t=6

So far, i think the problem is something with it not being able to properly get user_id if the user is not logged in or something.
Livephish.org trading community - http://livephish.org/forum/

User avatar
NoahK
Registered User
Posts: 217
Joined: Wed Nov 12, 2003 4:49 am
Location: Atlanta, GA
Contact:

Post by NoahK » Mon Apr 26, 2004 9:20 pm

Zaratan: Excellent, I totally overlooked that. Thanks.
Come play Final Fantasy Tactics: Online!
Features:
- Pick one of 351 class combinations. Battle 150 different monsters. Find over 2,200 weapons, armor, and items. Fight in tournaments or play the Gil Slots. Anything goes!

Ravenhearte
Registered User
Posts: 96
Joined: Fri Oct 10, 2003 3:45 pm
Location: Just this side of sane.
Contact:

Post by Ravenhearte » Thu Apr 29, 2004 2:07 pm

Since I'm not in the position to support this at the moment my suggestion would be to go with the Profile Control Panel mod. I'm currently branching away from phpbb and will be coming out with divbb. It will be heavily based on phpbb but will use pure xhtml 1.0 strict and a tableless layout. Progress can be seen on my site.

Post Reply

Return to “[2.0.x] MODs in Development”