292921
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.



292922
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



292923
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?



292924
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



292925
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



292926
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



292927
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 ?



292928
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.



292929
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



292930
kjs222
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/6/19 19:01

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


I believe he's saying that if you already have xoopsgallery installed and you upload this fix, you'll need to refresh the templates in order to see the change in the display. I'm not positive how templates work on the inside, but I can tell you that "SMARTY" is XOOPS template manager, and when a module is installed, smarty takes all the templates in the module/templates folder, copies them to a new location, and references them in the database. This means that if you try to simply upload a new template it won't show up (since smarty's templates are stored and referenced elsewhere). So, in order to change a template, you either have to:

a) upload it the normal way, then update the module (I'm pretty shure this should do it), or

b) go into the template manager (admin->System->templates) and modify the "Gallery" template file using the utility found there... of course, in order to modify the templates using the online tool, you'll need to clone the default template (you can modify ANY template except the default one).

Hope I did more help than confuse!
Keith







Login

Who's Online

284 user(s) are online (171 user(s) are browsing Support Forums)


Members: 0


Guests: 284


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