TOPIC: ot news can't get images from images and links

ot news can't get images from images and links 10 years 11 months ago #1026

  • scripter007
  • scripter007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 4
  • Karma: 0
hello
Today i'm trying ot news
and i get a problem
if article have images and links
Article Images and Links – makes it easier to add images and links to articles
ot news can not get images from this option! only show default image, how to fix it?
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: ot news can't get images from images and links 10 years 11 months ago #1028

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Hi,
Please make sure the image is in the intro-text part.
It is good if I can see your site, so I can see the articles.

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: ot news can't get images from images and links 10 years 11 months ago #1032

  • scripter007
  • scripter007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 4
  • Karma: 0
thanks linh_omg

yes i'm sure and put also in full article image
but same problem
please if you have time test it cause now i need to fix this problem

i'm very sorry now working in local computer after uploading my project i show u

my regards.
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: ot news can't get images from images and links 10 years 11 months ago #1040

  • scripter007
  • scripter007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 4
  • Karma: 0
No Answer!!
I'm waiting
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: ot news can't get images from images and links 10 years 11 months ago #1048

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Hi,
Just waiting your site online :-)

Actually, you can try do as this:
Edit /modules/mod_otnews/helper.php
find this code:
preg_match_all('/img.+src="([^"]+)"/i', $item->introtext, $matches);

replace it by this:
preg_match_all('/src="([^"]+)"/i', $item->introtext, $matches);

Hope this help :-)
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: ot news can't get images from images and links 10 years 11 months ago #1059

  • scripter007
  • scripter007's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 4
  • Karma: 0
thanks linh
but didn't slove my problem
if you tested please send me your helper.php
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka

Re: ot news can't get images from images and links 10 years 11 months ago #1063

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 908
  • Thank you received: 568
  • Karma: 25
Hi,
I tested the previous version and above modified and no problem at all.
Could you paste one of your articles' html code here? Or just the html code of the paragraph that contains image.
(Edit article, select html code button at editor or use Toggle editor button, then copy all html code, then paste here in code tag)
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
Last Edit: 10 years 11 months ago by linh_omg.
The administrator has disabled public write access.
The following user(s) said Thank You: makcimka
Time to create page: 0.135 seconds