Jump to content
moviesdir

Replace "Download" and "Watch Online" with Server Name in post links

Recommended Posts

Open /wp-content/themes/dooplay/inc/doo_links.php

Find:

$fico = DOO_GICO.$doma;


Add After:

$domn = ($type == __d('Torrent')) ? 'Torrent' : doo_compose_domainname($murl);

 

 

Find:

$out .= "<td><img src='{$fico}'> <a href='{$link}' target='_blank'>{$ltxt}</a></td>";

Replace with:

$out .= "<td><img src='{$fico}'> <a href='{$link}' target='_blank'>{$domn}</a></td>";

 

Your post links will look like this:

NK5Q5SI.png

 

lHJZlz6.png

Edited by moviesdir
updated to 2.2.3
  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
On 11/14/2017 at 8:44 AM, moviesdir said:
echo '<td><img src="'. DOO_GICO. saca_dominio($url). '"> <a href="'. $permalink. '" target="_blank">'. $type. '</a></td>';

 

replace with the same code??? 

Share this post


Link to post
Share on other sites
On 11/14/2017 at 4:44 PM, moviesdir said:

Open /wp-content/themes/dooplay/inc/doo_init.php

Find:

$permalink	= get_permalink( $p->ID );


Add After:

$domain = str_ireplace('www.', '', parse_url(dt_post_meta( $p->ID, 'links_url' ), PHP_URL_HOST));

 

 

Find:

echo '<td><img src="'. DOO_GICO. saca_dominio($url). '"> <a href="'. $permalink. '" target="_blank">'. $type. '</a></td>';

Replace with:

echo '<td><img src="'. DOO_GICO. saca_dominio($url). '"> <a href="'. $permalink. '" target="_blank">'. $domain. '</a></td>';

 

Your post links will look like this:

NK5Q5SI.png

 

lHJZlz6.png

Still work with dooplay 2.2.3 ??

Edited by Akai

Share this post


Link to post
Share on other sites
14 hours ago, Arlin360 said:

@Akai hola, he buscado ese código y no doy con él... si podría compartir las líneas en la cuales lo encontró...

i am sorry.. i am asking if this code work with latest dooplay

Share this post


Link to post
Share on other sites
16 hours ago, Arlin360 said:

@Akai hola, he buscado ese código y no doy con él... si podría compartir las líneas en la cuales lo encontró...

 

2 hours ago, Akai said:

i am sorry.. i am asking if this code work with latest dooplay

I just updated the first post. Please check again. :)

Share this post


Link to post
Share on other sites
On 12/26/2018 at 4:27 AM, moviesdir said:

 

I just updated the first post. Please check again. :)

thanks for the code... 

 

Share this post


Link to post
Share on other sites
On 11/14/2017 at 4:44 PM, moviesdir said:

Open /wp-content/themes/dooplay/inc/doo_links.php

Find:

$fico = DOO_GICO.$doma;


Add After:

$domn = ($type == __d('Torrent')) ? 'Torrent' : doo_compose_domainname($murl);

 

 

Find:

$out .= "<td><img src='{$fico}'> <a href='{$link}' target='_blank'>{$ltxt}</a></td>";

Replace with:

$out .= "<td><img src='{$fico}'> <a href='{$link}' target='_blank'>{$domn}</a></td>";

 

Your post links will look like this:

NK5Q5SI.png

 

lHJZlz6.png

work like carm

can we change text tab download torrent watch online ?

i like to change High quality, medium quality, low quality 

Edited by Akai

Share this post


Link to post
Share on other sites

×
×
  • Create New...