51
shank
Re: Private Messaging
  • 2005/12/15 2:34

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


My bad. Remove the space between java and script. I posted it correctly, but for some reason it gets a space put in it. Same code but instead of java script it should have javascript

The bad part about this code is that the aleret will show everytime they refresh the page, or go to a new page, including inbox, till the check the mail.

I'll try to figure out a better way to do this.
s l s h a n k l e @ b e l l s o u t h . n e t



52
shank
Re: Private Messaging
  • 2005/12/13 19:09

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


In your theme.html file

change
<body>


to
<{if $xoops_isuser}><{insert name="pms"}>
<{if 
$msgcount 0}>
<
body onLoad="java script: alert('Check Your Inbox!')"><{else}><body><{/if}><{else}><body><{/if}>
s l s h a n k l e @ b e l l s o u t h . n e t



53
shank
Re: New messages in theme as smarty; how to?
  • 2005/12/13 2:48

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Quote:

supermario wrote:
Quote:
blueteen wrote:
can you activate 'debug php mode'


I'm having the same problem... it won't appear. I turned on PHP Debug and there were no errors that seemed to refer to this.


Try smarty debug.

Also you may have to set in preferances to update template from theme folder.
s l s h a n k l e @ b e l l s o u t h . n e t



54
shank
Re: New messages in theme as smarty; how to?
  • 2005/12/13 2:43

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Quote:

tjnemez wrote:
thanks for your help. i tried this but it does not work for me.

<{if$xoops_isuser}><{insert name="pms"}>
<a href="<{$xoops_url}>/viewpmsg.php">
<{if $msgcount > 0}>
<{if $msgcount > 1}>You Have <{$msgcount}> New Messages
<{else}>You have <{$msgcount}> New Message
<{/if}>
<{else}>Private Messages
<{/if}></a><{/if}>


only thing I see wrong with this is there should be a space between <{if and $xoops_isuser}>

<{if $xoops_isuser}> is how it should look.

Did you create the insert.php file?
s l s h a n k l e @ b e l l s o u t h . n e t



55
shank
Re: New messages in theme as smarty; how to?
  • 2005/12/12 14:47

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


The code in the theme should be wrapped with
<{if $xoops_isuser}>....code goes here....<{/if}>


edited to fix space in code.
s l s h a n k l e @ b e l l s o u t h . n e t



56
shank
Re: Private Messaging
  • 2005/12/12 2:16

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Replace the < body > tag in your theme with
<{if $xoops_isuser}><{insert name="pms"}>
<{if 
$msgcount 0}>
<
body onLoad="javascript: alert('Check Your Inbox!')"><{/if}><{else}><body><{/if}><{else}><body><{/if}>


And save the following as insert.pms.php in your class/smarty/plugins folder
<?
function 
smarty_insert_pms()
{
GLOBAL 
$xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
$criteria->add(new Criteria('to_userid'$uid));
$msgcount $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount'$msgcount);
}
?>
s l s h a n k l e @ b e l l s o u t h . n e t



57
shank
Re: Private Messaging
  • 2005/12/12 1:59

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


You can use javascript in your theme to do this.

Let me do it again and i'll post back how.

The pop up will show next time the logo is loaded while they are logged in.

Check back later.
s l s h a n k l e @ b e l l s o u t h . n e t



58
shank
Re: How do I change FONT color in Center Block titles in XMT?
  • 2005/12/4 22:36

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


In your style.css file try these:

(line numbers are approximate)

line 25
td#centerCcolumn div.blockTitle

line 30
td#centerLcolumn div.blockTitle

line 35
td#centerRcolumn div.blockTitle

see if that helps you out.
s l s h a n k l e @ b e l l s o u t h . n e t



59
shank
Re: xmt fixed width
  • 2005/12/4 22:23

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


#page-ml in the style.css file.

line 7
s l s h a n k l e @ b e l l s o u t h . n e t



60
shank
Re: Templates Showing Differently In IE/FF
  • 2005/12/4 21:04

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


The problem is that IE and FF handle DIV taggs differently.

If you haven't fixed this yet send me a copy of your theme folder and I'll take a look at it.
s l s h a n k l e @ b e l l s o u t h . n e t




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 15 »



Login

Who's Online

141 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 141


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