292151
mvandam
Re: Mantis Bug Tracker Problem
  • 2003/8/20 23:07

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Now that I look at this again, I realize there was an error. XOOPS_ROOT_PATH should have quotes (single or double) around it in that line. This will be fixed in the next release. Thanks for finding this and sorry for the trouble it caused. I guess my version of php (4.1.2) makes the correct assumption and keeps running.



292152
solo71
Re: WebSlave Project - a project managment tool
  • 2003/8/20 22:14

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


ok, here it is :

Quote:

Fatal error: Call to undefined function: __getsubtasks() in /home/wolfpa/public_html/wpc/modules/wsproject/class/core.php on line 775





292153
rahil
Re: myxoopscart, shoops, oscommerce
  • 2003/8/20 21:45

  • rahil

  • Just popping in

  • Posts: 2

  • Since: 2003/7/6 1


Thanks
I was also wendering abt how th epayment through visa/mastercard is acheived.Cany anyoen please giv eme any insight on this..I know it must be through some third party stuff.. so hwo does shoops and osCommerce do that..is it liek paypal where all the data is submitted to paypal or what..
Also how much is charged like if we use paypal onour site then I think 2.9% is charged..
thanks for help



292154
Jack404
Re: XOOPS2: Private Messages Question
  • 2003/8/20 21:44

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Contents of pmlite.php:

$xoopsOption['pagetype'] = "pmsg";

include 
"mainfile.php";
$reply = !empty($HTTP_GET_VARS['reply']) ? 0;
$send = !empty($HTTP_GET_VARS['send']) ? 0;
$send2 = !empty($HTTP_GET_VARS['send2']) ? 0;
$to_userid = !empty($HTTP_GET_VARS['to_userid']) ? intval($HTTP_GET_VARS['to_userid']) : 0;
//added
$msg_text = !empty($HTTP_GET_VARS['msg_text']) ? intval($HTTP_GET_VARS['msg_text']) : 0;
//end added
$msg_id = !empty($HTTP_GET_VARS['msg_id']) ? intval($HTTP_GET_VARS['msg_id']) : 0;
if ( empty(
$HTTP_GET_VARS['refresh'] ) && isset($HTTP_POST_VARS['op']) && $HTTP_POST_VARS['op'] != "submit" ) {
        
$jump "pmlite.php?refresh=".time()."";
        if ( 
$send == ) {
                
$jump .= "&send=".$send."";
        } elseif ( 
$send2 == ) {
                
$jump .= "&send2=".$send2."&to_userid=".$to_userid."";
        } elseif ( 
$reply == ) {
                
$jump .= "&reply=".$reply."&msg_id=".$msg_id."";
        } else {
        }
        echo 
"<html><head><meta http-equiv='Refresh' content='0; url=".$jump."' /></head><body></body></html>";
        exit();
}
xoops_header();
if (
$xoopsUser) {
        
$myts =& MyTextSanitizer::getInstance();
        if (isset(
$HTTP_POST_VARS['op']) && $HTTP_POST_VARS['op'] == "submit") {
                
$res $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("users")." WHERE uid=".intval($HTTP_POST_VARS['to_userid'])."");
                list(
$count) = $xoopsDB->fetchRow($res);
                if (
$count != 1) {
                        echo 
"<br /><br /><div><h4>"._PM_USERNOEXIST."<br />";
                        echo 
_PM_PLZTRYAGAIN."</h4><br />";
                            echo 
"[ <a href='javascript:history.go(-1)'>"._PM_GOBACK."</a> ]</div>";
                } else {
                        
$pm_handler =& xoops_gethandler('privmessage');
                        
$pm =& $pm_handler->create();
                        
$pm->setVar("subject"$HTTP_POST_VARS['subject']);
                        
$pm->setVar("msg_text"$HTTP_POST_VARS['message']);
                        
$pm->setVar("to_userid"$HTTP_POST_VARS['to_userid']);
                        
$pm->setVar("from_userid"$xoopsUser->getVar("uid"));
                        if (!
$pm_handler->insert($pm)) {
                                echo 
$pm->getHtmlErrors();
                                echo 
"<br /><a href='javascript:history.go(-1)'>"._PM_GOBACK."</a>";
                        } else {
                                echo 
"<br /><br /><div style='text-align:center;'><h4>"._PM_MESSAGEPOSTED."</h4><br /><a href="javascript:window.opener.location='".XOOPS_URL."/viewpmsg.php';window.close();">"._PM_CLICKHERE."</a><br /><br /><a href="javascript:window.close();">"._PM_ORCLOSEWINDOW."</a></div>";
                        }
                }
        } elseif (
$reply == || $send == || $send2 == 1) {
                include 
XOOPS_ROOT_PATH."/include/xoopscodes.php";
                if (
$reply == 1) {
                        
$pm_handler =& xoops_gethandler('privmessage');
                        
$pm =& $pm_handler->get($msg_id);
                        if (
$pm->getVar("to_userid") == $xoopsUser->getVar('uid')) {
                                
$pm_uname XoopsUser::getUnameFromId($pm->getVar("from_userid"));
                
$message  "[quote]n";
                                
$message .= sprintf(_PM_USERWROTE,$pm_uname);
                                
$message .= "n".$pm->getVar("msg_text""E")."n[/quote]";
                        } else {
                                unset(
$pm);
                                
$reply $send2 0;
                        }
                }
                echo 
"<form action='pmlite.php' method='post' name='coolsus'>n";
                echo 
"<table width='300' align='center' class='outer'><tr><td class='head' width='25%'>"._PM_TO."</td>";
                if ( 
$reply == ) {
                        echo 
"<td class='even'><input type='hidden' name='to_userid' value='".$pm->getVar("from_userid")."' />".$pm_uname."</td>";
                } elseif ( 
$send2 == ) {
                        
$to_username XoopsUser::getUnameFromId($to_userid);
                        echo 
"<td class='even'><input type='hidden' name='to_userid' value='".$to_userid."' />".$to_username."</td>";
                } else {
                        echo 
"<td class='even'><select name='to_userid'>";
                        
$result $xoopsDB->query("SELECT uid, uname FROM ".$xoopsDB->prefix("users")." WHERE level > 0 ORDER BY uname");
            while ( list(
$ftouid$ftouname) = $xoopsDB->fetchRow($result) ) {
                                echo 
"<option value='".$ftouid."'>".$myts->makeTboxData4Show($ftouname)."</option>";
                        }
            echo 
"</select></td>";
        }
        echo 
"</tr>";
        echo 
"<tr><td class='head' width='25%'>"._PM_SUBJECTC."</td>";
                if ( 
$reply == ) {
                        
$subject $pm->getVar('subject''E');
                        if (!
preg_match("/^Re:/i",$subject)) {
                                
$subject 'Re: '.$subject;
                        }
                        echo 
"<td class='even'><input type='text' name='subject' value='".$subject."' size='30' maxlength='100' /></td>";
                } else {
                        echo 
"<td class='even'><input type='text' name='subject' value='".$subject."' size='30' maxlength='100' /></td>";
                }
                echo 
"</tr>";
        echo 
"<tr valign='top'><td class='head' width='25%'>"._PM_MESSAGEC."</td>";
                echo 
"<td class='even'>";
                
xoopsCodeTarea("message",37,8);
                
xoopsSmilies("message");
                echo 
"</td>";
                echo 
"</tr>";
        echo 
"<tr><td class='head'>&nbsp;</td><td class='even'>
                <input type='hidden' name='op' value='submit' />
                <input type='submit' class='formButton' name='submit' value='"
._PM_SUBMIT."' />&nbsp;
                <input type='reset' class='formButton' value='"
._PM_CLEAR."' />
                &nbsp;<input type='button' class='formButton' name='cancel' value='"
._PM_CANCELSEND."' onclick='javascript:window.close();' />
                </td></tr></table>n"
;
                   echo 
"</form>n";
        }
} else {
        echo 
_PM_SORRY."<br /><br /><a href='".XOOPS_URL."/register.php'>"._PM_REGISTERNOW."</a>.";
}

