292951
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



292952
mvandam
Re: Hello username, you have X new private messages
  • 2003/6/20 19:31

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Quote:

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


How are you getting '$block.new_messages' into theme.html? You would have to do an assign to $xoopsTpl somewhere so the theme knows about this value, since this is not part of the standard information assigned by the core.

Probably putting in a block is better unless you want to mess with the core.



292953
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



292954
Ace_Armstrong
Limiting anonymous users' search ability

Is there a way that we can allow registered users to search the message boards, but not allow anonymous users (who don't have access to those boards) to include the newbb module in the search?



292955
tl
Re: Hello username, you have X new private messages
  • 2003/6/20 17:34

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


You can find the code in the Colors template. Search "colors" under download will lead you to Colors theme/template

file name under system/blocks:
system_block_user.html



292956
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



292957
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



292958
meme
Re: is that bug ?
  • 2003/6/20 8:58

  • meme

  • Quite a regular

  • Posts: 271

  • Since: 2002/12/10


please
need to count every visit

any help ?



292959
hal_u1
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/6/20 7:22

  • hal_u1

  • Just popping in

  • Posts: 5

  • Since: 2003/4/4 8


Since updating XOOPS from 2.0.2 to 2.0.3,
when I post a comment on XOOPSGallery, the link on Recent Comment Block is bad.
albumName and id are blank.
So I use 'session.php' of the patches by SirTanksAlot,
but there is still error,(ERROR: requested index [] out of bounds [43])
and URL is incorrect.(XOOPS_URL/modules/xoopsgallery/view_photo.php?albumName=&id=&xoops_imageid=111&com_id=20&com_rootid=20&com_mode=thread&com_order=0#comment20)

On Recent Comment block, the link seems to be the same.
(XOOPS_URL/modules/xoopsgallery/view_photo.php?xoops_imageid=111&com_id=20&com_rootid=20&com_mode=thread&albumName=&id=&#comment20)

There is no albumName and id.



292960
meme
is that bug ?
  • 2003/6/20 3:29

  • meme

  • Quite a regular

  • Posts: 271

  • Since: 2002/12/10


hi

when u visit a topic in newbb it count you only one time

i was thinking its only on my newbb but when i try it here its give the same result only one count

thanks







Login

Who's Online

317 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 317


more...

Donat-O-Meter

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

Latest GitHub Commits