1
sova
I need a news template
  • 2015/2/15 13:37

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


I need a news template
Professional news template
For example:
www.cbc.ca/news
www.euronews.com/
www.foxnews.com

Does anyone can help me?


Please help me



2
sova
Re: How do I delete email field of the comments ?
  • 2015/2/14 18:36

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


Quote:

Mamba wrote:
What XOOPS version are you using?


XOOPS 2.5.6



3
sova
Re: How do I delete email field of the comments ?
  • 2015/2/13 19:57

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


my include/comment_form.php Code:
<?php
/**
 * XOOPS comment form
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @package         kernel
 * @since           2.0.0
 * @author          Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
 * @version         $Id: comment_form.php 10882 2013-01-23 20:57:13Z beckmi $
 */

if (!defined('XOOPS_ROOT_PATH') || !is_object($xoopsModule)) {
    die(
'Restricted access');
}

$com_modid $xoopsModule->getVar('mid');

xoops_load('XoopsLists');
xoops_load('XoopsFormLoader');

$cform = new XoopsThemeForm(_CM_POSTCOMMENT"commentform"'comment_post.php''post'true);
if (isset(
$xoopsModuleConfig['com_rule'])) {
    include_once 
$GLOBALS['xoops']->path('include/comment_constants.php');
    switch (
$xoopsModuleConfig['com_rule']) {
        case 
XOOPS_COMMENT_APPROVEALL:
            
$rule_text _CM_COMAPPROVEALL;
            break;
        case 
XOOPS_COMMENT_APPROVEUSER:
            
$rule_text _CM_COMAPPROVEUSER;
            break;
        case 
XOOPS_COMMENT_APPROVEADMIN:
        default:
            
$rule_text _CM_COMAPPROVEADMIN;
            break;
    }
    
$cform->addElement(new XoopsFormLabel(_CM_COMRULES$rule_text));
}

$cform->addElement(new XoopsFormText(_CM_TITLE'com_title'50255$com_title), true);

$icons_radio = new XoopsFormRadio(_MESSAGEICON'com_icon'$com_icon);
$subject_icons XoopsLists::getSubjectsList();
foreach (
$subject_icons as $iconfile) {
    
$icons_radio->addOption($iconfile'<img src="' XOOPS_URL '/images/subject/' $iconfile '" alt="" />');
}
$cform->addElement($icons_radio);
// editor
$editor xoops_getModuleOption('comments_editor''system' );
if ( 
class_exists'XoopsFormEditor' ) ) {
    
$configs=array(
        
'name'   => 'com_text',
        
'value'  => $com_text,
        
'rows'   => 25,
        
'cols'   => 90,
        
'width'  => '100%',
        
'height' => '400px',
        
'editor' => $editor
    
);
    
$cform->addElement( new XoopsFormEditor(_CM_MESSAGE'com_text'$configsfalse$onfailure 'textarea' ));
} else {
    
$cform->addElement(new XoopsFormDhtmlTextArea(_CM_MESSAGE'com_text'$com_text1050), true);
}
$option_tray = new XoopsFormElementTray(_OPTIONS'<br />');
$button_tray = new XoopsFormElementTray('''&nbsp;');

if (
is_object($xoopsUser)) {
    if (isset(
$xoopsModuleConfig['com_anonpost'])) {
        if (
$xoopsModuleConfig['com_anonpost'] == 1) {
            
$noname = !empty($noname) ? 0;
            
$noname_checkbox = new XoopsFormCheckBox('''noname'$noname);
            
$noname_checkbox->addOption(1_POSTANON);
            
$option_tray->addElement($noname_checkbox);
        }
    }
    if (
false != $xoopsUser->isAdmin($com_modid)) {
        
// show status change box when editing (comment id is not empty)
        
if (!empty($com_id)) {
            include_once 
$GLOBALS['xoops']->path('include/comment_constants.php');
            
$status_select = new XoopsFormSelect(_CM_STATUS'com_status'$com_status);
            
$status_select->addOptionArray(array(
                
XOOPS_COMMENT_PENDING => _CM_PENDING ,
                
XOOPS_COMMENT_ACTIVE => _CM_ACTIVE ,
                
XOOPS_COMMENT_HIDDEN => _CM_HIDDEN));
            
$cform->addElement($status_select);
            
$button_tray->addElement(new XoopsFormButton('''com_dodelete'_DELETE'submit'));
        }
        if ( isset( 
$editor ) && in_array$editor, array( 'textarea''dhtmltextarea' ) ) ) {
            
$html_checkbox = new XoopsFormCheckBox('''dohtml'$dohtml);
            
$html_checkbox->addOption(1_CM_DOHTML);
            
$option_tray->addElement($html_checkbox);
        }
    }
}
if ( isset( 
$editor ) && in_array$editor, array( 'textarea''dhtmltextarea' ) ) ) {

}
$smiley_checkbox = new XoopsFormCheckBox('''dosmiley'$dosmiley);
$smiley_checkbox->addOption(1_CM_DOSMILEY);
$option_tray->addElement($smiley_checkbox);
$xcode_checkbox = new XoopsFormCheckBox('''doxcode'$doxcode);
$xcode_checkbox->addOption(1_CM_DOXCODE);
$option_tray->addElement($xcode_checkbox);
if ( isset( 
$editor ) && in_array$editor, array( 'textarea''dhtmltextarea' ) ) ) {
    
$br_checkbox = new XoopsFormCheckBox('''dobr'$dobr);
    
$br_checkbox->addOption(1_CM_DOAUTOWRAP);
    
$option_tray->addElement($br_checkbox);
} else {
    
$cform->addElement( new xoopsFormHidden'dohtml') );
    
$cform->addElement( new xoopsFormHidden'dobr') );
}
$cform->addElement($option_tray);
if (!
$xoopsUser) {
    
$cform->addElement(new XoopsFormCaptcha());
}
$cform->addElement(new XoopsFormHidden('com_pid'intval($com_pid)));
$cform->addElement(new XoopsFormHidden('com_rootid'intval($com_rootid)));
$cform->addElement(new XoopsFormHidden('com_id'$com_id));
$cform->addElement(new XoopsFormHidden('com_itemid'$com_itemid));
$cform->addElement(new XoopsFormHidden('com_order'$com_order));
$cform->addElement(new XoopsFormHidden('com_mode'$com_mode));

// add module specific extra params
if ('system' != $xoopsModule->getVar('dirname')) {
    
$comment_config $xoopsModule->getInfo('comments');
    if (isset(
$comment_config['extraParams']) && is_array($comment_config['extraParams'])) {
        
$myts =& MyTextSanitizer::getInstance();
        foreach (
$comment_config['extraParams'] as $extra_param) {
            
// This routine is included from forms accessed via both GET and POST
            
if (isset($_POST[$extra_param])) {
                
$hidden_value $myts->stripSlashesGPC($_POST[$extra_param]);
            } else if (isset(
$_GET[$extra_param])) {
                
$hidden_value $myts->stripSlashesGPC($_GET[$extra_param]);
            } else {
                
$hidden_value '';
            }
            
$cform->addElement(new XoopsFormHidden($extra_param$hidden_value));
        }
    }
}
$button_tray->addElement(new XoopsFormButton('''com_dopreview'_PREVIEW'submit'));
$button_tray->addElement(new XoopsFormButton('''com_dopost'_CM_POSTCOMMENT'submit'));
$cform->addElement($button_tray);
$cform->display();
?>





The following line does not exist:
$cform->addElement(new XoopsFormText(_CM_EMAIL'com_email'5060$com_email), true);



4
sova
How do I delete email field of the comments ?
  • 2015/2/9 3:57

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


How do I delete email field of the comments ?
How do I add a field name (sender) in the comments section?



5
sova
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2014/5/21 11:29

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


Thank you for your answer !!!!!
Three days ago I asked my questions, This kind of site management team who did not respond



6
sova
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2014/5/18 20:39

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


How do I remove the email option?
How to replace the word guest, the name of the sender comment use?



7
sova
Re: Euclid Theme Xoops Theme
  • 2014/2/23 18:24

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


nice ...



8
sova
Re: Xoops problem to index search engine image
  • 2014/2/19 4:15

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


@mojtabajml
Do you want to develop this module?
https://github.com/faragostaresh/xoops-news
Nice module, and will be better

Apparently the author of this module for XOOPS community's lack of attention, intention does not support

==================
Excuse me.
I can not speak English well



9
sova
Re: Please vote for my site
  • 2014/2/2 15:01

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


Quote:

iHackCode wrote:
I Also Voted


@iHackCode
Thank you

--------------------
Please vote for my site



10
sova
Re: Please vote for my site
  • 2014/2/1 7:39

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


@Dante7237
Thank you my friend.

In the first post, I described using the images




TopTop
(1) 2 3 4 ... 14 »



Login

Who's Online

221 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits