Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Blog Post Linking plugin add link text before the beginning of the page
Avatar
Bruce Brown
Member
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 10:05 am

I installed the Blog Post Linking plugin and it does exactly what I want it to do, but it also does something I don't want it to do.

The link from the Post to the Forums appears twice on the Post's screen - once where it should, but also above the top of the page, in the left-hand corner.

When I change the settings so that the Forum link is no longer attached to the Post - either by de-activating the plugin or by disabling the plugin's Post-to-Forum link - the problem goes away.

It looks like there is some kind of php miscommunication between my theme (WP Look's "Daily Post") and the Blog Post Linking plugin, but I do not know nearly enough about php to try to figure it out myself.

Can you help?

http://www.commonsensereview.c.....test-post/

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 10:29 am

In the Forum admin - Components - Blog Linking do you have the 'Display blog post link above post content' turned on? Might try turning off if so and see if that takes care of it.

Avatar
Bruce Brown
Member
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 10:42 am

I've tried it both ways - link at the top, link at the bottom. No luck.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 25, 2012 - 3:50 pm

It rather sounds like your WP theme is making two calls to the WP content function (the_content) which would cause the filter on that function to be run twice. Do you know if this is the case?
It makes it a bit difficult as the blog linking routine checks the post ID so it is clearly receiving that twice.
I am going to need to think about this one as I don't see any obvious solution. Going to have to try and think of a devious one.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Bruce Brown
Member
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 3:58 pm

I really don't know enough about php to even completely understand your question, let alone answer it.smile

In a couple hours, when my son gets home, he might know what you're talking about, so I'll ask him.

Devious is fine with me.wink

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 7:28 pm

it might be worth a try also to go to forum - integration - page and permalink and play with the options for displaying multiple and within the loop and see if some combination gets you going...

Avatar
Bruce Brown
Member
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 7:40 pm

My son is at his house right now checking out the lead that Swordfish gave us. If he's not able to fix it, I'll try the integration settings. I'll let you know.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 7:55 pm

okay, just let us know... here to help...

Avatar
Bruce Brown
Member
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 8:10 pm

OK, my son messed with our php files for about an hour and couldn't come up with a fix.

So I tried every possible combination in the Integration settings. No luck there either.

Then I temporarily installed a different WP theme (Twenty Eleven) and the problem did not show up in that theme.

So it must be, like Swordfish said, that our theme is making two calls and we just can't find where that's happening.

I really don't want to go to a different theme, because I spent a lot of time tweaking the css on this one to make it like I want it.

I'm probably not asking this right, but do you know the name of the WP command for "remove filter"? Or do you have a guess what php file(s) we need to mess with and what messing we need to do?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 25, 2012 - 8:27 pm

first see if you can find the theme using 'the_filter' without quotes in an apply_filters function call...

if you want to remove a filter, just call remove_filter('filter_name', 'callback', $priority)  where priority if the priority of the filter being removed... if its default priority, ie 10, you can just omit the third argument...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625