Jump to content


(3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style


27 replies to this topic

#1 Broni

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 17 August 2011 - 03:04 AM

This was too much work for me.

Scroll all the way down.
Click on "Mark Community Read" to reveal drop-up menu.
Click on "Mark All As Read".

Instead....

Go to ACP>Look & Feel>your_skin>Templates>Search>newContentView, add text in red:

Quote

<h2 class='maintitle'>
<if test="searchismod:|:$this->memberData['g_is_supmod'] == 1">
<span class='right'>
<input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['search_select_all']}' value='1' />
</span>
</if>
{IPSLib::getAppTitle( $this->request['search_app'] )}
<a style="float:right; padding: 1px 20px 0 0;" href="http://your_board/index.php?app=forums&module=forums&section=markasread&marktype=all&k={$this->member->form_hash}">Mark all as read</a>
</h2>

What you'll get is a clickable link "3.1.x style":

Posted Image

Edited by Broni, 17 October 2011 - 03:12 AM.
Code edited to better match board's layout


#2 woodworker Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    $ Supporting Member

  • 2,852 posts
  • Joined: October 07, 2004
  • 32 topics
  • Skin: Smartest
  • Local time: 12:48 AM
  • Zodiac:Aquarius
  • Gender:Male
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 1d 13h 53m 33s

Posted 17 August 2011 - 04:00 PM

Thank you, that was driving me crazy also.

#3 peterc Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    $ Supporting Member

  • 205 posts
  • Joined: January 15, 2010
  • 15 topics
  • Skin: Smartest
  • Local time: 01:48 AM
  • Zodiac:Aquarius
  • Gender:Male
  • Location:New York
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 28d 10h 37m 44s

Posted 17 August 2011 - 11:28 PM

Hey Broni

I did this to all my skins and it appears on all skins however when I click this I get this error:

An Error Occurred

Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.

[#20312] Sorry, but you do not have permission to use this feature. If you are not logged in, you may do so using the form below if available.


Useful Links My browser reads this when I clock on it:

hxxp://myforum.com/index.php?app=forums&module=forums&section=markasread&marktype=all&k=45e1a26b563c1354616d317c26dd2aa2

#4 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 01:20 AM

Did you replace your_site_address with your website address?

#5 peterc Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    $ Supporting Member

  • 205 posts
  • Joined: January 15, 2010
  • 15 topics
  • Skin: Smartest
  • Local time: 01:48 AM
  • Zodiac:Aquarius
  • Gender:Male
  • Location:New York
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 28d 10h 37m 44s

Posted 18 August 2011 - 01:29 AM

yes

#6 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 02:02 AM

What's the link to your forum?

#7 peterc Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    $ Supporting Member

  • 205 posts
  • Joined: January 15, 2010
  • 15 topics
  • Skin: Smartest
  • Local time: 01:48 AM
  • Zodiac:Aquarius
  • Gender:Male
  • Location:New York
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 28d 10h 37m 44s

Posted 18 August 2011 - 02:13 AM

www.conservativeindytechs.com

#8 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 02:33 AM

You need to PM me with temporary password as I can't get on.

#9 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 02:34 AM

Oh I got it.

#10 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 02:39 AM

It looks like that code is little bit different on your forum:

Quote

<li style="z-index: 10000;float:right">
<a href="http://conservativeindytechs.com/index.php?app=forums&amp;module=forums&amp;section=markasread&amp;marktype=all&amp;k=8c021b49afac6c610ecf95f60e663533" style="z-index: 10000;"><strong style="z-index: 10000;">Mark all as read</strong></a>
</li>


#11 peterc Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    $ Supporting Member

  • 205 posts
  • Joined: January 15, 2010
  • 15 topics
  • Skin: Smartest
  • Local time: 01:48 AM
  • Zodiac:Aquarius
  • Gender:Male
  • Location:New York
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 28d 10h 37m 44s

Posted 18 August 2011 - 02:46 AM

anything I can do Broni?

#12 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 02:52 AM

Yeah, replace my red code with a code I just posted in my previous reply.

#13 peterc Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    $ Supporting Member

  • 205 posts
  • Joined: January 15, 2010
  • 15 topics
  • Skin: Smartest
  • Local time: 01:48 AM
  • Zodiac:Aquarius
  • Gender:Male
  • Location:New York
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 28d 10h 37m 44s

Posted 18 August 2011 - 02:55 AM

no go Broni, tried it on two skins

#14 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 03:06 AM

OK, this should work:

<li style="float:right">
<a href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=all&amp;k={$this->member->form_hash}" base="public"}"><strong>{$this->lang->words['mark_all_as_read']}</strong></a>
</li>

#15 peterc Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    $ Supporting Member

  • 205 posts
  • Joined: January 15, 2010
  • 15 topics
  • Skin: Smartest
  • Local time: 01:48 AM
  • Zodiac:Aquarius
  • Gender:Male
  • Location:New York
  • OS:Windows XP
  • Country:
Offline
  • Time Online: 28d 10h 37m 44s

Posted 18 August 2011 - 03:14 AM

great Job!!! thanks

#16 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 August 2011 - 03:23 AM

Cool beans :)

#17 dmacleo Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Member

  • 82 posts
  • Joined: March 14, 2011
  • 12 topics
  • Skin: Delicate Blue
  • Local time: 01:48 AM
  • Zodiac:Taurus
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 17h 27m 47s

Posted 17 September 2011 - 08:30 PM

would this also work in the global header bar in same manner we did the search box?
just seems to me there is so much wasted space there.
Dave Macleod
www.davemacleod.net
Conservative Postings.

#18 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 17 September 2011 - 08:49 PM

Give it a shot.

#19 dmacleo Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Member

  • 82 posts
  • Joined: March 14, 2011
  • 12 topics
  • Skin: Delicate Blue
  • Local time: 01:48 AM
  • Zodiac:Taurus
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 17h 27m 47s

Posted 17 September 2011 - 09:04 PM

planned on it as soon as I finalize how I want the bg color to look, so many colors so little time :)
I will post how it works when I do, I expect it should work fine.
Dave Macleod
www.davemacleod.net
Conservative Postings.

#20 Broni Re: (3.2.x) How to add "Mark All As Read" at the top of "New content" page - 3.1 style

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:48 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 18 September 2011 - 03:44 AM

Further code edit made to better match board's look.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 22 user(s)