![]() |
Problem with showing album link in postbit
I am using THIS mod to try and get a link to show in postbit/postbit legacy if a user has any albums. However, as written the mod does not work for me (3.8.1 PL1). The mod author is not about so I am trying to fix it myself.
The problem is that this conditional is always returning false: Code:
if (!empty($post['hasalbum'])) The sub query being used at hook location showthread_query is this: Code:
$hook_query_fields .= ",album.userid as hasalbum"; |
Try looking at your error_logs and seeing if there is something in there about the query.
|
Thanks Lynne, no, nothing at all in there.
|
Where are you doing the condition? Are you sure the query is done before that plugin?
|
Quote:
|
I believe in postbit_display_start you need to use $this->post, not $post.
|
Either will work, they are one and the same (by-ref).
|
Thanks...but still not working.
Got me baffled this... |
I just tested this on my test site and it works just fine. Are you sure you have an up-to-date postbit (or postbit_legacy) template that has the correct template_hook for it to show?
|
Thanks Lynne....Yes, definitely. I know this because I have removed the conditional so that the code shows up for everyone, and it's appearing ok.
There are others in the mod thread saying it isn't working for them....I wonder if it's one of those mods that only works under certain server configurations. |
I looked at the code - there is nothing in there that would be server restrictive. It's an extremely simple straightforward mod. I read the thread and the users it wasn't working for were either not using 3.8.x or didn't have the template_hook. You could try turning off your other mods and seeing if it then works. Maybe you have another mod installed that is conflicting with this one.
|
Thanks Lynne. Rather than go through each mod (as I have loads), I focused instead on plugins that use showthread_query as I figured that had to be where the problem was.
And it turns out that Photoplog (which I have installed but no longer use, it's only there for people who still had pictures in it from pre-vB3.7) was the culprit. Photoplog uses the same hook for a similar feature and there must have been a conflict. I have disabled that and it works now. |
Hello.
Is it Possible to Apply this Same Concept of Plugins to Display on the Memberlist the Album Link Only For Users that Have Albums? :confused: What Code Changes Should I Make for it to be Done? :confused: I Send You My Best Regards. :) |
All times are GMT. The time now is 02:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|