1
davidtillyer
Re: Can NOT connet to DB

Thanks for your help I will give the google search a try.
Kind Regards
David



2
davidtillyer
Re: Can NOT connet to DB

HI Thank you for your reply. I have asked the host and they have not yet come back to me. I do think this is where the problem lays. I also wanted a professional XOOPS option on this.

I have not gone into MyPHPadmin as this site that I'm trying to connect to is working as I'm already coneecting to this via onother website.

Is it possible to have two websites connecting to one database?
Kind Regards
David



3
davidtillyer
Can NOT connet to DB

Im going through the set up intro program on XOOPS and I have put in all the info for it to connect to the "Mysql" DB and I keep getting the same message.

check database
Could not connect to the database server.


Please check the database server and its configuration.


Can someone please advise me on what I need to do?
Kind Regards
David



4
davidtillyer
Link to Database

I want to run a site without the MySQL DB or ANY DB.

Q: How do I do that?

On the setup that you go through when commissioning the site it asks to add data for the data host etc to link to a DB. As I do NOT want to link it to a DB it will NOT let me go beond this point.

How do I overcome this?
Kind Regards
David



5
davidtillyer
Footer change

Can someone pls tell me how I add links to the footer BAR like on this site where there is Terms of Use | Privacy Policy I want to add my Terms of business etc.

Q1 What file do I need to edit to do this?
Q2 How do I write the test line in that file to link to
Q3 Can this be a .doc file or PDF
Q4 where can I put this on the server (downloads)?

David
Kind Regards
David



6
davidtillyer
Re: extGallary (Photo Gallary) HELP

I Have down loaded that php file and I can not find that line in the code and threr is not 86 lines of code there. Below is all I have in that php file can you please show me what I need to change.

(!defined("XOOPS_ROOT_PATH")) {
die("XOOPS root path not defined");
}

include_once 'ExtgalleryPersistableObjectHandler.php';
include_once 'extgalleryMailer.php';

class ExtgalleryPublicecard extends XoopsObject
{

var $externalKey = array();

function ExtgalleryPublicecard()
{
$this->initVar('ecard_id', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ecard_cardid', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ecard_fromname', XOBJ_DTYPE_TXTBOX, 0, false);
$this->initVar('ecard_fromemail', XOBJ_DTYPE_EMAIL, '', false, 255);
$this->initVar('ecard_toname', XOBJ_DTYPE_TXTBOX, '', false, 255);
$this->initVar('ecard_toemail', XOBJ_DTYPE_EMAIL, '', false, 255);
$this->initVar('ecard_greetings', XOBJ_DTYPE_TXTBOX, 0, false);
$this->initVar('ecard_desc', XOBJ_DTYPE_TXTAREA, 0, false);
$this->initVar('ecard_date', XOBJ_DTYPE_INT, 0, false);
$this->initVar('ecard_ip', XOBJ_DTYPE_TXTBOX, 0, true);
$this->initVar('uid', XOBJ_DTYPE_INT, 0, false);
$this->initVar('photo_id', XOBJ_DTYPE_INT, 0, false);

$this->externalKey['photo_id'] = array('className'=>'publicphoto', 'getMethodeName'=>'getPhoto', 'keyName'=>'photo', 'core'=>false);
$this->externalKey['uid'] = array('className'=>'user', 'getMethodeName'=>'get', 'keyName'=>'user', 'core'=>true);
}

function getExternalKey($key) {
return $this->externalKey[$key];
}

}

class ExtgalleryPublicecardHandler extends ExtgalleryPersistableObjectHandler {

function ExtgalleryPublicecardHandler(&$db)
{
$this->ExtgalleryPersistableObjectHandler($db, 'extgallery_publicecard', 'ExtgalleryPublicecard', 'ecard_id');
}

function createEcard($data) {

$photoHandler = xoops_getmodulehandler('publicphoto', 'extgallery');

$ecard = $this->create();
$ecard->setVars($data);
$ecard->setVar('ecard_date',time());
$uid = is_a($GLOBALS['xoopsUser'], "XoopsUser") ? $GLOBALS['xoopsUser']->getVar('uid') : 0;
$ecard->setVar('uid',$uid);
$ecard->setVar('ecard_cardid',md5(uniqid(rand(), true)));

if(!$this->insert($ecard, true)) {
return false;
}
//$this->send($ecard);

$criteria = new Criteria('photo_id',$ecard->getVar('photo_id'));
$photoHandler->updateCounter('photo_ecard',$criteria);
}

function send(&$ecard) {

$photoHandler = xoops_getmodulehandler('publicphoto', 'extgallery');
$photo = $photoHandler->get($ecard->getVar('photo_id'));

$mailer = new extgalleryMailer('included');

$mailer->setEcardId($ecard->getVar('ecard_cardid','p'));
$mailer->setSubject(sprintf(_MD_EXTGALLERY_ECARD_TITLE, $ecard->getVar('ecard_fromname','p')));
$mailer->setToEmail($ecard->getVar('ecard_toemail','p'));
$mailer->setToName($ecard->getVar('ecard_toname','p'));
$mailer->setFromEmail($ecard->getVar('ecard_fromemail','p'));
$mailer->setFromName($ecard->getVar('ecard_fromname','p'));
$mailer->setGreetings($ecard->getVar('ecard_greetings','p'));
$mailer->setDescription($ecard->getVar('ecard_desc','p'));
$mailer->setPhoto($photo);
$mailer->send();
}

function getEcard($ecardId) {
$criteria = new Criteria('ecard_cardid',$ecardId);
$ecard = $this->getObjects($criteria);
if(count($ecard) != 1) {
return false;
}
return $ecard[0];
}

}

?>
Kind Regards
David



7
davidtillyer
Re: User Menu Edit

Hi Vaughan,

I have shorted the "View My Profile" & "Edit My Profile" now thanks for that.

David

Quote:

vaughan wrote:
u can change the ones in the main menu from modules admin, but not the user menu.. you have to edit the language files for that ;)

i'll sort it in a bit if you haven't already dave.. as i'll also do the 2.0.16 update for you if you require.

got your emails too, will reply in a short while, as i've been too busy and tired the last few days..
Kind Regards
David



8
davidtillyer
Re: extGallary (Photo Gallary) HELP

Hi can I just download the "publicecard.php" file edit it and upload it again and it should work?
Kind Regards
David



9
davidtillyer
Re: User Menu Edit

Quote:

irmtfan wrote:
modules/system/language/english/blocks.php


Hi Thanks for pointing out where it is. To edit this I belive I need to use the whole system templet edit system, go into the admin sec download this, edit it. All this is OK. But when I try and upload it it dose not work or I do not know how to do this correctly.

On the older virsion I could just change the block words like you can change a module tital.

All I want to do is change "Edit Account" to Edit My Profile" etc.

Is there an easy what for a none tech like me to do this?
Kind Regards
David



10
davidtillyer
Re: extGallary (Photo Gallary) HELP

Hi Thank you, for that tip. Where do I find this:

Find this line (I think it's line 86):
//$this->send($ecard);

and change it to

$this->send($ecard);
Kind Regards
David




TopTop
(1) 2 3 4 ... 27 »



Login

Who's Online

175 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 175


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