πως μπορώ εκτός από το τοπ 10 του μήνα να εμφανίζω και τα τοπ 10 της εβδομάδας ??
έχω κάνει τις εξής αλλαγές αλλά δεν δουλεύει
δημιούργησα δυο αρχεία το ένα top7requests.php και το άλλο top30requests.php
στο playing.php άλλαξα τις γραμμές με
<?
##################
# Top 7 requests
if($showtop7requests)
require("top7requests.php");
#===================
?>
</p><p>
<?
##################
# Top 30 requests
if($showtop30requests)
require("top30requests.php");
#===================
?>
και στο config.php πρόσθεσα
//General options
$privaterequests = true; //If False, AudioRealm.com will handle the requests
$showtop7requests = true; //Must we show the top 7 requests on the now playing page?
$requestdays = 7; //Show the top7 requests for the last xx days
$privaterequests = true; //If False, AudioRealm.com will handle the requests
$showtop30requests = true; //Must we show the top 30 requests on the now playing page?
$requestdays = 30; //Show the top30 requests for the last xx days
αλλά στην σελίδα playing.php μου εμφανίζει μόνο το τοπ 10 εβδομάδας και από κάτω το error
Fatal error: Cannot redeclare putrow() (previously declared in D:\xampp\htdocs\web\top7requests.php:25) in D:\xampp\htdocs\web\top30requests.php on line 25
κάτι κάνω λάθος !! θα ήθελα τα φώτα σας
sam broadcaster top 10 μηνα και εβδομαδας
Συντονιστές: Super-Moderators, Graphics Moderators
sam broadcaster top 10 μηνα και εβδομαδας
putrow() function is called putrow() in top7requests.php
putrow() function is called putrow() in top30requests.php
They may differ in any way or not, but they are called the same and therefore you may not include top7requests.php and top30requests.php at the same time.
Try either
Code:
<?
##################
# Top 7 requests
if($showtop7requests && !$showtop30requests)
require("top7requests.php");
#===================
?>
</p><p>
<?
##################
# Top 30 requests
if($showtop30requests && !$showtop7requests)
require("top30requests.php");
#===================
?>
or
Code:
********* config.php ***********
//General options
$privaterequests = true; //If False, AudioRealm.com will handle the requests
$showtop7requests = true && !$showtop30requests; //Must we show the top 7 requests on the now playing page?
$requestdays = 7; //Show the top7 requests for the last xx days
// This ones double defined too, but it's ok for variables to be set multiple times
$privaterequests = true; //If False, AudioRealm.com will handle the requests
$showtop30requests = true && !$showtop7requests; //Must we show the top 30 requests on the now playing page?
$requestdays = 30; //Show the top30 requests for the last xx days
or
Code:
********* top7requests.php *********
blablabla
function putrow7() // note that you need to rename all calls to putrow() to putrow7()
{
blabalabla
}
blablabla
...
********* top30requests.php *********
blablabla
function putrow30() // note that you need to rename all calls to putrow() to putrow30()
{
blabalabla
}
blabalabla
putrow() function is called putrow() in top30requests.php
They may differ in any way or not, but they are called the same and therefore you may not include top7requests.php and top30requests.php at the same time.
Try either
Code:
<?
##################
# Top 7 requests
if($showtop7requests && !$showtop30requests)
require("top7requests.php");
#===================
?>
</p><p>
<?
##################
# Top 30 requests
if($showtop30requests && !$showtop7requests)
require("top30requests.php");
#===================
?>
or
Code:
********* config.php ***********
//General options
$privaterequests = true; //If False, AudioRealm.com will handle the requests
$showtop7requests = true && !$showtop30requests; //Must we show the top 7 requests on the now playing page?
$requestdays = 7; //Show the top7 requests for the last xx days
// This ones double defined too, but it's ok for variables to be set multiple times
$privaterequests = true; //If False, AudioRealm.com will handle the requests
$showtop30requests = true && !$showtop7requests; //Must we show the top 30 requests on the now playing page?
$requestdays = 30; //Show the top30 requests for the last xx days
or
Code:
********* top7requests.php *********
blablabla
function putrow7() // note that you need to rename all calls to putrow() to putrow7()
{
blabalabla
}
blablabla
...
********* top30requests.php *********
blablabla
function putrow30() // note that you need to rename all calls to putrow() to putrow30()
{
blabalabla
}
blabalabla
Μέλη σε σύνδεση
Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 0 επισκέπτες