151
playsome
Re: Can't install 2 cloned artclie 2..00RC modules
  • 2009/5/26 1:56

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Small bump, please, thanks



152
playsome
Can't install 2 cloned artclie 2..00RC modules
  • 2009/5/23 20:31

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hi, I am having some problems installing 2 cloned/renamed article 2.00RC modules.

I already had one module installed and working fine, renamed to psnews, I cloned/renamed another article 2.00RC to reviews but when i go to install it I get a blank page, XOOPS debug shows no errors.

When i go back the reviews module soes appear to be installed correctly i can see the module, the admin page, add categories, etc but it causes a problem with system/admin.php, if I try to update or rename a module for example hitting submit brings up another blank white page.

I can uninstall either of the cloned article modules by deleting the xoops_version.php for some reason this allows me to deactivate the module without bringing up a blank page.

So I am thinking theres a possible conflict happening to do with xoops_version.php but I am not sure what as I cannot see any errors.

Has anyone got 2 article modules installed? the module is suppposed to be easily cloned and is there a way to get the php errors to show? it is kind of impossible to know where to start when there is no errors showing up.

I checked include/common.php error reporting is set to E_ALL, error reporting is set to E_ALL in php.ini so is there anyother way to get errors to show?

System:
Wampserver 2.0
PHP 5.2.8
MySQL 5.1.30
Xoops 2.3.3


Cheers.



153
playsome
Need some theme/html/css help
  • 2009/5/14 17:02

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hi, I have created a custom theme for a site im working on, the theme is based on the default XOOPS theme that dcomes with the 2.3 package.

I am having some issues getting the theme to render correctly in IE, in firefox it renders fine.

I have created a horizontal navigation bar using list tags and css, the nav bar is wrapped inside a div to allow me to add padding without mucking up the nav bar. In IE there is a noticable gap between the navbar and the main table, in firefox it looks fine.

I've tried everything I can think of so I am looking for some expert advice from someone who can tell me what i am doing wrong or a way to fix it so it dispalys properly in ie.

Here is two images of the theme one for FF and one for IE
Resized Image


Resized Image


Here is the html code for the theme for the navbar:
<!-- Start navbar -->
<
table cellspacing="0" cellpadding="0">
<
tr>
<
td id="tnav">
<
div id="pnav">
 <
ul id="nav">
      <
li id="nav-home" title="PlaySome Homepage"><a href="<{$xoops_url}>/">Home</a></li>
      <
li id="nav-news" title="Playstation 3 News"><a href="<{$xoops_url}>/modules/psnews/">News</a></li>
      <
li id="nav-faq" title="Playstation 3 Games"><a href="<{$xoops_url}>/modules/ps3faq/">PS3 FAQ</a></li>
      <
li id="nav-blu-ray" title="PS3 FAQ"><a href="<{$xoops_url}>/modules/blu-ray/">Blu-Ray</a></li>
      <
li id="nav-videotube" title="Videos"><a href="<{$xoops_url}>/modules/videotube/">Videos</a></li>
      <
li id="nav-forums" title="PlaySome Forums"><a href="http://www.playsome.co.uk/forums/">Forums</a></li>
    <
li id="nav-images" title="Images"><a href="<{$xoops_url}>/modules/xcgal/">Images</a></li>
    <
li id="nav-cheats" title="PS3 Cheats"><a href="<{$xoops_url}>/modules/cheats/">Cheats</a></li>
    <
li id="nav-psoogl3" title="PS00gl3 - PS3 Search Engine"><a href="http://www.playsome.co.uk/PSoogl3">PSoogl3</a></li>
 </
ul>
 </
div>
</
td>
</
tr>
</
table>
<!-- 
End navbar -->
<
table cellspacing="0" cellpadding="0" id="main">
    <
tr>
        <!-- 
Start left blocks loop -->


Here is the css:
/* List navbar */
td#tnav {margin-bottom:0; margin-top:5px; width:990px;}
div#pnav {padding:0; background:transparent url(navbg_c.gif) 0 0 repeat-x;; width:990px; height:35px; margin-bottom:0;}

  #nav {
margin:0;
padding-left:10px;
background:transparent;
float:left;
width:990px;
border:0;
border-width:1px 0;
vertical-align:middle;
height:30px;
}
#nav li {
display:inline;
padding:0;
margin:0;
text-align:center;
}
#nav a:link,
#nav a:visited {color:#fff; background:transparent; padding:12px 10px 10px 10px; float:left; width:auto; border-right:1px solid #333333; text-decoration:none; font:bold 1em/1em Arial, Helvitica, sans-serif; text-transform:uppercase;}
#nav li:first-child a {border-left:1px solid #333333;}
#nav a:hover {color: #66FFFF; background: #202020;}

