The-LoneWolf / AndroPress

An Open Source Android Client for wordpress that works with json-api plugin
Apache License 2.0
33 stars 21 forks source link

its not fetching thumbnails #7

Open vijaychandra800 opened 7 years ago

vijaychandra800 commented 7 years ago

Ive connected my wordpress site to it and all posts were fine but my site post thumbnails are not coming in the app,Please help me,Its showing No preview and if i open post the image is coming.

The-LoneWolf commented 7 years ago

please provide your sites address so i can check and help

vijaychandra800 commented 7 years ago

www.atozhacks.xyz

The-LoneWolf commented 7 years ago

you have to edit the source of PostModel.java because your posts are not normal

this is posts api address https://www.atozhacks.xyz/api/get_recent_posts/?page=1

put your json in this site to see clean structure and then start editing PostModel.java http://json.parser.online.fr/

vijaychandra800 commented 7 years ago

Ok I'll try this and tell you

vijaychandra800 commented 7 years ago

still it shows no preview

JusticeZA commented 6 years ago

Same problem here. No images even after opening post. Please help!

JusticeZA commented 6 years ago

http://lungisanimavundla.co.za/api/

The-LoneWolf commented 6 years ago

wait for some days i am at vacation there is a new version in progress. there will be lot's of changes

JusticeZA commented 6 years ago

Okay thank you for your time.

prakashtyata commented 4 years ago

To get the original image beside thumbnail.....edit PostModel.java replace this
"public String url, title, content, date, author, comment_status, status, img ;"

by this "public String url, title, content, date, author, comment_status, status, img ,img_medium;"

and replace this
"img = jsonObject.getString("thumbnail");"

by this "img_medium = jsonObject.getString("thumbnail"); img = img_medium.replaceAll("-150x150", "");"

iamyashchouhan commented 3 years ago

Commnets not showing