MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
new approve error
AuthorText
AlleRGy
Junior Member
Avatar

Posts: 38
Contributes: 1

Gender: _MALE_
Online: No
Date: 21/06/2007 02:27
new approve error
#post1187
i have an error on add new. when i try to approve a new in the admin panel i have this error

code
Fatal error: Call to undefined function: template_news_preview() in /home/allergy/domains/allergyforumu.com/public_html/portal/admin/pages/news/index.php on line 280


hepl me pls.
tRn & dRy
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1300
Contributes: 537

Gender: _MALE_
Online: No

Version: 3.8.1
Country: Portugal
Languages: Portuguese, Portuguese and little english ^^
Date: 21/06/2007 03:22
Re: new approve error
#post1188
Hi
The function template_new_preview was deleted in version 2.9
Today is to late to rectify the problem and mem should allready be at sleep loool
If you have urgency in that, add temporary the function in your template.php (simple_red i think)
code

//=====================================================================
//News (called in SendNews preview)
//=====================================================================
function template_news_preview($nome,$autore,$data,$testo_home,$testo,$img) {
        global $siteConfig;

        if ($testo!="") {
                $contenuto = "$testo_home<br><br>$testo";
        } else {
                $contenuto = "$testo_home";
        }

        echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
          echo "<tr>\n";
                echo "<td>\n";
                        echo "<div class='tpl_news_title'><img src='templates/".$siteConfig['template']."/images/arrow_slim.gif'> $nome</div>\n";
                        echo "<table width='100%' border='0' cellpadding='2' cellspacing='0'><tr>\n";
                                echo "<td width='99%' valign='top' class='tpl_news_body'>$contenuto</td>\n";
                                echo "<td width='1%' valign='top'><a href='http://www.memht.com/topics.html' title='"._TOPICS_."'>$img</a></td>\n";
                        echo "</tr></table>\n";
                        echo "<div class='tpl_news_body'><div class='tpl_news_info'>$data "._BY_." <i>$autore</i></div></div>\n";
                echo "</td>\n";
          echo "</tr>\n";
        echo "</table>\n";
        }
 


This should solve your problem but, dont forget is only temporary
Edited: 21/06/2007 03:23
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5137
Contributes: 2480

Gender: _MALE_
Online: No
Date: 21/06/2007 10:07
new approve error
#post1190
Ops... i forgot to change it in the admin Smile Give me 2 min
Delete Edit Quote
 
AlleRGy
Junior Member
Avatar

Posts: 38
Contributes: 1

Gender: _MALE_
Online: No
Date: 21/06/2007 10:08
new approve error
#post1191
thanks man.this solved the problem.
tRn & dRy
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5137
Contributes: 2480

Gender: _MALE_
Online: No
Date: 21/06/2007 10:14
new approve error
#post1192
Install the fixpatch and should be ok... sorry man, i'm not perfect ^^

http://www.memht.com/download-getfile-92.html
Delete Edit Quote
 
AlleRGy
Junior Member
Avatar

Posts: 38
Contributes: 1

Gender: _MALE_
Online: No
Date: 21/06/2007 10:28
new approve error
#post1195
thanks MR.mem. there is no more problem at now.
tRn & dRy
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo