How to include a subdirectory filter on the Activity feed? - facebook

Does anyone know how to use filter "Activity Feed" ?
For instance on this page I want to display only french entries (links on the website that include the subdirectory /fr/):
The problem is if I put the filter="/fr" then nothing is displayed whereas they exist.
Here is the code:
<script src="http://connect.facebook.net/fr_FR/all.js#xfbml=1"></script><fb:activity site="www.alexandra-lloyd.com" width="428" height="260" header="true" font="verdana" border_color="" recommendations="true" filter="/fr"></fb:activity>
Thank you

There's no filtering in that free Activity Feed plugin. You will need to write your own to do filtering. Start here: http://developers.facebook.com/docs

I don't know if its the same issue but it appears there are more people with the same issue.
https://developers.facebook.com/bugs/325192644188145/?browse=search_4f1e10ebdb8141869509439

Related

Custom placeholders in user story

I am trying to publish user stories on a facebook user's wall using graph api.
My use case is like this:
the user wrote an article that regards a specific community
I created one action 'writes' and two objects 'article' and 'community'.
The two objects have each their pages on my website, where I created all the corresponding meta data for open graph. Tested with the Open Graph Object Debugger and it looks fine.
Now I wanted to customize the way the story is shown.
The default sentence is for example
"[user] wrote [article.noun] via [appname]"
(brackets are there just to identify placeholders)
but I would like to include information about the community.
So what I did is add a property to the write action, called community that expects a reference to a community object.
Then I changed the sentence to:
"[user] wrote [article.noun] on community.title via [appname]"
via triboom demo"
but community.title is just treated as plain text and not as a placeholder.
Is there a way to tell FB to use the property value in the sentence?
I could not find any documentation on this.
TIA
s
Ok, just found out you need to use {object.property} syntax (doc is here https://developers.facebook.com/docs/opengraph/creating-custom-stories#variations)
Will investigate more and update the answer if it works.
Thank you very much for posting that!
How can the placeholders be referenced if there are more than one objects in the sentence? Like, for example, in the "One to Two" sentence:
"[user] wrote [article1.noun] and [article2.noun] on community.title via [appname]"
Please excuse for posting this as an answer. Unfortunately, I lack the reputation to comment.

Removing a video uploaded to the main page on Moodle 2.010

all,
I can't figure this out! I uploaded a video a very long time ago to this site and it still appears on the main page, and I can't find the file anywhere. Any ideas?
http://johnkomlos.com/moodle
On the left under 'Home' there is a link to 'Lily the dog test' that I can't seem to get rid of.
Thanks in advance.
I'm afraid I can't see any videos at the moment - So I assume you've fixed the issue. However, just for future reference of other users:
Your homepage is essentially a course list. The course list renders the description of the course. You probably inserted a video into a course's description.
To remove a video from said location, go on that course, and go to Course administration --> Edit settings.
Under the "Description" box, remove the video.
Your alternative option is to stop the theme from rendering the course's description as a whole. You will find that type of options under the "Appearance" list in Moodle's admin block.

How to download files from tx_news listView?

i'm currently working on a TYPO3 6.2 site using tx_news.
My goal is that a user can use the listView directly to download a related file, like it was possible in TT_news with type download.
The problem is in TX_news is only type news, internal page, external page available.
I dont really want to extend news that much to generate a new news type.
I got two possible solutions:
Use external page as link to file
Problem:
I dont really want the user to type the external file link
into these fields, since its a bigger project with many files.
Use sys_category and link the "more" field to related file
Problem:
I need a hardcoded check in the template files for the "File
Download Category" UID. What if this changes, or in a year some new
people need to maintain this.
This is possible with some template like this, but as is said before, this is an ugly hardcoded check in a template file:
<f:for each="{newsItem.categories}" as="category" iteration="catIterator">
</f:for>
Any help is very appreciated, if someone knows a better, cleaner solution.
To clarify: With 'listView' you mean a list of news items?
If so,
You could add a TemplateLayout to display only the URLs of the related files.
tx_news provides the news type "Internal Link", too.
With this type, it is possible to create a direct link to a file (on your webspace), page, folder or email.
HTH.

How do you change the look of Google Custom Search search results?

I'm creating a Google Custom Search results engine for my website, and it has these borders around each result, I want to change the results (styling, and html if possible). How can I do this? Please help.
You usually can't style things like this, as they're located within an iframe that's not hosted on your domain. I did, however, find a doc on this subject:
https://developers.google.com/custom-search/docs/ui_xml?hl=en

Converting content pages to tt_news (Typo3)

On a website, I have a section where I put a new page every week. I'd like to convert this to a system using tt_news. How do you suggest me to import the pages (more than 100 pages) to tt_news? Can I do it using a simple SQL query, or should I write a custom PHP script to perform the importation? Is there already an extension that exists that could help me performing this task?
It doesn't really matter to me if I simply build news liked to existing pages, or if I transfer the content of the page to the content of the news. It would be great if I can convert the page title to the news publish date, but I could use the page publishing date as well.
What do you suggest for performing this task?
I would do it via SQL as you mentioned already. Could get tricky if you have multiple content-elements per page that needs to be merged into one tt_news-dataset.
You could also install an extension, that links tt_content-elements with tt_news-records. This way you only have to insert the tt_news-records by traversing the pages and link the content per page to the new tt_news-record. Here are some extension, that link tt_news with content-elements:
ttnews_irre
aba_ttnews_content_con
Here is also an extension that could be worth a look: content2news.
Hope this is useful to you.
Best regards,
Peter