• [Mod] Opensearch v0.1 5 0 5 1
Currently:  

Author Topic: [Mod] Opensearch v0.1  (Read 51985 times)

0 Members and 1 Guest are viewing this topic.

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
[Mod] Opensearch v0.1
« on: October 13, 2008, 02:04:07 AM »

/*
  ____                                           _     
 / __ \                                         | |    
| |  | |_ __   ___ _ __  ___  ___  __ _ _ __ ___| |__  
| |  | | '_ \ / _ \ '_ \/ __|/ _ \/ _` | '__/ __| '_ \ 
| |__| | |_) |  __/ | | \__ \  __/ (_| | | | (__| | | |
 \____/| .__/ \___|_| |_|___/\___|\__,_|_|  \___|_| |_|
       | | v0.2                                            
       |_|    
Copyright                          : Sumale.nin
Kontakt                            : ben88b@googlemail.com
Credits                            : V@no
*/


Quote
[MOD] Opensearch v0.1 ist eine Suchunterstützung für Ihre 4images Gallery.

Diese Modifikation erlaubt das Suchen nach Bilder ohne die eigene Webseite betreten zu müssen. Erst wenn der Suchlauf gestartet wurde öffnet sich die eigene Webseite automatisch und man findet die gesuchten Bilder.

Ebenfalls erkennt das Script ob eine favicon.ico vorhanden ist. Sollte keine vorhanden sein benutzt das Script das eigene Favicon als Icon für die Suche.

Online Installation and Screenshots:  :arrow:
« Last Edit: November 28, 2010, 04:08:50 PM by Benny »
Beste Grüße
Benny

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #1 on: October 13, 2008, 06:57:22 AM »
Nice! Good idea.


The site for base64encoder doesn't work for me.
This works: http://www.motobit.com/util/base64-decoder-encoder.asp

It is NOT necessary include encoded image into the xml, remote URI can be used instead. However I was not able make IE7/8 show icon unless I used .ico. Maybe because I didn't have the right image:
Quote
When possible, search engines should offer a 16x16 image of type "image/x-icon" and a 64x64 image of type "image/jpeg" or "image/png"

Also, your JS function doesn't work on other then FF1.5

I've attached one php file that generate .xml and JS code that works in IE7 and FF1.5+ (tested on IE8 and FF3)

Also, this file includes search suggestions ;)

There are a few settings can be tweaked.

The file needs to be saved in 4images root folder
In header.html template need add this:
Code: [Select]
<link rel="search" type="application/opensearchdescription+xml" title="{lang_search}: {site_name}" href="sp-opensearch.php?xml" />
<script src="sp-opensearch.php?js"></script>

P.S.
Please use zip archives instead of rar because zip is more common used then rar and not everyone has tools to extract from rar.
« Last Edit: October 13, 2008, 07:28:05 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #2 on: October 13, 2008, 11:43:00 AM »
Oh,

thanks V@no,

i have editing my first and second post with your New File. And i make a ZIP File.

Thank you!
Beste Grüße
Benny

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #3 on: October 13, 2008, 03:08:14 PM »
includes/sp-opensearch.xml no longer used and steps 5 and 6 no needed anymore
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #4 on: October 13, 2008, 03:38:01 PM »
Funny. But without these steps, come to me a mistake: The search engine could not be downloaded from:
Firefox
Beste Grüße
Benny

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #5 on: October 13, 2008, 04:05:00 PM »
Can I see it?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #6 on: October 13, 2008, 04:40:45 PM »
You have a PN!
Beste Grüße
Benny

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #7 on: October 13, 2008, 06:18:59 PM »
remove
Code: [Select]
<script type="text/javascript" src="./templates/default/js/splugin.js"></script>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [Mod][BETA] Firefox3+ / IE7+ Serach Plugin
« Reply #8 on: October 13, 2008, 10:56:45 PM »
ok... solved ^^
Beste Grüße
Benny

Offline Mr Kennedy

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: [Mod] Firefox3+ / IE7+ Search Plugin
« Reply #9 on: October 14, 2008, 02:00:29 PM »
The search engine could not be downloaded from:
Firefox

with Firefox2 ...  :?

edit: working with firefox 2 :)

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [Mod] Firefox3+ / IE7+ Search Plugin
« Reply #10 on: October 14, 2008, 02:17:32 PM »
lol okey, thats good :D
Beste Grüße
Benny

Offline moto1985

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [Mod] Firefox+ / IE+ Search Plugin - by Phisker
« Reply #11 on: March 20, 2009, 12:31:27 PM »
schöner mod nur bringt es bei mir nicht viel weil sich dann die grafiken verscheiebn wenn ich es so mache wie oben steht

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [Mod] Firefox+ / IE+ Search Plugin - by Phisker
« Reply #12 on: March 20, 2009, 12:41:27 PM »
Danke erst einmal für dein Statement,

aber welche Grafiken verschieben sich denn? In der Gallery generell aller?
Beste Grüße
Benny

Offline moto1985

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [Mod] Firefox+ / IE+ Search Plugin - by Phisker
« Reply #13 on: March 20, 2009, 12:49:38 PM »
Das logo rutscht nach oben und center_panel rutscht nach unten.



und das SuchPlugin grafik ist links statt rechts.



ich habe es auch damit versucht <div align="right"> dann war es auf der rechtenseite wie es ja eigentlich auch sein sollte.
dann sah die verschiebung auch so aus


Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [Mod] Firefox+ / IE+ Search Plugin - by Phisker
« Reply #14 on: March 20, 2009, 01:30:56 PM »
Kannst du mir mal deine Seite zeigen!?
Beste Grüße
Benny

 

Post your comments here