xoops_footer();


What would I need to add? I'm not too great at hacking, and I think this could be a nice addition to the newBB module, so anyone who could help would benefit the multitudes



292155
ackbarr
Re: XOOPS2: Private Messages Question

you will need to hack pmlite.php for this to work. You'll need to retrieve the supplied text from the $HTTP_GET_VARS array and modify the HTML code to output the supplied variables.



292156
tom
Re: myxoopscart, shoops, oscommerce
  • 2003/8/20 20:58

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


OSCommerce has been modulised although not too stable yet:

http://www.myxoops.de

Also shoops can be found @:

http://www.brandycoke.com

Although this is for 1.3.* it may work on 2.0.*

Hope this helps.

[Edited]

Link to the XoopsForge site for my xoops:

http://www.myxoopsforge.net/



292157
Jack404
XOOPS2: Private Messages Question
  • 2003/8/20 20:37

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


I'm currently working on a "Report This Post" template hack for the X2 NewBB module, and my goal is for a private message to be sent to the webmaster (or, more ideally, the moderator of the forum, but I can't think of how I'd do this) regarding the post that was reported.

My problem is that I cannot figure out how to insert text into the Subject and Message parts of the Private Message by using a link.

For instance, as a test, I wanted the Private Message window to open to be sent to the Webmaster (always uid 1, or it is in my case) with the subject "Report" and the message body saying "testing123". This is the link I am using:

http://www.mysite.url/pmlite.php?send2=1&to_userid=1&subject=report&message=testing123

However, I open the window using the link and nothing is in the subject or message boxes. What am I doing wrong? Do I need to hack the pmlite.php file in order for this to work, or just tweak the URL I'm using?

Any help would be IMMENSELY appreciated!



292158
rahil
Re: myxoopscart, shoops, oscommerce
  • 2003/8/20 20:20

  • rahil

  • Just popping in

  • Posts: 2

  • Since: 2003/7/6 1


WEll I guess these forums thread on Shopping carts are old..now its august 2003 and I need a shopping cart module..So i was wondering if any of you can give me updates on currect position of shoops.oscommerce and myshop modules...
thanks



292159
gronice
Re: WebSlave Project - a project managment tool
  • 2003/8/20 16:50

  • gronice

  • Just popping in

  • Posts: 30

  • Since: 2003/7/31


Please enable php-debug in your site settings and post the error messages.




292160
Aerobrick
Re: Is anyone interested ine a Genealogy Module for Xoops2?
  • 2003/8/20 16:17

  • Aerobrick

  • Just popping in

  • Posts: 11

  • Since: 2003/1/21


Yes!

Can help test. Can't code fer beans







Login

Who's Online

270 user(s) are online (186 user(s) are browsing Support Forums)


Members: 0


Guests: 270


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