91
kerkyra
Re: X-SOAP 4.2
  • 2010/1/27 14:03

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


i would like to create a service so that other portals could get data from my website. For example a list of categories, and when one of the click a list of the products it contains. Using an api perhaps?



92
kerkyra
Re: X-SOAP 4.2
  • 2010/1/25 13:47

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


i'm trying to make a web service using soap, so i'm fairly new to this. Thats why i'm asking for help with the module, i dont now if it is what i'm looking for or if i should write something from scratch.



93
kerkyra
Re: X-SOAP 4.2
  • 2010/1/24 19:01

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


any ideas how to use it? there is no help file! i have installed the module, set permissions etc. How can i make a call to get the data of a specific table?



94
kerkyra
Re: XOOPS and innoDB
  • 2009/12/31 0:45

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


You can see the advantages and disadvantages of each here...

http://www.mikebernat.com/blog/MySQL_-_InnoDB_vs_MyISAM

hope it helps



95
kerkyra
Re: Xoops Uploader Class
  • 2009/12/21 16:24

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


no, thought you said that you used my code... :/



96
kerkyra
Re: Xoops Uploader Class
  • 2009/12/21 1:44

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


so any ideas what i should check? I know this code used to work fine...! What could have caused this and the fckeditor prob additionally?



97
kerkyra
Re: Xoops Uploader Class
  • 2009/12/20 14:06

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


php version 5.2.11

the shots directory is writable, XOOPS 2.4.2

no error messages in debug

The weird thing is that in XOOPS 2.3.2 this works (in the same server, same module)

also the image upload of fckeditor doesnt work while it says that the file was uploaded in both 2.3.2 and 2.4.2 and this used to work in both!!

I really cant get it....



98
kerkyra
Re: Xoops Uploader Class
  • 2009/12/20 3:20

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


i added the spaces before unchecking the html code button for pasting the code in here, the $lid var is working fine! no prob there actually! I also get the filename posted, i get no temp_name for that file though in the $_FILES var.:/



99
kerkyra
Re: Xoops Uploader Class
  • 2009/12/19 14:49

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hi mate sorry for the delay,

the form code is

Quote:

echo "<div border="0" cellspacing="0" cellpadding="0" align="center"><big><b>"._MD_UPLOAD_IMAGE."</b></big><br><br>

<form method=' post ' action=' upload_image.php ' enctype='multipart/form-data'>
<input type=" file " id=" file " name=" file " size=" 50 " maxlength=" 60 ">
<input id="xoops_upload_file[]" type="hidden" value="file" name="xoops_upload_file[]"/><br><br>
<input type="hidden" id="lid" name="lid" size="50" maxlength="60" value="$lid">

<input type="submit" class="button" name="submit" id="submit" value=""._MD_ADD.""></input>
</form>


and the code to get what is posted is

Quote:

global $xoopsDB, $_POST, $myts, $eh;
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
include_once XOOPS_ROOT_PATH.'/class/module.errorhandler.php';

$lid = $myts->makeTboxData4Save($_POST["lid"]);
$destination_path = XOOPS_ROOT_PATH."/modules/myreviews/images/shots/";

$allowed_mimetypes = array('image/gif', 'image/jpeg','image/png');
$maxfilesize = 4194304;
$maxfilewidth = 800;
$maxfileheight = 800;
$uploader = new XoopsMediaUploader($destination_path, $allowed_mimetypes, $maxfilesize, $maxfilewidth, $maxfileheight);
$uploader->setPrefix("shot");
$x=0;
if ($uploader->fetchMedia($_POST['xoops_upload_file'][$x]))
{
if (!$uploader->upload())
{
$result = $uploader->getErrors();
echo $result;

} else //update db
{
$logourl = $uploader->getSavedFileName();
$xoopsDB->query("INSERT INTO ".$xoopsDB->prefix("myreviews_images")." (lid, src) VALUES ($lid, $logourl)") or $eh->show("0013");
redirect_header("index.php",1,_MD_DBUPDATED);
}
}
else {
print_r($_POST);
}
}


whats weird is that this used to work, also the $_FILES['tmp_name'] is empty.

Finally the fckeditor image upload tool doesnt work! I asked the hosting company for any errors perhaps or php settings but they respond that this might be a XOOPS problem and that they see nothing weird in the servers configuration!!!



100
kerkyra
Xoops Uploader Class
  • 2009/12/17 12:38

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


Hi does anybody have a problem with the XOOPS uploader class? It used to work for me but now it returns an empty $_Files['tmp_name'] and uploads nothing.

Furthermore using fck editor when trying to upload a pic through the uploader i get a message that the file uploaded succesfully but the file is not there! This happens in 2.3.2 and 2.4.2 any ideas?




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 40 »



Login

Who's Online

218 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

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

Latest GitHub Commits