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 <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a>,
<{if $block.new_messages > 0}>
you have
<a class="highlight" href="<{$xoops_url}>/viewpmsg.php"><{$block.new_messages}> new message(s)</a>
<{else}>
you have no new <a href="<{$xoops_url}>/viewpmsg.php">message</a>
<{/if}>
<br />
<a href="<{$xoops_url}>/user.php" style="font-size:90%;">
Account info
</a> ·
<a href="<{$xoops_url}>/user.php?op=logout" style="font-size:90%;">
Logout</a>
<{if $xoops_isadmin}>
·
<a href="<{$xoops_url}>/admin.php" style="font-size:90%;">
XOOPS admin
</a>
<{/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}>
<a class="highlight" href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}> (<span style="color:#ff0000; font-weight: bold;"><{$block.new_messages}></span>)</a>
<{else}>
<a href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}></a>
<{/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: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

185 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 185


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