File_links 在 SEO神器 Xrumer 中使用的频率相当高,是调用文件的重要命令。
一、#file_links命令调用格式:
#file_links [file_name,number_lines,formation_method]
三个参数详解:
file_name:要用调文件的绝对地址,如:C:Xrumer7Beta61Miscxrumerwords.txt.
number_lines:要显示的行数
formation_method:有4个选项,分别是S, L, N, P
- S:同一行显示,原文件的换行变空格;
- L:保留原样式,包括换行;
- N:一行显示,同S,换行符被忽略;
- P:用于SLN后,即SP, LP, NP,表示按顺序取。
例子:C盘有文件xrumwords.txt,放在:C:Xrumer7Beta61Misc,里面有三行,分别为:
simple machines
forum footprint
profile submitter
以下是三种调用方式得到的结果:
A. #file_links[C:Xrumer7Beta61Miscxrumerwords.txt,3,S] 显示:
simple machines forum footprint profile submitter
B. #file_links[C:Xrumer7Beta61Miscxrumerwords.txt,3,L] 显示:
simple machines
forum footprint
profile submitter
C. #file_links[C:Xrumer7Beta61Miscxrumerwords.txt,3,N] 显示:
simple machinesforum footprintprofile submitter
PS:所以[url]当中取链接,要用N或者S,L会出错,格式如下:
[url=#file_links[C:Xrumer7Beta61Miscxrumerwords.txt,3,N]]
---------------------------------------
Detailed Explanation of the #File_Links Macro Command in Xrumer
#File_Links is one very important and useful macro command that we can use in all Xrumer versions. With this command we can read the contents of a file and display them everywhere we wish according to a simple set of switches that the command understands.
Here is the command:
#file_links [file_name,number_lines,formation_method]
The Switches are the following and here is what they mean:
File_name, we can replace this with the path of a file on our disk, for example C:Xrumer7Beta61Miscxrumerwords.txt. The file must have each phrase on its own line. Instead of phrases, we can also have Links in that file, that makes it possible to spin our links in Xrumer!
Number_lines, we can put here a number representing the number of phrases we want to read and display from the previous text file, for example 3, will read and display 3 phrases or links from the file.
And finally, the formation_method switch takes 3 values, the letters S, L and N.
S will display everything on a single line, L will display each on its own line and N will display all in one line (like S) but will not leave a Space before each phrase.
By default the L is used.
update
There is a new switch now available that can be used AFTER the previous S, N or L, the P letter, and can be used like so:
SP
NP
LP
The switch can be used to instruct Xrumer to read the lines of the file Progressively (or sequentially, meaning one after the other and NOT randomly as it does by default. Very useful in order to map values of one list with those of another, line per line)
end of update
Lets say that we have a file called Xrumerwords.txt in C:Xrumer7Beta61Misc. And in that file
we have 3 phrases:
simple machines
forum footprint
profile submitter
Then we can use the #file_links directive as this:
#file_links[C:Xrumer7Beta61Miscxrumerwords.txt,3,S] will show:
simple machines forum footprint profile submitter
or
#file_links[C:Xrumer7Beta61Miscxrumerwords.txt,3,L] will show:
simple machines
forum footprint
profile submitter
or
#file_links[C:Xrumer7Beta61Miscxrumerwords.txt,3,N] will show:
simple machinesforum footprintprofile submitter
So basically, S will display everything on a single line, L will display each on its own line and N will display all in one line (like S) but will not leave a Space before each phrase.
By default the L is used.
Keep in mind as stated above, that instead of phrases we can also have LINKS in the file, that way we can read links from a file and display them where we wish!
Another guide will follow explaining how to spin your signatures and other usages of the #file_links macro command