MyBB.de Forum
Installationsproblem von Restaurant Review - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Diskussionen (https://www.mybb.de/forum/forum-38.html)
+--- Thema: Installationsproblem von Restaurant Review (/thread-26257.html)

Seiten: Seiten: 1 2 3 4


RE: Installationsproblem von Restaurant Review - Trust - 17.11.2012

Ich benutze nur Globale Templates, also alles dort rein geschrieben.
Hier mal eine Übersicht, ein Bild

aus welchem Punkt stammt der o.g. code?


RE: Installationsproblem von Restaurant Review - Jockl - 17.11.2012

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.


RE: Installationsproblem von Restaurant Review - Trust - 17.11.2012

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 
geocodermapmap2;
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 = {
        
zoom4,
        
centermyLatlng2,
        
mapTypeIdgoogle.maps.MapTypeId.ROADMAP
    
}
    
map2 = new google.maps.Map(document.getElementById('map_geol'), myOptions2);
    var 
marker2 = new google.maps.Marker({
        
positionmyLatlng2
        
mapmap2
    
});
    var 
myLatlng = new google.maps.LatLng{$GLOBALS['tplvars']['resrev_geo']};
    var 
myOptions = {
        
zoom4,
        
centermyLatlng,
        
mapTypeIdgoogle.maps.MapTypeId.ROADMAP
    
}
    
map = new google.maps.Map(document.getElementById('map_postbit'), myOptions);
    var 
marker = new google.maps.Marker({
        
positionmyLatlng
        
mapmap
    
});
}

function 
codeAddress() {
    var 
address document.getElementById('xthreads_resrev_location').value;
    
geocoder.geocode({'address'address}, function(resultsstatus) {
        if (
status == google.maps.GeocoderStatus.OK) {
            var 
mylocation results[0].geometry.location;
            
map2.setCenter(mylocation);
            var 
marker3 = new google.maps.Marker({
                
mapmap2,
                
positionmylocation
            
});
            
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}&amp;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



RE: Installationsproblem von Restaurant Review - taccodip - 17.11.2012

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


RE: Installationsproblem von Restaurant Review - Trust - 17.11.2012

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


RE: Installationsproblem von Restaurant Review - Jockl - 17.11.2012

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?


RE: Installationsproblem von Restaurant Review - MrBrechreiz - 17.11.2012

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);
    }



RE: Installationsproblem von Restaurant Review - Trust - 18.11.2012

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_PROPtype="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_PROPtype="radio" class="radio" value="{VALUE}"{CHECKED}{TABINDEX_PROP} /><div style="text-align:center">{LABEL}</div></label>]]> 

einfach hinzu?

Gruß


RE: Installationsproblem von Restaurant Review - MrBrechreiz - 18.11.2012

Einfach überschreiben. Steht aber alles da was Du machen musst.


RE: Installationsproblem von Restaurant Review - Jockl - 18.11.2012

So, jetzt geht's. Du hattest die notwendigen X-Thread-Einstellungen (z.B. Template Prefix) in dem Forum nicht vorgenommen.