11
haisam
backend.php problem Undefined index: items in file class/smarty/Smarty.class.php
  • 2004/1/24 18:42

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


I get the following error when I attempt to access ./backend.php:

XML Parsing Error: junk after document element
Location:http://*/cms/xoops-2.0.5/html/backend.php
Line Number 64, Column 7:</rss>Notice [PHP]: Undefined index: items in file class/smarty/Smarty.class.php line 626<br>
------^





12
haisam
Re: xoopsmailer: how to use in modules/news/article.php
  • 2004/1/23 23:41

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


Quote:

Mithrandir wrote:
Are other emails sent out properly?


yes



13
haisam
Re: xoopsmailer: how to use in modules/news/article.php
  • 2004/1/23 12:24

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


You're right but the correction does'nt cause a send mail to go out.



14
haisam
Re: xoopsmailer: how to use in modules/news/article.php
  • 2004/1/23 2:15

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


Ok instead I now added the following in modules/news/article.php but without success:

include XOOPS_ROOT_PATH."/class/xoopsmailer.php";

$xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/wfchannel/language/'.$xoopsConfig['language'].'/mail_template');
$xoopsMailer->setTemplate("refer.tpl");

$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails("$to");
$xoopsMailer->setFromEmail("$from");
$xoopsMailer->setFromName("something");
$xoopsMailer->setSubject("test");
$xoopsMailer->setBody("test");
$xoopsMailer->assign("MESSAGE", "some message");
$xoopsMailer->assign("SITENAME", $xoopsConfig['sitename']);
$xoopsMailer->assign("SITEURL", XOOPS_URL."/");

$xoopsMailer->send();


got the procedure from:
http://dev.xoops.org/modules/phpwiki/index.php?pagename=XoopsMailer



15
haisam
xoopsmailer: how to use in modules/news/article.php
  • 2004/1/23 1:18

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


I've placed the following code in modules/news/article.php such that I would be able to mail the entire content of an article, but I get no errors and no email is sent (as far as I can tell). Yest $to, $from are defined. I took the code from modules/contact/index.php

$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails("$to");
$xoopsMailer->setFromEmail("$from");
$xoopsMailer->setFromName("something");
$xoopsMailer->setSubject("test");
$xoopsMailer->setBody("test");
$xoopsMailer->send();



16
haisam
Re: template for sending news, where is it?
  • 2004/1/18 0:35

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


Thanks.

I want to add more text (maybe all the text or the short text) of a new article.



17
haisam
multiple banners by category, how?
  • 2004/1/11 15:42

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


I want to be able to have multiple banners which will generate different banners in different blocks. I know how to put banners in a block

echo xoops_getbanner();

If one cannot do what I'm asking is there a way to have random URL's popup in a block?



18
haisam
need weblinks with topics and categories
  • 2003/12/27 22:51

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


weblinks contain categories but topics are also needed.

As an example, one has an mpeg as category but the topic of the mpeg is "EU relations with the USA"



19
haisam
template for sending news, where is it?
  • 2003/12/24 20:21

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


What is the name of the template for emailing news?



20
haisam
<{$xoops_banner}> in a block
  • 2003/12/9 1:44

  • haisam

  • Just popping in

  • Posts: 45

  • Since: 2003/11/11


I created a left html block with the following and only string

<{$xoops_banner}>

but all that was printed in the block was the string above. What did I do wrong.




TopTop
« 1 (2) 3 4 »



Login

Who's Online

225 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 225


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