Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager (updated)
There's no nm_... for this -- just use GetSimple's own <?php get_page_meta_desc(); ?>

(You may need to enable NM custom settings and enter autometad 1 so that posts without meta description have an excerpt instead)
Reply
Oh, ok! It works, thank you!

Just another question about metadata:
I make a schema.org issue "Image" and wonder why it says:

Code:
https://www.domain.de/plugins/news_manager/browser/pic.php?p=picname.jpg&w=100&h=100&c=1>=1


instead of

Code:
https://www.domain.de/data/uploads/picname.jpg

The source code is

Code:
 "image": "<?php nm_post_image_url(); ?>"


But the image given to the metadata seems to be the small one from the overview page. Why?
Reply
For a full image:
Code:
<?php nm_post_image_url(0,0,0); ?>

Parameters: width (0 = full), height (0 = full), crop (0 = no) - if you don't pass them, it will use what you have in NM settings.
Reply
Quote:
Code:
<?php nm_post_image_url(0,0,0); ?>

Nice! And in this case it takes the original image from uploads folder. Thank you!

Hypertexter
Reply
(Replying to http://get-simple.info/forums/showthread...4#pid63114 )

(2018-09-24, 19:54:17)domscatterbrain Wrote: Hi, I've encountered issues which post image is not shown. Whenever I choose pic for post image from server, in which its generated an image link

Code:
https://mysite.com/plugins/news_manager/browser/pic.php?p=mypicture.jpg

Yet it's not showing anything. Did I do something wrong?

Are you sure that image file exists in the Uploads folder?

Open that URL in your browser and check if you get any errors.
Reply
Anyway, an image URL like that should not be rendered by News Manager (at least in recent versions) - it's missing some parameters (width, height...)
Reply
(2018-09-25, 04:36:33)Carlos Wrote: Anyway, an image URL like that should not be rendered by News Manager (at least in recent versions) - it's missing some parameters (width, height...)

I dm you my link, even with complete params the image is still missing.
I'm using the latest news manager tho
Reply
It's some restriction in your host.
This is what it's rendering instead of the resized image:
Code:
Warning:  readfile() has been disabled for security reasons in [...]plugins/news_manager/browser/pic.php on line 101

Function readfile() is also used in GetSimple's File Management. Are you also having issues when downloading a file (e.g. an uploaded PDF) in the backend, or viewing/generating thumbnails...?
Reply
@domscatterbrain
I see that the link you sent me by PM now displays the resized image properly, so I assume your issue has been fixed.
Reply
(replying to http://get-simple.info/forums/showthread...7#pid63137 )

(2018-09-30, 08:13:23)Bak Wrote: Good evening to all.

When I create a new post in my website the new post contain a title, the date creation, the text and the tags.

Is there a way to hide date creation and tags?

The important thing is the title and the text.

Thanks in advance.

Luke

In NM Settings, enable Custom Settings and insert this:
Code:
showFields title,content
then save settings.

---

There is (will be) another way, with custom post rendering, but it's not possible with the current stable version (3.6) - right now you'd have to use the beta version
Reply
Heya Carlos, I forgot to say that the blog picture is working again after I asked my site admin to enable readfile()
Thanks in advance!
Reply




Users browsing this thread: 3 Guest(s)