Ich benutze nur Globale Templates, also alles dort rein geschrieben.
Hier mal eine Übersicht, ein Bild
aus welchem Punkt stammt der o.g. code?
Hier mal eine Übersicht, ein Bild
aus welchem Punkt stammt der o.g. code?
|
Installationsproblem von Restaurant Review
|
|
Ich benutze nur Globale Templates, also alles dort rein geschrieben.
Hier mal eine Übersicht, ein Bild aus welchem Punkt stammt der o.g. code?
Bitte beachte Punk5 der Verhaltensregeln!
(17.11.2012, 21:17)Trust schrieb: aus welchem Punkt stammt der o.g. code?Siehe den Beitrag bei X-Threads! Poste z.B. mal den Inhalt Deines Templates resrev_newthread.
Hier habe ich einmal den Inhalt der Datei "resrev_newthread" geladen:
PHP-Code: <html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var geocoder, map, map2;
function initialize() {
geocoder = new google.maps.Geocoder();
var geont = "{$GLOBALS['tplvars']['resrev_geo']}";
var myLatlng2 = new google.maps.LatLng{$GLOBALS['tplvars']['resrev_geo']};
if(geont == ""){
myLatlng2 = new google.maps.LatLng(0,0);
}
var myOptions2 = {
zoom: 4,
center: myLatlng2,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map2 = new google.maps.Map(document.getElementById('map_geol'), myOptions2);
var marker2 = new google.maps.Marker({
position: myLatlng2,
map: map2
});
var myLatlng = new google.maps.LatLng{$GLOBALS['tplvars']['resrev_geo']};
var myOptions = {
zoom: 4,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById('map_postbit'), myOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map
});
}
function codeAddress() {
var address = document.getElementById('xthreads_resrev_location').value;
geocoder.geocode({'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var mylocation = results[0].geometry.location;
map2.setCenter(mylocation);
var marker3 = new google.maps.Marker({
map: map2,
position: mylocation
});
document.getElementsByName("xthreads_resrev_geo")[0].value = mylocation;
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
</script></head>
<body onload="initialize()">
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-bottom: none;">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
</tr>
{$loginbox}
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top: none; border-bottom: none;">
<tr>
<td class="trow2" style="width: 50%; vertical-align: top;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow2" colspan="2" style="text-align: center;">
<div id="map_geol" style="width:400px; height:250px;margin: auto auto;"></div>
{$tfinput['resrev_location']}
</td>
</tr>
</table>
</td>
<td class="trow2" style="vertical-align: top;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow2" style="width: 20%; white-space:nowrap;"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2" style="white-space:nowrap;">{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
</td>
</tr>
{$extra_threadfields}
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top: none;">
{$posticons}
<tr>
<td class="trow2" valign="top" style="width: 20%;"><strong>{$lang->your_message}</strong>{$smilieinserter}</td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>
17.11.2012, 22:08
Würde mich freuen wenn du es geschafft hast zu installieren mal hier ein Link zu posten würde mich dafür interessieren wie es dann aussieht
Hallo guten Abend,
gerne poste ich euch mal den Link zum Forum. Forumlink: Hier ist der Link zum Forum Ihr müsst euch dort Einloggen: Benutzername: tester Passwort: tester
Hat ein wenig gedauert. Aber ich habe das nun mal Schritt für Schritt, wie in der Anweisung beschrieben, installiert. Und wie oben schon gesagt wurde, es klappt (siehe Anhang).
Ich würde Dir raten, alles noch einmal Punkt für Punkt durchzugehen. Hast Du auch die aktuellste Version von XThreads installiert?
17.11.2012, 23:56
Wenn beim neuem Thema erstellen gleich der Blick auf Deutschland sein soll, dann gehe in das resrev_newthread Template und such nach
Code: if(geont == ""){
myLatlng2 = new google.maps.LatLng(0,0);
}und ändere es in Code: if(geont == ""){
myLatlng2 = new google.maps.LatLng(51.165691,10.451526000000058);
}
Mit freundlichen Grüßen
MrBrechreiz
Beim Einfügen, Aufbau aus der Beschreibung von ist es so, das z.B unter "Input Field HTML" ein vorgegebener Quellcode steht:
PHP-Code: <![ITEM[<label style="display: block;"><input{NAME_PROP} type="radio" class="radio" value="{VALUE}"{CHECKED}{TABINDEX_PROP} />{LABEL}</label>]]>
muss dieser gelöscht werden oder füge ich einfach den PHP-Code: <![ITEM[<label class="float_left" title="{VALUE} star<if {VALUE} > 1 then>s</if>"><input{NAME_PROP} type="radio" class="radio" value="{VALUE}"{CHECKED}{TABINDEX_PROP} /><div style="text-align:center">{LABEL}</div></label>]]>
einfach hinzu? Gruß
18.11.2012, 02:03
Einfach überschreiben. Steht aber alles da was Du machen musst.
Mit freundlichen Grüßen
MrBrechreiz
So, jetzt geht's. Du hattest die notwendigen X-Thread-Einstellungen (z.B. Template Prefix) in dem Forum nicht vorgenommen.
|
|
|
| Möglicherweise verwandte Themen… | |||||
| Thema | Verfasser | Antworten | Ansichten | Letzter Beitrag | |
| Xthreads Restaurant Review Google map einbinden | Lordikon30 | 5 | 2.882 |
22.01.2020, 22:01 Letzter Beitrag: Lordikon30 |
|
| Verzeichnis Plugin, Restaurant Guide | Trust | 1 | 1.576 |
16.11.2012, 20:25 Letzter Beitrag: Jockl |
|