Get page id

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
edu81
Registered User
Posts: 26
Joined: Sun Jun 21, 2009 6:18 pm
Location: Spain

Get page id

Post by edu81 » Wed Jun 15, 2016 10:04 pm

Hi, I need to get an ID that identifies each section, example:

index = 1
viewforum = 2
viewtopic = 3
faq = 4
memberlist = 5
search = 6
ucp = 7

I know I could identify pages with {SCRIPT_NAME}, but I need an id number.

Thanks !
Last edited by edu81 on Wed Jun 15, 2016 10:19 pm, edited 2 times in total.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50814
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Get page id

Post by stevemaury » Wed Jun 15, 2016 10:05 pm

What is a "section"?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

edu81
Registered User
Posts: 26
Joined: Sun Jun 21, 2009 6:18 pm
Location: Spain

Re: Get page id

Post by edu81 » Wed Jun 15, 2016 10:13 pm

Sorry, I mean each set of global pages.

index.php, viewforum.php, viewtopic.php, memberlist.php ....

example, all pages rendered on memberlist.php => id 5 ...

User avatar
Lumpy Burgertushie
Registered User
Posts: 66748
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Get page id

Post by Lumpy Burgertushie » Thu Jun 16, 2016 1:16 am

that does not exist in standard phpbb. there are no page ids for you to get.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7652
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Get page id

Post by JimA » Thu Jun 16, 2016 5:55 am

Could you tell us why you would like to have these page IDs and why the SCRIPT_NAME variable isn't enough? Perhaps there is another solution if we knew what you wanted to achieve. :)
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

User avatar
John connor
Registered User
Posts: 2261
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: Get page id

Post by John connor » Thu Jun 16, 2016 11:28 am

Lumpy Burgertushie wrote:that does not exist in standard phpbb. there are no page ids for you to get.


robert

f=466&t=2376041

???

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7652
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Get page id

Post by JimA » Thu Jun 16, 2016 11:39 am

John connor wrote:
Lumpy Burgertushie wrote:that does not exist in standard phpbb. there are no page ids for you to get.


robert

f=466&t=2376041

???
Those are forum and topic IDs. What the OP seems to be asking is if there would be an ID to identify the viewtopic.php where you are when seeing those IDs you typed. And phpBB doesn't use those.
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

Locked

Return to “[3.1.x] Support Forum”