Post by pawl on Nov 22, 2012 0:59:57 GMT -8
EDIT; worked it out. I'm an idiot. =]
So I'm fiddling around with the coding on Kami's test site (click), trying to get it to look like her v4.5 forum (click). Ignore the scrollbar, I've yet to fix that. =P
Big problem at the minute is her pm notification. It's a div that has 3 backgrounds (guest, nonewpm, newpm) and 2 messages (guest, member), which I'm trying to replicate.
Here's the code that I'm using atm (bodged straight from the variables insert list =P)
{if !$[current_user.is_member]}
<div style='background: url(http://kamidraws.paul-shepherd.com/images/TARPimgs/NewspaperLayout/PM_guest.png); background-repeat: no-repeat; width: 243px; height: 126px; position: relative; top: 72px; right: 280px;'>
<div id='pm_image' style='padding-left: 0px; padding-top: 50px;' class='guest_pm'><a href='https://www.proboards.com/register/2854802'>CREATE A NEW ACCOUNT</a> or<br /><a href='https://www.proboards.com/login/2854802'>CONTINUE YOUR ADVENTURE</a>!<br />THANKS FOR VISITING!</div>
</div>
{else}(if $[current_user.messages.new])
<div style='background: url(http://kamidraws.paul-shepherd.com/images/TARPimgs/NewspaperLayout/PM_new.png); background-repeat: no-repeat; width: 243px; height: 126px; position: relative; top: 72px; right: 280px;'>
<div id='pm_image' style='padding-left: 0px; padding-top: 50px;' class='member_pm'><a href="conversations/inbox">VIEW YOUR INBOX ($[current_user.messages.new])</a><br /><a href="/conversations/outbox">CHECK OUTBOX STATUS?</a><br />PM NOTIFICATION SETTINGS<br /><a href="/bookmarks">BOOKMARKED THREADS</a></div>
</div>
{else}
<div style='background: url(http://kamidraws.paul-shepherd.com/images/TARPimgs/NewspaperLayout/PM_nonew.png); background-repeat: no-repeat; width: 243px; height: 126px; position: relative; top: 72px; right: 280px;'>
<div id='pm_image' style='padding-left: 0px; padding-top: 50px;' class='member_pm'><a href="/inbox">VIEW YOUR INBOX ($[current_user.messages.new])</a><br /><a href="/outbox">CHECK OUTBOX STATUS?</a><br />PM NOTIFICATION SETTINGS<br /><a href="/bookmarks">BOOKMARKED THREADS</a></div>
</div>
{/if}{/if}
The $[current_user.messages.new] doesn't seem to want to work for me though - I simply get a {if 0} on screen, which is rather annoying. Have tried {if $[] != 0) on the off-chance, but it turns out that I really have no idea what I'm doing. xD
Any chance someone could push me in the right direction? =]
So I'm fiddling around with the coding on Kami's test site (click), trying to get it to look like her v4.5 forum (click). Ignore the scrollbar, I've yet to fix that. =P
Big problem at the minute is her pm notification. It's a div that has 3 backgrounds (guest, nonewpm, newpm) and 2 messages (guest, member), which I'm trying to replicate.
Here's the code that I'm using atm (bodged straight from the variables insert list =P)
{if !$[current_user.is_member]}
<div style='background: url(http://kamidraws.paul-shepherd.com/images/TARPimgs/NewspaperLayout/PM_guest.png); background-repeat: no-repeat; width: 243px; height: 126px; position: relative; top: 72px; right: 280px;'>
<div id='pm_image' style='padding-left: 0px; padding-top: 50px;' class='guest_pm'><a href='https://www.proboards.com/register/2854802'>CREATE A NEW ACCOUNT</a> or<br /><a href='https://www.proboards.com/login/2854802'>CONTINUE YOUR ADVENTURE</a>!<br />THANKS FOR VISITING!</div>
</div>
{else}(if $[current_user.messages.new])
<div style='background: url(http://kamidraws.paul-shepherd.com/images/TARPimgs/NewspaperLayout/PM_new.png); background-repeat: no-repeat; width: 243px; height: 126px; position: relative; top: 72px; right: 280px;'>
<div id='pm_image' style='padding-left: 0px; padding-top: 50px;' class='member_pm'><a href="conversations/inbox">VIEW YOUR INBOX ($[current_user.messages.new])</a><br /><a href="/conversations/outbox">CHECK OUTBOX STATUS?</a><br />PM NOTIFICATION SETTINGS<br /><a href="/bookmarks">BOOKMARKED THREADS</a></div>
</div>
{else}
<div style='background: url(http://kamidraws.paul-shepherd.com/images/TARPimgs/NewspaperLayout/PM_nonew.png); background-repeat: no-repeat; width: 243px; height: 126px; position: relative; top: 72px; right: 280px;'>
<div id='pm_image' style='padding-left: 0px; padding-top: 50px;' class='member_pm'><a href="/inbox">VIEW YOUR INBOX ($[current_user.messages.new])</a><br /><a href="/outbox">CHECK OUTBOX STATUS?</a><br />PM NOTIFICATION SETTINGS<br /><a href="/bookmarks">BOOKMARKED THREADS</a></div>
</div>
{/if}{/if}
The $[current_user.messages.new] doesn't seem to want to work for me though - I simply get a {if 0} on screen, which is rather annoying. Have tried {if $[] != 0) on the off-chance, but it turns out that I really have no idea what I'm doing. xD
Any chance someone could push me in the right direction? =]