1
jsdev2006
Re: good backup tool
  • 2006/2/21 16:02

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


Hi,
found what i was looking for:

The page https://xoops.org/modules/repository/viewcat.php?cid=17 has a list of db backup modules.

https://xoops.org/modules/repository/singlefile.php?cid=17&lid=1115
seems to be good

JS



2
jsdev2006
Re: ImageMagicK not getting detected
  • 2006/2/21 15:35

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


About imagemagick, I had once set up Gallery, which needed either of ImageMagick or NetPBM. Gallery had worked fine this way - just needed to specify the path in some menu. So I assumed something similar is needed here.

About CBB,
let us assume that I do not need either ImageMagick or Polls for the time being, then, CBB should show up as something under the Main Menu, is it not? It isn't. What else do I have to do?

I had soem problem installing it first time. Soi uninstalled it. The system gave a proper "successfully removed" message as well. So I am missing something obvious. what could it be?

TIA,
JS



3
jsdev2006
ImageMagicK not getting detected
  • 2006/2/21 12:46

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


Hi,
software info is as follows:
XOOPS Version: 2.2.3 Final
Module Name/Version: CBB 2.2
PHP Version: 5.0.4 (using XAMPP for Windows)
MySQL Version: 4.1.13 MyISAM
Web Server Software (Apache/IIS/Other): Apache 2.0.54
Operating System: Windows XP Pro
Theme you are using:xmt
Custom template: No

A full description of the issue:

ImageMagicK it seems, is needed by CBB.
The install page of CBB shows in red:
"ImageMagiCK: Not Available" and
"NetPBM: Not Available"
whereas I have got ImageMagick-6.2.4-6-Q8-windows-dll.exe and installed it on c:/ImageMagicK and have included it in the Windows System Path.

What else do I need to do to get ImageMagick detected by CBB? Also, it says in red
"XOOPS Poll module: Not avaliable". Is the Poll Module necessary for CBB? (Anyways, I will put it.)

TIA,
JS



4
jsdev2006
Re: good backup tool
  • 2006/2/21 12:30

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


thanks MadFish and McNaz.

Another question I have:

Is there a robust module to do a proper backup of the MySQL db
and the config files. e.g. Even if I add several modules, the backup utility should be able to create data-dumps or sql-format data backup files and should be runnable from a single button press from the admin menu + maybe unix cron job. Is there such a module already? OR is it really enough to just run MySQL's data backup utility. I have personally seen that unless you know the MySQL data backup tool properly, you cannot get a decent SQL-compliant datadump. I mean you get problems like
(a) charset gets modified
(b) insert queries on child table appear before insert queries on Parent table (in a foreign key scenario)
(c) back-ticks appear instead of quotes
(d) back-ticks appear where not needed -i.e. insert queries, table names
etc.

any links to any module (or MySQL databackup utility)?

TIA,
JS



5
jsdev2006
call it XOOPS Troubleshooter
  • 2006/2/21 12:20

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


great idea!!
A good name would be XOOPS Troubleshooter.
The other idea of extending it further into an intelligent help system is also quite good. If anyone as the patience or time, you can make it a module which will take you to the right page depending on what error you have and what config you have!


(p.s. Or maybe we could just use the search on the docs )



6
jsdev2006
does xoops have everything i need
  • 2006/2/20 9:38

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


Hi,
i need the following things from a cms/forum:

(1) a good forum which does not need technical knowledge(php/xoops code) to administer
(2) some users should be able to upload images and text onto the site, be it on the forum or on any other page(some other module), preferably on the forum itself
(3) a wiki
and,
(4) compulsorily should be able to run on php in CGI mode

For (2) is CBB good enough?
For (3) currently there is no XOOPS module, but there is one project to merge mediawiki with XOOPS in beta stage, i found it in the modules list. can you run mediawiki with XOOPS apart from this project?

Most importantly,
can anyone tell me whether (4) will be satisfied fully, or some parts will not work in CGI, or whether it depends on my particular installation?

it seems CBB uses NetPBM/ImageMagick. are these necessary ? I can get them easily on my WinXP Pro development machine and test them, but what if my shared hosting provider does not have them?
If i am not wrong, at least simple upload and display of images does not need these extensive image manipulation libraries? or does it?

TIA,
JS



7
jsdev2006
SendMail for Windows
  • 2006/2/18 20:46

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


