Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 4 of 4

Thread: vBaffiliate Links (Replacement Words In Posts) mod

  1. #1

    Default vBaffiliate Links (Replacement Words In Posts) mod

    Hi guys,

    there is a little mod vBaffiliate Links (Replacement Words In Posts) in vb.org


    it is similar function like admincp --> Styles & Templates --> Replacement Variable Manager feature. but this mod only replacing word that we want in Post, not in entire page like Replacement Variable Manager feature





    i am using that mod to replace a list of words with a list of links i define

    example to replace this word :

    text1

    to have link like this

    <a href="http://www.site1.com">text1</a>






    but the problem, in translated page, the word text1, are translated first by vbet to be text2, and still have the link to http://www.site1.com

    so like this

    <a href="http://www.site1.com">text2</a>

    its should be text2 word (that translated word), not linked to http://www.site1.com too, but to another link that i set, for example to http://www.site2649.com, or that word no need to replacement because i am not set it to any link





    so maybe i need the vbet translated the post first, then the mod replacement the word, right now i think it is the opposite. If my explanation above still not clear please let me know

















    Here are vBaffiliate Links plugins screenshot






    How is it guys, can i purchase another integration service again for this little mod?

    Btw the other integration service (Zoints local mod pages) are still pending, maybe just few weeks again Michał work on it, i am not in hurry with that integration, i need this vBaffiliate Links mod integration in few days if you can, will purchase new integration service
    Last edited by basketmen; 30-03-11 at 21:44.

  2. #2
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    you can change the execution order in global_start hook to for example 1001.
    in admincp->plugins->global_start hook.

    Why are you think that <a href="http://www.site1.com">text2</a> is not ok?

  3. #3

    Default

    kamilkurczak, can you help me which are the correct code that vbet using

    i want to wrap a plugin in screenshot above, that using postbit_display_complete hook, with if statement if this default language, so this plugin only working in default language pages, which one that working and better below?



    if (!$_REQUEST['language'])
    {
    }


    if (!isset($_REQUEST['language']))
    {
    }


    if ((!isset($_POST['language'])) || (empty($_POST['language'])))
    {
    }


    i ask about this in few forums too
    How to write false $_REQUEST, please help - Web Hosting Talk
    How to write false $_REQUEST, please help - Webmaster Forum












    also what is the correct code for if conditional from each translated language, is this already correct?


    if ($_REQUEST['language'] == 'de') {
    }
    i learn from this thread http://www.vbenterprisetranslator.co...languages.html , but for plugins, not for template like in that thread






    thank you before, please advice the correct code
    Last edited by basketmen; 05-04-11 at 23:18.

  4. #4
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    if (!$_REQUEST['language'])
    {
    }
    if (!isset($_REQUEST['language']))
    {
    }
    Both solutions are correct

    yes, if you would like to compare language var with existing code you can use:
    if ($_REQUEST['language'] == 'de')
    {
    }
    but i Would like to know what you would like to do with this statements, please exmplain it better

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •