[2.0.20] Topic Description

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
34
69%
Very Good
7
14%
Good
3
6%
Fair
0
No votes
Poor
5
10%
 
Total votes: 49

Geek_Rohit
Registered User
Posts: 8
Joined: Sun Feb 20, 2005 2:39 pm
Location: India
Contact:

Post by Geek_Rohit » Tue Jun 14, 2005 7:45 am

Here is the list of mods.
topic description
Rank in memberlist
Moderator CP
Log Actions MOD
Copyright Information
Simply Merge Threads
Announces Suite - Part 1 (required for all setups)
Announces Suite - Part 3 (with cat.hierarchy v 2.0
Advanced Posts Merging
Configurable WhoIsOnline Reference Time
Birthday
Super Quick Reply
Categories hierarchy - part 1 (common to all setup
EasyMOD
A nerd is someone whose life revolves around computers and technology. A geek is someone whose life revolves around computers and technology, and likes it!!
"Try resisiting this if you are a sports fan
http://www.sportzforumz.co.nr Go join it. "
The Ultimate forum for Sports. With Daily F1 news and live F1 coverage!!!

helluvaguy
Registered User
Posts: 155
Joined: Fri Sep 07, 2001 12:06 pm

Post by helluvaguy » Tue Jun 14, 2005 9:28 am

You call that "heavy modded"? :lol:

To be serious the ones I know in your list are probably not causing this problem. For the others I can't say.

Take a look at you includes/function_post.php and look for a line that starts with

Code: Select all

function submit_post($mode, &$post_data,
and in your posting.php for a line startting with

Code: Select all

submit_post($mode, $post_data,
. They might look different, but the submit _post is important.

Post these two lines here and maybe we'll find the problem there.

Geek_Rohit
Registered User
Posts: 8
Joined: Sun Feb 20, 2005 2:39 pm
Location: India
Contact:

Post by Geek_Rohit » Tue Jun 14, 2005 2:41 pm

k
searched for the line in functions_post.php and got this
here we have added
// , $topic_announce_duration = 0
//-- modify
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject,&$post_description, &$desc4mod, &$post_message, &$poll_title, &$poll_options, &$poll_length, $topic_announce_duration = 0)
//-- fin mod : announces



and this for posting.php
mod topic description add argument

submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject),str_replace("\'", "''", $description), $desc4mod, str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);

and once more
here we added
// , $topic_announce_duration
//-- modify
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $topic_announce_duration);
//-- fin mod : announces
A nerd is someone whose life revolves around computers and technology. A geek is someone whose life revolves around computers and technology, and likes it!!
"Try resisiting this if you are a sports fan
http://www.sportzforumz.co.nr Go join it. "
The Ultimate forum for Sports. With Daily F1 news and live F1 coverage!!!

helluvaguy
Registered User
Posts: 155
Joined: Fri Sep 07, 2001 12:06 pm

Post by helluvaguy » Tue Jun 14, 2005 3:22 pm

It's very strange, that you have two lines of that... I've only got one... 8O

Ok, try changing your lines in posting.php to the following
mod topic description add argument

submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject),str_replace("\'", "''", $description), $desc4mod, str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $topic_announce_duration);
here we added
// , $topic_announce_duration
//-- modify
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $description), $desc4mod, str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $topic_announce_duration);
//-- fin mod : announces

If that doesn't help try linking your posting.php somewhere as a txt file, so I can take a closer look at the whole file.

Geek_Rohit
Registered User
Posts: 8
Joined: Sun Feb 20, 2005 2:39 pm
Location: India
Contact:

Post by Geek_Rohit » Tue Jun 14, 2005 5:01 pm

Thnx a lot man this solved my problem. :lol:
Thnx a ton.
A nerd is someone whose life revolves around computers and technology. A geek is someone whose life revolves around computers and technology, and likes it!!
"Try resisiting this if you are a sports fan
http://www.sportzforumz.co.nr Go join it. "
The Ultimate forum for Sports. With Daily F1 news and live F1 coverage!!!

