<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: How to set account wide variable?]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in How to set account wide variable? of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Tue, 09 Nov 2010 09:46:20 +0200</lastBuildDateTag>		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32307/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			the %QT macro worked!!! Genius! Thanx so much for all of your help, you've been amazing! &nbsp;<img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_biggrin.gif" border="0" data-code=":D" data-definition="SD" alt=":D" style="width:16px;height:16px;" title="" class="bx-smile" /> &nbsp;<img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_biggrin.gif" border="0" data-code=":D" data-definition="SD" alt=":D" style="width:16px;height:16px;" title="" class="bx-smile" /> &nbsp;<img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_biggrin.gif" border="0" data-code=":D" data-definition="SD" alt=":D" style="width:16px;height:16px;" title="" class="bx-smile" /> <br />
			<i>09 November 2010 09:46:20, <a href="http://www.ritlabs.com/en/forums/">Richard Parker</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32307/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32307/</guid>
			<pubDate>Tue, 09 Nov 2010 09:46:20 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32304/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			one way could be, close theBat, open ACCOUNT.srb in some text editor, and replace all occurrences of<br /> &lt;a\20href\3D\22http://www.destinationURL.com\22&gt;<br />with &lt;a\20href\3D\22http://www.newURL.com\22&gt;<br />This way all the templates can be updated at once in a second. Indeed make a backup copy before replacing.<br /><br />another way could be, make a quick template with the URL.<br />You can insert a quick template in a template with %QT macro. <br />If this works, to update the URL everywhere you'll only have to modify the quick template. <br />
			<i>08 November 2010 08:39:18, <a href="http://www.ritlabs.com/en/forums/">bigg one</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32304/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32304/</guid>
			<pubDate>Mon, 08 Nov 2010 08:39:18 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32303/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hey Bigg, thanx again for all your help. It turns out the file that had the code to give a "hint" was ACCOUNT.srb<br /><br />Here is the structure that i found for how the Bat parses links<br /><br />&lt;a\20href\3D\22http://www.destinationURL.com\22&gt;<noindex><a href="http://www.visitsite.com&lt;/a&amp;gt" target="_blank" rel="nofollow">http://www.visitsite.com&lt;/a&gt</a></noindex>;<br /><br /><br />I threw that into my txt file that is being pulled by the %PUT macro and it still parses it as plain text! lol<br /><br />At this point i'm sorta losing hope that this can be done, but i'm still digging. Thanx again for your help, if you have any other ideas let me know. Thanx! <img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_smile.gif" border="0" data-code=":)" data-definition="SD" alt=":)" style="width:16px;height:16px;" title="" class="bx-smile" /> <br />
			<i>08 November 2010 01:49:35, <a href="http://www.ritlabs.com/en/forums/">Richard Parker</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32303/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32303/</guid>
			<pubDate>Mon, 08 Nov 2010 01:49:35 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32302/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			or another way could be, in your template put this<br /><br />