Hi,
here is a find:
a sendmail for windows available for free at

http://www.dotnetjunkies.com/WebLog/j ... ive/2005/01/17/45329.aspx
or
google for "sendmail for windows john wood"

The utility is quite nifty and seems just like sendmail on unix.
One thing is that it seems it requires .Net runtime installed (i am not sure, maybe someone without .Net runtime can just try out the utility and confirm)

The other thing is it takes the name of a file as command line argument, which contains the body text.

Now someone just has to put the code into
class/mail/phpmailer/class.phpmailer.php
in the function sendmail_send() maybe (around line 590)

The code should be something like:
function win_sendmail_send($header, $body) {
//echo "inside win_sendmail_send()";

//to be passed correctly
$this->Sender = "admin@myxoopssite.com";
$mailservername = "mail.myserver.com";
//generating a random file name so that no
//concurrent file access issues arise
$messagefile = "C:/temp/".uniqid().".txt";
$filehandle = "";
//and filling the body text into that file
if(!@$filehandle = fopen($messagefile, "w"))
{
$this->error_handler(sprintf("Could not open %s", $messagefile));
return false;
}
if (fwrite($filehandle, $body) === FALSE) {
$this->error_handler(sprintf("Cannot write to file %s", $messagefile));
return false;
}
fclose($filehandle);

/*
-----quotes do not seem to work -----
$sendmail = sprintf("\"%s\" /s %s /f %s /t \"%s\" /j \"%s\" /m \"%s\"",
*/
$sendmail = sprintf("%s /s %s /f %s /t %s /j %s /m %s",
$this->Sendmail,
$mailservername,
$this->Sender,
$this->to[0][0],
"User activation key for username",
$messagefile);

//echo "\n the whole command :\n$sendmail \n";
exec($sendmail);
//exit();

return true;
}

------------------------------
maybe exec is not a good idea ..... this is far from complete as a patch, obviously. Just to give an idea. I managed to get this code to send myself a activation mails properly.

(Surprisingly, the command string ($sendmail) works properly without quotes for multiword arguments. Needs to be tested.)


************************************
The good thing about this approach of using a sendmail clone is that people testing out XOOPS on Windows (or maybe using XOOPS on WAMP) do not need to setup a mail server on their setup for sending a mail. Setting up Mercury Mail which comes with XAMPP can be quite a task.
************************************

Coming back finally to the discussion on disabling email activation,
stefan88,
I could not find in 2.2.3 what you pointed out, I will have to look harder
Thanks.

HTH,
JS



8
jsdev2006
Disabling Activation Email for testing
  • 2006/2/18 16:00

  • jsdev2006

  • Just popping in

  • Posts: 8

  • Since: 2006/2/18


Hi,
I'm trying to see if XOOPS suits my purposes. I am testing it on a Windows XP Pro machine, XOOPS version 2.2.3Final. Running it on XAMPP. XAMPP has Mercury Mail server, but mine is not working somehow (thats a different story).

My question is, since there is no sendmail counterpart in windows, can the email part needed for activation be disabled temporarily? Since an email ID once requested for registration cannot be requested again, (and I do not know the complications of updating the xoops_user table in the database directly) with three tries I have exhausted all my email ids! Now I need to enter fake ids but they obviously cannot be used for activation (they are fake). So, basically I am stuck. I know that XOOPS is tested heavily before release, but everyone generally likes to have a feel for themselves before going live on a real site.

The solutions I see are:

(a) put a flag(checkbox/ on the Mail Setup or Authentication Settings page to skip the email activation step totally, just for testing purposes (best option to help testing)

(b) release a testing-only release (least feasible option - life will be a pain to handle multiple releases)

(c) someone create a sendmail copy for windows and distribute it around with XOOPS or put a link to any such software (but then XOOPS needs to have code to support it)
With (c) you still have the major problem of exhausting all your true email ids quickly - e.g. you want to put 2-3 users in a group with some settings, 2-3 in another with other settings, 2-3 with admin rights etc., - normal testing, basically - you will need about 10 real email ids - thats not practical by any stretch of imagination.

(d) is there a quick hack available - disabling some field somewhere or some simple update query?

Any help is greatly appreciated.

TIA,
JS




TopTop



Login

Who's Online

53 user(s) are online (22 user(s) are browsing Support Forums)


Members: 0


Guests: 53


more...

Donat-O-Meter

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

Latest GitHub Commits