Advertisement:

Author Topic: How do I find Board/Topic ID's while using Pretty URLs?  (Read 6828 times)

Offline sixty6falcon

  • Semi-Newbie
  • *
  • Posts: 12
    • http://www.facebook.com/ajarmstrong729 on Facebook
    • Fox Mustang Forum
How do I find Board/Topic ID's while using Pretty URLs?
« 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?
My Forum: 79-93.com

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,892
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #1 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.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #2 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.

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,892
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #3 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.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #4 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.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #5 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.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #6 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
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #7 on: April 30, 2012, 03:46:40 PM »
Haha no problem

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #8 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.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline sixty6falcon

  • Semi-Newbie
  • *
  • Posts: 12
    • http://www.facebook.com/ajarmstrong729 on Facebook
    • Fox Mustang Forum
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #9 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.
My Forum: 79-93.com

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 22,645
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #10 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline sixty6falcon

  • Semi-Newbie
  • *
  • Posts: 12
    • http://www.facebook.com/ajarmstrong729 on Facebook
    • Fox Mustang Forum
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #11 on: May 01, 2012, 02:45:49 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.
My Forum: 79-93.com

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #12 on: May 01, 2012, 02:47:40 PM »
I think vbgamer means hovering over the "Modify" link at that section.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline sixty6falcon

  • Semi-Newbie
  • *
  • Posts: 12
    • http://www.facebook.com/ajarmstrong729 on Facebook
    • Fox Mustang Forum
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #13 on: May 01, 2012, 02:49:59 PM »
Aha!  That was it!  Hovering over the Modify link, does give a Board ID.  Thanks guys.
My Forum: 79-93.com

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 22,645
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #14 on: May 01, 2012, 03:06:50 PM »
Glad to help.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline dsanchez

  • Jr. Member
  • **
  • Posts: 324
  • Gender: Male
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #15 on: August 14, 2012, 03:47:20 AM »
Hello
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.
Curefans.com - The meeting point for Curefans worldwide
http://www.curefans.com

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,649
    • StoryBB/StoryBB on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #16 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)

Offline LuanaS

  • Newbie
  • *
  • Posts: 3
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #17 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!

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: How do I find Board/Topic ID's while using Pretty URLs?
« Reply #18 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.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."