Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: sixty6falcon on April 30, 2012, 01:38:46 PM

Title: How do I find Board/Topic ID's while using Pretty URLs?
Post by: sixty6falcon on April 30, 2012, 01:38:46 PM
If I remember right, the ID's were part of the url before I switched to using Pretty URLs.  How do I find the Board/Topic/Post ID's now that I'm using Pretty URLs?
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: Colin on April 30, 2012, 03:16:20 PM
If you have direct access to the database you can execute a query to find the post ID.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: Matthew K. on April 30, 2012, 03:18:02 PM
It's definitely in the URL though, so there's no need to run a query in this scenario. Better to pull it using $_GET or $_REQUEST.

Furthermore, I'll see if Yoshi has time to swing by.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: Colin on April 30, 2012, 03:21:47 PM
According to the OP the MOD has removed the post id from the URL. That is why I suggested executing a database query to obtain the post ID.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: NanoSector on April 30, 2012, 03:27:21 PM
Hi sixty6falcon!

The IDs were indeed part of the URL. Take a look at the URLs here.

I'll probably prepare an edit for you in a moment.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: Matthew K. on April 30, 2012, 03:27:50 PM
Hmm, you're right, but there has to be a variable in $context, or Display.php that contains the topic id, still no need for a query.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: NanoSector on April 30, 2012, 03:40:35 PM
Yeah, already have it done for the Board IDs.

Sorry for drafting over our GTalk session with edits lol
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: Matthew K. on April 30, 2012, 03:46:40 PM
Haha no problem
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: NanoSector on April 30, 2012, 04:06:00 PM
Okay seems this is quite a bit harder then I thought it was... I'll post something later this week, or even tomorrow.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: sixty6falcon on May 01, 2012, 01:46:57 PM
Hey, thanks a ton guys.  I appreciate the quick responses and apologize for slowness of mine.  I've got a couple boards that are fed by an rss feed, so it's not necessarily a discussion board, just something to keep my users informed of what's happening with the hobby.  So now, I need to find the ID's so I can keep those boards/topics from showing up in my recent topics/posts.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: vbgamer45 on May 01, 2012, 02:26:56 PM
Try looking at the links under admin manage boards and hover over the links should be an id in those.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: sixty6falcon on May 01, 2012, 02:45:49 PM
Quote from: vbgamer45 on May 01, 2012, 02:26:56 PM
Try looking at the links under admin manage boards and hover over the links should be an id in those.
Are you referring to the Modify Boards section?  If I hover over the boards in there, it shows them with with the SEF URLs.  No IDs showing.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: NanoSector on May 01, 2012, 02:47:40 PM
I think vbgamer means hovering over the "Modify" link at that section.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: sixty6falcon on May 01, 2012, 02:49:59 PM
Aha!  That was it!  Hovering over the Modify link, does give a Board ID.  Thanks guys.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: vbgamer45 on May 01, 2012, 03:06:50 PM
Glad to help.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: dsanchez on August 14, 2012, 03:47:20 AM
Hello
Quote from: sixty6falcon on May 01, 2012, 02:49:59 PM
Aha!  That was it!  Hovering over the Modify link, does give a Board ID.  Thanks guys.
what about finding the topic id? I am trying to merge a couple of topics and need this. I have to go to phpmyadmin then? thanks in advance.
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: Arantor on September 26, 2012, 07:27:57 PM
You shouldn't need the topic id to be able to merge topics. From one topic, select merge, then you should be able to select the board - and get a list of topics to merge to in that board... (I do this frequently)
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: LuanaS on December 25, 2013, 10:19:40 AM
Sorry, but I had to revive this topic because this issue is kind of serious for my forum that uses Fanfics System v1.1 (writers need their topic ID to add it to their fanfic submission).

I don't want to give up on the Pretty URLs mod, though, because it helps keeping the forum usable and shareable.

Hope there will be updates or advice about this matter.

Thanks!
Title: Re: How do I find Board/Topic ID's while using Pretty URLs?
Post by: NanoSector on December 25, 2013, 11:23:37 AM
LuanaS, please create your own topic on this matter. Aside from that pretty URLs does not help with usability, only readability, and even then it's not worth it to sacrifice the stability of your forum for that.