Thread Rating:
  • 304 Votes - 2.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to break the link between Ftrfc and the posts?
06-19-2009, 10:14 PM
Post: #1
Information How to break the link between Ftrfc and the posts?
Bonjour everybody,
my problem is the following: I want to use featurific (who wouldn't) but I don't want it to link to the post it displays (the concerned posts are short enough to fit in totality in the boxy template) when the "box" is clicked.
Actually, I don't want it to be clickable.
My question is: how?

Merci beaucoup everybody for your answers
06-23-2009, 06:36 AM
Post: #2
RE: How to break the link between Ftrfc and the posts?
Hi Ewen,

This is actually really easy! It does, however, require editing the template.xml file. Simply remove the url attribute from line 40 in plugins/featurific-for-wordpress/Boxy/template.xml. The line in question begins with '<screen url="%url%"...'.

Once you're done removing the 'url' attribute, you should be left with something like the code shown below. (entire file included)
Good luck! Smile
-Rich


Code:
<data>
    <!-- IMPORTANT NOTES:

        * When upgrading the Featurific for Wordpress plugin, changes to your templates **will be overwritten**.  To avoid
            losing your changes, save your modified templates before upgrading the plugin.  Then, upgrade the plugin, and
            finally, restore your modified templates.

        * Featurific for Wordpress generates the data*.xml file every x minutes (e.g. 10 minutes by default).  The next time
            the data*.xml file is generated, your changes to this template will be visible.  However, if you wish to see your
            changes more immediately, access the Featurific Settings page (Settings->Featurific), and hit the "Update Options"
            button at the bottom without changing any of your settings.  Doing so forces a regeneration of the data*.xml file,
            so you can see the result of your modifications immediately.
    -->

    <!-- Notes about this template.  Use any HTML you like, but use '[' and ']' to define your tags.  (e.g. [h4]Notes[/h4])  To use the literals '[' and ']', use '[' and ']', respectively. -->
    <notes>
        A small gallery suitable for sites low on screen real-estate.  Works well in a sidebar.[br/]
        [b]Optional[/b] custom fields available for post-specific override:[br/]
            [ul]
                [li]url
                [li]screen_duration
                [li]image_1
                [li]post_title
                [li]post_excerpt
                [li]categories
            [/ul]
            [a href='http://featurific.com']Designed by Rich Christiansen[/a].
    </notes>

    <size width="150" height="200"/>
    
    <controlpanel>
        <button type="play"/>
        <button type="pause"/>
        <button type="previous"/>
        <button type="next"/>
    </controlpanel>


    <screen duration="%screen_duration%" transition="fade">
        <!-- Main image.  Note that we use the 'max' resize type so that the image is guaranteed to fit in the display area. -->
        <image filename="%image_1%" x="0" y="0" width="150" height="200" resizetype="max"/>
        <default name="image_1" value="templates/common/boxyDefault.jpg"/>
        
        <!-- Lighter grey portion, behind text.  Note that this lighter grey portion is listed *after* the main image.  This will cause the main image to be cropped by the lighter grey portion.  This is necessary since we're using the 'min' resize type on the main image. -->
        <image filename="templates/common/greyF5.png" x="0" y="0" width="150" height="200" resizetype="exact" animatefromx="1500" animatefromy="0" animationspeed="5"/>
        
        <text x="5" y="0" width="140" animatefromx="1500" animatefromy="0" animationspeed="5">
            <line fontsize="14" fontstyle="bold" fontcolor="black" text="%post_title%"/>
            <line fontsize="10" fontcolor="black" text="%post_excerpt% (Read More)..."/>
            <line fontsize="8" fontstyle="bold" fontcolor="black" text="Posted in: %categories%"/>
        </text>
    </screen>

</data>
Find all posts by this user
06-23-2009, 08:46 PM
Post: #3
RE: How to break the link between Ftrfc and the posts?
Hi !
I feel a bit ashame, it looks so simple.
Merci beaucoup for the solution, believe me, it'll help!

Ewen

ps: Featurific rocks
06-24-2009, 04:48 AM
Post: #4
RE: How to break the link between Ftrfc and the posts?
Ewen,

Don't be ashamed - thanks for asking! Smile

Good luck with Featurific,
-Rich
Find all posts by this user
07-10-2009, 04:13 AM
Post: #5
RE: How to break the link between Ftrfc and the posts?
Hi Rich,
I'm one of the many happy users of your useful plugin.
It's a bit of time that I don't do any modification...
Just a question and, consequently, a little help:
I remember time ago that, of course (like over here), clicking on your box I should go on the relative post ...
But now this doesn't happen and I want it (just the contrary of Ewen).
I have, of course, the last version of WordPress and of your Plugin and everything is OK (no conflicts)...
(and I didn't understand exactly your answer above: I din't find the file template.xml)...
Can you help to understand HOW to solve my problem?
My blog is http://www.scuolapereroi.it.
Thank you very much for your kindness.
Bye
Elo ;-)))
07-10-2009, 08:05 AM
Post: #6
RE: How to break the link between Ftrfc and the posts?
Hi again, Elo!

