Fatal error: Call to undefined function: show_news_display_options() in /home/timcom/public_html/ecard/admin/settings.php on line 161
Warning: fopen(http://127.0.0.2/4images17/rss.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/ascanio/domains/girlsandgirls.net/public_html/rss_reader.php on line 115
could not open XML input
News display mode
Fatal error: Call to undefined function: show_news_display_options() in /home/kingdomh/public_html/gallery/admin/settings.php on line 161
the admin settings do not save.
"news_contents" => $comments,
$contents = $site_template->parse_template("news_show");
$site_template->register_vars(array(
"news_contents" => $comments
));
Hello,
I have finally got this mod to work. This is what has to be done:
1st PROBLEM: Settings for news system are not saved:
SOLUTION:
As deenee said, there is some data missing in the table "settings" for the news settings to be saved.
This is the SQL I used to insert the lines:
INSERT INTO `settings` VALUES ('news_home_display', '1');
INSERT INTO `settings` VALUES ('news_nb', '2');
INSERT INTO `settings` VALUES ('news_nb_days', '10');
INSERT INTO `settings` VALUES ('news_cutoff', '5');
INSERT INTO `settings` VALUES ('news_html', '0');
INSERT INTO `settings` VALUES ('news_bbcode', '0');
INSERT INTO `settings` VALUES ('news_bbcodeimg', '0');
As you can see, I have assigned an initial value (the number on the right for each setting) which I thought was fine.
So copy&paste these lines in your MySQL GUI and now from the ACP you'll be able to successfully set the news settings
Hello,
I have finally got this mod to work. This is what has to be done:
1st PROBLEM: Settings for news system are not saved:
SOLUTION:
As deenee said, there is some data missing in the table "settings" for the news settings to be saved.
This is the SQL I used to insert the lines:
INSERT INTO `settings` VALUES ('news_home_display', '1');
INSERT INTO `settings` VALUES ('news_nb', '2');
INSERT INTO `settings` VALUES ('news_nb_days', '10');
INSERT INTO `settings` VALUES ('news_cutoff', '5');
INSERT INTO `settings` VALUES ('news_html', '0');
INSERT INTO `settings` VALUES ('news_bbcode', '0');
INSERT INTO `settings` VALUES ('news_bbcodeimg', '0');
As you can see, I have assigned an initial value (the number on the right for each setting) which I thought was fine.
So copy&paste these lines in your MySQL GUI and now from the ACP you'll be able to successfully set the news settings
Well running the update_news_12_to_13.php , this make this all working fine without change nothing manually ;) , this added the missing tables :)
hi nice mod !!!! but it would be a great idea to include a feature in every news that say Read More and show the complete news :)
"news_text" => multilang(format_text(substr($news_row[$i]['news_text'],0,250).'<a href="news_orig.php?id='.$news_row[$i]['news_id'].'"> ... Read more</a>',((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))),
copy news.php and news_orig.php to your root directory.Notice: Undefined index: comment_user_name in D:\Local Data\website\news.php on line 67
[color=blue]News[/color]
Prueba -- Posté par Busologo le 07.12.2005 00:18
Installation Manual of this MOD is so messed up :evil: !
When I post a news, I have the following...QuotePrueba -- Posté par Busologo le 07.12.2005 00:18
I translate all to spanish in main.php and admin.php but always show the same... Can anybody help me?
$news .= "<b>".$image_row['news_title']."</b> -- Posté par <b>".$image_row['user_name']."</b> le <i>".format_date($config['date_format']." ".$config['time_format'], $image_row['news_date'])."</i>";
$news .= "<b>".$image_row['news_title']."</b>".sprintf($lang['news_posted_by'], $news_row[$i]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[$i]['news_date']));
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="head1">{news_main}</td>
<td class="head1" align="right"><a class="head1" href="news.php">{news_archives}</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="head1" colspan="2">{news}</td>
</tr>
</table>
<br />
Originally posted by janfy-------- Found in the google cache. http://64.233.161.104/search?q=cache:SuhrFuItXoMJ:www.4homepages.de/forum/viewtopic.php%3Ft%3D13781%26sid%3D2b4ed2e2b0d1530cf29440df0c5db5c1+news+publishing&hl=es
I've wrote a simple news system, easier than the one published by Fugazima.
MOD Demo : http://www.bestof-sexe.com/4images/
08/22/2004: Update to version 1.2.0
09/12/2004: Update to version 1.3.0
Installation Steps:
Download zip file containing all files and installation or upgrade from 1.2 instructions
:mrgreen:
Try to ask in the appropriated topic (http://www.4homepages.de/forum/index.php?topic=6729.0) :?:
<img src="source">
I also tried out several different path attempts. No success :cry:<img src="./templates/default/images/newsbilder/example.gif" width="50" height="50">
now it works great. i made a stupid small HTML mistake.When I post a news, I have the following...QuotePrueba -- Posté par Busologo le 07.12.2005 00:18
I translate all to spanish in main.php and admin.php but always show the same... Can anybody help me?
Edit file index.php,
FIND this line :Code: [Select]$news .= "<b>".$image_row['news_title']."</b> -- Posté par <b>".$image_row['user_name']."</b> le <i>".format_date($config['date_format']." ".$config['time_format'], $image_row['news_date'])."</i>";
and REPLACE by this one :Code: [Select]$news .= "<b>".$image_row['news_title']."</b>".sprintf($lang['news_posted_by'], $news_row[$i]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[$i]['news_date']));
8)
$news .= "<b>".$image_row['news_title']."</b>".sprintf($lang['news_posted_by'], $news_row[$i]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[$i]['news_date']));
$max = 150; //max. Zeichen für den verkürzten Newstext
$news_text = $news_row[$i]['news_text'];
$news_text_short = (strlen($text)>$max) ? substr($text,0,$max).substr(substr($text,$max),0,strpos(substr($text,$max)," "))." ..." : $news_text;
und natürlich den neuen Tag registrieren ......
$site_template->register_vars(array(
...
"news_text_short" => format_text($news_text_short, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
...
{news_text_short}
Hallo Chicco,
ich verwende diesen News-Mod nicht, daher kann ich dir nur eine beispielhafte Lösung für die Verkürzung des Newstextes geben. Die genaue Tag-Bezeichnungen müsstest du dann für deine News anpassen ...
Mit dieser Textverkürzung werden aber immer ganze Wörter angezeigt, also keine Wörter durchgeschnitten .Code: [Select]$max = 150; //max. Zeichen für den verkürzten Newstext
und natürlich den neuen Tag registrieren ...
$news_text = $news_row[$i]['news_text'];
$news_text_short = (strlen($text)>$max) ? substr($text,0,$max).substr(substr($text,$max),0,strpos(substr($text,$max)," "))." ..." : $news_text;Code: [Select]...
$site_template->register_vars(array(
...
"news_text_short" => format_text($news_text_short, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
...
im Template kannst du dann für den verkürzten Newstext den folgenden Tag verwenden ...Code: [Select]{news_text_short}
Aber wie gesagt, als Beispiel für dich zum anpassen ... :wink:
$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";
DESC
mit ASC
hi.. i have problem with this mod
i'm using this mod, but i'm having some troubles
in the settings i see news settings and now, after a few tries, i don't see the button of save settings. i get this errore
"Fatal error: Call to undefined function: 1() in /membri/barstazione/cms/admin/settings.php on line 161"
the line in parte is:
line 161 in file setting.php:
$value_option($setting_name, $config_value);
i'm using italian language and a 4light_gray template
what can i do?
Quotehi.. i have problem with this mod
i'm using this mod, but i'm having some troubles
in the settings i see news settings and now, after a few tries, i don't see the button of save settings. i get this errore
"Fatal error: Call to undefined function: 1() in /membri/barstazione/cms/admin/settings.php on line 161"
the line in parte is:
line 161 in file setting.php:
$value_option($setting_name, $config_value);
i'm using italian language and a 4light_gray template
what can i do?
help me...plz!!!!!
#
#-----[ OPEN ]---------------------------------
#
lang/english/admin.php
#
#-----[ FIND ]---------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*-- Setting-Group 8 --*/
$setting_group[8] = "News";
$news_display_optionlist = array(
"1" => "Show the last 'X' news",
"2" => "Show news of the last 'X' days",
);
$setting['news_home_display'] = "News display mode";
$setting['news_nb'] = "News number";
$setting['news_nb_days'] = "Days number";
$setting['news_cutoff'] = "Number of days each news is marked as new";
$setting['news_html'] = "Allow HTML in news";
$setting['news_bbcode'] = "Allow BB-Code in news";
$setting['news_bbcodeimg'] = "Allow images (BB-Code) in news";
#
#-----[ OPEN ]---------------------------------
#
lang/french/admin.php
#
#-----[ FIND ]---------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*-- Setting-Group 8 --*/
$setting_group[8] = "Nouvelles";
$news_display_optionlist = array(
"1" => "Afficher les 'X' derničres nouvelles",
"2" => "Afficher les nouvelles des 'X' derniers jours",
);
$setting['news_home_display'] = "Mode d'affichage des nouvelles";
$setting['news_nb'] = "Nombre de nouvelles";
$setting['news_nb_days'] = "Nombre de jours";
$setting['news_cutoff'] = "Nombre de jours ou la nouvelle est considérée comme 'nouvelle'";
$setting['news_html'] = "Autoriser le HTML dans les nouvelles";
$setting['news_bbcode'] = "Autoriser le BB-Code dans les nouvelles";
$setting['news_bbcodeimg'] = "Autoriser les images (BB-Code) dans les nouvelles";
#
#-----[ OPEN ]---------------------------------
#
admin/settings.php
#
#-----[ FIND ]---------------------------------
#
show_setting_row("highlight_admin", "radio");
#
#-----[ AFTER, ADD ]------------------------------------------
#
show_table_separator($setting_group[8], 2, "#setting_group_8");
show_setting_row("news_home_display", "show_news_display_options");
show_setting_row("news_nb");
show_setting_row("news_nb_days");
show_setting_row("news_cutoff");
show_setting_row("news_html", "radio");
show_setting_row("news_bbcode", "radio");
show_setting_row("news_bbcodeimg", "radio");
This mod does not work with 1.7.4 :cry:
{if user_loggedin} ... hier der Code, der nur eingeloggten Usern gezeigt werden soll ... {endif user_loggedin}
DB Error: Bad SQL Query: SELECT news_title, news_text, user_name, news_date FROM 4images_news ORDER BY news_date DESC LIMIT 0,
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
DB Error: Bad SQL Query: SELECT news_title, news_text, user_name, news_date FROM 4images_news ORDER BY news_date DESC LIMIT 0,
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /is/htdocs/wp1189343_OX40HRKULQ/www/gau-pc/portal/includes/db_mysql.php on line 116