#system #nav-home a,
#psnews #nav-news a,
#ps3faq #nav-faq a,
#blu-ray #nav-blu-ray a,
#videotube #nav-videotube a,
#phpbb #nav-forums a,
#cheats #nav-cheats a,
#PSoogl3 #nav-psoogl3,
#xcgal #nav-images{
  
background:#202020;
  
color#FF6600;
  
}
#system #nav-home a:hover,
#psnews #nav-news a:hover,
#ps3faq #nav-faq a:hover,
#blu-ray #nav-blu-ray a:hover,
#videotube #nav-videotube a:hover,
#phpbb #nav-forums a:hover,
#cheats #nav-cheats a:hover,
#PSoogl3 #nav-psoogl3 a:hover;
#xcgal #nav-images a:hover{
  
background:#202020;
  
}
#nav a:active {
  
background:#202020;
  
color:#fff;
  
}
  
/* End list navbar */


Thanks for your help.

Martin



154
playsome
Re: How do I remove CAPTCHA confirmation code for new registrations
  • 2009/5/10 21:05

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hello, Im guessing you have the user profiles module installed? if you uninstall it then people will register on yoursite.com/register.php which doesnt show captcha.



155
playsome
Re: xoops-module-tag-230-rc: can't install
  • 2009/5/10 20:55

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hey sailjapan, are you stil having trouble installing the tag module or is there other issues? there seems ot be different pople wanting help with different things in this one topic.

OK, i will try and help with your original post, this seems really simple so maybe im misunderstanding you, i apologise if I am.

When you extract the tag module your folder structure should be (at least it was when i downloaded it):

xoops-module-tag-230-rc
>xoops-module-tag-230-rc

You need to rename the second folder to 'tag' so that the folder structure is now:

xoops-module-tag-230-rc
>tag

upload the newly renamed tag folder to the modules dir and you should be all set.

Again, I apologise if ive misunderstood the topic, im not sure why the folder is named wrong, i had problems installing it to until i figured i had to rename it to tag.



156
playsome
Re: How to add item title into pagetitle?
  • 2009/5/9 12:42

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Thanks for all your help guys. tcnet, your new code works like a charm, I will have a go with the cloned wordbook module for now as it will save me having to clone/rename the lexicon module, and if i have cloned the wb module correctly I should be able to use lexicon module aswell for something else.

Thanks for all your help guys, no doubt I'll be posting again soon when im stuck with something else.

Cheers.




157
playsome
Re: How to add item title into pagetitle?
  • 2009/5/9 0:19

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Thanks trabis, that fixed the parse error but I stil can't get the cheat title to show on the pagetitle it is still just showing 'sitename - cheats'.

On looking at the errors in debug I am getting alot of errors like this one:
Quote:
Warning: MyTextSanitizer::makeTareaData4Show is deprecated in file /class/module.textsanitizer.php line 699


My only guess is perhaps this version of wordbook is too old and doesnt conform to the newest XOOPS coding standards?

heres the fule code of cheat.php (was entry.php)there references to makeTareaData4Show in the file and im wondering if thats what is calling up the errors.

<?php
/**
 * $Id: cheat.php v 1.0 8 May 2004 hsalazar Exp $
 * Module: Cheats - a multicategory glossary
 * Version: v 1.00
 * Release Date: 8 May 2004
 * Author: hsalazar
 * Licence: GNU
 */

include( "header.php" );
include_once( 
XOOPS_ROOT_PATH "/header.php" );
include_once 
XOOPS_ROOT_PATH "/class/module.textsanitizer.php"

$xoopsOption['template_main'] = 'ch_cheat.html';

global 
$xoopsUser$xoopsUser$xoopsConfig$xoopsDB$modify$xoopsModuleConfig$xoopsModule$XOOPS_URL
$myts =& MyTextSanitizer::getInstance();

$cheatID = isset($_GET['cheatID']) ? intval($_GET['cheatID']) : 0;

$xoopsOption['template_main'] = 'ch_cheat.html';

if (
$xoopsModuleConfig['multicats'] == 1)
    {
    
$xoopsTpl->assign('multicats'1);
    }
else
    {
    
$xoopsTpl->assign('multicats'0);
    }

// If there's no cheats yet in the system...
$pubwords $xoopsDB -> query"SELECT * FROM " $xoopsDB -> prefix"chcheats" ) . " WHERE submit = '0' AND offline ='0' " );
$publishedwords $xoopsDB -> getRowsNum $pubwords );
$xoopsTpl->assign('publishedwords'$publishedwords);
if ( 
$publishedwords == )
    {
    
$xoopsTpl -> assign ('empty''1');
    
$xoopsTpl -> assign ('stillnothing'_MD_CH_STILLNOTHINGHERE);
    }

// To display the linked letter list
$alpha alphaArray();
$xoopsTpl->assign('alpha'$alpha);

$sql $xoopsDB -> query "SELECT * FROM " $xoopsDB -> prefix "chcheats") . " WHERE init = '#' " );
$howmanyother $xoopsDB -> getRowsNum$sql );
$xoopsTpl->assign('totalother'$howmanyother);

if ( 
$xoopsModuleConfig['multicats'] == )
    {
    
// To display the list of categories
    
$block0 = array();
    
$resultcat $xoopsDB -> query "SELECT categoryID, name, total FROM " $xoopsDB -> prefix "chcategories") . " ORDER BY name ASC" );
    while (list( 
$catID$name$total) = $xoopsDB->fetchRow($resultcat))
        {
        
$catlinks = array();
        
$xoopsModule XoopsModule::getByDirname("cheats");
        
$catlinks['id'] = $catID;
        
$catlinks['total'] = intval($total);
        
$catlinks['linktext'] = $myts -> makeTboxData4Show$name );

        
$block0['categories'][] = $catlinks;
        }
    
$xoopsTpl -> assign 'block0'$block0 );
    }

if ( !
$cheatID )
    {
    
$result $xoopsDB -> query"SELECT cheatID, categoryID, term, init, definition, ref, url, uid, submit, datesub, counter, html, smiley, xcodes, breaks, block, offline, notifypub FROM " $xoopsDB -> prefix"chcheats" ) . " WHERE datesub < " time() . " AND datesub > 0 AND (submit = 0) ORDER BY datesub DESC"1);
    }
else
    {
    if ( !
$xoopsUser || ( $xoopsUser->isAdmin($xoopsModule->mid()) && $xoopsModuleConfig['adminhits'] == ) || ( $xoopsUser && !$xoopsUser -> isAdmin$xoopsModule -> mid() ) ) )
        {
        
$xoopsDB -> queryF"UPDATE " $xoopsDB -> prefix"chcheats" ) . " SET counter = counter+1 WHERE cheatID = $cheatID " );
        }    

    
$result $xoopsDB -> query"SELECT cheatID, categoryID, term, init, definition, ref, url, uid, submit, datesub, counter, html, smiley, xcodes, breaks, block, offline, notifypub FROM " $xoopsDB -> prefix"chcheats" ) . " WHERE cheatID = $cheatID);
    }

while (list( 
$cheatID$categoryID$term$init$definition$ref$url$uid$submit$datesub$counter$html$smiley$xcodes$breaks$block$offline$notifypub ) = $xoopsDB->fetchRow($result))
    {
    
$thisterm = array();
    
$xoopsModule XoopsModule::getByDirname("cheats");
    
$thisterm['id'] = intval($cheatID);

    if (
$xoopsModuleConfig['multicats'] == 1)
        {
        
$thisterm['categoryID'] = intval($categoryID);
        
$catname $xoopsDB -> query "SELECT name FROM " $xoopsDB -> prefix "chcategories" ) . " WHERE categoryID = $categoryID ");
        while (list (
$name) = $xoopsDB -> fetchRow $catname ))
            {
            
$thisterm['catname'] = $myts -> makeTboxData4Show$name );
            }
        }

    
$glossaryterm $myts -> makeTboxData4Show$term );
    
$thisterm['term'] = ucfirst($myts -> makeTboxData4Show$term ));
    if (
$init == '#')
        {
        
$thisterm['init'] = _MD_CH_OTHER;
        }
    else
        {
        
$thisterm['init'] = ucfirst($init);
        }

    if (
$xoopsModuleConfig['linkterms'] == 1)
        {
        
// Code to make links out of glossary terms
        
$parts explode(">"$definition);

        
// First, retrieve all terms from the glossary...
        
$allterms $xoopsDB -> query"SELECT cheatID, term FROM " $xoopsDB -> prefix"chcheats" ));
        while ( list( 
$cheatID$term ) = $xoopsDB -> fetchrow$allterms ))
            {
            foreach(
$parts as $key=>$part)
                {
                if ( 
$term != $glossaryterm)
                    {
                    
// singular
                    
$term_q preg_quote($term'/');
                    
$search_term "/b$term_qb/i";
                    
$replace_term "<span><b><a style='color: #2F5376; text-decoration: underline; ' href='".XOOPS_URL."/modules/".$xoopsModule->dirname()."/cheat.php?cheatID=".ucfirst($cheatID)."'>".$term."</a></b></span>";
                    
$parts[$key] = preg_replace($search_term$replace_term$parts[$key]);

                    
// plural
                    
$term $term."s";
                    
$term_q preg_quote($term'/');
                    
$search_term "/b$term_qb/i";
                    
$replace_term "<span><b><a style='color: #2F5376; text-decoration: underline; ' href='".XOOPS_URL."/modules/".$xoopsModule->dirname()."/cheat.php?cheatID=".ucfirst($cheatID)."'>".$term."</a></b></span>";
                    
$parts[$key] = preg_replace($search_term$replace_term$parts[$key]);

                    
// plural with e
                    
$term $term."es";
                    
$term_q preg_quote($term'/');
                    
$search_term "/b$term_qb/i";
                    
$replace_term "<span><b><a style='color: #2F5376; text-decoration: underline; ' href='".XOOPS_URL."/modules/".$xoopsModule->dirname()."/cheat.php?cheatID=".ucfirst($cheatID)."'>".$term."</a></b></span>";
                    
$parts[$key] = preg_replace($search_term$replace_term$parts[$key]);
                    }
                }
            }
        
