161
patagon
Re: Hello username, you have X new private messages
  • 2003/6/20 19:44

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks for the reply...no idea how I was getting that into theme.html, as usual I was just trying to do something and overlooking something really obvious (but not for me

I will try it in a block instead now that I know it works there



162
patagon
Re: Hello username, you have X new private messages
  • 2003/6/20 18:30

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks for the reply! I found the template and included it in theme.html (instead of in a block). However it doesnt show when I have a new message, it always says you have 0 new messages

Here is the code I copied in theme.html

Hi <{$xoops_uname}>,
<{if $block.new_messages > 0}>
you have
<{$block.new_messages}> new message(s)
<{else}>
you have no new message
<{/if}>



Account info
·

Logout

<{if $xoops_isadmin}>
·

XOOPS admin

<{/if}>

is there any reason why this would work in a block but not in theme.html?

thanks



163
patagon
Re: Hello username, you have X new private messages
  • 2003/6/20 16:41

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Sorry for the double posting, it seems my browser hanged up during submit and ended up with two posts



164
patagon
Hello username, you have X new private messages
  • 2003/6/20 16:39

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi:

i would like to display in theme.html a welcome text saying: Hello username, you have X private messages. I figured the hello username part and I took the following code from somewhere (its diffucult to search for PM related messages since PM is only two words and XOOPS has a 3 word limit for searching):

<{if $block.new_messages > 0}>
<{$block.lang_inbox}> (<{$block.new_messages}>)
<{else}>
<{$block.lang_inbox}>
<{/if}>

But it doesnt work...anyone knows whats wrong with it? and or how to do it?

If you want to look for a sample of what I want to do the following site does exactly what I want:http://www.secondsquare.com
This is the site of a user here (dlh, I asked him how he did it but I guess he missed my post).

Thanks



165
patagon
Re: "Whats new since last logon" module needed
  • 2003/5/28 20:39

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


That looks really useful



166
patagon
Re: remembering logins?
  • 2003/4/10 21:10

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Didnt know about that..seems like a nice solution for sites where security isnt a major concern. THANKS



167
patagon
Re: remembering logins?
  • 2003/4/10 21:07

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


If you do I hope you consider sharing it here..I would also like that. I undesrtand there may be security concerns and all that, but if amazon remembers my login name (among others) my hobby site can also...

Thanks



168
patagon
Re: module-related title hack
  • 2003/4/5 0:31

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi:

I think it would be great this made it into XOOPS (I dont know the programming part of this, so how it is no idea :P.

Another benefit is that it makes it easier to bookmark pages..rigth now I think every forum post has the same name if you try to bookmark it...




TopTop
« 1 ... 14 15 16 (17)



Login

Who's Online

219 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits