PDA

View Full Version : vBaffiliate Links (Replacement Words In Posts) mod



basketmen
30-03-11, 21:29
Hi guys,

there is a little mod vBaffiliate Links (Replacement Words In Posts) (http://www.vbulletin.org/forum/showthread.php?t=176355) 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
http://i291.photobucket.com/albums/ll284/basketmen/vBaffiliateLinksplugins.jpg





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

Btw the other integration service (http://www.vbenterprisetranslator.com/forum/vbet-integration-other-plugins/1511-next-integration-service-zoints-local-mod-pages-not-translated.html) (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

kamilkurczak
31-03-11, 17:34
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?

basketmen
05-04-11, 23:16
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 :D
How to write false $_REQUEST, please help - Web Hosting Talk (http://www.webhostingtalk.com/showthread.php?p=7378121#post7378121)
How to write false $_REQUEST, please help - Webmaster Forum (http://www.v7n.com/forums/coding-forum/244449-how-write-false-_request-please-help.html#post1635239)












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.com/forum/vbet4-general-discussions/634-advertisment-different-languages.html , but for plugins, not for template like in that thread






thank you before, please advice the correct code http://www.vbenterprisetranslator.com/forum/images/icons/icon14.gif

kamilkurczak
06-04-11, 19:05
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

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations made by vBET Translator 4.9.2