some troubles

Discussion forum for WP Selected Text Sharer

some troubles

Postby sigikater » Thu Aug 12, 2010 8:50 am

hi, I have implemented this nice plugun but there are some troubles with it.
when I add a new search or site, the text is shown twice. you can see it here: www.euwiki.net (it's in German).
can you tell me how a search-url usually looks like?
best regards
sigi
sigikater
 
Posts: 2
Joined: Thu Aug 12, 2010 8:25 am

Re: some troubles

Postby vaakash » Thu Aug 12, 2010 4:37 pm

This is a simple problem.

Your button list code looks like this
Code: Select all
auf euwiki suchen,http://euwiki.net,favicon
auf euzine suchen,http://euzine.eu,favicon
mailen,mailto:?subject=euwiki.net - Das EU-Wissen&body=%s - http://euwiki.net/,http://mail.google.com/favicon.ico
drucken,http://www.printfriendly.com/print?url=http://euwiki.net/,http://www.printfriendly.com/images/printfriendly.ico

Here, each line is the button's information.
Each line has three params separated by "," (comma). The first parameter is the Button name, 2nd is the URL, 3rd is the Icon URL

In your case, i didn't see the button used twice.

For your second question, a wordpress search engine will usually look like
Code: Select all
http://www.example.com/?s=searchTerm

In this plugin, the "searchTerm" will be replaced with the selected text of your blog. So you should use %s in that place like
Code: Select all
http://www.example.com/?s=%s

You should use this URL as the second parameter for a button (mentioned above)
If you want to search using Google, then use
Code: Select all
http://google.com/search?q=%s
Use this concept to build your own buttons. Please see the documentation for more info
User avatar
vaakash
Site Admin
 
Posts: 362
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: some troubles

Postby sigikater » Thu Aug 12, 2010 5:46 pm

thnks for help, everything is fine now.
but it 's strange because when i wrote my post I always saw "auf euwiki suchen auf euwiki suchen" and "auf euzine suchen auf euzine suchen" and I have not changed the code - however, it works now. mybe I should check my eyes! :D
sigikater
 
Posts: 2
Joined: Thu Aug 12, 2010 8:25 am

Re: some troubles

Postby vaakash » Thu Sep 30, 2010 7:27 am

Ya fine. Also check out other useful wordpress plugins got from Aakash Web

Regards
User avatar
vaakash
Site Admin
 
Posts: 362
Joined: Sun Jan 17, 2010 11:15 am
Location: India


Return to WP Selected Text Sharer