1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Digital Point Ad Positioning

Discussion in 'Add-on Requests [Archive]' started by lazer, Mar 6, 2011.

  1. lazer

    lazer Well-Known Member

    Brett Peters likes this.
  2. digitalpoint

    digitalpoint Well-Known Member

    I suppose I could port it... :)
     
  3. lazer

    lazer Well-Known Member

    That would be very welcome, thanks. (y)
     
  4. Brett Peters

    Brett Peters Well-Known Member

    Would be appreciated greatly
     
  5. lazer

    lazer Well-Known Member

    Anywhere near porting this yet? :)
     
  6. digitalpoint

    digitalpoint Well-Known Member

    lazer and Brett Peters like this.
  7. lazer

    lazer Well-Known Member

    Well, all I can say is that it's great to see you're on the case :)

    Thanks!
     
    Brett Peters likes this.
  8. Brett Peters

    Brett Peters Well-Known Member

    Would I be correct in assuming that the snag was resolved ?
     
  9. digitalpoint

    digitalpoint Well-Known Member

    Yeah... just have not yet had the time to finish it.
     
  10. lazer

    lazer Well-Known Member

    Cool. I raced here when I got the post alert, thinking that you may have done it :p
     
  11. Sushanth

    Sushanth New Member

    can't wait :)
     
    Brett Peters likes this.
  12. lazer

    lazer Well-Known Member

    Any further forward on this Shawn?
     
    JulianD and Brett Peters like this.
  13. Brett Peters

    Brett Peters Well-Known Member

    Update would be appreciated ;)
     
  14. CRDeveloper

    CRDeveloper Member

    Waiting for this mod!!! :D
     
  15. Brandon Sheley

    Brandon Sheley Well-Known Member

    that would be great :)
     
  16. lazer

    lazer Well-Known Member

    I can smell v1.1...

    Any chance of this before then Shawn?
     
  17. lazer

    lazer Well-Known Member

    Double-dipping here but is there a chance that you'd do this for money Shawn?
     
    CRDeveloper likes this.
  18. digitalpoint

    digitalpoint Well-Known Member

    I started mucking with this again...

    The main problem is that XenForo's URL structure is very good SEO-wise, so you can't extrapolate what post the user is actually looking at from the server (URL hashes like #post-xxxx are not sent to the server by the web browser). So ultimately we are left with everything before the hash in the URL to try and figure out what post the user is actually seeing. In vBulletin this much easier because their URLs suck (you can just key on p=xxxx in the URL to know what post the user is looking at).

    I don't want to make things extra complicated and add queries just to make the determination for which post to display the ad in.

    So far, I made it so it makes an educated guess based on the information we already have... Basing it on the first unread post on the current page you are viewing (which often should match up with the hash in the URL if you got there by clicking a link to view new posts in the thread). If nothing on the current page is unread, then just default the ad to the first post in the thread.

    It's certainly not ideal/perfect, but it should get the ad in the post being viewed *most* of the time... and the times it doesn't, it will put it in the first post on the page.
     
    Brett Peters, DBA and The8thLegion like this.
  19. digitalpoint

    digitalpoint Well-Known Member

  20. lazer

    lazer Well-Known Member

    Nice Shawn! Didn't expect this so soon.. ;)
     

Share This Page