The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A GOOD and versatile news manager needed
#31
mvlcek Wrote:
Oleg06 Wrote:I18N Search very good plugin for creating news with categories, sorry that he can not display images in a short news

It is already possible with the advanced features:
  • Install I18N Custom Fields
  • add a custom image field, e.g. named picture
    I have created this component but where in the template do I call it?
    And the News Manager doesn't even allow access to the custom_field while creating/editing a blog post, so how do I add it?
  • when editing the news item page, add an image link in this field
  • create a component like decribed here, modify it, if necessary, and add an img tag to it (whereever you want the image):
Code:
<img src="<?php echo htmlspecialchars($item->picture); ?>" />
  • call the I18N Search plugin like described here with a component parameter pointing to the created component.

There is also a simple alternative:
  • include the image in the first paragraph of the page
  • call the search results with parameter numWords=1p (1 paragraph), which should output the HTML of the first paragraph including the picture.
Reply


Messages In This Thread
A GOOD and versatile news manager needed - by andyash - 2011-11-19, 21:47:46



Users browsing this thread: 2 Guest(s)