Jump to content
WebFlake
  • 0

Notifications


Guest C0pyRyte

Question

Guest C0pyRyte

So for some reason, the skin that I am using does not have any notification icons (New PM,etc...)

 

Posted Image

 

The coding is missing from globalTemplate...

 

I copied some code from a different skin that I believe is the code I need to add to the skin that is missing the icons.

 

<if test="messengerlink:|:$this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0">										<li><a data-clicklaunch="getInboxList" id='inbox_link' href='{parse url="app=members&amp;module=messaging" base="public"}' title='{$this->lang->words['your_messenger']}'><if test="notifications:|:$this->memberData['msg_count_new']"><span class='ipsHasNotifications'>{$this->memberData['msg_count_new']}</span></if>&nbsp;</a></li>									</if>									<li><a data-clicklaunch="getNotificationsList" id='notify_link' href="{parse url="app=core&amp;module=usercp&amp;area=notificationlog" base="public"}" title="{$this->lang->words['notifications_at_the_top']}"><if test="notifications:|:$this->memberData['notification_cnt']"><span class='ipsHasNotifications'>{$this->memberData['notification_cnt']}</span></if>&nbsp;</a></li>								</if>

 

 

I added that code to the broken theme and then the icons show up, but for some reason, only Admins and Moderators can see them. I am guessing I am adding it into the wrong place, so that is why I am asking for help....

 

I want to put the icons to the left of the Username.... Anyone know where I should add this? 

 

Theme: 

Edited by C0pyRyte
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I get a syntax error when I try to save the globalTemplate.

 

I pasted the code into Dreamweaver and it says the error is on line 12

 

EDIT: It seems I get the error even without adding that new code... Not sure where the syntax error is coming from then.

 

			jsDebug			= {parse expression="intval($this->settings['_jsDebug'])"}; /* Must come before JS includes */

Copy everything in your globalTemplate and paste it onto a .txt file somewhere and save it, just in case.

 

ACP > Look & Feel > Your Skin > globalTemplate.

What I suggest doing is clicking on the Posted Image button and seeing if it fixes anything. And if the notification icons still aren't there, add the code I gave you above in the other post.

Need some IPB, MyBB, or HTML/CSS work done? Check out my thread!
:smiley:

Link to comment
Share on other sites

  • 0

ACP > Look & Feel > Your Skin > globalTemplate.

 

Find this code:

 

<li><a id='user_link' href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}"  title='{$this->lang->words['your_profile']}'>{$this->memberData['members_display_name']} &nbsp;<span id='user_link_dd'></span></a></li>

 

 

Add this code above the one you just found:

<if test="showInboxNotify:|:! ( ! $this->memberData['member_id'] && $this->settings['force_login'] ) && !($this->settings['board_offline'] && !$this->memberData['g_access_offline'])">                                    <if test="messengerlink:|:$this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0">                                        <li><a data-clicklaunch="getInboxList" id='inbox_link' href='{parse url="app=members&amp;module=messaging" base="public"}' title='{$this->lang->words['your_messenger']}'><if test="notifications:|:$this->memberData['msg_count_new']"><span class='ipsHasNotifications'>{$this->memberData['msg_count_new']}</span></if>&nbsp;</a></li>                                    </if>                                    <li><a data-clicklaunch="getNotificationsList" id='notify_link' href="{parse url="app=core&amp;module=usercp&amp;area=notificationlog" base="public"}" title="{$this->lang->words['notifications_at_the_top']}"><if test="notifications:|:$this->memberData['notification_cnt']"><span class='ipsHasNotifications'>{$this->memberData['notification_cnt']}</span></if>&nbsp;</a></li>

 


 

Let me know if that works.

Also, make sure you've set the permissions correctly for each member group. That might be your problem.

Need some IPB, MyBB, or HTML/CSS work done? Check out my thread!
:smiley:

Link to comment
Share on other sites

  • 0
Guest C0pyRyte

I get a syntax error when I try to save the globalTemplate.

 

I pasted the code into Dreamweaver and it says the error is on line 12

 

EDIT: It seems I get the error even without adding that new code... Not sure where the syntax error is coming from then.

 

			jsDebug			= {parse expression="intval($this->settings['_jsDebug'])"}; /* Must come before JS includes */
Edited by C0pyRyte
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...