SimplePortal
Customization => Custom Coding => Topic started by: FireDitto on February 15, 2013, 08:08:54 AM
-
Hi,
I really want to be able to use the Single Category Mod (http://custom.simplemachines.org/mods/index.php?mod=486) but I'm unable to due to it clashing with the Simple Portal mod. It clashes with all the SMF Portals that I had a look at.
I was wondering if there was a way to make it compatible with the SP mod, or if I could get help with the edits required to make them work hand in hand.
I really appreciate any assistance.
Thank you!
-
What goes wrong?
-
They clash, and the codes to change have been heavily modified by SP. I tried to do it the other way around, and it's basically "modify all the SP files" or "modify all the Single Category" files >>
Single Cat has clashes on;
Subs-BoardIndex.php, Sourses/BoardIndex.php, BoardIndex.template.php (that's because I removed the Info centre) themes/default/scripts/script.js and Sources/QueryString.php
I killed my test site trying to do the edits myself so I can't tell you what the requirements are around the other way lol.
-
I plan on installing a test site this weekend to make some mods, I'll see if I can figure it out for you.
-
That'd be beyond awesome if you do! :)
-
Few questions:
1. I'm not so good when it comes to understanding licenses... Can I post package here if mod is licensed under BSD?
2. When you opening single category should you see Info Center?
-
ok, so here is package for SP 2.3.5, it war released with BSD license, so I think it can be added here with some modifications.
Few tips:
How to hide Info Center in single category view?
Open BoardIndex.template.php and:
template_info_center();
if(empty($_GET['c']))
How to hide button "Mark all messages as read" in single category view?
Open BoardIndex.template.php and:
if ($settings['show_mark_read'] && !empty($context['categories']))
if ($settings['show_mark_read'] && !empty($context['categories']) && empty($_GET['c']))
Package is only for SimplePortal 2.3.5 and SMF 2.0.4.
Compatibility with SMF 1.1.* was removed from this package.