• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Double Click Forum Icons to Mark Forum as Read 1.0.1

No permission to download

Dan

Well-known member
#1

Jeff Fuqua

Well-known member
#2
Great idea. I'm getting a server error with an install on xF 1.1.2. Maybe 1.2 is required?

Server Error
Argument 3 passed to El_MarkForumReadIcon_Install_Controller::install() must be an instance of SimpleXMLElement, none given

  1. XenForo_Application::handlePhpError() in El/MarkForumReadIcon/Install/Controller.php at line 15
  2. El_MarkForumReadIcon_Install_Controller::install()
  3. call_user_func() in XenForo/Model/AddOn.php at line 214
  4. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  5. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
  6. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
  7. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  8. XenForo_FrontController->run() in /home2/xxxx/public_html/admin.php at line 13
 

Dan

Well-known member
#3
Great idea. I'm getting a server error with an install on xF 1.1.2. Maybe 1.2 is required?

Server Error
Argument 3 passed to El_MarkForumReadIcon_Install_Controller::install() must be an instance of SimpleXMLElement, none given

  1. XenForo_Application::handlePhpError() in El/MarkForumReadIcon/Install/Controller.php at line 15
  2. El_MarkForumReadIcon_Install_Controller::install()
  3. call_user_func() in XenForo/Model/AddOn.php at line 214
  4. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  5. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
  6. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
  7. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  8. XenForo_FrontController->run() in /home2/xxxx/public_html/admin.php at line 13
yes, it requires 1.2 (because of the template edit)

Good to know that our install controller doesn't work with xf < 1.2
 

Matthew Hawley

Well-known member
#7
AFAIK you shouldn't need to change anything.

Have you tried it?
Well i removed the node icon code and put a custom one there



So this code:

Code:
<div class="nodeStats pairsInline"  style="margin-right: -30px;margin-top: -25px;height: 40px;font-size: 18pt;color: #969696;font-weight: bold;text-shadow: 0 0 0 transparent, 0 -1px 1px rgba(0, 0, 0, 1);float:right;">
            <div class="iconStats"><dl><dt><i class="icon-comment"></i></dt> <dd> <span class="Tooltip" title="{xen:phrase discussions}">{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.discussion_count}}</span>/<span class="Tooltip" title="{xen:phrase messages}">{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.message_count}}</span></dd></dl></div>
 

Dan

Well-known member
#9
This addon marks the forum read (via ajax) and removes the "unread" class from the node.
Is this enough information?:D

I don't know what you've done to change the nodeicon:p
 

Matthew Hawley

Well-known member
#10
This addon marks the forum read (via ajax) and removes the "unread" class from the node.
Is this enough information?:D

I don't know what you've done to change the nodeicon:p
I removed the node icon code and put this code in there instead.

Code:
<div class="nodeStats pairsInline"  style="margin-right: -30px;margin-top: -25px;height: 40px;font-size: 18pt;color: #969696;font-weight: bold;text-shadow: 0 0 0 transparent, 0 -1px 1px rgba(0, 0, 0, 1);float:right;">
            <div class="iconStats"><dl><dt><i class="icon-comment"></i></dt> <dd> <span class="Tooltip" title="{xen:phrase discussions}">{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.discussion_count}}</span>/<span class="Tooltip" title="{xen:phrase messages}">{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.message_count}}</span></dd></dl></div>
 

Dan

Well-known member
#11
I removed the node icon code and put this code in there instead.

Code:
<div class="nodeStats pairsInline"  style="margin-right: -30px;margin-top: -25px;height: 40px;font-size: 18pt;color: #969696;font-weight: bold;text-shadow: 0 0 0 transparent, 0 -1px 1px rgba(0, 0, 0, 1);float:right;">
            <div class="iconStats"><dl><dt><i class="icon-comment"></i></dt> <dd> <span class="Tooltip" title="{xen:phrase discussions}">{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.discussion_count}}</span>/<span class="Tooltip" title="{xen:phrase messages}">{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.message_count}}</span></dd></dl></div>
This won't work, sorry.
 

JJJ

Active member
#13
Thank you, but one question: Atm, we are setting up a testforum. We have tweaked it, so the subforums are listed like they are in vB. Each subforum has its own tiny bubble-icon, which indicates, if the subforum contains unread messages.

What would have to be done, to make that addon even work for those subforums, marking them as read, when they are double-clicked?