Results 1 to 3 of 3

What variable holds page name?

This is a discussion on What variable holds page name? within the Ad Networks forums, part of the Monetizing category; I currently have banner ads inserted at the top of my forum (in the navbar template). I'm writing a script ...

  1. #1
    Member
    Real Name
    esther gastro
    Join Date
    Mar 2008
    Posts
    33
    Liked
    0 times

    What variable holds page name?

    I currently have banner ads inserted at the top of my forum (in the navbar template). I'm writing a script to record each and every pageview, including which page was viewed. However, I don't know which variable holds the current page's name. When I use THIS_PAGE or $_SERVER[SCRIPT_NAME], I get generic template names such as member, showthread, forumdisplay, etc.

    I am currently using VBSEO and would like the actual name of the page the visitor is viewing, as shown in the URL bar. What variable holds this page name?

    Thank you.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Hello,

    you can use $_SERVER['VBSEO_URI'] for that.

  3. #3
    Member
    Real Name
    esther gastro
    Join Date
    Mar 2008
    Posts
    33
    Liked
    0 times
    thank you! that worked!

Similar Threads

  1. How to rewrite all URLs using one variable?
    By Snake in forum URL Rewrite Settings
    Replies: 11
    Last Post: 01-29-2008, 04:53 AM
  2. Help with Variable and Digg Code.
    By CoryHawk in forum Template Modifications
    Replies: 2
    Last Post: 01-16-2008, 12:45 PM
  3. looking a variable for post_linkbacks ??
    By Danny Bembibre in forum General Discussion
    Replies: 6
    Last Post: 10-11-2007, 05:15 AM
  4. crr with more than 1 variable
    By magnaromagna in forum Custom Rewrite Rules
    Replies: 9
    Last Post: 04-02-2007, 11:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •