Panel
0 votes
QA 146 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 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
by webmaster edited Aug 16

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.8.6. It is enhanced day by day.

Statistics

  • 333 questions
  • 272 answers
  • 465 comments
  • 91 users

Post types

...