This post was updated on .
I would like to remove ALL and APPS and just display TOPICS. Thanks.
HTTPS Please!
|
The macro is user_nodes_filter_control. Try to edit it, but let me know if you have any issues.
My test forum.
|
I was hoping it would be simple but it looks like a pretty complex macro.
If I wanted to remove "Show" and the dropdown and just display TOPICS (initial posts) how to do that?
HTTPS Please!
|
This post was updated on .
I'd like to eliminate this from ever showing:
Why tell people there is content they dont have access to? That just creates questions. Here is the comment in the code: "Here we check if this page contains the correct number of rows. If this is not the case, it is because the visitor doesn't have permission to view them and we must display a message. The check is simple: we get the number of rows this page is meant to show (current_page_rows command in pagination namespace) and subtract the number of rows displayed (current_index of the node_list loop). If the result if greater than zero, then some rows were not displayed and we show the message." Why must we show a message?
HTTPS Please!
|
Translations: In my forum it seems that there is one macro with all the translations in it. Could you help me find that in my newspaper? It seems like there is a separate macro for each translation.
If so can I combine them into one?
HTTPS Please!
|
I figured a bunch of this out.
Still to do, I'd like to: Only display author (contributor) profiles. Remove this completely, the word SHOW, the drop down and the number of items. And only have this page display TOPICS - posts started by authors/contributors, No comments. All of this in ONLY for my newspaper app, not the others. Remove COUNT and the entire COUNT COLUMN. Change the word LOCATION to REGION. Change the word POSTS to FEATURES. Change the word SUBJECT to TITLE. Because it's a table I'm afraid to break it.
HTTPS Please!
|
EDIT #2: I figured more of this out, so I'm deleting some items below:
For some reason when I do translations they don't work. I could edit the word LOCATION with a macro override, but it doesn't seem to work. Not sure why. Still can't find this: "Remove this completely, the word SHOW, the drop down and the number of items."
HTTPS Please!
|
I got this far. I can figure out how to remove it all but it still shows all nodes not just topics, even when the dropdown is set on topics:
<override_macro name="user_nodes_filter_control" requires="user_page"> <n.put_in_head.> <script type="text/javascript"> $(document).ready(function() { function applyFilter() { window.location = $('#filter').val(); }; $('#filter').change(applyFilter); }); </script> </n.put_in_head.> <div class="float-left nowrap" style="margin:.3em .2em"> <b><t>Show</t></b> <n.set_var. name='url'> <n.page_user.url filter="[n.user_nodes_filter/]"/> </n.set_var.> <select id="filter"> <n.select_option value="[n.page_user.url filter='topics_only'/]" selectedValue="[n.var name='url'/]" text="[t]Topics[/t]"/> </select> </div> </override_macro>
HTTPS Please!
|
I changed the title of this post.
I want to give some big picture background on why I am making all these changes. It seems to me that Nabble probably developed the FORUM version of the apps first. Newspaper and Blog look to be a creative use of that original design. We have created a magazine. It's designed to be a digital version of an old style glossy print publication. I've asked for a bunch of changes that Hugo and Pedro probably think are nuts. One change: I removed the ability of commentors to add photos and htags in comments. Basically I don't want comments to compete with the original article. Comments should be low key and in plain text. We want to remove access to commentor pages. The changes above related to author pages - we want to highlight their posts only, not comments. We are thinking of our "magazine" like an art gallery where we show our work and comments are made in hushed tones. This is opposite of our forum where everyone has an equal voice. Maybe this could be a model for a future Nabble product. Regardless. We really appreciate all of Nabble's help in realizing our vision for our Magazine.
HTTPS Please!
|
In reply to this post by Harvey
I've figure out just about everything. Now the main thing I need is to get rid of the "Show" dropdown and item totals above and have the page DEFAULT to displaying TOPICS (original posts) only. Some explanation on what I am doing wrong with translations would be helpful too. Thx
HTTPS Please!
|
This post was updated on .
Check this out:
Here's the code. Legit? <override_macro name="user_nodes_filter_control" requires="user_page"> <n.put_in_head.> <script type="text/javascript"> $(document).ready(function() { function applyFilter() { window.location = $('#filter').val(topics_only); }; $('#filter').change(applyFilter); }); </script> </n.put_in_head.> <div class="float-left nowrap" style="margin:.3em .2em"> <span class="weak-color" style="font-style: italic"> <t>Total</t>: <n.one_or_many.user_nodes_count> <one_text><t>item</t></one_text> <many_text><t>items</t></many_text> </n.one_or_many.user_nodes_count> </span> </div> </override_macro> All I need to do now is figure out how to change DATE, SUBJECT and LOCATION without using an override - ie making the translation work. AND... I did this: <override_macro name="path" parameters="index_record,filter" requires="user"> <n.encode_url.remove_spaces.> /template/NamlServlet.jtp?macro=user_nodes&user=<n.id/>&filter=topics_only <n.add_to_path name="i" value="[n.index_record/]" default_value="0"/> <n.add_to_path name="filter" value="[n.filter/]"/> </n.encode_url.remove_spaces.> </override_macro>
HTTPS Please!
|
Got it. Translations have to be done in the advanced editor:
I would like to figure out how to make dates in the current year show the year. Any help with that?
HTTPS Please!
|
Harvey,
please, could you update your list of what should be done? Please, sort it by priority.
My test forum.
|
Sorry Pedro! I realize this thread is a mess.
I kept pushing and I now have the page almost exactly where I want it. You only see the authors posts, and only their first topics: I even figured out how to edit the javascript dropdown. Kindof excited about that. The only thing I would like to do is: 1 Have you check the way I edited the macros to see if it looks correct 2 Display the YEAR on the author page for post in the current year: 3 Also on the root page, I am only SHOWING contributors, and I am myself not a contributors, bur for some reason I am showing. Not sure if this is cached or what. I put myself in contributors to more easily test what I was doing, but now I am removed, but still showing:
HTTPS Please!
|
Please, at your date_column macro replace the line: <n.current_node.when_created.short_format/>with: <n.current_node.when_created.date_only/>
My test forum.
|
Awesome thanks. It works! :) Any idea why my avatar is still showing in contributors? On Mon, Sep 30, 2013 at 12:28 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote: Please, at your date_column macro replace the line: "Like" us on Facebook: www.facebook.com/NYSkiBlog Follow us on Twitter: http://twitter.com/nyskiblog ---------- Harvey Road: NYSkiBlog.com NY Ski Forum: forum.NYSkiBlog.com NY Ski Magazine: mag.NYSkiBlog.com NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!
|
Do you remember which macros did you edit? Not yet, but I'm working on it. Do you know if it happened recently?
My test forum.
|
I edited the two macros posted above. Yes the contributors issue is recent, but I haven't made any changes to the list of contributors in quite a while so I could be wrong. Also you are in the list but not showing? On Mon, Sep 30, 2013 at 11:44 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote: Do you remember which macros did you edit? "Like" us on Facebook: www.facebook.com/NYSkiBlog Follow us on Twitter: http://twitter.com/nyskiblog ---------- Harvey Road: NYSkiBlog.com NY Ski Forum: forum.NYSkiBlog.com NY Ski Magazine: mag.NYSkiBlog.com NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!
|
In reply to this post by Harvey
These are the macros I edited.
HTTPS Please!
|
In reply to this post by Pedro
Fixed.
My test forum.
|
Free forum by Nabble | Edit this page |