$definition implode(">"$parts);
        }

    
$thisterm['definition'] = $myts -> displayTarea$definition$html$smiley$xcodes1$breaks );
    
    
$thisterm['ref'] = $myts -> makeTboxData4Show$ref );
    
$thisterm['url'] = $myts->makeClickable($url$allowimage 0);
    
$thisterm['submitter'] = xoops_getLinkedUnameFromId $uid );
    
$thisterm['submit'] = intval($submit);
    
$thisterm['datesub'] = formatTimestamp($datesub,$xoopsModuleConfig['dateformat']);
    
$thisterm['counter'] = intval($counter);
    
$thisterm['block'] = intval($block);
    
$thisterm['offline'] = intval($offline);
    
$thisterm['notifypub'] = intval($notifypub);
    
$thisterm['dir'] = $xoopsModule->dirname();
    }
$xoopsTpl -> assign'thisterm'$thisterm );

$microlinks serviceLinks $thisterm );

$xoopsTpl -> assign 'microlinks'$microlinks );

$xoopsTpl -> assign 'lang_modulename'$xoopsModule->name() );
$xoopsTpl -> assign 'lang_moduledirname'$xoopsModule->dirname() );

$xoopsTpl -> assign 'cheatID'$cheatID);
$xoopsTpl -> assign 'submitted'sprintf(_MD_CH_SUBMITTED$thisterm['submitter'], $thisterm['datesub']) );
$xoopsTpl -> assign 'counter'sprintf(_MD_CH_COUNT$thisterm['counter']) );

$xoopsTpl->assign("xoops_module_header"'<link rel="stylesheet" type="text/css" href="style.css" />');

//Mondarse
include XOOPS_ROOT_PATH.'/include/comment_view.php';
//Mondarse
// page title hack tcnet
$chpagetitle $myts->htmlSpecialChars$xoopsModule->getVar('name').' - '.$glossaryterm);
if (
is_object($xoTheme)) {      
$xoTheme->addMeta'meta''title'$chpagetitle);

} else {
$xoopsTpl->assign('xoops_pagetitle'$chpagetitle); 
}
//end page hack
include_once XOOPS_ROOT_PATH.'/footer.php';
?>


I appreciate any help you can give me I think this would be a great module for cheats (or something else maybe if cloned again) once the bugs are ironed out.

Cheers



158
playsome
Re: How to add item title into pagetitle?
  • 2009/5/8 23:01

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hi tcnet,

I have added the code as instructed but I am getting a parse error on line 184, line 184 is
else {


System:
xoops 2.3.3
PHP Version 5.2.8
Apache/2.2.11
MySQL 5.1.30
Wordbook version 1.16

Installed locally using WAMP

Thanks



159
playsome
How to add item title into pagetitle?
  • 2009/5/8 20:01

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hi,

I have managed to clone wordbook v1.16 and rename it for use as a module to list game cheats, however I would like to have the cheat title display inbetween the <title></title> tags, for example MySite.com - Cheats - Call of Duty 4

At the moment it just displays my sitename and the module name. Is there an easy way to do this?

Cheers.



160
playsome
Re: Article 2.00RC block not showing
  • 2009/5/6 23:59

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


@tzvook

Sorry I did not reply to this sooner. I did come across some bugs and i noticed the unable to delete catergory bug, although you can manually delete it in phpmyadmin.

Im currently using the module for a site im working on, it is a great module for news it is a shame that it is not being actively developed.

Maybe phppp will see this thread and let us know if it will ever get out of the RC stage, it is too good a module to be just forgotten about.




TopTop
« 1 ... 13 14 15 (16) 17 »



Login

Who's Online

191 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

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

Latest GitHub Commits