Jump to content

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


moviesdir

Publicaciones recomendadas

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

Editado por moviesdir
updated to 2.2.3
  • Like 1
  • Thanks 1
Enlace al comentario
Compartir en otros sitios web

  • 7 meses más tarde...
  • 5 meses más tarde...
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 ??

Editado por Akai
Enlace al comentario
Compartir en otros sitios web

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. :)

Enlace al comentario
Compartir en otros sitios web

  • 2 meses más tarde...
  • 3 semanas más tarde...
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 

Editado por Akai
Enlace al comentario
Compartir en otros sitios web

×
×
  • Crear nuevo...