WordPress: Duba idan Mai amfani ya Shiga ciki

John Chow yana da kyakkyawar sanarwa a shafinsa a yau akan sanya hanyar haɗin talla akan rukunin yanar gizon ku da kuma tabbatar da cewa ba a sanya shi ta amfani da nofollow ba. Kuna iya yin wannan tare da sauƙin sauya shafi wanda John ya sanya lambar don.

Ina so in yi wannan ɗan bambanci. A cikin menu na kwance na sama, ƙasa tana kan farashi. Ina da hanyar haɗin adireshin a wurin idan na shiga… amma ga kowa da kowa, wannan wuri ne mara kyau. Na yanke shawara, me zai hana musanya abubuwan wannan sandar a yayin da yake bako ne ba ni ba? Tare da WordPress, wannan abu ne mai sauki:


samu_currentuserinfo ();
duniya $ user_level;
idan ($ user_level> 0) {
wp_register ('> li class = "menuitem">', '> / li>');
} da {
amsa kuwwa "> li class = 'menuitem' >> a href = '/ go / tla.html' title = 'Yi Talla a Wannan Gidan yanar gizon'> Tallata> / a >> / li>";
}
?>

Ban yi tsaba ba tare da Rubutun Link Text duk da haka amma ina so in bashi kyakkyawar harbi. Ba shi da tsada sosai don rukunin yanar gizo na 35 $ 500 kowace wata kuma ina samun sama da baƙi XNUMX a rana. Ina fatan yin hidimar wasu daga waɗannan!

5 Comments

  1. 1

    Kyakkyawan ra'ayi!

    Kodayake zan yi amfani da hanyar haɗin yanar gizon da yake nunawa - yanzu tana tambayar ku cikakken bayanan ayyukanku. Ba irin shafin da nake so a gaishe ni ba, idan ni mai neman talla ne 😉

  2. 3

    Tabbas wannan lambar lambar zata fi dacewa kuma tana da irin wannan sakamako?

    /* If a browser has a user ID they must be logged in */
    if ( $user_ID ) :
    echo "I am logged in";
    /* For everybody that doesn't have one */
    else :
    echo "I am logged out / not logged in";
    endif;

  3. 4
  4. 5

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.