51
indream
ERROR [Xoops]: Undefined ...
  • 2005/5/30 10:16

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


hi
i am use a XOOPS 2.10 stable but i see this error messages on php debug mode :

this error code
http://www.site.com/modules/tellafriend/index.php?target_uri=http%3A%2F%2Fwww.site.com%2Fmodules%2Fnews%2Farticle.php%3Fstoryid%3D17&subject=

ERROR [Xoops]: Undefined indexPATH in file C:webhomevhostssite.comhttpdocsmodulestellafriendincludegtickets.php line 41


this interesting code [error line is bold and underline]
// create a token
        
list( $usec $sec ) = explode" " microtime() ) ;
[
b][u]        $token crypt$salt $usec $_SERVER['PATH'] . $sec ) ;[/b][/u]
        
$this->_latest_token $token ;

        if( empty( 
$_SESSION['XOOPS_G_STUBS'] ) ) $_SESSION['XOOPS_G_STUBS'] = array() ;

        
// limit max stubs 10
        
if( sizeof$_SESSION['XOOPS_G_STUBS'] ) > 10 ) {
            
$_SESSION['XOOPS_G_STUBS'] = array_slice$_SESSION['XOOPS_G_STUBS'] , -10 ) ;
        }




and

this error code
http://www.site.com/banners.php
ERROR [Xoops]: Undefined variablexoopsUser in file http://www.site.com/header.php line 68