I can see what you're talking about - when I click on Featurific, a new page loads, but the target post/page is not found (resulting in a 404 error). Regarding the entries that result in the error: are they pages or posts? It seems (from my brief investigation) that they are posts - something we haven't tested in Featurific.

Regardless, to fix this issue, you could always use the custom field functionality. For the screens that are broken, define a custom field on the post/page. The custom field you should define is 'url', and should contain the url (relative or absolute should work) to the post/page on your website.

Hope this works for you! Smile
-Rich
Find all posts by this user
07-10-2009, 07:17 PM
Post: #7
RE: How to break the link between Ftrfc and the posts?
Hi Rich,
(thank you for your fast answer)
... Oppsss, They are Posts... I don't remember if your Plugin works (better) with Pages or Posts...
Anyway, about your last Advice, I didn't understand very well...
What do you mean, exactly, for "custom field"? I never did it...
I found (in WordPress), creating a Post, under the text field, the voice "Custom fields"... I imagine that I have to use this option...
If so, I tried to create a filed named "url" and with the value "http://www.scuolapereroi.it/?p=1488" (the url of the Post) or "http://www.scuolapereroi.it/?page_id=170" (the url of the relative Page), but it doesn't work...
What do I make wrong?
How can I solve the problem?
Like I told you (in the past) I'm not an expert...
Thank you again for your Patience...
Have a Nice day.
Bye
Elo ;-)
http://www.scuolapereroi.it
07-14-2009, 03:23 AM
Post: #8
RE: How to break the link between Ftrfc and the posts?
Hi Elo,

Thanks for your response! Also, sorry for the typo - When I said that we hadn't tested Featurific with posts, I *meant* to say that we haven't tested it with *pages*. Posts should work fine.

The problem seems to be this:

Featurific is linking to pages in this format:
http://www.scuolapereroi.it/?p=1488

When really, it seems that the pages are accessible via this format:
http://www.scuolapereroi.it/?page_id=170

Do you know why this could be the case? My guess is that you have a plugin installed that is modifying the URLs used to access posts, so the default Wordpress URLs (which Featurific is using) are no longer valid.

-Rich
Find all posts by this user
07-16-2009, 05:31 AM
Post: #9
RE: How to break the link between Ftrfc and the posts?
Hi Rich,
sorryyy...
You're right. Unlucky, with the Plugin Advanced Category Excluder, I switch off the Category of the Posts included in Featurific, so it was impossible to go to the relative Posts.
I "adjusted" the function, so now everything is OK.
Thank you very much for the advice/solution.
Have a nice day and a good job.
Bye
Elo :-)
07-16-2009, 06:04 AM
Post: #10
RE: How to break the link between Ftrfc and the posts?
Hi Elo,

Glad everything is working again! Smile

Have a great day,
-Rich
Find all posts by this user


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Can I display page excerpts rather than posts? SurfsideMike 0 4,700 11-03-2011 06:00 AM
Last Post: SurfsideMike
  Bad linking to posts Normaeon 5 4,734 05-20-2010 07:57 AM
Last Post: rinogo
Question Show custom posts as well as most recent posts bustherh 1 2,903 03-03-2009 05:11 AM
Last Post: rinogo
  specific posts to be shown Guest 3 3,452 01-20-2009 04:50 PM
Last Post: rinogo

Forum Jump:


User(s) browsing this thread: 1 Guest(s)