Some modifications that i did and works right, maybe i can help you:
index.php
I add a link to the user profile that posted the new.
Find:
($new_is_new)?
In the same line find the next or something like this:
sprintf($lang['news_posted_by'], $image_row['user_name'], format_date($config['date_format']." ".$config['time_format'], $image_row['news_date']));
Replace to:
" Posteed by <a href=\"" .$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$image_row['user_id'])."\">".$image_row['user_name']."</a> ".sprintf(format_date($config['date_format']." ".$config['time_format'], $image_row['news_date']));
_______
Add an avatar or userpic. This changes is to add an userpic from Member picture mod from V@no but with a little modifications this works to avatar mod.
index.php
Find:
if (!isset($config['news_home_display']) || $config['news_home_display'] == 1)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." ORDER BY news_date DESC LIMIT 0, ".((isset($config['news_nb']))?$config['news_nb']:5);
else if ($config['news_home_display'] == 2)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." WHERE news_date > ".(time() - ((isset($config['news_nb_days']))?$config['news_nb_days']:15)*86400)." ORDER BY news_date DESC";
REplace to:
if (!isset($config['news_home_display']) || $config['news_home_display'] == 1)
$sql = "SELECT news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id ORDER BY news_date DESC LIMIT 0, ".((isset($config['news_nb']))?$config['news_nb']:5);
else if ($config['news_home_display'] == 2)
$sql = "SELECT news_id, news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id, news_date > ".(time() - ((isset($config['news_nb_days']))?$config['news_nb_days']:15)*86400)." ORDER BY news_date DESC";
Now you can use the userpic from the user that posted the new
Find:
$news .= "<td width=\"100%\" valign=\"top\">\n<br/>";
Add after:
if($image_row['userpic'] == "" || $image_row['userpic'] == "blank.gif");
else
$news .= "<a href=\"" .$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$image_row['user_id'])."\"><img src=\"data/userpic/".$image_row['userpic']."\" align=\"left\" border=0 /></a>";
news.php
Find:
format_text($news_row[$i]['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1)),
Add before in line:
(($news_row[$i]['userpic'] == "" || $news_row[$i]['userpic'] == "blank.gif")?"":"<a href=\"" .$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$news_row[$i]['user_id'])."\"><img src=\"data/userpic/".$news_row[$i]['userpic']."\" align=\"left\" border=0 /></a>").
Find:
$sql = "SELECT news_id, news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." ORDER BY news_date DESC LIMIT $offset, $newsPerPage";
Replace to:
$sql = "SELECT news_id, news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id ORDER BY news_date DESC LIMIT $offset, $newsPerPage";
That's all ^o^
^^ Is the first time that i modify something in php and this works!! I'm happy... although that changes aren't important I hope that I could help someone.