this interesting code [error line is bold and underline]
function bannerstats($login$pass)
{
    global 
$xoopsDB$xoopsConfig$xoopsLogger;
    if (
$login == "" || $pass == "") {
        
redirect_header("banners.php",2);
        exit();
    }
    
$result $xoopsDB->query(sprintf("SELECT cid, name, passwd FROM %s WHERE login=%s"$xoopsDB->prefix("bannerclient"), $xoopsDB->quoteString($login)));
    list(
$cid$name$passwd) = $xoopsDB->fetchRow($result);
        if ( 
$pass==$passwd ) {
            include 
"header.php";
            echo 
"
                         .b_td {color: #ffffff; background-color: #2F5376; padding: 3px; text-align: center;}
                  
            Current Active Banners for 
$name
            
                ID
                Imp. Made
                Imp. Total
                Imp. Left
                Clicks
                % Clicks
                Functions"
;
[
b][u]            $result $xoopsDB->query("select bid, imptotal, impmade, clicks, date from ".$xoopsDB->prefix("banner")." where cid=$cid");[/b][/u]
            while ( list(
$bid$imptotal$impmade$clicks$date) = $xoopsDB->fetchRow($result) ) {
                if ( 
$impmade == ) {
                    
$percent 0;
                } else {
                    
$percent substr(100 $clicks $impmade05);
                }
                if ( 
$imptotal == ) {
                    
$left "Unlimited";
                } else {
                    
$left $imptotal-$impmade;
                }
                echo 
"$bid
                
$impmade
                
$imptotal
                
$left
                
$clicks
                
$percent%
                $login&pass=$pass&cid=$cid&bid=$bid&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-mail Stats";
            }
            echo 
"
Following are your running Banners in ".$xoopsConfig['sitename'].
"
;
            
$result $xoopsDB->query("select bid, imageurl, clickurl, htmlbanner, htmlcode from ".$xoopsDB->prefix("banner")." where cid=$cid");
            while ( list(
$bid$imageurl$clickurl,$htmlbanner$htmlcode) = $xoopsDB->fetchRow($result) ) {
                
$numrows $xoopsDB->getRowsNum($result);
                if (
$numrows>1) {
                    echo 
"";
                }
                if (!empty(
$htmlbanner) && !empty($htmlcode)){
                    echo 
$myts->displayTarea($htmlcode);
                }else{
                    if(
strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") {
                        echo 
"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,40,0"; width="468" height="60">";
                        
echo "$imageurl" />";
                        echo 
"";
                        echo 
"$imageurl" quality='high' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="468" height="60">";
                        
echo "";
                        echo 
"";
                    } else {
                        echo 
"$imageurl' border='1' alt='' />";
                    }
                }
                echo
"Banner ID: $bid
                Send $login&cid=$cid&bid=$bid&pass=$pass&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-Mail Stats for this Banner";
                if (!
$htmlbanner){
                    
$clickurl htmlspecialchars($clickurlENT_QUOTES);
                    echo 
"This Banner points to $clickurl'>this URL
                    
                    Change URL: $clickurl' />
                    $login' />
                    $bid' />
                    $pass' />
                    $cid' />
                    "
;
                }
            }



where is problem ?

thanks for help



52
indream
Re: where is the comment page system ?
  • 2005/5/27 19:01

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


Quote:

Mithrandir wrote:
Note that it removes the ability to use threaded or nested comments view.


can you add the threaded or nested view in this system ?



53
indream
where is the comment page system ?
  • 2005/5/26 11:48

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


Resized Image


i need this code or hack...

thanks.



54
indream
Re: Update to 2.1.1 problems
  • 2005/5/21 14:55

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


@Kaahx
i'm used a mysqlfront program this.

visit http://www.mysqlfront.de url and download mysqlfront



55
indream
Re: show comment only members !
  • 2005/5/21 14:30

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


thanks.



56
indream
Re: show comment only members !
  • 2005/5/20 15:28

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


<{if $xoops_isuser == true}>

<
div style="text-align: center; padding: 3px; margin:3px;">
<
br>
<
a target="_blank" href="<{$xoops_url}>/modules/faq/index.php?cat_id=1#q10"> <{$lang_notice}>a>br>
<{
$commentsnav}>
div>



<
div style="margin:3px; padding: 3px;">
<{if 
$comment_mode == "flat"}>
    <{include 
file="db:system_comments_flat.html"}>
<{elseif 
$comment_mode == "thread"}>
    <{include 
file="db:system_comments_thread.html"}>
<{elseif 
$comment_mode == "nest"}>
    <{include 
file="db:system_comments_nest.html"}>
<{/if}>
div>
<{/else}> 
VISITORS NOT SHOW COMMENTS 
<{/if}>
<{include 
file='db:system_notification_select.html'}>


this not

when i use this code in news module:
members show a messege

visitors not show :)

where is error ?



57
indream
Re: show comment only members !
  • 2005/5/20 14:15

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


thanks @ladon

i am use this
<{if $xoops_isuser == true}>

<
div style="text-align: center; padding: 3px; margin:3px;">
<
br>
<
a target="_blank" href="<{$xoops_url}>/modules/faq/index.php?cat_id=1#q10"> <{$lang_notice}>a>br>
<{
$commentsnav}>
div>



<
div style="margin:3px; padding: 3px;">
<{if 
$comment_mode == "flat"}>
    <{include 
file="db:system_comments_flat.html"}>
<{elseif 
$comment_mode == "thread"}>
    <{include 
file="db:system_comments_thread.html"}>
<{elseif 
$comment_mode == "nest"}>
    <{include 
file="db:system_comments_nest.html"}>
<{/if}>
div>
<{/if}>
<{include 
file='db:system_notification_select.html'}>


but how i show any message visitor

sample:

"comments not showing user, please login and see comments"

thanks.



58
indream
show comment only members !
  • 2005/5/20 13:21

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


hi

i need any hack or code or idea for

if visitor member show comments

and

if not member no show comments.

(modules : news / xoopspoll

thanks.



59
indream
Re: if member show image in news - if not member not show.
  • 2005/5/14 16:44

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


ops

i think this not.

i need a code for
not show images to visitors
and
show members and admins.

sample

if not member not show this image:
http://www.zindan.net/uploads/img427e519362265.jpg

in this article:
http://www.zindan.net/modules/news/article.php?storyid=806

but showing text's


if member
show image and text



60
indream
if member show image in news - if not member not show.
  • 2005/5/14 13:05

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


hi

i need any hack or code for

if visitor is not member
not show news images

if member show news images.

(i'm need this a bandwith :( )

thanks.




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 14 »



Login

Who's Online

185 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits