Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
erick485
tagDiv Member

Works perfectly!

Thank you very much!

erick485
tagDiv Member

Thank you Simion,

I want to display the via not the source. Which code should I use to display the td_via and td_via_url ?

I know that I will have to modify it in each update, but my client needs it.

Thank you!

erick485
tagDiv Member

Hi Simion,
Thank you very much for the info.
I actually made it work inside the tdb_module_loop.php and the page displays the Source.

I added this function:

function get_source_and_via() {
        $buffy ='';
 
        //via and source
        if (!empty($this->td_review['td_source']) && !empty($this->td_review['td_source_url'])) {
            $source_url = $this->td_review['td_source_url'];
 
            $buffy .= '<div style="margin-top:10px;" class="td-post-small-box"><span>' . __td('SOURCE', TD_THEME_NAME) . '</span><a rel="nofollow" href="' . esc_url($source_url) . '">' . $this->td_review['td_source'] . '</a></div>';
        }
        return $buffy;
    }

How can I display only the via and not the source?

Thank you!

  • This reply was modified 7 years by erick485.
erick485
tagDiv Member

Wow, you are amazing! Thank you very much!

erick485
tagDiv Member

Thank you Simion!

Worked like charm!

erick485
tagDiv Member

Hi Simion,

Thank you for the reply.

I am aware that the title will break given the available space and module, but my question is if I can make it manually. For e.g. if my post title is “Sentence 1. <br> Sentence 2.” it will be shown on the module as:
Sentence 1.
Sentence 2.

erick485
tagDiv Member

Amazing!

Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)