1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

I'd like a "Recent Forum Topics" widget like DP has for my vB forum

Discussion in 'vBulletin' started by Dominic, Sep 13, 2009.

  1. #1
    As seen on pages like http://www.digitalpoint.com/tools/adsense-charts/ I'd like a widget of the recent forum topics to display on my site and code to offer supporters to include this kind of widget on their website or blog. My forums are vBulletin.

    How do I do it?
     
    Dominic, Sep 13, 2009 IP
  2. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #2
    u can use feedburner for a similar javascript
    it is difficult to do it like you mentiond >> pure html
     
    abdobasha2004, Sep 13, 2009 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    Do it by grabbing the RSS feed for your forum, but make sure you aren't doing it dynamically every time you want to display it. A good idea would be to grab it and cache it for 10 minutes, only requesting the live RSS feed if the previous one you got is more than 10 minutes old. This will prevent you from wrecking your forum with RSS feed requests if the external site gets a lot of traffic. That's the *easy* way to do it...

    The way *I* do it is I push out a new HTML blob (the box you see) to a memcached server whenever (and only when) it needs to be updated (new thread create, deleted, moved, etc.) by using the plug-in system at 5 different locations that makes a shell script call (split into it's own process so it doesn't slow down the user) like so:

    exec ("/usr/local/bin/php " . CWD . "/mycustomfile.php >/dev/null &");
    PHP:
    Blah, blah, blah...

    If you don't have memcached server(s) available for your setup, best to just do the caching RSS system. :)
     
    digitalpoint, Sep 13, 2009 IP
  4. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #4
    WOW
    did not understand a word
    even if one day I do, I wont do it, it seems too complicated !
     
    abdobasha2004, Sep 14, 2009 IP
  5. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #5
    ~kev~, Sep 19, 2009 IP