31
wizanda
Re: xoopspolls - show total comment in block
  • 2007/12/26 12:27

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


You could just add the Comments code from the template xoopspoll_results to the xoopspoll_view....
<div style="margin:3px; padding: 3px;">
<!-- 
start comments loop -->
<{if 
$comment_mode == "flat"}>
<{
includeq file="db:system_comments_flat.tpl"}>
<{elseif 
$comment_mode == "thread"}>
<{
includeq file="db:system_comments_thread.tpl"}>
<{elseif 
$comment_mode == "nest"}>
<{
includeq file="db:system_comments_nest.tpl"}>
<{/if}>
<!-- 
end comments loop -->
</
div>

Then update the module.....



32
wizanda
Re: xoopspolls - show total comment in block
  • 2007/12/26 10:55

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


You can show the total comments for the site in a block, yet unsure if the comments for just the polls is possible.....without hacking it to do so......



33
wizanda
Re: Tooltips for xoops default wysiwyg editor
  • 2007/12/26 10:48

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


class/xoopsform/formdhtmltextarea.php

class/xoopseditor/each editor that needs this....

Thankz for the idea



34
wizanda
Re: News Modules
  • 2007/12/26 10:30

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21





35
wizanda
Re: Installing new theme
  • 2007/12/26 10:26

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Copy the themes too
//themes/”your themes folders go here”

Then go to main preferences and select the theme as default....



36
wizanda
Re: Quotes module
  • 2007/12/24 19:05

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


You can set the cache on the Random Quotes block on the time value you wish to set, mine is on every hour so a single quote is kept for that long....



37
wizanda
Re: CBB 4.0 Errors
  • 2007/12/23 11:16

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


With XOOPS you have a selection of Editors, TinyMCE is one of them, so you can delete all the TinyMCE files and just use FCKEditor, Koivi and XOOPS Editors....

Can i just check though, are you just trying to check that all files are on the server or does the Editor not work for some reason??....

Just if it’s to check the files are on the server, the check is done by someone adding a line to each file to say they are there...so in my opinion not a good system to begin with.



38
wizanda
Re: CBB 4.0 Errors
  • 2007/12/22 23:00

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


There is also a newer copy of TinyMCE available and you can over write them to \class\xoopseditor\tinymce\jscripts....

Also if you want to use XOOPS Smiles, you can get the emotions plugin here


Did you also upload Frameworks?



39
wizanda
Re: modify backend.php ?
  • 2007/12/22 22:04

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


<?php
/* $Id: backend.php 2 2005-11-02 18:23:29Z skalpa $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  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.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ */
header('location: modules/newbb/rss.php?c=1');
/*include 'mainfile.php';
include_once XOOPS_ROOT_PATH.'/class/template.php';
include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php';
if (function_exists('mb_http_output')) {
    mb_http_output('pass');
}
header ('Content-Type:text/xml; charset=utf-8');
$tpl = new XoopsTpl();
$tpl->xoops_setCaching(2);
$tpl->xoops_setCacheTime(3600);
if (!$tpl->is_cached('db:system_rss.html')) {
    $sarray = NewsStory::getAllPublished(10, 0);
    if (is_array($sarray)) {
        $tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)));
        $tpl->assign('channel_link', XOOPS_URL.'/');
        $tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
        $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
        $tpl->assign('channel_webmaster', $xoopsConfig['adminmail']);
        $tpl->assign('channel_editor', $xoopsConfig['adminmail']);
        $tpl->assign('channel_category', 'News');
        $tpl->assign('channel_generator', 'XOOPS');
        $tpl->assign('channel_language', _LANGCODE);
        $tpl->assign('image_url', XOOPS_URL.'/images/logo.gif');
        $dimention = getimagesize(XOOPS_ROOT_PATH.'/images/logo.gif');
        if (empty($dimention[0])) {
            $width = 88;
        } else {
            $width = ($dimention[0] > 144) ? 144 : $dimention[0];
        }
        if (empty($dimention[1])) {
            $height = 31;
        } else {
            $height = ($dimention[1] > 400) ? 400 : $dimention[1];
        }
        $tpl->assign('image_width', $width);
        $tpl->assign('image_height', $height);
        $count = $sarray;
        foreach ($sarray as $story) {
            $tpl->append('items', array('title' => xoops_utf8_encode(htmlspecialchars($story->title(), ENT_QUOTES)), 'link' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(), 'guid' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(), 'pubdate' => formatTimestamp($story->published(), 'rss'), 'description' => xoops_utf8_encode(htmlspecialchars($story->hometext(), ENT_QUOTES))));
        }
    }
}
$tpl->display('db:system_rss.html');*/
?>


If a module has an RSS feed already this will work for them, basically you are cancelling all coding in the backend.php and redirect it to the RSS feed of the module in question.....

Also if you would like the index.php to have the RSS linked to the browser, you can add this to it.....
$indexhead "<link rel='alternate' type='application/rss+xml' href='".XOOPS_URL."/backend.php' />";
$xoopsOption["xoops_module_header"] = $indexhead;



40
wizanda
Re: modify backend.php ?
  • 2007/12/22 11:55

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Easiest way to do this is:
header('location: modules/newbb/rss.php?c=1');

Place /* around the rest of the code in backend.php */




TopTop
« 1 2 3 (4) 5 6 7 ... 131 »



Login

Who's Online

224 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 224


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