Panel
0 votes
QA 218 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.

...