klein probleempje (EERos.nl systeem)

Gestart doorPotloodjes5 reacties23 weergaven

6 berichten · pagina 1 van 1

Potloodjes

Lid · Topicstarter

Berichten
2.399
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

ik heb het eeros forum script geupload. En toen wilde ik de index de tekst changen. Toen ik het opsloeg gaf hij deze foutmelding:

Quote:
Parse error: syntax error, unexpected T_STRING in /home/lavix/domains/xlwebs.nl/public_html/forum/pagina/index.php on line 77

Code van de index.php:

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #FF8000]/**
 * @copyright   2010 Milan Drossaerts
 * @author      Milan Drossaerts [http://www.dynaspan-media.nl]
 * @license     http://opensource.org/licenses/gpl-license.php GNU Public License
 *              Redistribution and use in source and binary forms, with or without
 *              modification, are permitted provided that the following conditions
 *              are met:
 *  
 *              * Redistributions of source code must retain the above copyright
 *                notice and this (list of) condition(s).
 */[/COLOR]
 
[COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]boven[COLOR= #007700]([/COLOR][COLOR= #DD0000]Welkom[/COLOR][COLOR= #007700]);[/COLOR]
 
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]is_ingelogd[COLOR= #007700]())
{[/COLOR]
    
    [COLOR= #FF8000]//TEKST VOOR INGELOGDE LEDEN[/COLOR]
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br />Hoi [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getName[COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getId[COLOR= #007700]()) .[/COLOR] [COLOR= #DD0000]<br />
    Welkom in het ingelogde deel van EERos, het opensource leden &amp; cms systeem.<br />
    Jouw rang is: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getRang[COLOR= #007700]([/COLOR][COLOR= #0000BB]$leden[/COLOR][COLOR= #007700]->[/COLOR]getId[COLOR= #007700]()) .[/COLOR] [COLOR= #DD0000]<br /><br />[/COLOR][COLOR= #007700];[/COLOR]
    
    [COLOR= #0000BB]$lnQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws ORDER BY id DESC"[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]num_rows[COLOR= #007700]([/COLOR][COLOR= #0000BB]$lnQuery[/COLOR][COLOR= #007700]) !=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
    {[/COLOR]
    
        [COLOR= #0000BB]$lnFetch[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]->[/COLOR]fetch[COLOR= #007700]([/COLOR][COLOR= #0000BB]$lnQuery[/COLOR][COLOR= #007700]);[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lnFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]) >[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700])
        {[/COLOR]
            
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]ubb[COLOR= #007700]([/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lnFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700]))) .[/COLOR] [COLOR= #DD0000]...[/COLOR][COLOR= #007700];
            
        }[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
            
            [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]ubb[COLOR= #007700]([/COLOR][COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$lnFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]));
            
        }[/COLOR]
    
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div id="info">Laatste nieuws: [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]entities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$lnFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</div>
        <em>Geplaatst op [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]f_date[COLOR= #007700]([/COLOR][COLOR= #0000BB]$lnFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]</em><br />
        [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />
        <a href="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]Site_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]?p=nieuws&id=[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$lnFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]">
        <table>
        <tr>
        <td><img src="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]Site_url[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]images/newspaper_go.png" /></td>
        <td>Lees meer</td>
        </tr>
        </table>
        </a>[/COLOR][COLOR= #007700];
    
    }
    
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]v[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<strong>Je bent verbannen, en daardoor automatisch uitgelogd!</strong><br />[/COLOR][COLOR= #007700];
        
    }[/COLOR]
    
    [COLOR= #FF8000]//TEKST VOOR NIET INGELOGDE LEDEN[/COLOR]
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Welkom op het forum van XLwebs.nl, Een forum voor alle XLwebs.nl leden!<br />
    Communiceer hier met andere leden op het forum, en discussieer. <br />
    Heb je een nieuwe script gemaakt of website? <br />
    Dan kun je hem gratis showen op het forum en vraag hun beoordeling!<br />
    Vragen, bugs en andere dingen kun je ook stellen op het forum.<br /><br />Waarom lid worden?[/COLOR][COLOR= #007700];[/COLOR]
    
    [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]add_fout[COLOR= #007700]([/COLOR][COLOR= #DD0000]het is natuurlijk Gratis[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]add_fout[COLOR= #007700]([/COLOR][COLOR= #DD0000]Snelle support van XLwebs.nl team[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]add_fout[COLOR= #007700]([/COLOR][COLOR= #DD0000]Mede forumer[/COLOR]s zullen je helpen bij waar het nodig is[COLOR= #DD0000]);
    $core->add_fout([/COLOR]en een hoop gezelligheid[COLOR= #007700]![/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]weergeef_fouten[COLOR= #007700]();
    
}[/COLOR]

[COLOR= #0000BB]$layout[/COLOR][COLOR= #007700]->[/COLOR]onder[COLOR= #007700]();[/COLOR]
 
?>


wie kan me helpen?sadley
0
Potloodjes

Lid · Topicstarter

Berichten
2.399
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
aii shijze, is al opgelost!
mag slotje..
0
Janm

Lid

Berichten
6.170
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Zet er op zn minst bij hoe je het hebt opgelost. Andere kunnen hiervan leren of misschien hebben ze het zelfde probleem.

// dan doe ik het wel.

$core->add_fout(Mede forumers zullen je helpen bij waar het nodig is);

Moet worden:

$core->add_fout(Mede forumers zullen je helpen bij waar het nodig is);
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Saliox schreef:
Zet er op zn minst bij hoe je het hebt opgelost. Andere kunnen hiervan leren of misschien hebben ze het zelfde probleem.

// dan doe ik het wel.

$core->add_fout(Mede forumers zullen je helpen bij waar het nodig is);

Moet worden:

$core->add_fout(Mede forumers zullen je helpen bij waar het nodig is);
Fout, zo is het geen correct nederlands meerwinkJe kan die gewoon laten staan:
$core->add_fout(Mede forumers zullen je helpen bij waar het nodig is);
0
Potloodjes

Lid · Topicstarter

Berichten
2.399
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, zag het al.
Bedankt.. die mocht / kan niet..
0
Berichten
921
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
idd je kan niet zomaar een gebruiken midden in php, die neemt het letterlijk en breekt daar de rest af en dan krijg en een error daarom moet je dus doen smile
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren