Discussions
Activity
Sign In
How it works
Tomasz Rondio
Activity
Discussions
23
Comments
40
Blank Front Page with Liquid Theme
First thing to check is reloading renditions in configure->image rendering. It this does not help try to replace everything in front.tpl with some dummy text. If that works it means that there is something wrong with Liquid theme. I would then tr…
Comment by
Tomasz Rondio
January 2015
permalink
php assigning smarty variables problem
Have You tried $smarty->assign()?
Comment by
Tomasz Rondio
June 2014
permalink
Use a newscoop value in php
use $this or $template instead of $smarty in example below. http://www.smarty.net/docsv2/en/api.get.template.vars.tpl
Comment by
Tomasz Rondio
June 2014
permalink
Listing all multimedia in a mixed list.
I usually do it with switch. So any article with switch set to on is visible in multimedia list. That way You can easily choose what You want to show even if there is youtube embed in article body. Code for listing will look like:{{list_articles ig…
Comment by
Tomasz Rondio
April 2013
permalink
rss image size
As Micz said. You can use renditions or scale image in code like that: {{ list_article_images length="1" }} article->image->number" }}&ImageWidth=210" /> {{ /list_article_images }}
Comment by
Tomasz Rondio
April 2013
permalink
debate plugin results problem
didn't help
Comment by
Tomasz Rondio
July 2012
permalink
User object properties
Hey what is $user->posts_count ?
Comment by
Tomasz Rondio
July 2012
permalink
how to get $_GET variables in NS 4.0
solution:{{ $page=intval($gimme->url->get_parameter('ls-art1')) }}
Comment by
Tomasz Rondio
May 2012
permalink
changing templates on the fly
is available something like $gimme->browser->width ?
Comment by
Tomasz Rondio
April 2012
permalink
changing templates on the fly
that is a solution but what if i have custom templates for sections and topics? It would be easier to change whole template than make this trick in every template file.
Comment by
Tomasz Rondio
February 2012
permalink
Multiple publications
There is a function that allows to set a publication. https://wiki.sourcefabric.org/display/NsLingo/Set+Publication
Comment by
Tomasz Rondio
February 2012
permalink
[4.0] How to assign a var from php
thanks! $template works!
Comment by
Tomasz Rondio
January 2012
permalink
[4.0] How to assign a var from php
Yes but I need more complicated value from php. Doug is only an simple example
Comment by
Tomasz Rondio
January 2012
permalink
Facebook comment
You have to set url of active article. Full code looks like this: (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en…
Comment by
Tomasz Rondio
January 2012
permalink
Newscoop 4.0 and Comments
Yes and it works but i need only "submit content" form to appear after clicking on certain button, which looks differently from this one generated by omnibox by default. Is there any event in javascript to open the omnibox?
Comment by
Tomasz Rondio
January 2012
permalink
[3.6] pagination for section page with page numbers?
but it seems that it does not work in 4.0. If You make it work in 4.0 please give me a sign.
Comment by
Tomasz Rondio
January 2012
permalink
Newscoop 4.0 - Author object
solved. I did attached picture and about me text but only in "manage users" section. Now I did the same in Manage Authors and it works fine.
Comment by
Tomasz Rondio
January 2012
permalink
Newscoop 4.0 and Comments
enabling comments in publication and article type did the trick. Thanks! Micz, where can I find more info about {{omnibox}}?I will need to create content submission form and I see that omnibox has this functionality.
Comment by
Tomasz Rondio
January 2012
permalink
order by custom field
Thanks Holman
Comment by
Tomasz Rondio
January 2012
permalink
getting content from other publication
I like idea 2. That should be enough to list sections for menu. Thanks Micz!
Comment by
Tomasz Rondio
January 2012
permalink
how to list authors of given type
working solution from me. {{ php }} $tab=array(); {{/php}} {{ list_articles ignore_issue="true" }} {{ list_article_authors }} {{ assign var="author_name" value=`$gimme->author->name` }…
Comment by
Tomasz Rondio
October 2011
permalink
Image hard cropping
How to use it?
Comment by
Tomasz Rondio
October 2011
permalink
how to list authors of given type
That would work but when there is a lot of content the amount of data from database will be huge. Maybe there is a way I can execute simple select from PHP?
Comment by
Tomasz Rondio
October 2011
permalink
how to list authors of given type
I need to list all authors from given section or type to show blogger list. Like {{list_authors type="blogger" }} or {{list_authors constraints="section is 10" }}
Comment by
Tomasz Rondio
October 2011
permalink
Problems installing themes from theme packs
Your have to turn off safe mode. More info here http://www.mediawiki.org/wiki/Safe_mode
Comment by
Tomasz Rondio
October 2011
permalink
[3.6] pagination for section page with page numbers?
This is the code that works for me. There is one strange thing: I can't get ls-art1 variable by smarty.get.ls-art1. That's why I used PHP. {{ if $gimme->current_list->at_end && $gimme->current_list->count > $gi…
Comment by
Tomasz Rondio
October 2011
permalink
"Add Blog" = blank page. Newscoop 3.6
another fatal error: Fatal error: Uncaught exception 'Newscoop\Utils\Exception' with message 'Undefined index: IdPublication' in /var/www/mtskheta/classes/Section.php:285 Stack trace: #0 /var/www/mtskheta/application/modules…
Comment by
Tomasz Rondio
October 2011
permalink
"Add Blog" = blank page. Newscoop 3.6
Another issue. {{list_polls ...}} returns nothing and when I click on Poll (admin section) it shows error: Fatal error: Uncaught exception 'Newscoop\Utils\Exception' with message 'Undefined variable: f_include' in /var/ww…
Comment by
Tomasz Rondio
September 2011
permalink
article links in menu
Basically I need to create static pages like Contact or About Us and menu with only eight of eleven sections.
Comment by
Tomasz Rondio
September 2011
permalink
global variable
This patch works exacly like scopes in smarty 3. I didn't used it to be sure that template is compatible with any Newscoop installation.
Comment by
Tomasz Rondio
August 2011
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Follow Tomasz Rondio
About
Username
Tomasz Rondio
Joined
July 2011
Visits
0
Last Active
January 2015
Roles
Member
Posts
63
Friends
My Badges
Total Points: 75
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339