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 
"<style type='text/css'>
                         .b_td {color: #ffffff; background-color: #2F5376; padding: 3px; text-align: center;}
                  </style>
            <h4 style='text-align:center;'><b>Current Active Banners for 
$name</b><br /></h4>
            <table width='100%' border='0'><tr>
                <td class='b_td'><b>ID</b></td>
                <td class='b_td'><b>Imp. Made</b></td>
                <td class='b_td'><b>Imp. Total</b></td>
                <td class='b_td'><b>Imp. Left</b></td>
                <td class='b_td'><b>Clicks</b></td>
                <td class='b_td'><b>% Clicks</b></td>
                <td class='b_td'><b>Functions</b></td><tr>"
;
[
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 
"<td align='center'>$bid</td>
                <td align='center'>
$impmade</td>
                <td align='center'>
$imptotal</td>
                <td align='center'>
$left</td>
                <td align='center'>
$clicks</td>
                <td align='center'>
$percent%</td>
                <td align='center'><a href='banners.php?op=EmailStats&login=
$login&pass=$pass&cid=$cid&bid=$bid&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-mail Stats</a></td><tr>";
            }
            echo 
"</table><br /><br /><div>Following are your running Banners in ".$xoopsConfig['sitename']." </div><br /><br />";
            
$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 
"<hr /><br />";
                }
                if (!empty(
$htmlbanner) && !empty($htmlcode)){
                    echo 
$myts->displayTarea($htmlcode);
                }else{
                    if(
strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") {
                        echo 
"<object classid="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 "<param name=movie value="$imageurl" />";
                        echo 
"<param name=quality value='high' />";
                        echo 
"<embed src="$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 "</embed>";
                        echo 
"</object>";
                    } else {
                        echo 
"<img src='$imageurl' border='1' alt='' />";
                    }
                }
                echo
"Banner ID: $bid<br />
                Send <a href='banners.php?op=EmailStats&login=
$login&cid=$cid&bid=$bid&pass=$pass&t=".$GLOBALS['xoopsSecurity']->createToken()."'>E-Mail Stats</a> for this Banner<br />";
                if (!
$htmlbanner){
                    
$clickurl htmlspecialchars($clickurlENT_QUOTES);
                    echo 
"This Banner points to <a href='$clickurl'>this URL</a><br />
                    <form action='banners.php' method='post'>
                    Change URL: <input class='textbox' type='text' name='url' size='50' maxlength='200' value='
$clickurl' />
                    <input class='textbox' type='hidden' name='login' value='
$login' />
                    <input class='textbox' type='hidden' name='bid' value='
$bid' />
                    <input class='textbox' type='hidden' name='pass' value='
$pass' />
                    <input class='textbox' type='hidden' name='cid' value='
$cid' />
                    <input type='submit' name='op' value='Change' /></form>"
;
                }
            }



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 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

252 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 252


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