Panel
PowerQA is a state of the art discussion software that makes online discussions fun. It's simple, fast, and powerful.
0 votes
QA 2,441 views

How to make a link image on every answer page ?

Hi,
is it possible to create link to all answer pages the link should be on images ?
Here i given my reference please go through
http://prntscr.com/jbktx9
please Guide me to complete this task ?
i'm waiting for your quick reply
thanks
by nijamutheen060 asked Apr 30, 2018 in Themes

Please log in or register to add a comment.

Please log in or register to answer this question.

1 Answer

Fighter
webmaster
+1 vote
  1. How to make of my-layer plugin.
  2. Overload function inner qa-my-layer.php

public function post_meta($post, $class, $prefix = null, $separator = '<br/>') {
    ob_start();
    qa_html_theme_base::post_meta($post, $class, $prefix, $separator);
    $html = ob_get_clean();
    if($class == 'qa-a-item') {
        $lastspan = strrpos($html, '</span>');
        if($lastspan !== false) {
            $addtags = '<img class="qa-a-item-img" src="http://your-site/?qa=blob&qa_blobid=????" width="??" height="??"/>';
            $html = substr($html, 0, $lastspan).$addtags.substr($html, $lastspan, strlen('</span>'));
        }
    }
    $this->output_raw($html);
}

image

by webmaster answered Aug 16, 2018
by webmaster edited Aug 16, 2018

Please log in or register to add a comment.

Welcome to PowerQA. PowerQA is a new discussion software (not OSS). Here is a community for PowerQA developers. Current stable version is V1.9.4. It is enhanced day by day.

Statistics

  • 338 questions
  • 276 answers
  • 480 comments
  • 100 users

Post types

...