Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 3, 201014 yr File Name: (SOS31) Forums Moderators in Board IndexFile Submitter: Adriano FariaFile Submitted: 03 Jun 2010File Updated: 21 Feb 2011File Category: Hooks and Plugins This hook will show forums moderators in board index and subforums.Notes: Compatibility: IP.Board 3.1.X EDITS: No file or template edit required Click here to download this file
June 4, 201014 yr Author There was an error in instructions file. The file was reuploaded. The right (second) edit in admin/applications/forums/sources/classes/forums/class_forums.php is: Find: if ($moderator['isg'] == 1) { $mod_string[] = array( "{$this->settings['base_url']}app=members§ion=view&module=list&max_results=30&filter={$moderator['gid']}&sort_order=asc&sort_key=members_display_name&st=0&b=1", $moderator['gname'], 0 ); } else { if ( ! $moderator['name'] ) { continue; } $mod_string[] = array( $this->registry->getClass("output")->buildSEOUrl( "showuser={$moderator['memid']}", "public", $moderator['seoname'], 'showuser' ), $moderator['name'], $moderator['memid'] ); } Replace with: if ($moderator['isg'] == 1) { if ( !$this->settings['sos30_moderatorsindex_format'] ) { $mod_string[] = array( "{$this->settings['base_url']}app=members§ion=view&module=list&max_results=30&filter={$moderator['gid']}&sort_order=asc&sort_key=members_display_name&st=0&b=1", $moderator['gname'], 0 ); } else { $mod_string[] = array( "{$this->settings['base_url']}app=members§ion=view&module=list&max_results=30&filter={$moderator['gid']}&sort_order=asc&sort_key=members_display_name&st=0&b=1", $this->caches['group_cache'][ $moderator['gid'] ]['prefix'].$moderator['gname'].$this->caches['group_cache'][ $moderator['gid'] ]['suffix'], 0 ); } } else { if ( ! $moderator['name'] ) { continue; } if ( !$this->settings['sos30_moderatorsindex_format'] ) { $mod_string[] = array( $this->registry->getClass("output")->buildSEOUrl( "showuser={$moderator['memid']}", "public", $moderator['seoname'], 'showuser' ), $moderator['name'], $moderator['memid'] ); } else { $mod_string[] = array( "{$this->settings['base_url']}showuser={$moderator['memid']}", $this->caches['group_cache'][ $moderator['mgroup'] ]['prefix'].$moderator['name'].$this->caches['group_cache'][ $moderator['mgroup'] ]['suffix'], $moderator['memid'] ); } }
June 5, 201014 yr For some reason the group colors aren't working even though I enabled it. How can I fix that?
June 5, 201014 yr Recache your moderators in Cache Management. That did it. Thank you so much... :thumbsup:
June 12, 201014 yr this is all greek to me.. i clicked the link and it says the hook is installed but its not showing my moderators.
June 12, 201014 yr i get into admin forum modules.. but cant find where it says in the read me to go admin/applications/forums/modules_admin/forums/moderator.php when i get to admin modules, then click forums it says edit module but there is nothing about moderators. sorry I am brand new to this.
June 15, 201014 yr Did you do the file edits specified in readme.html? Where do I make the changes? Do I do it in Admin CP (I can't seem to find it in there) or do I make the changes on the FTP server? I am not understanding where admin/applications/forums/modules_admin/forums/moderator.php is. Thanks for any help you can offer.
June 28, 201014 yr OK I have got it on and it is working for the main page. All the forums now have the mods names listed, but they are not showing for the subforums. Does anyone know what I have to do or where I have to edit the code to get it to do this? TIA
July 7, 201014 yr When I tried installing the mod, not only did it remove the "add reply" and "start new topic' buttons but that it also removed the "green tabbed background" that is seen across the top of my forum skin. It also affected some of the graphics on my skins starting with the banner logo and some minor graphics. I had to remove the mod because of these disruptions. The mod is disappointing as I was hoping that it would work.
July 7, 201014 yr Author This has nothing to do with this mod or any other mod. Recache your skin or apply this patch:
July 8, 201014 yr Adriano, actually, it was your mod that caused the problem because I recached my skins after installing your mod. When I restored the original settings and removed your mod, the problem corrected itself. I've actually used some of your mods but this was the first time I installed one of your mods and it scrambled the images and settings for my forum skins. I'll try your suggestion from your recent post and I hope that it works.
July 8, 201014 yr It's working now. You might want to include some information that the patch might need to be applied before going through to install this mod.
July 8, 201014 yr Author Nope, 'cause this is a bug in IP.Board 3.1.1; not from this mod. And will happen in any mod that needs to recache the skin.
July 8, 201014 yr Hello, thanks for this useful mod. But its not working for me. I followed the exact instructions, but the Moderators are not listed in board index. Tried that with my custom skin and also with the IP.Board skin. Any hints ? Thanks in advance Best regards Rolf
July 8, 201014 yr Adri, I mention this because if someone installs your mod and they encounter the same problem I did, they will attribute the error with your mod.
July 9, 201014 yr Adriano, there is a problem with the Mod. When I go to remove a Moderator from a particular forum, I get the following error:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /****/****/public_html/board/admin/applications/forums/modules_admin/forums/moderator.php on line 475 When removing a Moderator, deleting a forum or deleting a category, I get a similar error associated with the Moderator.php file, in particular, with the lines that this mod add to that file.
July 9, 201014 yr Author Already replied your PM. If you post here, don't need to send a PM! Anyway, PARSE ERROR is bad edit in PHP file. Take a look at edits again... if error continues, just post here and I'll reinstall the mod this weekend to make some tests.
July 10, 201014 yr Adriano, it's odd. When I was conducting the file edits, the error kept popping up. I had conducted the file edits, exactly as your instruction file indicated. However, upon re-uploading the original source file for moderators.php and applied the same edit, the error no longer appears. Don't ask me, I cannot explain this and I had tried that same file edit more than a few times and ended up with the error but trying it this most recent time (upon re-uploading the original source file) doesn't display the error.
July 18, 201014 yr OK I have got it on and it is working for the main page. All the forums now have the mods names listed, but they are not showing for the subforums. Does anyone know what I have to do or where I have to edit the code to get it to do this? TIA Does anyone know the answer to this? I would like to have the moderators names listed on the subforums also... Is there a way to do this? TIA
July 20, 201014 yr After I upgraded the 3.1.2 the moderators show for the forums but the group colors won't show on the index. I recached moderators and also the skins themselves but they still won't show. I ran the template merge tool which I suspected could be the issue but when I allowed the custom skin to win my forum got all jumbled so i had to revert back although even jumbled I didn't see the group colors show. Any suggestions?
July 20, 201014 yr I had to go in and manually add the files edits and now it's working fine again...
October 27, 201014 yr Adriano, Something has changed maybe? Now from admin/applications/forums/sources/classes/forums/class_forums.php The loop { $mod_string[] = array( "{$this->settings['base_url']}app=members if ($moderator['isg'] == 1)
Archived
This topic is now archived and is closed to further replies.