'previewUrl' => ($threadModel->hasPreview($thread) ? XenForo_Link::buildPublicLink('threads/preview', $thread) : '')
)
public function hasPreview(array $thread, array $forum, array $nodePermissions = null, array $viewingUser = null)
{
$this->standardizeViewingUserReferenceForNode($thread['node_id'], $viewingUser, $nodePermissions);
return
(
$thread['first_post_id']
&& XenForo_Application::get('options')->discussionPreviewLength
&& $this->isRedirect($thread) == false
&& XenForo_Permission::hasContentPermission($nodePermissions, 'viewContent')
);
}
Hm, bad that you're using threads instead of an own content type for this
hasPreview needs at least the second parameter param
That's great, yeah you made a good start and I wish you good luck.That's what I will be aiming for... getting the system in place was a start,
It needs some re-styling, I love the look of that review/directory, it's certainly given me some ideas.
Thanks..
Instead of an email address, what about a link to a pop-up contact form (to contact them on the forum)
Minor update: XenKingDir_v1.0.5
I've added the contact link (its a contact link to the owner of the thread, so it assumes the content creator is the business owner)
We use essential cookies to make this site work, and optional cookies to enhance your experience.