Results 1 to 2 of 2

How to read the post number in a script when vbseo is installed?

This is a discussion on How to read the post number in a script when vbseo is installed? within the General Discussion forums, part of the vBSEO SEO Plugin category; Hello, I have a script that reads the posts number to display the ad in the post currently being used. ...

  1. #1
    Member
    Real Name
    Ludo
    Join Date
    Jan 2009
    Posts
    40
    Liked
    0 times

    How to read the post number in a script when vbseo is installed?

    Hello,

    I have a script that reads the posts number to display the ad in the post currently being used.

    It is using $_REQUEST["p"] to find the post number but it does not work with the vbseo URLs.
    PHP Code:
    if ($vbulletin->options['dppa_insidepost'] &&  !is_member_of($vbulletin->userinfoexplode(',',  $vbulletin->options['dppa_insidepost_hidegroups'])) &&  (!$vbulletin->options['dppa_insidepost_showforums'] ||  in_array($thread['forumid'], explode (',',  $vbulletin->options['dppa_insidepost_showforums']))) &&  ($post['postid'] == $_REQUEST['p'] || ($_REQUEST['t'] &&  !$_REQUEST['p'] && $post_modulus == 1))) 
    MythTV nMedia Pro-LCD setup MythTV

    Is there a way to read the post number from a vbulletin script when VBSEO is active?

    Thanks in advance.
    Ludo

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2

Similar Threads

  1. vbseo 3.5.2 - Replace post number link with Permalink
    By Eagle Eyes in forum General Discussion
    Replies: 12
    Last Post: 03-18-2011, 04:10 AM
  2. Replies: 6
    Last Post: 02-07-2011, 10:51 PM
  3. URL's not jumping to the last read post
    By zelnik in forum General Discussion
    Replies: 2
    Last Post: 04-15-2010, 11:35 AM
  4. Number post 3 times in a Post titles
    By IRCDPR in forum Troubleshooting
    Replies: 4
    Last Post: 10-22-2008, 03:54 PM

Posting Permissions

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