WordPress Plugin: PostPost (Hloov Kho)

hloov tshiab: Qhov Plugin no tau pauv mus rau Kuv Cov Haujlwm Nplooj Ntawv thiab hloov kho rau:

PostPost - WordPress Plugin muab cov ntsiab lus customized ua ntej thiab tom qab txhua tus ncej hauv koj lub xaib lossis koj qhov chaw pub mov.

Kev Xaiv Kom Ncauj Lus Sib Pauv

I wrote this plugin after trying to add advertising to my feed by myself and getting frustrated. It's my first ‘complete' plugin but I think it's written very cleanly. I really figured out the Plugin architecture utilizing Simple Thoughts' Copyright PluginCov. Kuv siv qhov kev tsim kho ntawm Ryan Duff's WP Contact Form plugin to write it much more constructively. It's an excellent plugin to download and learn how to write a plugin since it's so simple.

24 Comments

  1. 1

    Doug - Nov yog txaus. Kuv tau sau tawm ntawm kuv tus kheej hauv kev cia siab ntawm lwm tus ua nws. Kuv tsis yog khiav kev tshaj tawm, tab sis kuv npaj tias muaj qee yam khoom noj tsuas yog yuav los. Qhov no yuav zoo tag nrho. Ua tsaug!

    • 2
    • 3

      Tony,

      Tsuas yog ib qho FYI, Kuv rov sau dua lub plugin thiab tau muab tso dua. Tus thawj yog zoo, tab sis cov txawj tej yam ntxiv muaj ib tug tag nrho admin interface rau nws! Kuv twb reposted cov ncej no thiab.

      Doug

  2. 4
    • 5

      Tias nws yog! Nws yog ib qho ntawm kuv lub hom phiaj rau 2007 sau kuv tus kheej plugin los ntawm kos. Kuv tau hloov ntau lwm tus neeg cov plugins tab sis qhov no yog thawj zaug uas kuv tau coj mus. Tam sim no tau siv los ua kuv qhov Google Ads hauv txhua qhov kev tshaj tawm raws li kuv cov RSS pub tshaj tawm.

      Cov khoom lom zem… thiab 2 lub hom phiaj cia! (Ib qho ntawm kuv yog lwm tus tau nkag mus rau Saum 5,000 ntawm Technorati… Kuv ntaus qhov ntawd tab sis nws yog nrog kev pab ntawm ntau "Z-Sau" cov ntsiab lus, yog li kuv yuav tos cov stats ua hlau lawv tus kheej ua ntej kuv ua kev zoo siab) Cov.

      Cheers!
      Doug

  3. 6

    DOH! Kuv tseem pom tias nws tau nthuav tawm hauv cov nplooj ntawv tshaj tawm… yog li kuv tsuas yog hloov kho nws thiab tso tawm 1.1.1. Kuv xav tias qhov ntawd yog qhov tso tawm ceev! Tam sim no koj tuaj yeem hloov kho cov ntsiab lus ua ntej thiab tom qab nplooj ntawv.

  4. 7

    Ua tsaug rau qhov no, ib qho kev xav nrawm rau koj txawm tias - Kuv ntseeg tias Google AdSense tso qhov kev txwv ntawm 4 (5?) Cov ntawv tshaj tawm rau ib nplooj ntawv, yog li yog tias koj ntxiv AdSense code tom qab / ua ntej txhua qhov tshaj tawm, thiab koj muaj txoj kev xaiv kom ntau dua 5 posts saib ib nplooj ntawv, muaj tej zaum yuav yog qhov teeb meem.
    Tsis tau txhais hais tias yog kev yws, uas kuv tsis tau siv lawv ib zaug ntxiv (tshem tawm kuv tus account:

    • 8

      Kuv yuav tshawb xyuas txog Chris ntawd! Kuv sim ua 'cov khoom ua si' nrog lub tswv yim ntawm random, thiab nth tso rau cov no. Zoo li, Kuv yuav mus ua haujlwm hauv header thiab footer customization. Lub plugin tau sau zoo heev (Kuv 'qiv' lwm yam kev teeb tsa los ntawm lwm qhov zoo sau plugins) yog li kuv tseem yuav txuas ntxiv mus ntxiv.

      Tsaug!

  5. 9
    • 10

      Kuv tsis paub lawv yuav ua li cas Txoj Cai Nplooj yuav tsum muab los siv. Nws hais tias yuav muaj txog li 2 tawm ib cov khoom. Qhov ntawd yog qhov nthuav… piv txwv, Yog tias kuv muaj 8 kab ntawv (cov khoom) ntawm nplooj ntawv nrog Google Ad hauv qab txhua qhov, Kuv tsis xav tias kuv ua txhaum lawv txoj cai.

      Kuv tau pom qee cov kev cai qub uas nws tau hais 4 nyob rau ib nplooj - tab sis cov uas zoo li tau ploj mus ntev. Tej zaum vim muaj xwm txheej zoo li no. Nthuav! Kuv kuj pom tias qee zaum qhov tshaj tawm tsis tsim los ntawm tsab ntawv - Kuv xav paub yog tias lawv muaj lub nruab nrog kev tswj hauv cov ua hauv.

  6. 11
  7. 12

    Nyob zoo, rov qab los ntxiv. Ua tsaug rau koj tus e-mail, thov txim hauv kev siv sijhawm ntev los teb.

    Ib qho kev thov, thiab ob kab.
    Cov kab zoo yuav nyob hauv kuv lub ntsiab, Kuv tsis paub tseeb…

    1 - Nws puas tuaj yeem hloov qhov zaus ntawm cov ntawv tso tawm ntawm cov ntawv tshaj tawm - Kuv xav tias tam sim no kuv muaj ntau yam kev tshaj tawm ntawm kuv lub xaib:> Kuv tau xav txog qhov tseem ceeb ntawm qhov pib ntawm qhov no ntawm khib thiab txawm suav cov posts, tab sis kuv mam li paub tias tus lej xov tooj uas tsis tau xa ntawv tuaj yuav tsis rov qab siv hauv WP. Piv txwv li, koj sau cov qauv cua ntsawj ntshab, tshaj tawm ob peb lwm cov ntawv, ces rho tawm qhov ntawv cua. Tshwj tsis yog muaj lwm qhov laj thawj rau kuv cov post #s tsis raug tib lub sijhawm, koj yuav xaus nrog ib kab lus ib yam li 431,433,434. Tsis paub meej tias nws yooj yim npaum li cas rau kev tsim POST_AD_POST_POST_AD_POST_POST kev teeb txheeb, kev xav?

    2 - (XWB) Thaum saib cov kab txuas ntawm nias ntawm kuv Pawg, feem ntau cov ad code tsis tau txhais - qhov no tsuas zoo li tshwm sim ntawm cov ntawv luv. Piv txwv li, yog tias koj mus rau kuv lub xaib thiab nyem rau ntawm Pawg Duab, thawj peb tus kab ntawv tso tawm cov cai, tsis yog tsim tawm.

    3 - Tsis tshwm sim rau kev ua haujlwm thaum thov cov ntawv tshaj tawm nyob rau hauv tshooj ntawv.

    Zoo li kuv tau hais, cov teeb meem no yuav poob rau lub ntsiab lus Kuv tab tom siv (Anaconda, xyuas kuv lub xaib rau qhov txuas), Kuv tsuas yog cia siab cia siab kom tau txais koj cov lus qhia ntawm qhov no thaum koj tau txais lub sijhawm…

  8. 13

    Kuv yuav tsum siv cov ntawv tshaj tawm kev tawm, raws li ib tug xov tooj ntawm cov nyeem tau tawm tswv yim txog qhov pom ntawm cov ntawv luv thaum pom ntawm cov kab ntawv txuas.
    Yog tias koj tshwm sim los nrhiav 5/10 feeb spare, koj puas tuaj yeem tiv tauj kuv, thiab kuv yuav zoo siab rov tso cov code, yog tias koj xav paub zoo txog qhov teeb meem no.
    Tsaug.

  9. 14

    Kuv 'm guessing no ncej isn' t soj ntsuam ntau zaus?
    Kuv sim tshawb xyuas cov phiaj xwm nplooj ntawv, tab sis tsis pom sab lus, thiaj li xa koj ib pliag.
    Kuv tam sim no tsis siv kev tshaj tawm nyob rau hauv tib txoj kev, tab sis xav tias lwm tus neeg siv cov tseem yuav pom cov yam ntxwv uas kuv tau hais los saum toj no muaj txiaj ntsig.

  10. 16

    np, zoo siab koj tau pom cov lus. Puas yog koj tau txais e-mail piav qhia txog yuav ua li cas ntawm cov nplooj ntawv nplooj ntawv, cov kab lus Adverts qee zaum kuj tau txhais ua yam tsis muaj kev txhais? Tsis paub tseeb tias qhov ntawd yog li cas koj yuav tsum technically kab lus nws, tab sis hloov ntawm tshaj tawm, kuv yeej pom lub html rau nws hloov…
    Tsis maj maj thov ntawm kuv ib feem - Kuv fiddling nrog rau lwm yam kuv tus kheej tam sim no…

  11. 17

    Tawm PostPost 1.2.0 hnub no! Nws siv is_single muaj nuj nqi ntawm WordPress yog li koj yuav tsum tau tshaj tawm qee yam ua ntej lossis tom qab ib kab ntawv sau tawm.

    Kuv tsis tuaj yeem tau txais nws ua haujlwm ntawm kuv qhov blog, txawm hais tias. Kuv nyeem ntawm WordPress txhawb tias qee qhov lwm tus neeg muaj teeb meem nrog lawv cov template thiab is_single muaj nuj nqi. Nws tsis tsoo dab tsi, nws cia li tsis tso dab tsi.

    Qhia rau kuv paub yog tias nws ua haujlwm rau koj qhov blog, ho!

  12. 19

    Doug: zoo plug-in - luv luv & yooj yim. Kuv tab tom siv lub ntsiab WordPress tshwj xeeb (v 1.6) thiab xaiv "Tom qab Ib Leeg Tshaj tawm ntawm Nplooj Ntawv" tsis zoo li tsis muaj dab tsi tshwm sim.

    Koj puas tau daws qhov teeb meem is_single?

    • 20
      • 21

        Doug: ua tsaug rau cov lus teb ceev! Yog li, kuv twv kuv tau ua txoj haujlwm tsis zoo ntawm nug kuv cov lus nug. Kuv zoo li muaj qee qhov teeb meem nrog yuav ua li cas PostPost ua haujlwm nrog kuv cov blog tshwj xeeb nrog rau ib tus ncej tso saib kev xaiv.

        Tsis yog tias nws yog qhov tseem ceeb, tab sis kuv lub blog yog nyob ntawm:
        http://www.theaccidentalnegotiator.com/

        Nws zoo li koj thiab tus hais tawm (yog lo lus?) Tau tham txog qhov teeb meem no heev rov qab thaum pib ntawm 2008.

        Nws puas yog ib qho teeb meem tom qab ntawd? Puas Yog? Tom Qab Ib Qho Tshaj Tawm Ntawm Nplooj Ntawv? ua hauj lwm hauv koj qhov blog hnub no?

        Kuv zoo siab tshaj los ntawm kev lees paub tias kuv tau ntsia ib yam dab tsi, tab sis ua ntej kuv tsuas yog ntsuam xyuas seb txhua tus neeg puas muaj qhov teeb meem tib yam.

        Kuv tau saib koj cov cai thiab nws zoo nkauj & huv, yog li tam sim no kuv tab tom cem “is_single”.

        Qhia rau kuv paub li koj xav.

  13. 22

    Kuv tuaj los Doug,

    Kuv tabtom sim rau nruab PostPost plugin thiab nws ua haujlwm zoo. Kuv tso kev tshaj tawm tom qab ntawm txhua tus ncej tab sis kuv muaj teeb meem. Cov nce qib tau muab tso tawm hauv cov pawg / homepage uas kuv tau khaws cia ntau dua. Cov qib nce nyob rau tom qab NYEEM NTXIV txuas. Puas muaj ib txoj kev uas peb tuaj yeem kho qhov ntawd? Tsis pom tom qab NYEEM NTXIV txuas ??

    Tsaug koj pab.

    Chandra

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.