Thanks... i know right now I am the only one that is accessing it anyways (password protected). But I am still working on it.
151 2008-03-05 19:27
Re: php file upload - what am I doing wrong? (3 replies, posted in Programming)
152 2008-03-05 19:20
Re: vaildations errors (33 replies, posted in PunBB 1.2 troubleshooting)
Why did you take the valid xhtml logo off???
153 2008-03-05 07:14
Re: php file upload - what am I doing wrong? (3 replies, posted in Programming)
If someone could please help me...
I am not sure, but it might be because of the file permissions...
154 2008-03-04 16:01
Re: vaildations errors (33 replies, posted in PunBB 1.2 troubleshooting)
find
<script type="text/javascript" language="javascript">
replace with
<script type="text/javascript">
and in your announcement, find
<font size="4" color="#FF0000" face="Arial">This Site is Moved to
<a href="http://www.Sportstv.co.cc">www.Sportstv.co.cc</a> . The Next time you
want to open this Site then Open it in the New Address ... The Old One will not
work after some while.</font>
and replace with
<span style="color: #FF0000; font-family: Arial; font-size: 2em;">This Site is Moved to
<a href="http://www.Sportstv.co.cc">www.Sportstv.co.cc</a> . The Next time you
want to open this Site then Open it in the New Address ... The Old One will not
work after some while.</span>
And you're done...
155 2008-03-04 15:25
Re: vaildations errors (33 replies, posted in PunBB 1.2 troubleshooting)
Validation is about having your code standardized...
for errors 1-3: replace "<meta ...>" with "<meta .../>"
for error 4: you have to add the following tag to the end of your search form (nest it correctly!!!): "</form>"
for errors 5-7: replace these attributes with the correct css styling (add the attribut style...)
for error 8: use span rather than font (do the styling with css, see above)
for error 9: remove the language attribute
for error 10: i am not sure, but remove the line break before the ending ">" of the keywords meta tag...
the other ones might be gone automatically when you fix these... try them first and lets see what you get then...
156 2008-03-03 17:00
Topic: php file upload - what am I doing wrong? (3 replies, posted in Programming)
It just doesn't work...
Here is the form:
<form id="reportedit" method="post" action="<?php echo $_SERVER['REQUEST_URI'] ?>" enctype="multipart/form-data">
<div class="inform">
<fieldset>
<legend>Hier können Sie den Spielbericht eingeben / ändern.</legend>
<div class="infldset">
<table class="aligntop" cellspacing="0">
<input type="hidden" name="form_sent" />
<tr>
<th scope="row">Unsere Aufstellung</th>
<td>
<textarea name="lineup" rows="2" cols="40" tabindex="1"><?php echo $game['aufstellung'] ?></textarea>
</td>
</tr>
<tr>
<th scope="row">Tore</th>
<td>
<textarea name="goals" rows="5" cols="40" tabindex="2"><?php echo $game['tore'] ?></textarea>
</td>
</tr>
<tr>
<th scope="row">Bericht</th>
<td>
<textarea name="report" rows="15" cols="100" tabindex="3"><?php echo $game['report'] ?></textarea>
</td>
</tr>
<tr>
<th scope="row">Bild</th>
<td>
<?php if ($game['bild']) : ?>
<img src="<?php echo PUN_ROOT.'img/reports/'.$game['bild'] ?>" />
<a href="reports.php?delete_pic=<?php echo $id ?>">Bild löschen</a><br /><br />
<?php endif; ?>
<input type="file" name="picture" tabindex="4" />
<span>Wenn Sie ein neues Bild hochladen möchten, wählen Sie einfach ein neues Bild aus. <strong>Das alte Bild wird dann jedoch gelöscht.</strong><br />Wenn Sie das Bild weiterhin bzw. gar kein Bild verwenden möchten (falls kein Bild vorhanden ist), lassen Sie das Feld einfach leer.</span>
</td>
</tr>
<tr>
<th scope="row">Alternativ-Text für Bild</th>
<td>
<input type="text" name="picture_alt" size="60" value="<?php echo $game['bild_alt'] ?>" tabindex="5" />
<span>Der Text wird angezeigt, wenn mit der Maus über das Bild gefahren wird oder das Bild nicht angezeigt wird.</span>
</td>
</tr>
</table>
</div>
</fieldset>
</div>
<p class="submitend"><input type="submit" name="edit_report" value=" Speichern " tabindex="6" /></p>
</form>
And here is the upload code:
$id = intval($_GET['edit']);
$timestamp = mktime($_POST['hour'], $_POST['minute'], 0, $_POST['month'], $_POST['day'], $_POST['year']);
if(isset($_POST['form_sent']))
{
if (!empty($_POST['picture']))
{
$result = $db->query('SELECT bild FROM spiele WHERE id='.$id) or error('Unable to fetch picture information', __FILE__, __LINE__, $db->error());
$picture = $db->result($result);
if($picture)
@unlink(PUN_ROOT.'img/reports/'.$picture);
$uploaded_file = $_FILES['picture'];
// Make sure the upload went smooth
if (isset($uploaded_file['error']))
{
switch ($uploaded_file['error'])
{
case 1: // UPLOAD_ERR_INI_SIZE
case 2: // UPLOAD_ERR_FORM_SIZE
message('Die Datei ist zu groß Der Server hat den Upload verboten.');
break;
case 3: // UPLOAD_ERR_PARTIAL
message('Die Datei wurde nur teilweise hochgeladen. Bitte versuchen Sie es erneut.');
break;
case 4: // UPLOAD_ERR_NO_FILE
message('Sie haben keine Datei zum Upload ausgewählt.');
break;
case 6: // UPLOAD_ERR_NO_TMP_DIR
message('PHP war nicht in der Lage, die Datei in einem vorläufigen Verzeichnis zu speichern.');
break;
default:
// No error occured, but was something actually uploaded?
if ($uploaded_file['size'] == 0)
message('Sie haben keine Datei zum Upload ausgewählt.');
break;
}
}
if (is_uploaded_file($uploaded_file['tmp_name']))
{
$allowed_types = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/x-png');
if (!in_array($uploaded_file['type'], $allowed_types))
message('Die ausgewählte Datei besitzt keinen gültigen Dateityp. Erlaubt sind gif, jpeg und png.');
// Make sure the file isn't too big
if ($uploaded_file['size'] > $pun_config['o_avatars_size'])
message('Die ausgewählte Datei ist größer als die maximal erlaubte Dateigröße');
// Determine type
$extensions = null;
if ($uploaded_file['type'] == 'image/gif')
$extensions = array('.gif', '.jpg', '.png');
else if ($uploaded_file['type'] == 'image/jpeg' || $uploaded_file['type'] == 'image/pjpeg')
$extensions = array('.jpg', '.gif', '.png');
else
$extensions = array('.png', '.gif', '.jpg');
$name = time();
if (!@move_uploaded_file($uploaded_file['tmp_name'], PUN_ROOT.'img/reports/'.$name.'.tmp'))
message('Der Server war nicht in der Lage, die hochgeladene Datei zu verschieben. Bitte kontaktieren Sie den System-Administrator.');
list($width, $height, $type,) = getimagesize(PUN_ROOT.'img/reports/'.$name.'.tmp');
if (empty($width) || empty($height) || $width > $picture_max_width || $height > $picture_max_height)
{
@unlink(PUN_ROOT.'img/reports/'.$name.'.tmp');
message('Die ausgewählte Datei ist breiter und/oder höher als das erlaubte Maximum von '.$picture_max_width.'x'.$picture_max_height.' Pixeln.');
}
else if ($type == 1 && $uploaded_file['type'] != 'image/gif') {
@unlink(PUN_ROOT.'img/reports/'.$name.'.tmp');
message('Die ausgewählte Datei besitzt keinen gültigen Dateityp. Erlaubt sind gif, jpeg und png.');
}
@rename(PUN_ROOT.'img/reports/'.$name.'.tmp', PUN_ROOT.'img/reports/'.$name.$extensions[0]);
@chmod(PUN_ROOT.'img/reports/'.$name.$extensions[0], 0644);
}
else
message('Ein unbekannter Fehler trat auf. Bitte versuchen Sie es erneut.');
$result = $db->query("UPDATE spiele SET aufstellung='".$_POST['lineup']."', tore='".$_POST['goals']."', report='".$db->escape($_POST['report'])."', bild='".$name.$extensions[0]."', bild_alt='".$_POST['picture_alt']."' WHERE id=".$id) or error('Unable to update game report data', __FILE__, __LINE__, $db->error());
}
else
$result = $db->query("UPDATE spiele SET aufstellung='".$_POST['lineup']."', tore='".$_POST['goals']."', report='".$db->escape($_POST['report'])."', bild_alt='".$_POST['picture_alt']."' WHERE id=".$id) or error('Unable to update game report data', __FILE__, __LINE__, $db->error());
redirect('reports.php', 'Spielbericht gespeichert. Sie werden weitergeleitet …');
Sometimes I get the error message 'Ein unbekannter Fehler trat auf. Bitte versuchen Sie es erneut.' and sometimes it just redirects me without uploading anything.
Help me please!!!
157 2008-03-03 06:59
Re: problems... (2 replies, posted in PunBB 1.3 troubleshooting)
1. Thanks.
2. Come on, Paul.
3. Ok
158 2008-03-02 17:11
Topic: problems... (2 replies, posted in PunBB 1.3 troubleshooting)
1. when moderators are deleted they are not removed from the moderator list
(SOLVE IT: in delete_user(), clean_forum_moderators() needs to be called after the user is deleted, not before)
2. when avatars are bigger than the standard width (I allowed bigger avatar sizes), they are shown in their real sizes - so they are bigger than the user info box...
3. when you search and let the results be shown as posts, in some cases there is "Started by <name>" and "Topic by <name>" where <name> is the same... (only first posts of topics). Maybe you want to change that...???
159 2008-03-01 19:21
Re: [Extension Release] Two new releases (34 replies, posted in PunBB 1.3 extensions)
Well, of course. If you delete a forum or lets say category, all of its posts will be deleted, too. Thanks though, I will add a warning message to the delete forum/category page as I did on the prune topics page...
160 2008-02-27 10:24
Re: MyBB vs Punbb both 1.2 and 1.3 (17 replies, posted in PunBB 1.2 discussion)
that is indeed a good point though
Still... I just put an install note in my extension saying "You can find it... <here>"
Maybe the developers should just begin doing it like that...
161 2008-02-27 07:41
Re: [Extension Release] Two new releases (34 replies, posted in PunBB 1.3 extensions)
3.1b is out!
Tidied up a little and removed a few compatibility problems with other extensions (before there are any).
162 2008-02-27 07:30
Re: MyBB vs Punbb both 1.2 and 1.3 (17 replies, posted in PunBB 1.2 discussion)
SuperMAG wrote:kierownik wrote:I just installed mybb on my localhost and I took a look at the admincp and I got lost in where I should look for things
Let me just stick with punbb where everything is cristal clear and you can decide yourself what extra's you wantgood post
speaking about admin area in 1.3 .. i am realy dissapointed ...
i mean its to complicated for extensions sittings to be mixed with the orignal sittings ... in 1.2 you have plugins seperated ... this is a little complicated ... i wanted to ask them to make an page along with every extensions if they need sittings ... like (Disible - Unistall - Sitting)
but i guess i am alittle late for that ... am i
It is kind of easy to disable them. Just go to extensions and click "disable"...
163 2008-02-25 07:06
Re: Duplicate hooks / idea (7 replies, posted in PunBB 1.3 troubleshooting)
i see. thanks
164 2008-02-24 19:03
Re: Duplicate hooks / idea (7 replies, posted in PunBB 1.3 troubleshooting)
Ok thanks. I guess it would have helped if I would have looked at the code
Anyways, but if it is the same hook... I don't see why you should apply the same code to both queries since one of them is an array and the other one isn't...
165 2008-02-24 16:27
Re: Duplicate hooks / idea (7 replies, posted in PunBB 1.3 troubleshooting)
I still don't understand why they are duplicates, though...
Also, when subscribing to a topic, could it redirect to the place where you were? Really annoying (especially in big topics): You are always redirected to the beginning of the topic.
And what about this?
166 2008-02-24 16:12
Topic: Duplicate hooks / idea (7 replies, posted in PunBB 1.3 troubleshooting)
The following hooks are duplicate (if you watch out, there won't be anymore - these are all for the whole source code right now):
aex_qr_delete_hooks
afo_qr_delete_forum_perms
fn_qr_add_online_user
fn_qr_add_online_guest_user
(in admin/extensions.php, admin/forums.php and twice include/functions.php).
----------------------------------------------------------------
Also, when subscribing to a topic, could it redirect to the place where you were? Really annoying (especially in big topics): You are always redirected to the beginning of the topic.
167 2008-02-24 15:48
Re: Hook requests (151 replies, posted in PunBB 1.3 extensions)
We need a hook in include/common_admin.php (function generate_admin_menu) to add main tabs to the admin menu.
168 2008-02-22 08:48
Topic: Hooks... (1 replies, posted in PunBB 1.3 troubleshooting)
In functions.php, "fn_qr_delete_online_user3" is duplicate.
In edit.php, there is a hook called "po_end_validation". Is that correct?
169 2008-02-20 08:09
Re: PunBB 1.3 Beta (48 replies, posted in News)
When will the documentation be ready?
170 2008-02-20 07:49
Topic: pm extension (7 replies, posted in PunBB 1.3 extensions)
anybody working on that?
171 2008-02-20 07:42
Re: extensions uninstall note(s) (6 replies, posted in PunBB 1.3 troubleshooting)
And what about this?
172 2008-02-20 07:34
Re: [Extension Release] Two new releases (34 replies, posted in PunBB 1.3 extensions)
3.0b is out!
Fixed a few bugs (more than you noticed), added the option to sort the post by delete date.
I might still have to adapt something because of pun_url being gone in the admin section...
173 2008-02-20 07:26
Re: extensions uninstall note(s) (6 replies, posted in PunBB 1.3 troubleshooting)
But it displays more than one note when installing...
174 2008-02-20 07:02
Re: [extension release] Portal (119 replies, posted in PunBB 1.3 extensions)
The search options should be aligned more nicely...
Except for that, looks great! I especially like the User Panel...
175 2008-02-20 06:56
Re: extensions uninstall note(s) (6 replies, posted in PunBB 1.3 troubleshooting)
Ok, but it won't display more than one uninstall note, right?