Marcher Technologies Posted November 18, 2012 Share Posted November 18, 2012 File Name: Unreplied Topics File Submitter: Marcher Technologies File Submitted: 18 Nov 2012 File Category: User and Social Engagement This Hook Adds an ajax-paginated display of unreplied(0 posts, no response) approved open topics to your board, with the option to add a button to visit the page with an ajax-retrieved count shown on the button, and user preferences for forums filter, date cutoff, and sorts. Features Include: • Configure what groups may view/use the unreplied topics page, and see the button, if enabled. • Configure what groups may filter/sort the unreplied topics page. • Configure what forums to include unreplied topics from by default, none selected Means all available forums for the current user will be used. • Configure the default sort field. • Configure the default sort order. • Configure the default date cutoff. • Configure how many topics to show per page. • Configure whether to show 0 result count on the tab, if enabled. • Disable the navigation tab for 'View Unreplied Topics' added next to VNC. • Mobile Skin Support. • Honors Forum Permissions. • Perform moderator actions.(multi-check options are super-moderator only, no 'base' parent forum data means the js could not honor per-forum mods) . here to download this file Link to comment Share on other sites More sharing options...
matma4u.pl Posted November 18, 2012 Share Posted November 18, 2012 I tested this hook. It works very fine. This is what I've been waiting a very long time. Good job! THX Link to comment Share on other sites More sharing options...
Cyrem Posted November 19, 2012 Share Posted November 19, 2012 Works geat! Just wish 'View New Content' has a counter too... >.< Link to comment Share on other sites More sharing options...
Millipede Posted November 19, 2012 Share Posted November 19, 2012 Just wish 'View New Content' has a counter too... >.< There's a (paid) hook for that: Link to comment Share on other sites More sharing options...
Millipede Posted November 19, 2012 Share Posted November 19, 2012 I have a little problem... I use Fusion Menu, and IPBForumSkins's "Baisik" skin which has VNC in the secondary nav. The button for Unreplied Topics is going into the primary nav instead, which doesn't look quite right and which has lots of extra space between the last menu item and the button, making it look unevenly spaced as it's way too much to the right. Apart from which, I already have enough buttons on the primary nav when it comes to viewing on the iPad, any more and they drop down. Would it be possible to move the button to be next to VNC in the secondary nav (for this skin)? If so, how please? Link to comment Share on other sites More sharing options...
Millipede Posted November 19, 2012 Share Posted November 19, 2012 Another request please :smile: Would it be possible for the page of Unreplied Topics to show which forum the unreplied topics are in, same as VNC does? Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 19, 2012 Author Share Posted November 19, 2012 Quick Position Fix: Edit the hook, change the template hook point from showhomeurl to: This will place the button between the VNC button and QuickNav. Re: forum name/mod controls Already been made aware, more of an oversight, will be corrected shortly. Link to comment Share on other sites More sharing options...
Millipede Posted November 19, 2012 Share Posted November 19, 2012 Wow, that was fast! Thanks! :smile: and also for the updates to come. I did what you suggested for the position and triple checked I had it exactly like in your screenshot, but it's put the link after QuickNav and the counter at the very top right corner of the page: Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 19, 2012 Author Share Posted November 19, 2012 fun. Appears i have some css work to apply(namely, position:relative; on the button, it looked fine on IPB default blue lol) Could I get a link to ensure my thoughts are correct in the fix to apply? Working on .1 already... fighting the mod tools ;) Link to comment Share on other sites More sharing options...
Millipede Posted November 19, 2012 Share Posted November 19, 2012 Oops, sorry to give you a headache with this! :blush: (although Ehren's skins are popular..?) I've only installed so far on my test board. Is looking at the demo of the "Baisik" skin of any use? http://www.ipbforumskins.com/premade/baisik/index.php If not, let me know and I'll PM you login details etc for the test board. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 19, 2012 Author Share Posted November 19, 2012 good enough. tis a skin issue factually, but one I can resolve in the mod. #secondary_navigation .ipsHasNotifications==bad on Baisik. Fixing, but note it will only help with this particular mod and that it is factually a skin issue. Manual patch you will need to revert upon 1.0.1: Skin->Forum Index->mt_unrepliedTopicsButton: Find: <li class='right {parse variable="noTopicReplyActive"}' id='nav_app_unreplied_topics'> make it: <li class='right {parse variable="noTopicReplyActive"}' id='nav_app_unreplied_topics' style='position:relative;'> Link to comment Share on other sites More sharing options...
Ocean West Posted November 19, 2012 Share Posted November 19, 2012 I have had positive feedback from my members - they really like this ;) Link to comment Share on other sites More sharing options...
Millipede Posted November 20, 2012 Share Posted November 20, 2012 Thanks EVER so much, that works, you're a star! :D It clashes a tad in appearance with the "New Content Counter" hook which I also have - - which gives the option of having either the red counter on the "Forums" tab, or as a separate link next to VNC with a number next to it which is what I use as its location is more evident what it's for: But I really don't mind as at least yours now fits in next to VNC :smile: Thanks again for taking the time to (so quickly!) fix it for me (and anybody using one of Ehren's skins with the different nav layout) Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 20, 2012 Author Share Posted November 20, 2012 @Ocean, I have not added the date cutoff as yet, this is more of a maintenance release anyway. I will add it, and when I do, it will be a user preference with an admin-defined default, like excluded forums will be. @Millipede, revert the template on upgrade(or pre). @All 1.0.1 Released. Please re-upload the javascript file ensuring the file gets overwritten as well as re-import the hook to upgrade. What's New in Version 1.0.1 (See full changelog) Properly show pinned status, and forum of the topic. Mod tools. Ajax tooltip's and various other js/skin quirks fixed. Notes: I tried for some hours to get check-all to WAI with ajax paging, there was a certain point I had to say getting the update on the shelf was more important than blowing my brains on it and removed that. Link to comment Share on other sites More sharing options...
Cyrem Posted November 20, 2012 Share Posted November 20, 2012 There's a (paid) hook for that: Oh dang, there goes another $5.00 :tongue: Thanks! EDIT: 1.0.1 does not show the link anymore. I had to change the hookpoint back to showhomeurl for it to work. Link to comment Share on other sites More sharing options...
Millipede Posted November 20, 2012 Share Posted November 20, 2012 Update works great for me, thanks! Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 20, 2012 Author Share Posted November 20, 2012 Oh dang, there goes another $5.00 :tongue: Thanks! EDIT: 1.0.1 does not show the link anymore. I had to change the hookpoint back to showhomeurl for it to work. <if test="showQuickNav:|:! ( ! $this->memberData['member_id'] && $this->settings['force_login'] ) && !($this->settings['board_offline'] && !$this->memberData['g_access_offline']) && $this->memberData['g_view_board']"> <li class='right'> <a href="{parse url="app=core&module=global&section=navigation&inapp={parse expression="IPS_APP_COMPONENT"}" base="public"}" rel="quickNavigation" accesskey='9' id='quickNavLaunch' title='{$this->lang->words['launch_quicknav']}'><span> </span></a> </li> </if> What skin this time then? That hook point is valid. Link to comment Share on other sites More sharing options...
matma4u.pl Posted November 20, 2012 Share Posted November 20, 2012 Something is wrong (1.0.1) Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 20, 2012 Author Share Posted November 20, 2012 Please revert Skin->Forum Index->topic... <a itemprop="url" id="tid-link-{$data['_tid']}" href="{$data['_url']}" title='{parse expression="strip_tags($data['title'])"} {$this->lang->words['topic_started_on']} {parse date="$data['start_date']" format="LONG"}' there should be a strip_tags call on the topic title title attribute... will see if I can cook up a better way to add that(the forum) than appending it to the topic title... while still using the native template -.- Basically, the way that template is coded, I can either send inforum as true, and get mod tools to show, *or* i can send it as false and have the forum name without the appending trickery. -.- Link to comment Share on other sites More sharing options...
matma4u.pl Posted November 20, 2012 Share Posted November 20, 2012 THX. I did it and now works fine. Is possible make it - Jump to page? Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 20, 2012 Author Share Posted November 20, 2012 THX. I did it and now works fine. Is possible make it - Jump to page? jump.png at the moment, that is specifically disabled as I have not written the js to unbind the IPS native handler and make it work with my ajax. Not as easy a bit as it sounds, look at the class of that element you screenshot. pj0873428001 is used in this topic for example, quite randomly generated, as is the popup: <div class="ipbmenu_content pj0243859001" id="pj_anonymous_element_2_wrap" jumpid="0243859001" style="position: absolute; z-index: 9999; top: 840px; left: 144px;"> I would prefer that the popup itself remain with the core js, and simply rebind the submit, that makes doing that particular item in js extremely interesting(read, PITA). Link to comment Share on other sites More sharing options...
matma4u.pl Posted November 20, 2012 Share Posted November 20, 2012 I understand. Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 22, 2012 Author Share Posted November 22, 2012 Something is wrong (1.0.1) u_t.png Found a better way. That is still messing with last post links(which is first post) going to append it to the 'prefix' variable as seen in similar topics 1.0.5 Also implementing the jump to page, and forum/date prefs. And making the queries yet lighter, heavy profiling in progress. Stay tuned ;) Link to comment Share on other sites More sharing options...
matma4u.pl Posted November 22, 2012 Share Posted November 22, 2012 Good idea :) Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 24, 2012 Author Share Posted November 24, 2012 :whistle: Pain in my keister. File updated, apologies, I had to swap exclude to inclusive forum filter. :sorcerer: RE: date cutoff, 6-9 months seems extreme really, in such a case you really would want to view all, it has the same options present when viewing a forum for date cut, including 90 days and last visit. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.