Advertisement:

Author Topic: View Single Category  (Read 80493 times)

Offline samurai-lupin

  • Full Member
  • ***
  • Posts: 522
Re: View Single Category
« Reply #100 on: October 02, 2010, 03:04:55 AM »
Hello, this is a very good mod. However I noticed that there seems to be a conflict with the Password Protected Boards Mod:

http://custom.simplemachines.org/mods/index.php?mod=922

When I had installed the Single Category Mod, the Password Protect Boards Mods would no longer appear on my board index ...

Any thoughts what might be the cause?

Thanks!

Offline Yngwiedis

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • Victims, Aren't We All ? [The Crow]
    • My Web Radio Station Site
Re: View Single Category
« Reply #101 on: April 18, 2011, 11:36:18 PM »
Can you make this mod compatible with SimplePortal please ?

Thank you very much.
AmityHost.com - The Affordable Host

Offline Manu.G

  • Full Member
  • ***
  • Posts: 448
  • Gender: Female
  • Angel by Day, Devil by Night
    • http://facebook.com/manuela.guth on Facebook
    • Fan Community
Re: View Single Category
« Reply #102 on: October 26, 2011, 12:01:28 PM »
I would also appreciate it if the mod would be compatible with SimplePortal :)
Version SMF 2.0.8
SimplePortal 2.3.5

Offline GlitchPC

  • Full Member
  • ***
  • Posts: 429
  • Gender: Male
  • Gotta glitch?
    • Glitch PC - Free Computer Help
Re: View Single Category
« Reply #103 on: March 26, 2012, 04:38:12 PM »
I would also appreciate it if the mod would be compatible with SimplePortal :)

Make that 3...

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 523
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: View Single Category
« Reply #104 on: August 07, 2012, 02:12:44 PM »
I'm running SMF 2.0.2. Strange. The package installer requires manual installation of one line in the /Sources/Subs-BoardIndex.php file, however the relevant line in my file is slightly different to the one in the package installer, and I can't tell if it was changed by a mod or not.

The line that the installer wants to change is:

Code: [Select]
$categories[$row_board['id_cat']]['link'] = '<a id="c' . $row_board['id_cat'] . '" href="' . (isset($row_board['can_collapse']) ? $categories[$row_board['id_cat']]['collapse_href'] : $categories[$row_board['id_cat']]['href']) . '">' . $row_board['cat_name'] . '</a>';

But the "same" line in my file is:

Code: [Select]
$categories[$row_board['id_cat']]['link'] = '<a id="c' . $row_board['id_cat'] . '"></a>' . ($categories[$row_board['id_cat']]['can_collapse'] ? '<a href="' . $categories[$row_board['id_cat']]['collapse_href'] . '">' . $row_board['cat_name'] . '</a>' : $row_board['cat_name']);

There's a difference between the two lines of code, but is the difference significant?
« Last Edit: August 11, 2012, 09:53:38 AM by MiY4Gi »
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Offline MiY4Gi

  • Full Member
  • ***
  • Posts: 523
  • Gender: Male
  • Mm...
    • MyAnimeClub.net
Re: View Single Category
« Reply #105 on: August 11, 2012, 09:52:57 AM »
Hello?
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

Offline FireDitto

  • Full Member
  • ***
  • Posts: 617
  • Gender: Female
  • Shadow In The Flame
    • @SPWeyr on Twitter
    • Second Pass Weyr RPG
Re: View Single Category
« Reply #106 on: February 15, 2013, 07:45:19 AM »
Another request for Simple Portal compatibility.
Second Pass Weyr
An AU Pernse RPG

SMF 2.0.6 with SP 2.3.5

Offline pixelgeek

  • Semi-Newbie
  • *
  • Posts: 33
Re: View Single Category
« Reply #107 on: February 28, 2013, 05:16:04 PM »
I'm running SMF 2.0.2. Strange. The package installer requires manual installation of one line in the /Sources/Subs-BoardIndex.php file, however the relevant line in my file is slightly different to the one in the package installer, and I can't tell if it was changed by a mod or not.

I am running into the same issue. I suspect that between the 2.0 RC releases and the final release that there was a change made in the core code and the mod hasn't been updated accordingly.

