miaow
New Member
Posts: 186
inherit
139893
0
Apr 2, 2021 10:26:49 GMT -8
miaow
186
April 2009
definitelymaybe
|
Post by miaow on Mar 9, 2013 19:58:59 GMT -8
I looked around and couldn't find what I was looking for. I managed to get a 'you have __ new messages' under the member section of the info centre, and I was wondering if it was possible to have it link to the 'conversations' portion of the site? Any help would be appreciated. dxm.freeforums.net/
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 10, 2013 3:56:45 GMT -8
Have a look at the variables list for current_user > messages. For example $[current_user.messages.inbox] will display the number of messages in your inbox, while $[current_user.messages.new] will show the total of new messages. Have a play with that, and come back if you're still struggling. =]
|
|
miaow
New Member
Posts: 186
inherit
139893
0
Apr 2, 2021 10:26:49 GMT -8
miaow
186
April 2009
definitelymaybe
|
Post by miaow on Mar 10, 2013 12:12:22 GMT -8
Thanks for replying Paul. What I'm after is a way so that the user can click on $[current_user.messages.new] so that it will take them directly to their conversations inbox.
I was playing around and might prefer to have it under my banner actually. This might be a matter for header/footer codes but I thought I'd ask while I was here. Currently I have:
<div class="lnks"><a href="definitelyxmaybe.proboards.com/conversations">HEY [@username], YOU HAVE ___ NEW MESSAGES. CLICK HERE FOR INBOX.</a></div>
and wanted to know if there was a way to make it so the users name would come up, as well as the number of messages they have.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 11, 2013 12:49:23 GMT -8
Thanks for replying Paul. What I'm after is a way so that the user can click on $[current_user.messages.new] so that it will take them directly to their conversations inbox. I was playing around and might prefer to have it under my banner actually. This might be a matter for header/footer codes but I thought I'd ask while I was here. Currently I have: <div class="lnks"><a href="definitelyxmaybe.proboards.com/conversations">HEY [@username], YOU HAVE ___ NEW MESSAGES. CLICK HERE FOR INBOX.</a></div> and wanted to know if there was a way to make it so the users name would come up, as well as the number of messages they have. If it helps, I have it set as... NAME (signout) - Inbox: XX | New: XX Inbox is clickable, and XX for each depends how many they have total and new. <p id="welcome"> {if $[current_user.is_member]} $[current_user.name] (<a href="$[logout_link.href]">signout</a>) - <a href="/conversations/inbox"><b>Inbox:</b></a> <font color="#8fcf55">$[current_user.messages.inbox]</font> | New: <font color="#cf5558"><u>$[current_user.messages.new]</u></font> {else} Welcome Guest to $[forum.name]. $[login_link.] or $[register_link.] {/if} </p> Edit: to note, this displays in the top right of the nav menu, where "login and logout" displays by default.
|
|
miaow
New Member
Posts: 186
inherit
139893
0
Apr 2, 2021 10:26:49 GMT -8
miaow
186
April 2009
definitelymaybe
|
Post by miaow on Mar 15, 2013 20:27:54 GMT -8
I tried playing around with that and I got generally what I was going for. Thanks Stinky! n__n
|
|
blueshead
Full Member
More hot peppers please!
Posts: 928
inherit
185994
0
Jun 17, 2018 15:20:52 GMT -8
blueshead
More hot peppers please!
928
November 2012
mrblueshead
|
Post by blueshead on Mar 17, 2013 9:26:08 GMT -8
Can someone explain this more? Thank you.. I'd like to do what stinky has showing..
|
|
blueshead
Full Member
More hot peppers please!
Posts: 928
inherit
185994
0
Jun 17, 2018 15:20:52 GMT -8
blueshead
More hot peppers please!
928
November 2012
mrblueshead
|
Post by blueshead on Mar 28, 2013 17:22:01 GMT -8
Bump..
|
|