[ABD] Profile comments/ Feedback/ Karma (1.6.6)

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.
Locked
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.1)

Post by muggins »

This is coming along wonderfully!
Muggins
janmyszkier
Registered User
Posts: 294
Joined: Tue Oct 09, 2007 4:53 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by janmyszkier »

1.6.2 uploaded with fixes, and adjustments (many thanks to kevinroxxx for these!!!)
subsilver2 included, let me know what you think before i submit it ;)

if you installed 1.6.1 just reupload the files that are provided within package and ..... recache ;)
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by muggins »

The icons indicating whether the comment was negative, neutral or positive do not appear for 1.6.1 at all in Firefox, and appear as broken links in IE.

Does anyone have a current screenshot of this mod? The test board is still using 1.5.3, with the ugly boxes...

Edit: My bad! My style was misnamed, doubtless causing me a wealth of problems I didn't even know about. :oops:
Muggins
startsmart
Registered User
Posts: 16
Joined: Wed Aug 06, 2008 8:30 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by startsmart »

i have this error, I do the install step by step and I get this errors:

when i try to access to maintenance in ACP i get this error:

Code: Select all

Fatal error: Call to a member function sql_query() on a non-object in D:\xampp\htdocs\club\includes\functions.php on line 1624
janmyszkier
Registered User
Posts: 294
Joined: Tue Oct 09, 2007 4:53 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by janmyszkier »

what do you have around 1624 line? can you show me 10 lines before and 10 lines after ?
startsmart
Registered User
Posts: 16
Joined: Wed Aug 06, 2008 8:30 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by startsmart »

this is the 10 lines after and before line 1624:

Code: Select all

	}
//PROFILE COMMENTS START
// GENERATE NEW COMMENTS NUMBER AND LINK
$new_comments = 0;
$userid = $user->data['user_id'];
$sql = 'SELECT COUNT(c.comment_id) AS new_comments 
	FROM ' . COMMENTS_TABLE . ' c, ' . USERS_TABLE . " u
	WHERE c.comment_time >= u.user_last_comm_check
		AND c.comment_to_id = $userid
		AND u.user_id = $userid";
$result = $db->sql_query($sql);
$new_comments = $db->sql_fetchrow($result);
	$new_comments = $new_comments['new_comments'];
	$db->sql_freeresult($result);
//END OF NEW COMMENTS

//PROFILE COMMENTS END
	$template->assign_vars(array(
		$tpl_prefix . 'BASE_URL'		=> $base_url,
		'A_' . $tpl_prefix . 'BASE_URL'	=> addslashes($base_url),
		$tpl_prefix . 'PER_PAGE'		=> $per_page,
and this is a link for functions.php file:

Code: Select all

http://rapidshare.com/files/135474788/functions.zip.html
janmyszkier
Registered User
Posts: 294
Joined: Tue Oct 09, 2007 4:53 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by janmyszkier »

everyone that already installed 1.6.2 please find in profile_comments.php:

Code: Select all

'LINK_PROFILE' => 'http://'.$config['server_name'].$config['script_path'].'/profile_comments.'.$phpEx.'', 'mode=viewall&u='.request_var('comment_to_id', 0)		,
and replace it with:

Code: Select all

'LINK_PROFILE' => generate_board_url() .
"/memberlist.$phpEx?mode=viewprofile&u=".request_var('comment_to_id', 0),
I'll repack my file in a moment (still as 1.6.2),

startsmart: really weird, especially that functions.php doesn't have any effect ON ACP, unless you have modified something else than includes/functions.php like i dunno, functions_admin ?
startsmart
Registered User
Posts: 16
Joined: Wed Aug 06, 2008 8:30 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by startsmart »

sorry janmyszkier, i found the wrong in functions.php file and fix it , I have mistaken , sorry again
startsmart
Registered User
Posts: 16
Joined: Wed Aug 06, 2008 8:30 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by startsmart »

i have this error when i try to add comment:

Code: Select all

SQL ERROR [ mysqli ]

Incorrect string value: '\xD9\x83\xD9\x8A\xD9\x82...' for column 'comment_text' at row 1 [1366]

SQL

INSERT INTO phpbb_comments (comment_from_id, comment_to_id, comment_time, comment_author, comment_text, comment_type) VALUES (2, 53, 1218139627, 'startsmart', 'hi man', 0)

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: profile_comments.php
LINE: 293
CALL: dbal_mysqli->sql_query()
janmyszkier
Registered User
Posts: 294
Joined: Tue Oct 09, 2007 4:53 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by janmyszkier »

i guess what's this actually:
\xD9\x83\xD9\x8A\xD9\x82...

hrm.... anyone can check this? kevinroxxx maybe since he got mysqli database aswell? I'll contact him on that matter. Please wait, and let me know if other comments have the same result. (try typing some different text)
kevinroxx
Registered User
Posts: 94
Joined: Fri Dec 14, 2007 9:57 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by kevinroxx »

startsmart you have been pm'd
startsmart
Registered User
Posts: 16
Joined: Wed Aug 06, 2008 8:30 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by startsmart »

janmyszkier wrote:i guess what's this actually:
\xD9\x83\xD9\x8A\xD9\x82...

hrm.... anyone can check this? kevinroxxx maybe since he got mysqli database aswell? I'll contact him on that matter. Please wait, and let me know if other comments have the same result. (try typing some different text)
this is because i try to add arabic comment. when i add an english one, no error happened

so your mod doesn't support arabic. can you add support to it? I'm the owner for arabic site and all the member are arabs so the comment must be in arabic.
i wait your answer soon.

thanxx janmyszkier,
janmyszkier
Registered User
Posts: 294
Joined: Tue Oct 09, 2007 4:53 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by janmyszkier »

I thought it will be ok since polish characters are supported... hmm.... at least we know the reason of the error ;) will try to look into it later this day (evening/night propably). When the patch is ready, i'll let you all know. it would be nice if you could send me some random arabic characters through pm so i would have something to test my script with.
kevinroxx
Registered User
Posts: 94
Joined: Fri Dec 14, 2007 9:57 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by kevinroxx »

I tested the arabic characters out on my board as well jan and returned the same error as startsmart.

Here are some arabic characters for you to test with:

Code: Select all

ﺚ ﺢ ﺝ ب ﺟ
startsmart
Registered User
Posts: 16
Joined: Wed Aug 06, 2008 8:30 pm

Re: [RC3]Profile comments/ Feedback/ Karma (1.6.2)

Post by startsmart »

what happened with you "janmyszkier"
Locked

Return to “[3.0.x] Abandoned MODs”