The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Custom inbox link

2 posters

Go down

In progress Custom inbox link

Post by Hustleboy August 11th 2013, 5:33 pm

Hey guys

So i tried this with some cutting of some code and came out with this code.
Code:
<!-- BEGIN folder -->
<!-- IF folder.S_CUR_FOLDER -->
<li id="active-subsection"><a href="{folder.U_FOLDER}"><!-- IF folder.UNREAD_MESSAGES > 0 --><strong>{folder.FOLDER_NAME} ({folder.UNREAD_MESSAGES})</strong><!-- ELSE -->{folder.FOLDER_NAME}<!-- ENDIF --></a></li>
<!-- ENDIF -->
<!-- END folder -->
Basically this shows instead of x New Messages , Inbox ( x )
x for amount.
I wanted that part of code because it shows Unread messages, and not new ones.
Now it does work, But only if i am on the Private messages page.
How could it work, if i am anywhere on the forum If logged in.

I already tried editting/removing <!-- BEGIN folder -->
and stuff but that just breaks it and it won't show up at all.


Thanks
avatar
Hustleboy
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

In progress Re: Custom inbox link

Post by Hustleboy August 12th 2013, 9:13 pm

Somebody knows ?
avatar
Hustleboy
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

In progress Re: Custom inbox link

Post by Sir Chivas™ August 13th 2013, 5:05 am

Hi,

You want it to work only when logged in, correct?

Just wrap the code with this:
Code:
<!-- BEGIN switch_user_logged_in -->
Your code goes here
<!-- END switch_user_logged_in -->
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6965
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum