Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
Rork
Nucleus Newbie


Joined: 28 Sep 2010
Posts: 10

Post Posted: Tue Sep 28, 2010 12:35 pm   Post subject:
Reply with quote

I didn't read trough all the post but would propose a few changes:

- Maximum length for the title also
- Make appending dots to the short authors name optional
- Add template variables for the short as well as complete author/comment/title
- Add a message if no comments are made

Like everybody I'd like to have implemented this last week when I needed it. Luckily I'm able to write code so I did. You can find the code on Pastebin (expires 28 oktober 2010). I'm not sure these changes are wanted or what the exact procedure is to update a plugin that is not my own (I'll read up to that). The primary thing holding me back is the change of template variables. I would be happy to make it as an official release and edit the wiki page (after I cleaned up the code some more). I'll also try to read up a bit on this threat and see if I can implement other proposed features.

The following template variables can be used:
%l = link including anchor to comments
%L = link to post [new]
%p = Short post title
%P = Complete post title [!changed!]
%c = Short Comment
%C = Complete comment [new]
%u = Short author name
%U = Long author name [new]
%t = Time of comment

Extra settings are:
- Length of the title
- Use ... in short author name or not
- Text to show when no comments are present.

I would also propose to remove the option to force the short author names, using separate template variables for short and long author names makes this option unnecessary.

Comments on the (proposed) changes and my code are most welcome.

Back to top

View user's profile Send private message Visit poster's website MSN Messenger
WillyP
Nucleus Guru
Nucleus Guru


Joined: 30 Aug 2009
Posts: 870
Location: Pembroke, NH

Post Posted: Wed Sep 29, 2010 11:56 am   Post subject:
Reply with quote

You could always add it to the wiki as an alternate version... that is to leave the original in place and add your code below it, with an explanation as to the differences between them.

Back to top

View user's profile Send private message Visit poster's website
PakTrik
Nucleus Addict


Joined: 07 May 2008
Posts: 89

Post Posted: Thu Sep 30, 2010 7:45 am   Post subject: NP_LatestComments
Reply with quote

@Rork

Thank you very much for adapting this plugin. Thanks to your work I got rid of a lot of garbled characters in this plugin. Also the wrong formatting was applied in the plugin. It has been an annoyance since long time; again THX!

I suggest to remove ASAP the prior plugin from the wiki; the results are below expectations.

Back to top

View user's profile Send private message
Rork
Nucleus Newbie


Joined: 28 Sep 2010
Posts: 10

Post Posted: Wed Oct 20, 2010 1:08 pm   Post subject:
Reply with quote

Yeah, but it's not like a complete different version either, just an extension.

Anyway I've uploaded the new version: NP_LatestComments

Back to top

View user's profile Send private message Visit poster's website MSN Messenger
WillyP
Nucleus Guru
Nucleus Guru


Joined: 30 Aug 2009
Posts: 870
Location: Pembroke, NH

Post Posted: Thu Oct 21, 2010 1:20 pm   Post subject:
Reply with quote

Cool! I'm going to check this out later.

Back to top

View user's profile Send private message Visit poster's website
tlucente
Nucleus Addict


Joined: 03 May 2006
Posts: 82
Location: Lima, Ohio, United States

Post Posted: Sun May 01, 2011 10:52 pm   Post subject: You Tube videos
Reply with quote

When someone posts a YouTube video in the comments, the video appears in the lastest comments sidebar at the same full size.

Is there anyway to either have it not appear or better yet appear at a reduced size that will nicely fit in the sidebar?

_________________
Freedom is a gift from Providence, not a political grant from government.

Back to top

View user's profile Send private message Visit poster's website AIM Address ICQ Number
Rork
Nucleus Newbie


Joined: 28 Sep 2010
Posts: 10

Post Posted: Tue May 03, 2011 4:57 pm   Post subject:
Reply with quote

Can you link me to a topic that has a youtube video in the comments so that I can check what code is being used?

Back to top

View user's profile Send private message Visit poster's website MSN Messenger
tlucente
Nucleus Addict


Joined: 03 May 2006
Posts: 82
Location: Lima, Ohio, United States

Post Posted: Tue May 03, 2011 9:06 pm   Post subject:
Reply with quote

http://www.lucente.org/blog/item/2011/05/column-race-has-nothing-to-do-with-obama-opposition#8448

I removed the video and replaced it with a link. Do you need me to put the video back in? I am using the BB code plugin that allows YouTube videos in comments.

_________________
Freedom is a gift from Providence, not a political grant from government.

Back to top

View user's profile Send private message Visit poster's website AIM Address ICQ Number
Rork
Nucleus Newbie


Joined: 28 Sep 2010
Posts: 10

Post Posted: Sat Oct 08, 2011 12:28 pm   Post subject: Re: You Tube videos
Reply with quote

tlucente wrote:
When someone posts a YouTube video in the comments, the video appears in the lastest comments sidebar at the same full size.

Is there anyway to either have it not appear or better yet appear at a reduced size that will nicely fit in the sidebar?


Sorry for the delay, I released a new version of NP_LatestComments that adds support for NP_BBCode. Showing comments in markup is optional, images and youtube movies can be replaced by plain text. I didn't see a way to resize the them to fit the comment width.

Other changes:
- support for different odd / even comments
- fixed a bug in breaking a comment at word end, now checks if the comment is broken at wordend already.

I did some testing on a private install and just installed it on my own system (which doesn't use BBCode), there might be bugs left, please post them if you find any.

Back to top

View user's profile Send private message Visit poster's website MSN Messenger
cathayan
Nucleus Fan


Joined: 17 Aug 2003
Posts: 28
Location: Beijing, China

Post Posted: Sun Apr 07, 2013 2:05 pm   Post subject: NP_LatestComments broke after upgrade to 3.65
Reply with quote

NucleusCMS 3.65
NP_LatestComments 1.85
PHP 5.3.22
MySQL 5.5.30-cll (5.5.30)

error: PHP Fatal error: Cannot pass parameter 2 by reference in /home/public_html/blog/nucleus/plugins/NP_LatestComments.php on line 260

anyone can give a look into it?

_________________
http://blog.cathayan.org
Beijing, China

Back to top

View user's profile Send private message Visit poster's website
Post new topic Reply to topic
Display posts from previous:   

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next

Page 8 of 9

All times are GMT + 1 Hour

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group