Skip to content

Question on links and files

DzichkDzichk Dzichk
edited April 2021 in GSA Search Engine Ranker

Hello. I started testing the program and there were some difficulties. For earlier I apologize for the text, as the translation is from translate.google.com. I don’t know English.

1) Macro #file_links

https://docu.gsa-online.de/search_engine_ranker/macro_guide?s[]=file&s[]=links&s[]=names&s[]=dat&s[]=2#file_links_filename_or_url_number_of_lines_line_output

I want to display 1 line at each call in order. No matter how I prescribe it:

#file_links [C:\ankors.txt,1,NP]

#file_links [C:\ankors.txt,1,SP]

#file_links [C:\ankors.txt,1,LP]

#file_links [C:\ankors.txt,NP]

#file_links [C:\ankors.txt,SP]

#file_links [C:\ankors.txt,LP]

The same keys are output anyway. And if you put

#file_links [C:\ankors.txt,1,N]

#file_links [C:\ankors.txt,1,S]

#file_links [C:\ankors.txt,1,L]

Then random entries are displayed, which I do not need.

I need to output in order:

Anchor 1

Anchor 2

Anchor 3

...

Ancro N

...

Anchor 1

2) I also want to output a random piece of article from the file

#file_links[C:\ankors.txt,(10,50),SP]

#file_links[C:\ankors.txt,(10,50),NP]

#file_links[C:\ankors.txt,(10,50),LP]

Here also, either the output goes to the same parts of the article, or all the lines are random.

I want to display a random piece of article in different places in order.

3) I want to put my links and link pictures in the text fields.

No matter how I put it, part is still cut out, and the pictures have never been displayed.

Tried these options:

<a href="https://site.com"><img src="https://site.com/img.jpg"/></a>

[url=https://site.com][IMG]https://site.com/img.jpg[/IMG][/url]

<a href="https://site.com"><b>#file_links[C:\ankors.txt,1,NP]</b></a>

[url=ttps://site.com][b]#file_links[C:\ankors.txt,1,NP][/b][/url]

But if I manually register on the site and insert my text with links and pictures, then it is displayed correctly without problems.

Please help me solve these problems. Thank you!

«1

Comments

  • SvenSven www.GSA-Online.de
    Hard to understand your problem really and your wanted output, but if you want to place random lines from a file you can also use %spinfile2-C:\ankors.txt% . I think that would be more suitable. Then wrap that up in spin syntax to have a random amount of lines.
    Thanked by 1Dzichk
  • DzichkDzichk Dzichk
    edited April 2021
    How to display your image in the body? GSA deletes the image
  • SvenSven www.GSA-Online.de
    images are deleted if the engine you submit to does not allow images like wiki links.
  • Sven said:
    images are deleted if the engine you submit to does not allow images like wiki links.
    Deleted pictures on the WordPress engine. If you add them manually, they are not deleted.
  • SvenSven www.GSA-Online.de
    send a project backup with the sample url please.
  • Sven said:
    send a project backup with the sample url please.
    Sent to you
  • Hello! With whispering streaks Sven! The question is one. Field: Data - URL. Possible to insert data from Tables?
    Design
    %columnspinfile-c:\url.dat-2% 
    In a twisted column in the maiden will be URL
  • If you do not save and leave
    %columnspinfile-c:\url.dat-2%
    it normally displays the URL

    But after saving in the field
    Data - URL
    The record is changing on
    http://%columnspinfile-c:\url.dat-2%
  • SvenSven www.GSA-Online.de
    sorry but not all macros are supported in the url field. You have to stick to %spinfile% or #file macros.
  • Is it possible to add the ability to add a columnspinfile macro in the URL field?
  • It would very much simplify the solution of my task
  • SvenSven www.GSA-Online.de
    it would only read the URLs then and not anchors or alike. And it would not keep things in mind for a further use of this file+macro. You can as well use the spinfile macro then.
  • Spinfile does not fit. I need that for each column from columnspinfile corresponds to its key. Therefore, I use columnspinfile. Can you add this macro for the URL? I would be very grateful to you.
  • SvenSven www.GSA-Online.de
    Are you using that file from the macro anywhere else in the project?
  • DzichkDzichk Dzichk
    edited January 2022
    Almost yes. It is used in me in all fields of Data and Article Manager. If it is still working in the DATA - URL
    that would be super.
  • SvenSven www.GSA-Online.de
    again, if used there, it would just pull in the urls and forget about the rest. It would not keep in mind the raw used to make use of this in other fields.
  • In the URL field, I insert a macro
    %columnspinfile-c:\url.dat-2%
    Press the test button, then the links you need in the URL field are displayed.
    When I save the project, then in the URL field instead of macro
    %columnspinfile-c:\url.dat-2%
    Changing on
    And links stop appearing in the URL field.
    You can add a condition to the GSA program to make it to the macro
    %columnspinfile%
    did not add http:// while saving?
  • SvenSven www.GSA-Online.de
    Thats was not my question. And a simple fix on this part will not work later on anyway.
  • Sorry, I did not see your question. Can you ask otherwise to be clearer? Unfortunately I do not know English, translate through https://translate.google.com/
  • Do you really add a columnspinfile macro in the URL field?
  • SvenSven www.GSA-Online.de
    Maybe it's easier if you post one line with the header of your csv file that you want to use in the url field.
  • I have a CSV File table consists of most columns.
    Each URL is associated with its row in the column. Therefore, I really want to implement the output of a specific column in the URL field. How can you display your line from CSV File in the URL field? I thought it was possible only using a columnspinfile macro
  • SvenSven www.GSA-Online.de
    edited January 2022
    OK let me explain it then:
    "URL","Anchor"
    "http://x.com", "XYZ"
    "http://y.com", "ABC"
    
    You might be able to use %columnspinfile-c:\temp.txt-1% in the URL field. But if you use it in the anchor text, it will not work. Or it will work, but it will pull other anchor for different URLs. If thats no problem for you, then we can try getting it added, but I guess thats exactly what you want here...using URL and anchor or any other field especially set for that URL.
  • That's right. Need a bunch of text and URL. If you can implement it, I will be happy)
  • Sven said:
    OK let me explain it then:
    "URL","Anchor"
    "http://x.com", "XYZ"
    "http://y.com", "ABC"
    
    You might be able to use %columnspinfile-c:\temp.txt-1% in the URL field. But if you use it in the anchor text, it will not work. Or it will work, but it will pull other anchor for different URLs. If thats no problem for you, then we can try getting it added, but I guess thats exactly what you want here...using URL and anchor or any other field especially set for that URL.
    Hello! You will soon update GSA, which will allow you to insert the URL from the table? o:)
  • SvenSven www.GSA-Online.de
    Sorry no, as written before, the URLs can only be read in when a project starts and later the submission cn use macros as such....but the URLs can not be paired with this macro for other fields.
  • It's a pity. Is it possible to create another table macro that would work with the DATA - URL?
  • SvenSven www.GSA-Online.de
    no, the problem is all the same. You can at max pair URL#anchor#secondary anchor.
  • Sven said:
    OK let me explain it then:
    "URL","Anchor"
    "http://x.com", "XYZ"
    "http://y.com", "ABC"
    
    You might be able to use %columnspinfile-c:\temp.txt-1% in the URL field. But if you use it in the anchor text, it will not work. Or it will work, but it will pull other anchor for different URLs. If thats no problem for you, then we can try getting it added, but I guess thats exactly what you want here...using URL and anchor or any other field especially set for that URL.
    Put a record in the URL field
    %columnspinfile-c:\temp.txt-1%
    Without text
  • The problem is solved
Sign In or Register to comment.