Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:33:32 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: News module: comment page problem  (Read 579 times)
lausianne
WebsiteBaker Org e.V.

Offline Offline

Posts: 155


WWW
« on: May 28, 2008, 10:03:58 AM »

Hi,

I had some trouble with the news module in 2.7. The page for adding comments looked bad. It started with several input fields with the text "leave this field sth. blank".
In comment_page.php I found that this was supposed to be honeypots for spammers, it should not be displayed to non-spammers like me, though. These lines were displayed, because the class nixhier in frontend.css was not recognised, because frontend.css was not included at all.

I fixed it by copying these lines from view.php of the news module to comment_page.php:

Code:
// check if frontend.css file needs to be included into the <body></body> of view.php
if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) &&  file_exists(WB_PATH .'/modules/news/frontend.css')) {
   echo '<style type="text/css">';
   include(WB_PATH .'/modules/news/frontend.css');
   echo "\n</style>\n";
}

Cheers, Ralf.
Logged
s.eder

Offline Offline

Posts: 17


« Reply #1 on: June 01, 2008, 08:46:54 PM »

hi ralf,
thanks for this usefull post. it helped me over the first barrier.
But, when i add comments, i press submit, and i'll be redirected to the start site and no comment is added.

i have double checked if i have the right files in modules/news and they are from 2.7 download.
i upgraded from 2.6.7 and the upgrad script said everything ok!

do you have any idea?
thanks
stefan
Logged
thorn

Offline Offline

Posts: 980


WWW
« Reply #2 on: June 01, 2008, 10:50:46 PM »

Hello,

just disable ASP in Admin-Tools / Captcha-Control

thorn.

Edit:
BTW: did you add these lines to your template?
Code:
<?php
if(function_exists('register_frontend_modfiles')) {
  
register_frontend_modfiles('css');
  
register_frontend_modfiles('js');
?>

see http://help.websitebaker.org/pages/de/advanced-doku/designer-guide/erweiterte-designelemente.php?searchresult=1&sstring=frontend.css#anker4
« Last Edit: June 01, 2008, 10:56:32 PM by thorn » Logged

s.eder

Offline Offline

Posts: 17


« Reply #3 on: June 02, 2008, 10:12:54 AM »

thanks,
this was the solution!
stefan
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!