Forums

Conditionl sidebar link according to post content or plugin (7 posts)

  1. keko
    Member
    Posted 9 months ago #

    Hi.
    I'm trying to have some links in my sidebar, with some "standard" actions available to all posts: print, share, comment, and podcast. Print is just some javascript, and a print.css stylesheet. Share is the AddThis plugin, and Comment is just an anchor.

    The thing is that not all my posts have (nor will have) a podcast, so I'd like to have some kind of conditional, so the podcast href's appears only if there is a podcast in my post. I'm using podpress to manage podcasts.

    Thanks!

  2. asechrest
    Member
    Posted 9 months ago #

    Maybe try the Widget Logic plugin?

    Check the Other Notes section on the plugin page to see examples of uses.

    You can force a widget to only appear under certain contiditions, including only if certain Categories are used or if you're on a certain page.

    I guess this would only work if the "links" you're speaking of are contained within a widget.

  3. apljdi
    Member
    Posted 8 months ago #

    keko,

    You'll have to flag your posts somehow, probably with a Tag like 'haspodcast'. Then build your switch around that tag by searching the $post variable.

    Or store your anchor as a custom field when the save the post, then echo it if it exists.

  4. keko
    Member
    Posted 7 months ago #

    Thank you both.

    I think I'll geti it right from that starting point. It's a good idea to use a custom field.

  5. johnwar
    Member
    Posted 4 months ago #

    Thanks keko, I'll follow your idea and I decided not to use the popular post plugin any more, toomuch loads.

  6. wearitwell
    Member
    Posted 4 months ago #

    I also like this Plugin:
    http://wordpress.org/extend/plugins/contentboxes/
    It's really worth a try.

  7. haniiif
    Member
    Posted 4 months ago #

    Please somebody Help to niewbie! Sorry for My english !!!

    I have problems with Integrating Wordpress and phpBB with using wp united... I have done installation without errors! but when I am on my forum when I log into it via admin I can log in but when I click on SHOW ALL FORUMS ! (http://my site/forums/index.php) I get this ERRORS

    [quote]
    Warning: require() [function.require]: Unable to access ./wp-blog-header.php in /mounted-storage/home99b/sub003/sc62140-NYVU/my site/forums/index.php on line 17

    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /mounted-storage/home99b/sub003/sc62140-NYVU/my site/forums/index.php on line 17

    Warning: require() [function.require]: Unable to access ./wp-blog-header.php in /mounted-storage/home99b/sub003/sc62140-NYVU/my site/forums/index.php on line 17

    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /mounted-storage/home99b/sub003/sc62140-NYVU/my site/forums/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/share/php5/') in /mounted-storage/home99b/sub003/sc62140-NYVU/my site/forums/index.php on line 17[/quote]

    I dont know why and where my problem is ,because I dont know where and what i have to change !!! PLEASE HELP ME !!!

    And one more probleme with theme see the FULL foto below,I have done NOT FULL integration (just head and foot!!!) but I think it is sidebars causing this problem???And how to solve this problem? in which file what i have to remove or add ??? please step by step...

    [url=http://img32.imageshack.us/i/problemlhz.jpg/][img]http://img32.imageshack.us/img32/9066/problemlhz.jpg[/img][/url]

    And is it possible to make that After when i will finish with problems on my site,that if I post a new article that Automatically will make the same topic on forum with possibility to discuss it??? If yes how can I do it??? and can it also Automatically creaty the topics WHERE IT MUST BE,noT just in one place of the FORUM ??? I mean if I post a video that it goes straight to the video Forum ? and if I post news it goes to the news forum? and so on ??? Please HELP ME TO SOLVE THIS PROBLEMS !!!

    THANKS IN ADVANCE !!! sorry for my English

Reply

You must log in to post.

About this Topic

Tags