WordPress: Khij Yog Tus Neeg Siv Nkag nkag mus

John Chow muaj qhov qhia zoo rau ntawm nws lub xaib hnub no ntawm kev tshaj tawm cov ntawv tshaj tawm ntawm koj lub xaib thiab xyuas kom nws tsis tau siv index nofollow. Koj tuaj yeem ua qhov no nrog cov nplooj ntawv xa khoom yooj yim uas John tau tshaj tawm tus lej rau.

Kuv xav ua qhov no txawv me ntsis. Hauv kuv daim ntawv qhia kab rov tav saum toj saud, cov peev txheej yog nyob ntawm tus nqi. Kuv muaj ib qhov txuas admin nyob ntawd yog tias kuv nkag rau… tab sis rau txhua tus neeg, uas yog qhov chaw khoob. Kuv txiav txim siab, vim li cas thiaj tsis pauv cov ntsiab lus ntawm qhov bar ntawd hauv qhov xwm txheej nws yog tus qhua thiab tsis yog kuv? Nrog WordPress, qhov no yooj yim zoo nkauj:


get_currentuserinfo ();
ntiaj teb $ user_level;
yog ($ user_level> 0) {
wp_register ('> li chav = "menuitem">', '> / li>');
} Lwm {
echo "> li chav = 'menuitem' >> ib href = '/ mus / tla.html' title = 'Tshaj rau ntawm lub Vev Xaib no'> Tshaj tawm> / a >> / li>";
}
?>

Kuv tsis tau ua ib dime nrog Ntawv Txuas Txuas Tshaj Tawm tsis tau tab sis kuv xav muab nws zoo. Nws yog qhov zoo nkauj pheej yig rau kuv lub xaib… $ 35 toj ib lub hlis thiab kuv tau txais ntau tshaj 500 tus neeg tuaj saib ib hnub. Kuv tos ntsoov yuav pab qee qhov no!

5 Comments

  1. 1

    Cov tswv yim zoo!

    Txawm hais tias kuv xav Kuv yuav rov kho qhov txuas nws taw rau - tam sim no nws nug koj rau koj lub cav-cov ntsiab lus. Tsis yog hom nplooj ntawv kuv xav kom tau txais tos nrog, yog tias kuv yog tus tus tshaj tawm yav tom ntej er

  2. 3

    Muaj tseeb qhov daim ntawm no yuav ua tau zoo dua thiab muaj cov txiaj ntsig zoo sib xws?

    /* 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

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.