Welcome, Guest. Please login or register.
Did you miss your activation email?
14 Mar 2010, 08:34

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: [solved] nh_api_twitteruser Weirdness  (Read 164 times)
0 Members and 1 Guest are viewing this topic.
Simon66
Forum Members
**

Karma: 2
Offline Offline

Posts: 86

Location: Sydney Australia

Gravatar


« on: 03 Jul 2009, 07:39 »

When I put the tag for this -
{nh_api_twitteruser name="CaffeineNews"}
- in my template everything works fine, except the tag itself writes this to the page:
"http://twitter.com/statuses/user_timeline/CaffeineNews.xml?count=10&page=1"

After that the tag works as expected listing the tweets fom twitter.

I've tried putting it in the head of the template but it still writes it at the top of the page.

Is there any way to suppress this?

Hoping
Simon66
« Last Edit: 04 Jul 2009, 21:23 by Simon66 » Logged

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

This must be Thursday. I never could get the hang of Thursdays.

Douglas Adams - The only sane person in the asylum.
nhaack
Translator
Power Poster
***

Karma: 15
Offline Offline

Posts: 581

Location: Hamburg - Germany



WWW
« Reply #1 on: 03 Jul 2009, 13:57 »

Hi Simon,

Slowely this is becoming embarrassing for me Smiley. I made that plug-in... I will soon release a fixed file. The problem is, I forgot an ECHO in it.

You need to edit the plug-in in line 20 and remove

Code:

echo $rest;


Upload and you should be fine Smiley.

Best
Nils
Logged

# Content Dump Plug-In - The multi-tool for site-internal content distribution.
# API Plug-in Collection  - Include data from web 2.0 sites into your pages.

# Things won are done; joy's soul lies in the doing. (Troilus and Cressida)

# Very outdated homepage: http://www.opticalvalve.com
# Current CMSMS Project: http://www.tripmondo.com
Simon66
Forum Members
**

Karma: 2
Offline Offline

Posts: 86

Location: Sydney Australia

Gravatar


« Reply #2 on: 03 Jul 2009, 20:41 »

Nils
Thanks for replying so quickly and thanks for the fix.
Its a great tag and it has way more functionality than anything from twitter.

I was considering doing a text replace for that bit but I'm a neat freak and thought it would be better to suppress whatever was writing that to the screen.

I'm now going to style the twitter box and I'll post whatever I come up with, maybe you can use it in the next release.

Thanks again
Simon66
« Last Edit: 03 Jul 2009, 21:11 by Simon66 » Logged

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

This must be Thursday. I never could get the hang of Thursdays.

Douglas Adams - The only sane person in the asylum.
Pages: [1]
Print
Jump to: