1
lawless007
Re: help adding image to custom block...
  • 2005/3/6 2:10

  • lawless007

  • Just popping in

  • Posts: 5

  • Since: 2005/2/23


Thanks guys. That was it. Sometimes the answer is so simple but you can look to hard and never find it.

Thanks Again



2
lawless007
help adding image to custom block...
  • 2005/3/5 3:57

  • lawless007

  • Just popping in

  • Posts: 5

  • Since: 2005/2/23


I have this custom block for PM's. Can anybody show me the correct code to add an image beside the text "Private Messages". I only want the image when they have a PM waiting. I know the html for adding an image, just don't know how to put it in correctly into this php code.


The Block:

global $xoopsUser;
if( 
$xoopsUser )
{
  
$pm_handler =& xoops_gethandler('privmessage');
  
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
  
$criteria->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
  
$pm $pm_handler->getCount($criteria);
}

if( 
$pm )
{
  echo 
"<a href="/xoop/html/viewpmsg.php" title="Read your new Private Messages">Private Messages($pm)</a>n";
}
else
{
  echo 
"No new Private Messagesn";
}


Thank in advance for your help....



3
lawless007
Re: Please help - missing block
  • 2005/2/23 20:55

  • lawless007

  • Just popping in

  • Posts: 5

  • Since: 2005/2/23


Did that, still a no go. Thanks for the try though. This one has me stumped.....

Only thing i remember changing before it happened was user rank renaming and deleting.....

Any suggestions?



4
lawless007
Re: Please help - missing block
  • 2005/2/23 18:41

  • lawless007

  • Just popping in

  • Posts: 5

  • Since: 2005/2/23


Did that several time. Still nothing but the title bar showing "Site Info". I can say that it does not show in the cache. I have cleared the cache, updated the system module, still no go. The block title bar is there, just no info below. Still at a loss.....



5
lawless007
Please help - missing block
  • 2005/2/23 11:32

  • lawless007

  • Just popping in

  • Posts: 5

  • Since: 2005/2/23


First I want to say what an outstanding website XOOPS is and thanks to all it's creators. Now, my problem. Have XOOPS running on a intranet fine for days. Made some changes and somewhere along the way mi "site info" block stopped showing any info. It did have the webmaster and avatar displayed but now only show the title bar "site info". I'm not a good php writer so all help appreciated.

Thanks
Mark




TopTop



Login

Who's Online

222 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 222


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