The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Custom inbox link

View previous topic View next topic Go down

In progress Custom inbox link

Post by Hustleboy on 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

Hustleboy
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

In progress Re: Custom inbox link

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

Somebody knows ?

Hustleboy
New Member

Posts : 8
Reputation : 1
Language : English

Back to top Go down

In progress Re: Custom inbox link

Post by Sir Chivas™ on 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 -->



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

View previous topic View next topic Back to top


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