Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 6
Seite [1]
MdS`


Wannabe poster



Herkunft: Berlin
Beiträge: 36
# Thema - 27.02.2007 um 13:58 Uhr
sers

wenn ich über verwaltung >> shoutbox einträge löschen/editieren will, kann ich leider nicht alle einträge auswählen. also da fehlen welche. vor seite 1 müssten noch welche kommen, und nach der letzten auch. das ist ziemlich ungünstig da ich so die neuesten inträge nicht direkt übers interface löschen kann :(

soweit ich weiß hab ich noch die originale mange.php
hab btw bxcp 0.3.2.2

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
1. / 2. / ... 
<?php
// ClanSphere 2006 - www.clansphere.net

$bx_lang    bx_translate('matches','manage');

if (empty(
$_POST['status']) && empty($_GET['status'])) {
    
$matches_status '';
} elseif (!empty(
$_POST['status'])) {
    
$matches_status $_POST['status'];
} else {
    
$matches_status $_GET['status'];
}

if (
$matches_status != 'upcoming' && $matches_status != 'running' &&
$matches_status != 'played' && $matches_status != '') {
    
$matches_status '';
}

$where    = empty($matches_status) ? "matches_status = '$matches_status'";
$start    = empty($_GET['start']) ? $_GET['start'];
$matches_count bx_sql_count(__FILE__,'matches',$where);

echo 
bx_html_table(1,'forum',1);
echo 
bx_html_roco(1,'headb',0,3);
echo 
$bx_lang['mod'] . ' - ' $bx_lang['management'];
echo 
bx_html_roco(0);
echo 
bx_html_roco(1,'leftc');
echo 
bx_icon('editpaste') . bx_link($bx_lang['add_match'],'matches','create');
echo 
bx_html_roco(2,'leftc');
echo 
bx_icon('contents') . sprintf($bx_lang['total'],$matches_count);
echo 
bx_html_roco(2,'rightc');
echo 
bx_pages('matches','manage',$matches_count,$start,$matches_status);
echo 
bx_html_roco(0);
echo 
bx_html_roco(1,'leftb',0,3);
echo 
$bx_lang['status'];
echo 
bx_html_form(1,'matches_manage','matches','manage');
$status[0]['matches_status'] = 'upcoming';
$status[0]['name'] = $bx_lang['upcoming'];
$status[1]['matches_status'] = 'running';
$status[1]['name'] = $bx_lang['running'];
$status[2]['matches_status'] = 'played';
$status[2]['name'] = $bx_lang['played'];
echo 
bx_dropdown('status','name',$status,$matches_status,'matches_status');
echo 
bx_html_vote('submit',$bx_lang['show'],'submit');
echo 
bx_html_form(0);
echo 
bx_html_roco(0);
echo 
bx_html_table(0);
echo 
bx_html_br(1);

$from  'matches LEFT JOIN {pre}_clans cln1 ON clans1_id = cln1.clans_id';
$from .= ' LEFT JOIN {pre}_clans cln2 ON clans2_id = cln2.clans_id';
$select  'matches_id, matches_date, clans1_id, clans2_id, cln1.clans_name';
$select .= ' AS clans1_name, cln2.clans_name AS clans2_name, games_id';
$order    'matches_date DESC';
$limit    $account['users_limit'];
$bx_matches bx_sql_select(__FILE__,$from,$select,$where,$order,$start,$limit);
$loop        count($bx_matches);

echo 
bx_html_table(1,'forum',1);
echo 
bx_html_roco(1,'headb',0,0,'5%');
echo 
$bx_lang['game'];
echo 
bx_html_roco(2,'headb');
echo 
$bx_lang['clan1'];
echo 
bx_html_roco(3,'headb');
echo 
$bx_lang['clan2'];
echo 
bx_html_roco(4,'headb');
echo 
$bx_lang['date'];
echo 
bx_html_roco(5,'headb',0,4,'70px');
echo 
$bx_lang['options'];
echo 
bx_html_roco(0);

$ico_rounds        bx_icon('agt_reload',16,$bx_lang['rounds']);
$ico_picture    bx_icon('kpaint',16,$bx_lang['picture']);
$ico_edit            bx_icon('edit',16,$bx_lang['edit']);
$ico_remove        bx_icon('editdelete',16,$bx_lang['remove']);

for (
$run 0$run $loop$run++)
{
    
$match_id $bx_matches[$run]['matches_id'];
    
$clan1        $bx_matches[$run]['clans1_name'];
    
$clan2        $bx_matches[$run]['clans2_name'];
    
$game_ico bx_html_img('uploads/games/' $bx_matches[$run]['games_id'] . '.gif');
    
$matches_date bx_date('unix',$bx_matches[$run]['matches_date'],1);

    echo 
bx_html_roco(1,'leftb');
    echo 
bx_link($game_ico,'games','view','id=' $bx_matches[$run]['games_id']);
  echo 
bx_html_roco(2,'leftb');
  echo 
bx_link($clan1,'clans','view','id=' $bx_matches[$run]['clans1_id']);
  echo 
bx_html_roco(3,'leftb');
  echo 
bx_link($clan2,'clans','view','id=' $bx_matches[$run]['clans2_id']);
  echo 
bx_html_roco(4,'leftb');
    echo 
bx_link($matches_date,'matches','view','id=' $match_id);
  echo 
bx_html_roco(5,'leftc');
  echo 
bx_link($ico_rounds,'matches','rounds','id=' $match_id);
  echo 
bx_html_roco(6,'leftc');
  echo 
bx_link($ico_picture,'matches','picture','id=' $match_id);
  echo 
bx_html_roco(7,'leftc');
  echo 
bx_link($ico_edit,'matches','edit','id=' $match_id);
  echo 
bx_html_roco(8,'leftc');
  echo 
bx_link($ico_remove,'matches','remove','id=' $match_id);
  echo 
bx_html_roco(0);
}
echo 
bx_html_table(0);

?>


oder hat es gar nix mit dieser php zu utn?!
thx 4 help


Zuletzt editiert von MdS` am 27.02.2007 um 13:59 Uhr (1x Editiert)
Inaktiv
duRiel ClanSphere Team


Weltmeister




Herkunft: Cambridge
Beiträge: 7300
# Antwort: 1 - 27.02.2007 um 16:32 Uhr
rofl, wie kommst du denn darauf dass diese datei was damit zu tun hat ;D

allein schon bx_translate('matches','manage'); als 1. funktionsaufruf weist auf das modul "matches" hin, was ein addon ist und nichts mit der shoutbox zu tun hat.

mods/shoutbox/manage.php ist die richtige datei.

da bxcp 0.3.2.2 aber schon wieder ne weile alt ist kann ich den fehler nicht nachvollziehen, wahrscheinlich ist der auch schon gefixt, einfach mal updaten


Inaktiv
|
mikeda


King for a day




Beiträge: 297
# Antwort: 2 - 27.02.2007 um 17:02 Uhr
Hi,
ich hab RC2 - da ist das Problem auch -
wenn sowas ist muss ich es per MySql löschen - weils nicht
angezeigt wird - kommt selten vor das man was löschen
muss - deshlab ist die MySql variante für mich nicht weiter
tragisch.

Gruss
mikeda


Inaktiv
|
MdS`
Thread-Ersteller


Wannabe poster



Herkunft: Berlin
Beiträge: 36
# Antwort: 3 - 28.02.2007 um 02:17 Uhr
rofl ja^^ da habe ich die falsche datei kopiert^^ meinte aber die manage.php der shoutbox. naja egal ich hab bisher auch die sql lösch variante benutzt. wird wohl dabei bleiben, nicht sehr elegant, aber was solls....


Inaktiv
|
duRiel ClanSphere Team


Weltmeister




Herkunft: Cambridge
Beiträge: 7300
# Antwort: 4 - 28.02.2007 um 17:35 Uhr
danke für die bestätigung mikeda, hab jetzt nochmal reingeschaut und den fehler gefunden, somit auch danke für den bugreport @ MdS`!

ist im svn


Inaktiv
|
MdS`
Thread-Ersteller


Wannabe poster



Herkunft: Berlin
Beiträge: 36
# Antwort: 5 - 02.03.2007 um 21:55 Uhr
svn war hier subversion oder. das ist aber für cs, hab bxcp 0.3.2.2

hier nochmal der richtige code

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
1. / 2. / ... 
<?php
// bx clanportal - www.bxcp.com 
// $Id: manage.php 101 2006-07-12 09:36:29Z hajo $

$bx_lang bx_translate('shoutbox','manage');

$shoutbox_count bx_sql_count(__FILE__,'shoutbox');

$start = empty($_GET['start']) ? $_GET['start'];
settype($start,'integer');

$bx_sort[1] = 'shoutbox_name ASC';
$bx_sort[2] = 'shoutbox_name DESC';
$bx_sort[3] = 'shoutbox_date ASC';
$bx_sort[4] = 'shoutbox_date DESC';

$sort = empty($_GET['sort']) ? $_GET['sort'];
$order $bx_sort[$sort];

echo 
bx_html_table(1,'forum',1);
echo 
bx_html_roco(1,'headb','',2);
echo 
$bx_lang['head'];
echo 
bx_html_roco(0);
echo 
bx_html_roco(1,'leftc');
echo 
bx_icon('contents') . $bx_lang['all'] . ': ' $shoutbox_count;
echo 
bx_html_roco(2,'leftc');
echo 
bx_pages('shoutbox','manage',$shoutbox_count,$start,0,$sort);
echo 
bx_html_roco(0);
echo 
bx_html_table(0);
echo 
bx_html_br(1);

echo 
bx_html_table(1,'forum',1);
echo 
bx_html_roco(1,'headb');
echo 
bx_sort('shoutbox','manage',$start,0,1,$sort);
echo 
$bx_lang['name'];
echo 
bx_html_roco(2,'headb');
echo 
bx_sort('shoutbox','manage',$start,0,3,$sort);
echo 
$bx_lang['date'];
echo 
bx_html_roco(3,'headb','',3);
echo 
$bx_lang['options'];
echo 
bx_html_roco(0);

$select bx_sql_select(__FILE__,'shoutbox','shoutbox_id, shoutbox_name, shoutbox_date',"shoutbox_id > '" $start "'",$order,0,20);

if(empty(
$select)) {
    echo 
bx_html_roco(1,'leftb','',5);
    echo 
$bx_lang['no_entries'];
    echo 
bx_html_roco(0);
} else {
    foreach(
$select AS $shoutbox) {
        echo 
bx_html_roco(1,'leftb');
        echo 
$shoutbox['shoutbox_name'];
        echo 
bx_html_roco(2,'leftb');
        echo 
bx_date('unix',$shoutbox['shoutbox_date'],1);
        echo 
bx_html_roco(3,'leftb');
        
$img_edit bx_icon('edit',16,$bx_lang['edit']);
        echo 
bx_link($img_edit,'shoutbox','edit','id='.$shoutbox['shoutbox_id']);
        echo 
bx_html_roco(4,'leftb');
        
$img_del bx_icon('editdelete',16,$bx_lang['del']);
        echo 
bx_link($img_del,'shoutbox','remove','id='.$shoutbox['shoutbox_id']);
        echo 
bx_html_roco(5,'leftb');
        
$img_ip bx_icon('important',16,$bx_lang['ip']);
        echo 
bx_link($img_ip,'shoutbox','ip','id='.$shoutbox['shoutbox_id']);
        echo 
bx_html_roco(0);
    }
}
echo 
bx_html_table(0);
?>


Inaktiv
|
duRiel ClanSphere Team


Weltmeister




Herkunft: Cambridge
Beiträge: 7300
# Antwort: 6 - 03.03.2007 um 01:40 Uhr
 
1.
2.
3.
1. / 2. / ... 
<?php
$select 
bx_sql_select(__FILE__,'shoutbox','shoutbox_id, shoutbox_name, shoutbox_date',0,$order,$start,20);
?>


Inaktiv
|
Antworten: 6
Seite [1]


Sie müssen sich registrieren, um zu antworten.