1
e4elid
Not displaying ADV: in xoopsheadline
  • 2004/10/19 16:11

  • e4elid

  • Just popping in

  • Posts: 5

  • Since: 2004/1/17


Some RSS feeds like moreover contain advertisements as the first title. If you do not want to display them in your headlines, the following patch may help

--- modules/xoopsheadline/class/headlinerenderer.org
+++ modules/xoopsheadline/class/headlinerenderer.php
@@ -100,6 +100,9 @@
$this->_tpl->assign('show_full', false);
}
$items =& $this->_parser->getItems();
+ if (substr($items[0][title],0,4) == "ADV:") {
+ array_shift($items);
+ }
$count = count($items);
$max = ($count > $this->_hl->getVar('headline_mainmax')) ? $this->_hl->getVar('headline_mainmax') : $count;
for ($i = 0; $i < $max; $i++) {
@@ -132,6 +135,9 @@
$this->_tpl->assign_by_ref('image', $image_data);
}
$items =& $this->_parser->getItems();
+ if (substr($items[0][title],0,4) == "ADV:") {
+ array_shift($items);
+ }
$count = count($items);
$max = ($count > $this->_hl->getVar('headline_blockmax')) ? $this->_hl->getVar('headline_blockmax') : $count;
for ($i = 0; $i < $max; $i++) {
@@ -218,4 +224,4 @@
return $xmlfile;
}
}



2
e4elid
Re: SquirrelMail in Xoops
  • 2004/2/13 14:31

  • e4elid

  • Just popping in

  • Posts: 5

  • Since: 2004/1/17


Quote:

irmtfan wrote:
is there any way to create mail for users like: username@domain



I have not tested before, but on searching, there may be a plugin that can do that Alias Plugin




3
e4elid
Re: SquirrelMail in Xoops
  • 2004/2/13 14:23

  • e4elid

  • Just popping in

  • Posts: 5

  • Since: 2004/1/17


Quote:

chrisz wrote:
Quote:

cblevins wrote:
I am able to login with any squirrel mail account but not log out unless I logout of xoops


That's what I hate about it. I understand there may be something that would prevent it from working correctly or maybe the person porting SquirrelMail hasn't had a chance to do it. Is there a good reason it's that way?

Chris


I did not encounter this problem. Just hit the Signout link which will bring you back to the squirrelmail login page.



4
e4elid
Re: SquirrelMail in Xoops
  • 2004/1/19 14:05

  • e4elid

  • Just popping in

  • Posts: 5

  • Since: 2004/1/17


I am aware that there is already a sqmail module available.

Now you have a choice


Anyway, this was a personal experiment on whether inline Frame is a good method of porting PHP applications to work within Xoops.
In this case, for a 'well written' application like squirrelmail, this could be achieved with very few code changes (look at the patch).

From code maintenance perspective, few changes results in the ease to maintain portability in future upgrades.



5
e4elid
SquirrelMail in Xoops
  • 2004/1/17 2:22

  • e4elid

  • Just popping in

  • Posts: 5

  • Since: 2004/1/17


I've made a patch for SquirrelMail to work as inline Frame in Xoops.

If you want to try it out, more information here





TopTop



Login

Who's Online

167 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 167


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