Modify the "Comment as" options in Blogger Dynamic Views template - comments

My website is https://testfnm11.blogspot.com based on Blogger Dynamic Views Mosaic template.
In the Comments widget, I would like to remove the option to comment from "Google Account".
The reason is that these days most browsers, by default, block third-party cookies, or have cross-site-tracking disabled. This disables the the ability to post comments from "Google Account" and my viewers get frustrated trying to post comments.
However the Name/URL and Anonymous options do work even with third-party cookies or cross-site-tracking disabled.
Hence I would like to only have the Name/URL and Anonymous options available.
Also, in the "Name/Url" option, I would like to rename it to only "Name", and remove the URL field. Or if the URL field cannot be removed then I would like to put "optional" text in the URL field so that viewers understand that it is not required to put both name and url.
Additional information:
In my Blogger Settings, I have set Comment Moderation to "Always" (otherwise posting comments even from Name/Url and Anonymous does not work).
Comment Location is set to "Full Page".
Reader Access is set to "Public".

Related

Joomla 3 category RSS feed reveals Registered-only article

I am building a Joomla 3 website where some articles in a category are intended to be viewed only by registered users, while other articles in the same category are intended to be public.
In testing an article with the "Registered" access level, I find that article's content is revealed in the public Atom/RSS feeds for the category. My expectation is that the article content should not be there.
Here is my test:
http://incyanity.net/index.php/hote
This page is a Category List. The "Test" article correctly displays "Register to read more...". Additionally, in the menu at the top of the page, the drop-down list for this category correctly displays the Test link with a lock icon beside it. The menu item is set to public so visitors can see where the protected content is. Clicking on the menu item takes the user to an error page. Great! This is all desirable behavior.
Edit: I had the menu item set to public and it was working the way I described above, but when I tested just now it seems the behavior has changed again to allow guests to see the whole article. This now forces me to hide the menu item too which is not what I want to do. :( The whole article is still in the Atom/RSS feed though!
http://incyanity.net/index.php/hote?format=feed&type=atom
Both this feed and the RSS version shows the entirety of the body of the "Test" article. Why is this happening? I do want feeds available for people to follow public content published to this category, but anything that requires registration should not be included (or, ideally, the feed should only contain an entry that says something like "[Article Title] has been published. Log in at the website to view").
Since the menu item is set to public, I did try setting it to "Registered" on the off chance that had anything to do with this but the entire "Test" article still displayed in the Atom and RSS feeds.
I've tried asking for help on the official Joomla forum plus various searches on Google for solutions to this and unless my Google-fu is weak I just can't seem to find any answers. I feel like the behavior I'm looking for should be natively supported by Joomla given the integrated user access levels and ideally I want to solve this without turning to a third party plugin.
What am I doing wrong here? Thanks!
To review the configuration, you set:
Article manager options: Show unauthorized links "test"
Article options: View access level: registered;
The first option ensures that you get the links to the articles which have the "access level=registered", and that they show in blogs and category lists.
The second, sets the article's access level as Registered.
This is fine. But in order for Joomla to be able to show the articles in blogs, the introText of the article needs to be visible to all as well. Here comes the trick.
Just add a "Read more" tag (with the button at the bottom of the editor) in the article; the text after the tag will be hidden. The first part of the article needs to be visible to all, otherwise neither Joomla (nor search engines) would be able to show it.
So just add the read more tag... it's that easy. If you don't want any text showing you can start the article with it, but it's against your interest.

Ajax generated pages with different URLs

I couldn't really word the title very well, but here's my problem: I've got a webpage that reads from a database each time the user clicks a button, the content is then replaced for part of the page.
Because it is an ajax load, everything is done in the background, and so the URL stays the same. This wasn't be a problem at all until I realised that I will want to have a different Facebook comments box for each set of content that is loaded - so if someone comments, it is posted to their facebook profile, people click on the link and are then taken to different content.
So... what I need is some way of referencing each set of content, and I've found a site that does exactly that (I'm sure there are a lot of them).
Here's the link.
Each set of content has a different 'hash code' (because I don't know the actual name for it) which is appended to the URL - in this case the code is "#1922934", this allows people to post links to it that specific set of content on Facebook etc. - and also allows a different Facebook comment box for each set of content.
Does anyone know how such a set-up can be achieved or how these 'hash codes' work?
Here's a document from wikipedia on it.
[http://en.wikipedia.org/wiki/Fragment_identifier][1]
The main idea is that URI fragments are used because they don't cause a page reload. They also can be used to refer to anchors on a web page.
What I would do is on page load use JavaScript to read the URI fragment (location.hash) then make a request to your server to load the comments etc. The URI fragment cannot be read by a server and is only found through a client (browser)
Sounds like you want something like SammyJS.

Alfresco share page state history

How can I manage page state history in share (surf?) so that I remember for example which yui tab was active and on which page the pager was on?
I noticed that alfresco share does something like that after form submit. You get redirected to the exact same page url where you were before. If any "ajax state" (don't know what they are called) parameters are in url like #something=asdf you get the same url.
But when using manual navigation like moving through site pages those parameters aren't saved.
Is this even a good idea to do? To save page state in session for example?
Some pages have support for URL parameters that are passed in. In those cases the browser history is used, e.g. we editing metadata in the full page meta data view the user is send back to the page he is coming from. This is done in javascript by calling window.history.go(-1) after form submit but only works when parameters are set/retrieved by URL. The document library implements page specific javascript for setting the URL and parsing parameters from it.
I some places Alfresco uses the preference service to store user settings between different pages permanently. For example this is used in the document library for the "show folders" and "simple/thumbnail view" buttons. Here is some sample code from the document library javascript setting a preference option:
var PREFERENCES_DOCLIST = "org.alfresco.share.documentList",
PREF_SHOW_FOLDERS = PREFERENCES_DOCLIST + ".showFolders";
var preferences = new Alfresco.service.Preferences();
this.services.preferences.set(PREF_SHOW_FOLDERS, true);
The evaluation of the properties is usually done in the Share component webscripts, you can have a look in share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\include\documentlist.lib.js for an example.
In any case you have to dig into Alfresco's javascript code in the browser and the share tier to see how to implement it.
You could check parameters sended to the server side after form submiting in the firebug (firefox plugin) and then you could use the same parameters.
Also perhaps you should use yui history manager:

How to suppress &ref=nf query string from Facebook wall posting image link?

I am writing an iPhone app that includes the ability to publish a link to a user's wall on Facebook using the latest Facebook supplied iOS SDK. To the dialog method I give a name, caption, description, link, and picture in a params dictionary. The method call successfully opens a dialog for the user in the app (after authenticating), where they can add a message and tap Publish. So far, so good.
Looking at the result on the user's wall, both the title of the post (the "name" in the dictionary mentioned above) and the picture associated with the post are clickable links with the url I specified in the method call (via "link"), as expected. Well almost.
Now the problem: while the link on the post title is exactly as specified, the link on the image has the additional, unwanted query string ?ref=nf appended. I want to know how to suppress this, as it breaks my goo.gl shortened link.
I don't think this is iOS specific. It happens on this Facebook developer Feed Dialog page as well. Go down to the section Example, and click where it says Click here to try the url yourself, you’ll get a Post To Your Wall page. If you click Publish and then go to your own wall, you will see that the link for the image and the link for the title are different, with the image link including the extra query string. Which is what I want to suppress.
Interestingly, before you publish from the above page, you can hover over the image and the title, and the reverse it true. The title link has the extra query string but the image link is clean. Bizarre. I cannot see if that is also true in my iOS app, since I have no way to "hover" on the iPhone.
Two other data points
I see this in posts from at least some other apps; the fully expanded links being used there are apparently oblivious to the extra query string information
I don't see this if I post directly from my Facebook news feed page from the Facebook web site
Anyone know how to eliminate/suppress this extra query string from the image link when posting programmatically?
Looking at this post in the facebook forums, it appears you would have to strip it manually yourself. I.e. send it to a shortener that you control and doesn't care about the query string.
They are going to add that query string always. So if you want to handle it gracefully, you need to control where the link goes to initially, or find a url shortener that ignores this parameter.
This is solution:
Remove parameter from URL viac .htaccess

How can I do a Directory Listing of ebsites with Ez?

I need to do a specific task with Ez Publish but I don't have a clue on how to do it.
What I need to do is a list of Websites(Website directory). I will need to add basically two kinds of data:
Website Name
URL of the website
Then, when I click in the website link it will redirect to a page where I have the IFRAME with the link(URL of the website).
Can someone give me a clue about how to do this with Ez Publish? I'm a beginner.
Best Regards,
You haven't said anything about where you're getting the list from, so I assume you have the list already and just want to know the correct way to input this type of content.
Login to the site admin area, browse to the part of the site you want the list to be at (usually a folder). You'll be adding content items of type 'link' below the folder.
Select the 'Link' content type and click on the 'Create' here button. Enter the content (including the link URL to the page containing the IFRAME) then send for publishing.
I'm assuming the sites are your own, since many sites now take steps to prevent others placing their page in an IFRAME.
If you want this page to not just link to the iframe page, but to actually display the iframe content, then you'll need to override the default link template (copy it and tell eZ to use your version instead) and add a bit of html for the IFRAME.
If you're the main user imputing this content, you could also just allow eZ to accept literal HTML in the main description text areas (XML Block) and just paste in your IFRAME html. Ugly but quick to set-up.
You should be able to find many examples of entering literal html at the community web forums http://share.ez.no/forums
You should create a specific class for that with the two fields you need.
One for the name and another one with the URL.
Then you'll just have to make an override of node/view/full.tpl for your new class Where you will display the name and an iframe with URL that have been typped in your class instance.

Resources