wizdum
Registered User
Posts: 11
Joined: Thu Jan 27, 2005 10:16 pm

Post by wizdum » Thu Jun 16, 2005 1:41 am

i am having the same probalem as the above poster, here is a capture of the error i get http://www.joshuaburgess.biz/movies/ima ... nerror.JPG, i have a backup, so an immidiate reply isn't needed.

helluvaguy
Registered User
Posts: 155
Joined: Fri Sep 07, 2001 12:06 pm

Post by helluvaguy » Thu Jun 16, 2005 6:01 am

Well if it's the same problem, then you should find every solution to solve it within the last few posts. ;)

wizdum
Registered User
Posts: 11
Joined: Thu Jan 27, 2005 10:16 pm

Post by wizdum » Thu Jun 16, 2005 10:51 am

i tried that, but it didn't work, i think mine has a few more errors than his.

helluvaguy
Registered User
Posts: 155
Joined: Fri Sep 07, 2001 12:06 pm

Post by helluvaguy » Thu Jun 16, 2005 11:04 am

Did you compare the submit_post statements in both files?
Do you by any chance use the quiz mod by saerdnaer?
If you can't find anything just post your submit_post statements from both files.

wizdum
Registered User
Posts: 11
Joined: Thu Jan 27, 2005 10:16 pm

Post by wizdum » Thu Jun 16, 2005 3:28 pm

i don't have the quizz mod, and i am new to PHP, but i will chech the submit_post statements

wizdum
Registered User
Posts: 11
Joined: Thu Jan 27, 2005 10:16 pm

Post by wizdum » Thu Jun 16, 2005 3:53 pm

ok, i got it, thanks, there was a second instance of "submit_post" that i needed to replace with your edited version.
thanks again.

SeraphicGate
Registered User
Posts: 207
Joined: Tue Dec 23, 2003 6:54 am

Post by SeraphicGate » Mon Jun 20, 2005 2:52 am

Does anyone see a conflict with this mod from the below code?

Code: Select all

#-----[ OPEN ]------------------------------------------------
#
posting.php

#
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log actions MOD Start
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
// Log actions MOD End

#
#-----[ FIND ]------------------------------------------------
#
	switch ( $mode )
	{
		case 'editpost':

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log Actions Start
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
$bbcode_uid = '';

prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);

if ( $error_msg == '' )
{
	$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;

	submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
		
	// Log actions MOD Start 
	if ( $is_auth['auth_mod'] )
	{
		log_action('edit', $topic_id, $userdata['user_id'], $userdata['username']);
	}
	// Log actions MOD End
}
break;
// Log Action End

#
#-----[ FIND ]-------------------------------------------------
#
delete_post(

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// Log actions MOD Start 
if ( $is_auth['auth_mod'] ) 
{ 
	log_action('delete', $topic_id, $userdata['user_id'], $userdata['username']); 
} 
// Log actions MOD End

#

Swizec
Former Team Member
Posts: 1701
Joined: Mon Mar 10, 2003 9:42 pm
Location: Slovenia
Contact:

Post by Swizec » Mon Jun 20, 2005 5:42 am

don't think I see a conflict...

SeraphicGate
Registered User
Posts: 207
Joined: Tue Dec 23, 2003 6:54 am

Post by SeraphicGate » Mon Jun 20, 2005 4:32 pm

There has to be something, because if that mod and this mod are both installed you get an error when editing posts.

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Post by D¡cky » Mon Jun 20, 2005 10:22 pm

Have you tried modifying the Log Actions MOD call to submit_post to match the what the Topic Description MOD does.

I assume you have the Log Actions MOD already installed. Try this

Code: Select all

# 
#-----[ FIND ]------------------------------------------------ 
# 
switch ( $mode ) 
{ 
case 'editpost':
# 
#-----[ FIND ]------------------------------------------------ 
#
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// mod topic description add argument

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 

str_replace("\'", "''", $subject),

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 

str_replace("\'", "''", $description), $desc4mod,
Have you hugged someone today?

Post Reply

Return to “[2.0.x] MOD Database Releases”