Code: Select all
#SOME CODE
AUTOPOST_BOT_EDIT
AGREGATOR_EDIT
#SOME CODE
Code: Select all
#SOME CODE
AGREGATOR_EDIT
AUTOPOST_BOT_EDIT
#SOME CODE
Code: Select all
#SOME CODE
AUTOPOST_BOT_EDIT
AGREGATOR_EDIT
#SOME CODE
Code: Select all
// lastrss agregator begin
include ($phpbb_root_path . 'includes/functions_lastrss.'.$phpEx);
// lastrss agregator end
// lastrss autopost mod begin
include ($phpbb_root_path . 'includes/functions_lastrss_autopost.'.$phpEx);
// lastrss autopost mod end
Feed URL: http://www.thenintendobasement.com/latestnews/feed/Smix wrote:Please post there the URL of the feed - I´ll check it ... Also check again the forum_id and permissions of the user which is used as APBot poster ...
Code: Select all
General Error
SQL ERROR [ mysql4 ]
Column 'topic_first_poster_name' cannot be null [1048]
SQL
INSERT INTO phpbb_topics (topic_poster, topic_time, forum_id, icon_id, topic_approved, topic_title, topic_first_poster_name, topic_first_poster_colour, topic_type, topic_time_limit, topic_attachment) VALUES (7333, 1223501665, '22', 0, 1, 'Champ.League | Advocaat se toma en broma acusación de arregl', NULL, NULL, 0, 0, 0)
BACKTRACE
FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()
FILE: includes/functions_posting.php
LINE: 1807
CALL: dbal_mysql->sql_query()
FILE: includes/functions_lastrss_autopost.php
LINE: 186
CALL: submit_post()
FILE: includes/functions_lastrss_autopost.php
LINE: 52
CALL: autopost()
FILE: includes/functions_lastrss_autopost.php
LINE: 232
CALL: autopost_init()
FILE: index.php
LINE: 29
CALL: include('includes/functions_lastrss_autopost.php')
Code: Select all
/**
* Truncates string while retaining special characters if going over the max length
* The default max length is 60 at the moment
* The maximum storage length is there to fit the string within the given length. The string may be further truncated due to html entities.
* For example: string given is 'a "quote"' (length: 9), would be a stored as 'a "quote"' (length: 19)
*
* @param string $string The text to truncate to the given length. String is specialchared.
* @param int $max_length Maximum length of string (multibyte character count as 1 char / Html entity count as 1 char)
* @param int $max_store_length Maximum character length of string (multibyte character count as 1 char / Html entity count as entity chars).
* @param bool $allow_reply Allow Re: in front of string
* @param string $append String to be appended
*/
function truncate_string($string, $max_length = 60, $max_store_length = 255, $allow_reply = true, $append = '')
do not worry, this week, when you have time ....Smix wrote: Hello DieagoPino,
sorry, I´ll answer you tommorow ... I´ve got already red and closed eyes ...
Code: Select all
<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->
Code: Select all
<!-- IF S_NEW_MESSAGE -->96<!-- ELSE -->100<!-- ENDIF -->
Code: Select all
$subject = truncate_string($subject);
Code: Select all
$subject = truncate_string($subject, 100);
Code: Select all
// prepare data for posting
$subject = $post_data['name'] . ' | ' . $post_data['items'][$i]['title'];
// cut the subject to fit the db
$subject = $db->sql_escape(substr($subject,0,100));
generate_text_for_storage($subject, $uid, $bitfield, $options, false, false, false);
Code: Select all
// prepare data for posting
$subject = truncate_string($post_data['name'] . ' | ' . $post_data['items'][$i]['title'], 255);
generate_text_for_storage($subject, $uid, $bitfield, $options, false, false, false);
Code: Select all
// First of all make sure the subject and topic title are having the correct length.
// To achieve this without cutting off between special chars we convert to an array and then count the elements.
$subject = truncate_string($subject);
Code: Select all
// First of all make sure the subject and topic title are having the correct length.
// To achieve this without cutting off between special chars we convert to an array and then count the elements.
$subject = truncate_string($subject, 255); // $subject = truncate_string($subject);