 |
 |
 |
 |
 |
| Author |
Message |
Quiksilver
Joined: 01 May 2006 Posts: 8
|
|
A Little Assistance Required |
|
Hopefully this is in the correct forum...
1. Some of the russian text is still there such as the "submit" button in Xfields
2. Is there an option to remove the date section (prevent a user from posting in the future or changing the time stamp when posting news, the timestamp should be automatically generated
3. In xfields, when using textarea/multi line form field, when you go to post your news a single textfield appears instead of the textarea field
4. Links available for registration and lost password in login screen like in Cutenews 1.4.1...Currently I have no idea how to link to these scripts if at all.
Any chance of these gettings rectified? 
|
|
| Mon May 01, 2006 12:09 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
1. You can translate it yourself. Find the code in plugins/xfields/core.php
2. Open addnews.mdu and remove this:
 |  | <fieldset id="date"><legend><?=$echo['date']; ?></legend>
<input type="text" name="day" maxlength="2" value="<?=date('d'); ?>" title="<?=$echo['calendar']['day']; ?>">
<select name="month" title="<?=$echo['calendar']['month']; ?>">
<?
foreach (array('jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec') as $v){
echo '<option value="'.$v.'"'.($v == strtolower(date('M')) ? ' selected' : '').'>'.$echo['calendar'][$v].'</option>';
}
?>
</select>
<input type="text" name="year" maxlength="4" value="<?=date('y'); ?>" title="<?=$echo['calendar']['year']; ?>"> <input type="text" name="hour" maxlength="2" value="<?=date('H', (time() + $config_date_adjust * 60)); ?>" title="<?=$echo['calendar']['hour']; ?>">:<input type="text" name="minute" maxlength="2" value="<?=date('i', (time() + $config_date_adjust * 60)); ?>" title="<?=$echo['calendar']['minute']; ?>">:<input type="text" name="second" maxlength="2" value="<?=date('s', (time() + $config_date_adjust * 60)); ?>" title="<?=$echo['calendar']['second']; ?>">
</fieldset> |
and change this:
 |  | if (($added_time = strtotime($day.' '.$month.' '.$year.' '.$hour.':'.$minute.':'.$second)) == -1){
$added_time = (time() + $config_date_adjust * 60);
} |
to this:
 |  | //if (($added_time = strtotime($day.' '.$month.' '.$year.' '.$hour.':'.$minute.':'.$second)) == -1){
$added_time = (time() + $config_date_adjust * 60);
//} |
3. It looks like a single line field but it is a textarea field. Try to enter multiple lines and you'll see.
4. You have to install the plugins from the download section.
|
|
| Tue May 02, 2006 10:49 am |
|
 |
Quiksilver
Joined: 01 May 2006 Posts: 8
|
|
|
|
Thanks for the reply:
1. That worked great. For future updating, if anyone is somewhat interested, it's found in line 322 of core.php
2. That also worked great; just don't forget to do the same for editnews.mdu ... how about an option to do this kind of 'mod' from the admincp in future versions?
3. Pretty nifty...the actual plain courier text should've been a giveaway
4. I was able to setup the link for lost password as per the instructions but do not see something similar for the registration link. Yes, I downloaded both addons but I still cannot figure out how to link it to the main page and subsequently to the registration.php file
Thanks!
EDIT: I also noticed that by removing those items, when editing news now I see the following: 31.12.1969
|
|
| Tue May 02, 2006 4:15 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | 4. I was able to setup the link for lost password as per the instructions but do not see something similar for the registration link. Yes, I downloaded both addons but I still cannot figure out how to link it to the main page and subsequently to the registration.php file |
Please read this: http://english.cutenews.ru/forum/viewtopic.php?p=835#835
and this: http://english.cutenews.ru/forum/viewtopic.php?p=455#455
 |  | EDIT: I also noticed that by removing those items, when editing news now I see the following: 31.12.1969 |
That's quite strange as these two mods don't touch the editing part of the script's code. 
|
|
| Tue May 02, 2006 6:05 pm |
|
 |
Quiksilver
Joined: 01 May 2006 Posts: 8
|
|
|
|
I guess there is no easy way to add a [ Register ] link in the same manner as the [ Recuperate Password ] link in the lostpass mod? This is what I am looking for so that it has the same 'feel' as Cutenews 1.4.1
Also the 1969 date appears when I remove the bit of script from the addnews.mdu and editnews.mdu files
|
|
| Tue May 02, 2006 6:39 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | Also the 1969 date appears when I remove the bit of script from the addnews.mdu and editnews.mdu files |
In editnews.mdu change this:
 |  | if (($added_time = strtotime($day.' '.$month.' '.$year.' '.$hour.':'.$minute.':'.$second)) == -1){
$added_time = (time() + $config_date_adjust * 60);
}
if (!$title){
$title = substr($short_story, 0, 10).'...';
}
run_actions('edit-save-entry');
$sql->update(array(
'table' => 'news',
'where' => array("id = $id"),
'values' => array(
'date' => $added_time,
'title' => replace_news('add', $title),
'short' => strlen(replace_news('add', $short_story)),
'full' => strlen(replace_news('add', $full_story)),
'avatar' => $avatar,
'category' => $category,
'url' => ($url ? namespace($url) : namespace(totranslit($title))),
'hidden' => (($config_approve_news == 'yes' and $member['level'] > 2) ? true : false)
)
)); |
to this (when editing a news item the date won't change):
 |  |
if (!$title){
$title = substr($short_story, 0, 10).'...';
}
run_actions('edit-save-entry');
$sql->update(array(
'table' => 'news',
'where' => array("id = $id"),
'values' => array(
'title' => replace_news('add', $title),
'short' => strlen(replace_news('add', $short_story)),
'full' => strlen(replace_news('add', $full_story)),
'avatar' => $avatar,
'category' => $category,
'url' => ($url ? namespace($url) : namespace(totranslit($title))),
'hidden' => (($config_approve_news == 'yes' and $member['level'] > 2) ? true : false)
)
)); |
or to this (when editing a news item the date will be the date when editing):
 |  | $added_time = (time() + $config_date_adjust * 60);
if (!$title){
$title = substr($short_story, 0, 10).'...';
}
run_actions('edit-save-entry');
$sql->update(array(
'table' => 'news',
'where' => array("id = $id"),
'values' => array(
'date' => $added_time,
'title' => replace_news('add', $title),
'short' => strlen(replace_news('add', $short_story)),
'full' => strlen(replace_news('add', $full_story)),
'avatar' => $avatar,
'category' => $category,
'url' => ($url ? namespace($url) : namespace(totranslit($title))),
'hidden' => (($config_approve_news == 'yes' and $member['level'] > 2) ? true : false)
)
)); |
|
|
| Tue May 02, 2006 8:03 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|