Umbhali weWordPress: Yongeza iKhonkco leProfayile yokuHlela ukuba ungene

logopress logo

Ndifuna ukuhlaziya indawo yeWordPress kwaye ndongeze icandelo 'Malunga noMbhali' phantsi kwazo zonke iiposti. Kwakunzima kancinci kunokuba ndicinga- kwaye ifuna inkqubo engaphezulu, kodwa nantsi into yokuqala yokusika:

Umbhali: Indawo yeWebhusayithi: Malunga:

Emva koko, ndiye ndakhangela ukuze ndibone ukuba umntu othile ungene kweli kwaye ubonise ikhonkco lokuHlela leProfayile ukuze umntu acofe ngokulula kwaye ahlaziye ulwazi lwabo (ndayihlaziya le posi… uluvo olukhulu kunye nombuzo ovela ku-Ajay!):

">Hlengahlengisa iprofayile yakho

Ndongeze i iklasi = "umbhali" kwiphepha lesitayile ukuyenza ibonakale intle nayo.

Ndingathanda ukucoca ikhowudi ukuba ingabonisi idilesi okanye ulwazi ukuba akukho nanye; Nangona kunjalo, ndicinga ukuba kuya kufuneka ndibhale imibuzo eyiyo kwiziko ledatha loku. Qaphela ikhonkco "Hlela iProfayile" lisongelwe yinkcazo ukuba iya kubonisa kuphela ukuba umsebenzisi ungene ngemvume. Ndacinga ukuba yinto entle, ke ndifuna ukwabelana ngayo nawe xa ufuna ukuyisebenzisa!

11 Comments

  1. 1
  2. 2

    Molo Ajay!

    Andifuni ukubonisa ikhonkco lokuHlela leProfayili ngaphandle kokuba umntu othile ungene ngaphakathi. bangene.

    Ngamanye amagama - ukuba ungene ngemvume, ubona ikhonkco ukuhlela iprofayili. Ukuba awukho, awuliboni ikhonkco.

    Doug

  3. 3
  4. 4
  5. 5
  6. 6

    Molo Doug,
    Ndibuza nje ukuba uyazi ukuba ndingayisebenzisa njani le nto kuxhomekeke kumsebenzisi ongene ngemvume?
    Ke ukuba umsebenzisi ungene nguJohnSmith uyakubonisa 'A' kwaye ukuba umsebenzisi ungene ngemvume nguBillBob uyakubonisa 'B'?

    Enkosi!

    • 7

      Molo Mike,

      Ndiqinisekile ukuba umahluko $ user_id uya kubuyisa eyona ID yomsebenzisi kwicandelo labasebenzisi kulawulo. Ke unokukwazi ukwakha ingxelo yetyala ukuba unengqondo….

      if ($user_id=="1") { echo "Doug"; }

      Khange ndikuvavanye oku kodwa ndiqinisekile ukuba kuya kufuneka ubeke ngaphakathi komxholo we-get_currentuserinfo.

      Doug

  7. 8
  8. 10

    Molo Doug. Enkoso ngokwabelana. Ngelishwa, le khowudi ayisebenzi kum:

    Hlela
    profayile

    Ndisebenzise le khowudi ingezantsi endaweni yoko. Xa umsebenzisi ungene, "iProfayile yam" iya kubonisa. Xa kungekho mntu ungene ngemvume, "Yenza iAkhawunti" ivela.

    <? php ukuba (ngu_user_logged_in ()) {
    fumana_currentuserinfo ();
    isandi ('Iprofayile yam');
    }
    enye {
    isandi ('Dala i-akhawunti');
    };
    ?>

    Ndifuna nje ukwabelana xa omnye umntu eyifuna. Remove Nceda ususe isithuba phakathi ko “<” no “?” ukuze ikhowudi isebenze.

  9. 11

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.