Solved: 7 Months, 3 Days ago Add a " Mark all forums read " to header
#1
Solved: 7 Months, 3 Days ago
So I'd like to add a Mark all forums read link to the header as well as the default footer one.

I tried what I thought would work... and what I've seen in a few older postings on here.

in header_welcomeblock_member I added the following line where I want the link..


<a href="{$mybb->settings['bburl']}/misc.php?action=markread{$post_code_string}">{$lang->bottomlinks_markread}</a>


but when clicking the link, you just get..


Authorization code mismatch. Are you accessing this function correctly? Please go back and try again.


I notice when you hover over the link in the header, all the &my_post_key=....  bit is missing

Any ideas ?

Reply
#2
Solved: 7 Months, 3 Days ago
https://community.mybb.com/thread-218862.html
Reply
#3
Solved: 7 Months, 3 Days ago
Not sure that helps me.

Mines a brand new board so those fixes are already in place. Plus this isn't one of the 4 templates mentioned there and doesn't have any
<form> tag at all
Reply
#4
Solved: 7 Months, 3 Days ago
It's because $post_code_string hasn't been defined at the time it renders the header. Change:

{$post_code_string}

to:

&amp;my_post_key={$mybb->post_code}
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#5
Solved: 7 Months, 3 Days ago
Thats done it.
Nice one Smile Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)