Forum Archive - Archiv Archive - Archiv - Joomla 1.5 SIGE - Joomla 1.5 Vorschlag für eine Codeänderung Vorschlag für eine Codeänderung
13 years 5 months ago - 13 years 5 months ago #27 by X-Bit Hallo @all!
Da ich via jSeblod den SIGE Button als
Stand-alone im Frontend einsetze, habe ich festgestellt, dass dieser so einen Fehler wirft:
"The requested URL /plugins/editors-xtd/sige_button.html.php was not found on this server."
Was daran liegt, dass die Zeile 472 in der Datei sige_button.php keine Base Url verwendet.
Ändert man diese von
$link = '../plugins/editors-xtd/sige_button.html.php?lang='.$lang->getName().'&e_name='.$name; in
$link = JURI::root(true).'/plugins/editors-xtd/sige_button.html.php?lang='.$lang->getName().'&e_name='.$name; dann funktioniert der Button wie gewünscht.
LEIDER... stimmt dann aber die URL innerhalb des Editors auf dem Button nicht mehr
Vielleicht kann sich ja noch jemand überlegen, wie mans dort auch noch zum funktionieren bringen würde?!
EDIT:
Man kann obigen code noch ein wenig ausbauen, dann klappts auch mit dem WYSWIG editor, ab Zeile 469 (änderungen blau):
elseif ($method == 0) { $lang = JFactory::getLanguage(); if ($name == 'siege_gallery_button') { $link = JURI::root(true).'/plugins/editors-xtd/sige_button.html.php?lang='.$lang->getName().'&e_name='.$name; } else { $link = 'plugins/editors-xtd/sige_button.html.php?lang='.$lang->getName().'&e_name='.$name; }
Ist vielleicht nicht elegant, geht aber.
P.s.: Ich weiss, der Button wurde nicht als Stand-alone konzipiert und es fehlt dort eigentlich noch ein Dateibrowser... vielleicht kann sich ja Viktor erbarmen, dies noch ein zu bauen?
Please Log in to join the conversation.
X-Bit Topic Author Visitor 13 years 5 months ago #35 by Viktor Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Kubik-Rubik Joomla! Extensions Please Log in to join the conversation.
Less More Posts: 7293 Thank you received: 775 13 years 4 months ago #184 by X-Bit Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Please Log in to join the conversation.
X-Bit Topic Author Visitor 13 years 4 months ago - 13 years 4 months ago #199 by Viktor Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Kubik-Rubik Joomla! Extensions Please Log in to join the conversation.
Less More Posts: 7293 Thank you received: 775 13 years 4 months ago #210 by X-Bit Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Please Log in to join the conversation.
X-Bit Topic Author Visitor 13 years 4 months ago #211 by Viktor Please log in to see the response. Attention: You need a valid
subscription to activate an account.
Kubik-Rubik Joomla! Extensions Please Log in to join the conversation.
Less More Posts: 7293 Thank you received: 775
Forum Archive - Archiv Archive - Archiv - Joomla 1.5 SIGE - Joomla 1.5 Vorschlag für eine Codeänderung
Time to create page: 0.170 seconds