Bharrabhaz
10-04-2005, 05:34 AM
Hi guys, i posted a problem here, and i self find the solution..hehehe
The Subdreamer default of Latest news Plugin is like:
A new notice in our site today
31/08/2005
I can change for this:
31/08/2005 - A new notice in our site today
Because i wanna make a Newspaper website...
Simple?
Was!!!
Letīs go:
In p3_latestnews folder, edit the file latestnews.php.
In the line 259, remove the </br> tag, like this:
$subtitle = '<br />' . iif($article['datestart'] != 0, DisplayDate($article['datestart']), DisplayDate($article['datecreated']));
will stay:
$subtitle = ' ' . iif($article['datestart'] != 0, DisplayDate($article['datestart']), DisplayDate($article['datecreated']));
This is for dont have a break line in the news list.
Now will put the date in front of the news title:
In the line 297, search the code:
echo '<a href="' . RewriteLink('index.php?categoryid=' . $article['categoryid'] . '&p2_articleid=' . $article['articleid']) . '">' . $boldtitlestart . $article['title'] . $boldtitleend . '</a>' . $categoryname . $subtitle . '<br />' . $printlink . $emaillink;
and modify the position of the . $subtitle TAG for BEFORE the $boldtitlestart , if in this case, is the news title link. Lets go:
echo '<a href="' . RewriteLink('index.php?categoryid=' . $article['categoryid'] . '&p2_articleid=' . $article['articleid']) . '">' . $subtitle .' - ' . $boldtitlestart . $article['title'] . $boldtitleend . '</a>' . '<br />' . $printlink . $emaillink;
Note if i put the code .' - ' in between the tags, for separate the date from the news title.
Now go to the CP, in the latest news panel control , and select the option to show the date in the latest news plugin (if you dont make this, the hack dont works !!!)
Just this.
This hack works in Subdreamer 2.2 , but itīs easy change the others versions (i think).
PS: Iīm not a programmer, but i have many persistence :lol: ;) ;
PS2: Sorry for my poor english.
Bharrabhaz
The Subdreamer default of Latest news Plugin is like:
A new notice in our site today
31/08/2005
I can change for this:
31/08/2005 - A new notice in our site today
Because i wanna make a Newspaper website...
Simple?
Was!!!
Letīs go:
In p3_latestnews folder, edit the file latestnews.php.
In the line 259, remove the </br> tag, like this:
$subtitle = '<br />' . iif($article['datestart'] != 0, DisplayDate($article['datestart']), DisplayDate($article['datecreated']));
will stay:
$subtitle = ' ' . iif($article['datestart'] != 0, DisplayDate($article['datestart']), DisplayDate($article['datecreated']));
This is for dont have a break line in the news list.
Now will put the date in front of the news title:
In the line 297, search the code:
echo '<a href="' . RewriteLink('index.php?categoryid=' . $article['categoryid'] . '&p2_articleid=' . $article['articleid']) . '">' . $boldtitlestart . $article['title'] . $boldtitleend . '</a>' . $categoryname . $subtitle . '<br />' . $printlink . $emaillink;
and modify the position of the . $subtitle TAG for BEFORE the $boldtitlestart , if in this case, is the news title link. Lets go:
echo '<a href="' . RewriteLink('index.php?categoryid=' . $article['categoryid'] . '&p2_articleid=' . $article['articleid']) . '">' . $subtitle .' - ' . $boldtitlestart . $article['title'] . $boldtitleend . '</a>' . '<br />' . $printlink . $emaillink;
Note if i put the code .' - ' in between the tags, for separate the date from the news title.
Now go to the CP, in the latest news panel control , and select the option to show the date in the latest news plugin (if you dont make this, the hack dont works !!!)
Just this.
This hack works in Subdreamer 2.2 , but itīs easy change the others versions (i think).
PS: Iīm not a programmer, but i have many persistence :lol: ;) ;
PS2: Sorry for my poor english.
Bharrabhaz