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 1121 build_postbit
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 1121 build_postbit
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 861 postParser->parse_message
/showthread.php 1121 build_postbit
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 1121 build_postbit
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 861 postParser->parse_message
/showthread.php 1121 build_postbit
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 1121 build_postbit
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 861 postParser->parse_message
/showthread.php 1121 build_postbit
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 1121 build_postbit
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 1121 build_postbit
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 1121 build_postbit
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 861 postParser->parse_message
/showthread.php 1121 build_postbit
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 1121 build_postbit
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 1121 build_postbit
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 1121 build_postbit
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 1121 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
#26
I'm at a loss here. I have poster a couple of posts in the modified News Manager. There is a picture in the first paragraph but it is not visible in the excerpt view. How do I get it there? And where do I use the

.compilation article p img {
margin : 5px 10px 0px 0px;
width : 160px;
padding : 4px;
border : 1px solid #d3d0bc;
background-color : #e9e6d3;
float : left;
height:auto;
}

code so it shows the image inside the excerpt as small but large inside the post view? Which code needs to be given the .compilation class?
Reply
#27
I am only just gave the example code in css
show the code of your template and may I be able to help than either
Google's translation Smile
Reply
#28
try to write this code in the CSS file
Code:
li.search-entry {
   overflow : hidden;
}
li.search-entry img {
    margin : 5px 10px 0px 0px;
    width : 160px;
    padding : 4px;
    border : 1px solid #d3d0bc;
    background-color : #e9e6d3;
    float : left;
    height:auto;
}
Reply
#29
andyash Wrote:I'm at a loss here. I have poster a couple of posts in the modified News Manager. There is a picture in the first paragraph but it is not visible in the excerpt view. How do I get it there? And where do I use the

.compilation article p img {
margin : 5px 10px 0px 0px;
width : 160px;
padding : 4px;
border : 1px solid #d3d0bc;
background-color : #e9e6d3;
float : left;
height:auto;
}

code so it shows the image inside the excerpt as small but large inside the post view? Which code needs to be given the .compilation class?

1. Open up the following file,
plugins/news_manager/inc/functions.php

2. Look for the following function (should be around line 150 or so):
nm_create_excerpt($content)

3. Inside that function delete the following line:
$content = strip_tags($content);

4. Save the file and you see images in excerpts now.
Reply
#30
mikeh Wrote:1. Open up the following file,
     plugins/news_manager/inc/functions.php
2. Look for the following function (should be around line 150 or so):
     nm_create_excerpt($content)
3. Inside that function delete the following line:
     $content = strip_tags($content);
4. Save the file and you see images in excerpts now.

Ok. I see the image now. But how to I connect the CSS to it to see the image as a thumbnail?
Reply
#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
#32
Sorry, we are talking about different plugins Smile
Reply
#33
How do I add Addthis or any other social networking code to a blog post? When I add the following to my template, it shows and works correctly on every page, but I want this to show only inside a blog post. How do I do that?

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4ebaaf262833ecbb"></script>
Reply
#34
mikeh Wrote:Here is a modified version of the news manager plugin with rss feed, categories, and an automatic RSS feed importer (to automatically import content from external rss feeds).. I am not currently offering any support on it do to time. Sorry everyone, i've been holding on to this for like 6 months Smile..

Edit: The automatic RSS importer attempts to setup the cron job automatically if you choose to use it.. If it does not setup (due to your server), you will have to manually set the cron job up.. instructions on how to do this are displayed if it fails.

Edit 2: I would unzip this into your root directory. I recommend looking at the stripped down template file in the theme folder of the zip to see the functions.

One question, if I want the posts of only one category to show in a page what code do I use?

EDIT: Found it. I have to put <?php nm_show_category('MyCategory'); ?> in the template.
Question: If I want to show a certain number of posts to show here how do I manage that? Ex; I want only the excerpts of the latest post of a category to show on the home page.

EDIT2: Is there any short code that I can use in the page itself to show the posts from a category, instead of having to create multiple templates?

EDIT3: Another issue. I have 3 categories - writeups, news, shows. In the Blog Manager settings I have assigned a page Blog for the blog posts. In 3 different templates I have put the code to display posts in their respective 3 categories. However in the frontend when I click on a post it opens in the Blog page with the page and browser title Blog. It gets confusing. Is there a way for the posts to open only in their own respective pages?
Reply
#35
mikeh Wrote:1. Open up the following file,
     plugins/news_manager/inc/functions.php
2. Look for the following function (should be around line 150 or so):
     nm_create_excerpt($content)
3. Inside that function delete the following line:
     $content = strip_tags($content);
4. Save the file and you see images in excerpts now.
When I do this some of the posts where there may be an image overlapping the excerpt length then my template breaks. Is there a way of avoiding that or ensuring that if an image is overlapping the text excerpt length then it should either be included or excluded from the excerpt?
Reply
#36
n00dles101 Wrote:I'm doing up a tutorial for my site which has blogging/news setup just using mclvek's Customfields plugin and some php functions handle everything else (paging, categories, tagcloud, search etc... )

check it out here: http://www.digimute.com

The basic setup is;

o - setup customfields
- publishdate - date its was published
- author - author of post
- comments - whether comments are enabled on post or not
- shortdescription - for excerpts
o - setup a blank page called "news", a second one for "blog" if needed
o - all news items are normal pages created with "news" or whatever as the parent.
o - Tags & keywords are used for categories.
o - as all news items are normal pages plugins etc can use as normal.

On my site I use the external comments plugin for handling comments.

So no messing about with plugins or extra tabs for the client. They just create pages as normal.

The only problem at this stage is that it runs on 3.1 which is still in beta.

I'll have the tutorial done by the weekend and post it up.


Mike....

Hi Mike,

Really requesting for an update on this.
Reply




Users browsing this thread: 3 Guest(s)