ForumCała strona

Nawigacja

Aktualnie online

Gości online: 8

Użytkowników online: 0

Łącznie użytkowników: 25,405
Najnowszy użytkownik: kipolas

Logowanie

Nazwa użytkownika

Hasło



Zarejestruj się

Odzyskaj hasło

Shoutbox

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

Zbigniew@
18.10.2025 19:31:20
Forum nie dziala nawet bez polskich znakow.

JazOOn
16.10.2025 18:21:12
nie dziala z polskimi znakami

Zbigniew@
12.10.2025 15:20:31
Tylko dla wybranych.

JazOOn
06.10.2025 21:00:15
czy shout dziala?

hoopak
02.10.2025 10:33:17
Bleeeeee Cool

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 23.10.2025 21:56:17
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