Advertisement:

Author Topic: View Single Category  (Read 79783 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #120 on: July 13, 2014, 09:47:47 PM »
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!
BUMP..... Now running v2.0.8 with same problem....  Can anybody help me?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: View Single Category
« Reply #121 on: July 14, 2014, 06:36:16 AM »
I'm taking a *WILD* guess because these regex stuff aren't really in my book :P

For the first operation you should find:
Code: [Select]
board|topic)=[^#"]+?)(#[^"]*?)?"~', 'sid_insert__preg_callback', $buffer);And replace with
Code: [Select]
c|board|topic)=[^#"]+?)(#[^"]*?)?"~', 'sid_insert__preg_callback', $buffer);
For the second operation you should find:
Code: [Select]
board|topic)=[^#"]+?)(#[^"]*?)?"~', 'pathinfo_insert__preg_callback', $buffer);And replace with:
Code: [Select]
c|board|topic)=[^#"]+?)(#[^"]*?)?"~', 'pathinfo_insert__preg_callback', $buffer);
Again, this is just a wild guess :P
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,375
    • StoryBB/StoryBB on GitHub
Re: View Single Category
« Reply #122 on: July 14, 2014, 06:38:29 AM »
Looks good to me (assuming the addition of c| is what the mod originally does (which is to ensure that index.php?c= will be recognised in the relevant tests)
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 margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: View Single Category
« Reply #123 on: July 14, 2014, 06:41:20 AM »
It is.

Thanks ;)
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 dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #124 on: July 14, 2014, 06:57:57 AM »

For the life of me, I just couldn't figure that one out!  Thanks, margarett!  (Yeah, regex stuff isn't my strong suit either...)

Now all we need is an updated mod....  O:) ;D

EDIT: After reviewing the license found in the mod, I decided that I'd make the changes and post them.  Attached is my altered copy of the mod, version 2.1.9a....  Package info file has been modified to use the new XML file for v2.0.8 and up....

EDIT: Packaged file has been removed from attachments.  See here for unofficial updated version v2.1.9b.
« Last Edit: August 11, 2014, 07:20:28 PM by dougiefresh »

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #125 on: August 05, 2014, 08:41:44 AM »
Drat. I get an error on the first step with dougiefresh's attachment:





And that's on a board with only this installed:



I looked in Sources/Subs-BoardIndex and there is no cat_field in there anywhere. :(
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #126 on: August 11, 2014, 07:19:26 PM »
Okay, I'm sorry about the late reply.  I've rebuilt my copy of this mod and have attached it.  These are the mods I've done to v2.1.9 - ONLY FOR SMF v2.0.8+:
o Operation # 5 (Sub-BoardIndex.php) replacement
o Operation # 3 (Sub-BoardIndex.php) replacement
o Operations # 1 and # 2 (QueryString.php) replacement.

I installed this mod and it works correctly now.  Sorry about the previous posting....

EDIT: Attachment removed and made the public download at the mod download page.
« Last Edit: September 15, 2014, 10:11:42 AM by dougiefresh »

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #127 on: August 11, 2014, 09:03:15 PM »
Well, it worked perfectly on my test board but not on my normal one. Obviously some mod is getting in the way. Will have to figure out which one.
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #128 on: August 12, 2014, 01:53:40 PM »
Well, it worked perfectly on my test board but not on my normal one. Obviously some mod is getting in the way. Will have to figure out which one.
I tested my copy of this mod with SMF 2.0.7 install with the 2.0.8 patch, along with the Sorted Package Manager Listing mod installed, as indicated in your picture 2 posts ago.  Installation went fine, no errors.  It appears to work correctly, so we can safely rule out the Sorted Package Manager Listing mod as a problem.

In other notes, this mod doesn't work with Simple Portal......  Can it be made to work with it?  Let's see......

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #129 on: August 12, 2014, 04:55:34 PM »
This is the error I'm getting under the ./Sources/QueryString.php step:



What does that mean?
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #130 on: August 12, 2014, 05:16:26 PM »
Attach your Sources/QueryString.php file so I can see what is going on....  Note that this mod doesn't work with Simple Portal, so if you have it installed, I can't make it work for ya....  (yet)

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #131 on: August 12, 2014, 05:54:59 PM »
I don't use Simple Portal but I do use Tiny Portal.

File attached that you asked for. :)
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #132 on: August 12, 2014, 07:25:25 PM »
It looks like your QueryString.php has this line instead:
Code: [Select]
board|topic|page|cat)=[^#"]+?)(#[^"]*?)?"~', 'sid_insert__preg_callback', $buffer);Mod expects this:
Code: [Select]
board|topic)=[^#"]+?)(#[^"]*?)?"~', 'sid_insert__preg_callback', $buffer);So, since it's different than what the mod expects, the op fails.....  You could probably change your copy of the mod to accommodate this....

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #133 on: August 12, 2014, 08:58:51 PM »
Thanks. I'll have a look at this tomorrow. I'm over the 'mess around in admin' alcohol limit ... :P
Online Manual

Please do not PM me for support.

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #134 on: August 13, 2014, 03:31:09 PM »
I took a look at it and decided I'm not confident enough to muck about with the coding of the board so I'll just have to live without this. :(
Online Manual

Please do not PM me for support.

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #135 on: August 16, 2014, 06:39:18 PM »
Okay, I think I'm going to attempt this after reading the manual on installing mods that show errors during the testing portion.

As far as I can see, the only difference between what your mod expects:

Code: [Select]
board|topic)=[^#"]+?)(#[^"]*?)?"~', 'sid_insert__preg_callback', $buffer);
and what it wants to do is adding a c| at the beginning of that line, correct?

So if I add that c| to what my file has:

Code: [Select]
board|topic|page|cat)=[^#"]+?)(#[^"]*?)?"~', 'sid_insert__preg_callback', $buffer);
the mod should still work, right?
Online Manual

Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: View Single Category
« Reply #136 on: August 17, 2014, 09:08:24 AM »
That looks like it should work, yes.....  I haven't tried it.

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #137 on: August 17, 2014, 10:20:09 AM »
I'll give it a whirl. :)
Online Manual

Please do not PM me for support.

Offline SleePy

  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,333
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: View Single Category
« Reply #138 on: August 24, 2014, 01:15:39 AM »
Yes it adds that.  It was for SEF urls to be handled properly.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: View Single Category
« Reply #139 on: August 30, 2014, 10:25:00 AM »
Just wanted to say that I tried the manual change I mentioned above and the mod works perfectly. Thank you for this! Not having this has been one of my very few gripes about SMF. :D
Online Manual

Please do not PM me for support.