Offline grandinquisitor

  • Newbie
  • *
  • Posts: 9
Re: View Single Category
« Reply #108 on: March 18, 2013, 12:06:02 PM »
Is there a workaround for this?  Or in the alternative, another mod that could accomplish the same?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,824
  • Gender: Male
    • Kindred-999 on GitHub
Re: View Single Category
« Reply #109 on: March 18, 2013, 12:59:44 PM »
work around for what?


So, I just installed this mod and found the line/failure mentioned above.
Look at the code...  it's actually doing the exact same thing in both lines of code, it's just worded slightly differently.
What this mod does it it replaces the "collapse" when clicking the catgeory name with a "view the category" when clicking the category name...

So, the short answer is YES.
comment out that one line of code and paste in this new bit as indicated in the error/manual apply window

it works just fine after that.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline grandinquisitor

  • Newbie
  • *
  • Posts: 9
Re: View Single Category
« Reply #110 on: March 20, 2013, 07:07:08 PM »
Thank you!  I was mainly concerned that doing that might break something, but I did exactly as you said and there were zero issues.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #111 on: June 16, 2014, 09:58:20 AM »
I am running SMF v2.0.7 and am having problems installing this mod.  I did the change suggested earlier to my Subs-BoardIndex.php file, with package manager reporting success.  However, the QueryString.php source file has been changed sometime since v2.0.2.  Renamed my QueryString.php file and replaced with clean QueryString.php file, same problem.  Anyone made this mod work with v2.0.7?  Or any ideas?  Thanks!

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,824
  • Gender: Male
    • Kindred-999 on GitHub
Re: View Single Category
« Reply #112 on: June 16, 2014, 12:59:56 PM »
you should NEVER just replace files like that... by doing that, you are potentially undoing or causing errors with other mods.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #113 on: June 18, 2014, 04:12:08 PM »
 O:)  ::) The forum I replaced the file on was a local version on my computer, so there was no chance it would wreck the forum.  However, the fact that the same problem was present on a clean copy and the modified copy says (at least to me) that at some point the source file changed.  I need to figure out what/how to change the file so that the mod works.

I guess I could just comment out and replace the effected code like before, but for some reason, it just seems like a tacky thing to do.....   Especially since I don't understand what the code does....

Offline Geor'G

  • Semi-Newbie
  • *
  • Posts: 62
Re: View Single Category
« Reply #114 on: June 19, 2014, 06:20:50 PM »
Error with patch 2.0.8
Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY b.board_order' at line 23
Line: /.../.../.../.../.../Sources/Subs-BoardIndex.php
Строка: 120

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,824
  • Gender: Male
    • Kindred-999 on GitHub
Re: View Single Category
« Reply #115 on: June 19, 2014, 06:35:06 PM »
Are you running portamx?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Geor'G

  • Semi-Newbie
  • *
  • Posts: 62
Re: View Single Category
« Reply #116 on: July 10, 2014, 12:18:58 PM »
Yes.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: View Single Category
« Reply #117 on: July 10, 2014, 12:23:31 PM »
And Arantor's MOD MySQL Board Order Fix?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: View Single Category
« Reply #118 on: July 10, 2014, 01:45:22 PM »
Or 2.0.8 which conflicts with PortaMX for the exact same reason because it includes my mod's code...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Geor'G

  • Semi-Newbie
  • *
  • Posts: 62
Re: View Single Category
« Reply #119 on: July 11, 2014, 06:13:57 AM »
I corrected so file Subs-BoardIndex.php:
Code: [Select]
WHERE {query_see_board}' . (empty($boardIndexOptions['countChildPosts']) ? (empty($boardIndexOptions['base_level']) ? '' : '
AND b.child_level >= {int:child_level}') : '
AND b.child_level BETWEEN ' . $boardIndexOptions['base_level'] . ' AND ' . ($boardIndexOptions['base_level'] + 1))
. (isset($context['single_cats']) ? "
AND c.id_cat{raw:cat_field}
ORDER BY board_order ASC" : ""),
Removed line:
Code: [Select]
ORDER BY board_order ASC
And it works.