ForumCała strona

Nawigacja

Aktualnie online

Gości online: 4

Użytkowników online: 0

Łącznie użytkowników: 25,386
Najnowszy użytkownik: Hisfatt

Logowanie

Nazwa użytkownika

Hasło



Zarejestruj się

Odzyskaj hasło

Shoutbox

Musisz zalogować się, aby móc dodać wiadomość.

Zbigniew@
01.04.2024 12:28:45
Wszystkiego najlepszego z okazji świąt.

JazOOn
28.02.2024 19:25:31
ja zostałem przy fusionie ale nazywa się 360. Projektowanie i druk 3d...

MajsterBieda
25.02.2024 00:12:42
Ponad 20 lat .... tosz to sioook panie.... Grin

JazOOn
24.02.2024 20:32:31
a już na pewno mamuty

JazOOn
24.02.2024 20:31:59
Albo dinozaury

Pobierz nową wersję
Pobierz podręcznik
Zobacz inne oficjalne Supporty
Statystyki supportu
PHP-Fuson PL na Facebooku

RSS

Polecamy hosting SferaHost.pl

Zobacz temat

 Drukuj temat
Google maps plugin v 0.1 dla TinyMCE
BenLomax
Na forum TinyMCE znalazłem takie coś: Google maps plugin version 0.1
Opis:
Installing the plugin
---------------------
Download the plugin from here: http://www.connec...google.map … nymce.html
Make a plugins-folder called 'googlemaps'
Unzip all the files into that folder.

Find your tinyMce init statement and add "googlemaps" to the "plugins" line and
add "googlemaps, googlemapsdel" to one of your button lines (like "theme_advanced_buttons3").

This should create 2 buttons: one for adding the Google Map and one for deleting it.

Basics
------
The dialog for this plugin requires 5 variables:

1. API key (get one at http://code.googl...gnup.html)
2. coordinates for your own location (you can get them at http://www.connec...google.map … nymce.html)
3. width: how wide do you want the Google div to be? (if left blank --> 100px)
4. height: how high do you want the Google div to be? (if left blank --> 100px)
5. div ID: to refrain from applying a div ID that you already used in your page, you can enter your own here
(if left blank, the div is called "map")

The dialog then creates the necessary Javascript (2 <script> tags) and the div in which the maps is actually shown.
This is all put in a span called "spangooglemaps".
Forth comes the "googlemapsdel"-button. If clicked, it removes this particular span from the DOM.

Removing the span "spangooglemaps" from the DOM is not the most brilliant solution, I know, but I couldn't figure out how to simply
select the span and then press the delete-button on your keyboard (suggestions are welcome!!)

All the Google Maps examples at Google.com have the Javascript run at the "body onLoad"-statement. Since I assume that most of you use
tinyMce in a CMS environment, in which you cannot access the body-tag, I added some extra Javascript that avoids the necessary js-methods
to run via the body-tag. (Can't take credit for this nifty piece of code, I just nicked it somewhere on the Internet)

Some day, if this plugin ever loses some of its crudeness, but either development from my side or input from others, I will post it in the Sourceforge repository.
I know that's where it is supposed to go, but this first version is not a "professional" plugin yet, so let's wait a bit longer....

For now, you can download it here: http://www.connec...google.map &#8230; nymce.html


Więc pobrałem i zabrałem się za robotę.
1.Wypakowałem plik do folderu - /includes/jscripts/tiny_mce/plugins/googlemaps
2.Odnalazłem tinyMce.init w pliku - /themes/templates/admin_header_mce.php
3. Dodałem w lini:
Pobierz kod źródłowy  Rozwiń Kod źródłowy

4. Dodałem również linię:
Pobierz kod źródłowy  Rozwiń Kod źródłowy

pod
Pobierz kod źródłowy  Rozwiń Kod źródłowy

5. Wszystko zapisałem
6. Przechodzę do pisania newsa, dodatkowe guziczki są widoczne, wypełniam potrzebne dane Google Maps API key oraz wpisuje koordynaty i dodaje.
7. I nic się nie dzieję :(

I tu problem, nie wiem czy to błąd pluginy czy to Fusion coś blokuje/miesza/coś mu brakuję.

p.s. Nie bijcie jeśli umieściłem nie w tym dziale, ale ten wydał mi się najbardziej odpowiedni.
Edytowane przez Milka dnia 07.11.2008 00:13:58
 
Wścibski Gość
Dodany dnia 27.04.2024 17:22:46
Pan Kontekstualny

Postów: n^x
Data rejestracji: Zawsze

Polecamy hosting SferaHost.pl
IP: localhost  
Przejdź do forum:
Created by Arox Copyright (C) 2004
Copyright (C) 2004 - 2018 Ekipa PHP-Fusion.pl