SimplePortal

Customization => Custom Coding => Topic started by: FireDitto on February 15, 2013, 08:08:54 AM

Title: Simple Portal compatability with View Single Category Mod
Post 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!
Title: Re: Simple Portal compatability with View Single Category Mod
Post by: xKroniK13x on February 15, 2013, 11:08:48 AM
What goes wrong?
Title: Re: Simple Portal compatability with View Single Category Mod
Post by: FireDitto on February 15, 2013, 10:21:50 PM
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.
Title: Re: Simple Portal compatability with View Single Category Mod
Post by: xKroniK13x on February 16, 2013, 11:28:14 AM
I plan on installing a test site this weekend to make some mods, I'll see if I can figure it out for you.
Title: Re: Simple Portal compatability with View Single Category Mod
Post by: FireDitto on February 19, 2013, 10:32:35 PM
That'd be beyond awesome if you do! :)
Title: Re: Simple Portal compatability with View Single Category Mod
Post by: phantomm on February 26, 2013, 02:58:58 PM
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?
Title: Re: Simple Portal compatability with View Single Category Mod
Post by: phantomm on March 02, 2013, 02:46:37 PM
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:
Code: (Find) [Select]
template_info_center();
Code: (Add before) [Select]
if(empty($_GET['c']))
How to hide button "Mark all messages as read" in single category view?
Open BoardIndex.template.php and:
Code: (Find) [Select]
if ($settings['show_mark_read'] && !empty($context['categories']))
Code: (Replace with) [Select]
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.
SimplePortal 2.3.8 © 2008-2024, SimplePortal