Adriano Faria Posted June 3, 2010 Posted June 3, 2010 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
Adriano Faria Posted June 4, 2010 Author Posted June 4, 2010 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'] ); } }
Volstate Posted June 5, 2010 Posted June 5, 2010 For some reason the group colors aren't working even though I enabled it. How can I fix that?
Adriano Faria Posted June 5, 2010 Author Posted June 5, 2010 Recache your moderators in Cache Management.
Volstate Posted June 5, 2010 Posted June 5, 2010 Recache your moderators in Cache Management. That did it. Thank you so much... :thumbsup:
mom2mom Posted June 12, 2010 Posted June 12, 2010 this is all greek to me.. i clicked the link and it says the hook is installed but its not showing my moderators.
mom2mom Posted June 12, 2010 Posted June 12, 2010 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.
mom2mom Posted June 15, 2010 Posted June 15, 2010 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.
Adriano Faria Posted June 15, 2010 Author Posted June 15, 2010 In your FTP. Download the required files... edit and then upload.
mom2mom Posted June 28, 2010 Posted June 28, 2010 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
Rheddy Posted July 7, 2010 Posted July 7, 2010 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.
Adriano Faria Posted July 7, 2010 Author Posted July 7, 2010 This has nothing to do with this mod or any other mod. Recache your skin or apply this patch:
Rheddy Posted July 8, 2010 Posted July 8, 2010 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.
Rheddy Posted July 8, 2010 Posted July 8, 2010 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.
Adriano Faria Posted July 8, 2010 Author Posted July 8, 2010 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.
RolZan Posted July 8, 2010 Posted July 8, 2010 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
Rheddy Posted July 8, 2010 Posted July 8, 2010 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.
Rheddy Posted July 9, 2010 Posted July 9, 2010 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.
Adriano Faria Posted July 9, 2010 Author Posted July 9, 2010 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.
Rheddy Posted July 10, 2010 Posted July 10, 2010 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.
mom2mom Posted July 18, 2010 Posted July 18, 2010 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
Volstate Posted July 20, 2010 Posted July 20, 2010 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?
Volstate Posted July 20, 2010 Posted July 20, 2010 I had to go in and manually add the files edits and now it's working fine again...
*Salvo* Posted October 27, 2010 Posted October 27, 2010 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)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.