SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Destiny Manager Plebius's Avatar
    Join Date
    Nov 1999
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it has something to do with the number of paragraphs.

    They probably have a certain number of characters per page or something then use the pid to show a certain range of content from where the article is stored in a database.



    ------------------
    Martin Kretzmann
    Plebius Press - A progressive perspective, and some scripts too.
    "Insert favorite quote here"

  2. #2
    ********* Addict
    Join Date
    Apr 2000
    Location
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I hadn't thought of that, actually. I'll check if it is. But I would rather get a reply from someone that works on the database. Matt would definately know that, but Wayne or Kevin might also know the reason.

  3. #3
    ********* Addict
    Join Date
    Apr 2000
    Location
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could someone please explain me this: How does the "pid" thingy work in the article pages in SitePoint? I have noticed it controls the pages that it is meant to show of the article, but why does it jump so many numbers between the pages? Take this as an example: http://www.webmasterbase.com/article...id=228&pid=876 jumps to http://www.webmasterbase.com/article...id=228&pid=883 when you click the button in the bottom of the page. How does it work and why is it like that?

  4. #4
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I've done a lot of work on improving the PHP code associated with articles on SitePoint over the last couple of months.

    As LuZer guessed, it's the number of paragraphs. Although each article is stored as one long block of text in the database, it gets broken up into paragraphs by article.php3 before being displayed. The main reason for this is to let us associate an image with a paragraph (to have it appear in the margin)... although this is a capability we don't use too often.


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!

  5. #5
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Just for the record. I do not work on the Sitepoint site. My only jobs here are to help maintain the forums with Eric and to moderate chat when I have time.

    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Magazine - MetaQuark Creations (Coming Soon)
    sitepoint@digitalmagician.com

  6. #6
    ********* Addict
    Join Date
    Apr 2000
    Location
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get it now! An easy way to find out how it works is to go to an article page and increase the pid=number to one number higher and notice how the higher the number is the more text is 'eaten up'. It was all so simple!


Bookmarks

Posting Permissions

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