====code====
<pre>http://%PUT('C:&#92;myURL.txt')</pre>
=============
<br /><br />In C:\myURL.txt put the rest of the URL (what's after http:// )without any html tags, qoutes or whatever - like google.com<br />Then theBat will convert that to a hyperlink, or at least it does so in v.3.85 plain text messages.<br /><br />Disadvantage is you can't set the link text, it's link URL. <br />
			<i>05 November 2010 22:47:26, <a href="http://www.ritlabs.com/en/forums/">bigg one</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32302/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32302/</guid>
			<pubDate>Fri, 05 Nov 2010 22:47:26 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32301/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			account.cfn is in &lt;mail folder&gt;\&lt;account folder&gt;<br />You can see where &lt;mail folder&gt; is in Options &gt; Preferences &gt; System &gt; see Mail Directory<br /><br />Note that if &lt;mail folder&gt; is somewhere under <br />C:\Documents and Settings\&lt;username&gt;\Application Data<br />, then it's probably with Hidden attribute. When you search for account.cfn, make sure to set Windows look inside hidden/system folders as well (it does not by default).<br /><br />BTW I use version 3.85, not 4.x. In 4.x templates may be elsewhere. <br />If you can't find account.cfn, insert in some template a long unique string. Then search for files containing that string under &lt;mail folder&gt;<br /><br />Not sure if quick templates are stored in the same file where templates are.<br /><br />Indeed all the above would be useless if you use encrypted message bases, I think in that case configuration files are encrypted too. <br />
			<i>05 November 2010 22:16:02, <a href="http://www.ritlabs.com/en/forums/">bigg one</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32301/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32301/</guid>
			<pubDate>Fri, 05 Nov 2010 22:16:02 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32298/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hey Bigg...i took your advice and tried the whole link. It just gets inserted as plain text regardless if i use html entities or not :/<br /><br />Do you know where i can find this account.cfn file? I've looked all over for it but can't seem to find it. &nbsp;Thanx so much! <br />
			<i>05 November 2010 10:21:09, <a href="http://www.ritlabs.com/en/forums/">Richard Parker</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32298/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32298/</guid>
			<pubDate>Fri, 05 Nov 2010 10:21:09 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32296/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			try putting the whole link in C:\file.txt, not just the URL, like<br />
====code====
<pre>&#60;a href="..."&#62;Visit something&#60;/a&#62;</pre>
=============
<br /><br />If this inserts html code as plain text, try with html entities - e.g. & lt instead of &lt;<br /><br />--<br /> theBat keeps templates in Account.CFN file , if I correctly remember. Open this file in a text editor, find a template that contains a link and see how that link looks - this may give you a hint what to put in C:\file.txt<br />Or directly find/replace the URL everywhere in Account.CFN file (after making a backup copy) <br />
			<i>05 November 2010 08:47:48, <a href="http://www.ritlabs.com/en/forums/">bigg one</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32296/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32296/</guid>
			<pubDate>Fri, 05 Nov 2010 08:47:48 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32288/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hi,<br />Yes that puts the value account wide but it doesn't work as a destination URL in a hyperlink. The only thing that seems to work in a hyperlink is &nbsp;%VARname. Which means i have to declare the variable in each email template which is a lot of work. I tried putting a %PUT macro inside of a %VARname macro but it doesn't work. Is there anyway to put a macro inside of another macro?<br /><br />Essentially i need something like this:<br /><br />%VARname="%PUT="C:\file.txt""<br /><br />then in my hyperlink's destination URL i use %VARname <br />
			<i>02 November 2010 11:47:41, <a href="http://www.ritlabs.com/en/forums/">Richard Parker</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32288/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32288/</guid>
			<pubDate>Tue, 02 Nov 2010 11:47:41 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32277/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			put the url in a .txt file, like C:\myURL.txt<br />Then use %PUT or %INCLUDE macro<br />%Put('C:\myURL.txt') <br />
			<i>31 October 2010 22:04:54, <a href="http://www.ritlabs.com/en/forums/">bigg one</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32277/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32277/</guid>
			<pubDate>Sun, 31 Oct 2010 22:04:54 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>How to set account wide variable?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic9666/message32265/">How to set account wide variable?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hi,<br />I'm trying to figure out if there is a way to set a variable that can be used in multiple templates. Is there a way to actually create a macro in addition to the premade macros? What i'm trying to do is have the destination URL of a link be a changing value. <br /><br />For example i have <br /><br /><noindex><a href="http://link.com" target="_blank" rel="nofollow">http://link.com</a></noindex> (but with the html editor the destination url of this hyperlink would actually be google.com for example).<br /><br />I was able to achieve this by setting a variable in the template but the problem is I have perhaps 20 templates and I don't want to have to edit the variables in each template every time i need to change the destination URL.<br /><br />I also tried doing this with a cookie and an external file which had the value in the file...but %COOKIE didn't seem to work inside the destination url field of the link.<br /><br />Can anyone enlighten me on if there's a way to create a macro and be able to change the value of it account wide? Thanx! <br />
			<i>29 October 2010 06:04:46, <a href="http://www.ritlabs.com/en/forums/">Richard Parker</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic9666/message32265/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic9666/message32265/</guid>
			<pubDate>Fri, 29 Oct 2010 06:04:46 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
