76

(277 replies, posted in PunBB 1.2 discussion)

rickard I made some changes in punbb 1.2dev, they maybe util for you

index.php

find: 
moderated by

replace:
'.$lang_common['Modby'].'

Lang_common.php

add this line:
'Modby'            =>    'Moderated by',

i add the login box in main page the code is:
header.php

change all pun_status for this:
// START SUBST - <pun_status>
if ($pun_user['is_guest']){
    $tpl_temp = '<div class="boxin"><p class="conl">'.$lang_common['Not logged in'].'<br>'.$lang_common['ident'].'</p>';
    $tpl_temp .= '<p class="conr"><pun_logina></p></div>';
}
else
{
    $tpl_temp = '<div class="boxin"><p class="conl">'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong><br />'.$lang_common['Last visit'].': '.format_time($pun_user['last_visit']);

    if ($pun_user['g_id'] < PUN_GUEST)
    {
        $result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());

        if ($db->result($result_header))
            $tpl_temp .= '<br /><strong><a href="admin_reports.php">There are new reports</a></strong>';

        if ($pun_config['o_maintenance'] == '1')
            $tpl_temp .= '<br /><strong><a class="punhot" href="admin_options.php#maintenance">Maintenance mode is enabled!</a></strong>';
    }

    if (basename($_SERVER['PHP_SELF']) == 'index.php')
        $tpl_temp .= '</p><p class="conr"><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a><br /><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></p><div class="clearer"></div></div>';
    else
        $tpl_temp .= '</p><div class="clearer"></div></div>';
}

$tpl_main = str_replace('<pun_status>', $tpl_temp, $tpl_main);
// END SUBST - <pun_status>

// START SUBST - <pun_logina>
    ob_start();

?>
        <form name="login" method="post" action="<?php echo $pun_root;?>login.php?action=in" id="login">
        <input type="hidden" name="form_sent" value="1">
        <input type="hidden" name="redirect_url" value="<?php echo $_SERVER['REQUEST_URI']; ?>">
        <b><?php echo $lang_common['Username'] ?>:</b> 
        <input type="text" name="req_username" size="10" maxlength="20">
        <b><?php echo $lang_common['Password'] ?>:</b> 
        <input type="password" name="req_password" size="10" maxlength="16">
        <input type="submit" name="login" value="<?php echo $lang_common['Login'] ?>">
        </form>
<?php

    $tpl_temp = trim(ob_get_contents());
    $tpl_main = str_replace('<pun_logina>', $tpl_temp, $tpl_main);
    ob_end_clean();
// END SUBST - <pun_logina>

in your lang open common.php add this line:

'ident'                =>    'You must register to use all features of this forum',

77

(277 replies, posted in PunBB 1.2 discussion)

Rickard i want to ask you something, the things that you fixed where can i see it to arrange my punbb.

78

(277 replies, posted in PunBB 1.2 discussion)

rickard if already you fixed it, tell me like it adjustment in my punbb

79

(277 replies, posted in PunBB 1.2 discussion)

other problem in moderate.php

Notice: Undefined index: with_redirect in c:\appserv\www\foros\moderate.php on line 299

this leaves when I want to move a message

80

(277 replies, posted in PunBB 1.2 discussion)

i'm sorry for my english is very bad, i thank you a lot your help, i have alreade solve my problem, thank you very much

81

(277 replies, posted in PunBB 1.2 discussion)

this watches is something that to my to seem would improve the appearance on the one of the images, would be good than single re it determine the proportions images that leaves screen but small that not enlarges because image can to distort and with respect to the one of code and quote then serious good that it is possible to be left spaces underneath because if it put an image underneath would be seen very ugly.

82

(277 replies, posted in PunBB 1.2 discussion)

I found a problem, after tag code and tag quote is not possible to be left spaces.

hopefully has a fast solution.

83

(277 replies, posted in PunBB 1.2 discussion)

plop tongue only delete de row in the table tongue juaz sorry for my questions :$

84

(277 replies, posted in PunBB 1.2 discussion)

reupload what :S?? i try upload all files agaian but it failed

85

(277 replies, posted in PunBB 1.2 discussion)

and solution is :S

-----------------------

I am finishing the Spanish language for punbb 1,2 when it finishes it if you want I can be sent.

86

(277 replies, posted in PunBB 1.2 discussion)

i have this error con punbb 1.2

Notice: Undefined index: o_search_users in c:\appserv\www\foros\admin_options.php on line 525

this appear in admin options - Userlist search

87

(10 replies, posted in Feature requests)

I don't have much idea on that you can help with the code please, i try with other methods sad but and not obtained it

88

(10 replies, posted in Feature requests)

ummm but i need solution to punbb 1.1.5 :S

89

(10 replies, posted in Feature requests)

I have punbb 1,1,5 and in this version tag [ code ] is written of length without concerning the dimensions of the table, I need a solution for this in this version punbb.

Pd: excuse if I put it in the mistaken section single that nonwise where to put it

90

(4 replies, posted in PunBB 1.2 show off)

a ok sorry the forum this online only 16 hours online in the day sad this is a problem.

this is my code for upload.php

<?
//set these variables-----------------------------------------------------------------
$domain = "azakur4.ath.cx/Foros";      //your domainname
$path = ".../Forums/img/upload/";   //path to your targetfolder
$path_after_domain = "img/upload/";   //path to your targetfolder for use in url
$max_size = 153600;          //maximum filesize
//------------------------------------------------------------------------------------
?>

<html>
        <head>
            <title>Azakur4 WeBSiTe :: Foros - Image Upload</title>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <meta name="keywords" content="physics, math, science">
            <meta name="description" content="A community of Physics Phans!">

            <title>Azakur4 Foros / Ayuda</title>
            <link rel="stylesheet" type="text/css" href="http://azakur4.ath.cx/Foros/style/Oxygen.css">
        </head>
        
        <body>
<table border="1" cellpadding="1" cellspacing="4" width="100%">
  <td bgcolor="#DEDFDF">
<?php
if (!isset($HTTP_POST_FILES['userfile'])) 
{
?>
    <form action="upload.php" method="post" enctype="multipart/form-data">
    <font color="#102945" size="2" face="Verdana, Arial, Helvetica, sans-serif"><b><center>Sistema para Subir Images / Azakur4 WeBSiTe.</center></b></font>
    <br><center><b>Select an image file to upload (max 150KB):</b><br>
    <INPUT TYPE="file" NAME="userfile">
    <INPUT TYPE="submit" VALUE="Subir">
    </center>
    </form>
    <br><br><br><font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>© Copyright by Azakur4.</b></font>
<?php
} else {
    //Azakur4
    if (file_exists($path . $HTTP_POST_FILES['userfile']['name'])) 
    {
          echo '<b>Existe un archivo con ese nombre. Por favor renombrelo y intentelo otra vez.</b>';
        echo '<p><a href="javascript:history.back()">Regresar</a>';
        exit();
    }

    if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name']))
    {

        if (($HTTP_POST_FILES['userfile']['type']=="image/gif") || ($HTTP_POST_FILES['userfile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/jpeg")) 
      { 
        
            //Make sure that $size is less than 150KB
            if ($HTTP_POST_FILES['userfile']['size']>$max_size)
            {
        
                //Print the error
                echo '<b>Archivo muy grande. Por favor intentelo otra vez.</b>';
                echo '<p><a href="javascript:history.back()">Regresar</a>';
                exit();
        
            }
        
            //Move the File to the Directory of your choice
            $res = copy($HTTP_POST_FILES['userfile']['tmp_name'], $path .$HTTP_POST_FILES['userfile']['name']);
          if (!$res) 
            {
                //Print error
                echo '<b>No se pudo subir el archivo</b>';
                echo '<p><a href="javascript:history.back()">Regresar</a>';
                exit();    
            }
            else
            {
                //tell the user that the file has been uploaded
            echo '<font color="#102945" size="2" face="Verdana, Arial, Helvetica, sans-serif"><b><center>Sistema para Subir Images / Azakur4 WeBSiTe.</center></b></font>';
                echo '<br><center><font size="2"><b>Archivo Subido!</font></center><br>';
                echo '<p><center><b><a href=\'javascript:opener.Pastecode("[img]'."http://" . $domain . "/" . $path_after_domain . $HTTP_POST_FILES['userfile']['name'].'[/img]",""); javascript:close()\'>';
            echo '<font size="2" face="Verdana, Arial, Helvetica, sans-serif">[Pegar Imagen al Mensaje]</font></a></b></center>';
            echo '<br><font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>© Copyright by Azakur4.</b></font>';
                exit();
            }
        }
        else
        {
            //Print the error
            echo '<b>Solamente puedes subir imagenes. Por favor intentelo otra vez.</b>';
            echo '<p><a href="javascript:history.back()">Regresar</a>';
            exit();
        }
    }
    else
    {
    
    //Print error
    echo '<b>No hay archivo seleccionado</b>';
    echo '<p><a href="javascript:history.back()">Regresar</a>';

    }    

}
?>
</td>
</table>
</body>
</html>

you already modify it to your pleasure

PD: Sorry for my english is very bad sad i speak spanish tongue

92

(4 replies, posted in PunBB 1.2 show off)

this is my forum based on punbb he is something like punbb++ although I call Azakur4 WeBSiTe tongue

http://azakur4.ath.cx

it contains many modifications.

mini list of mods installed

-Attachment Mod
-Punbb Portal
-PunPoll
-Colors to differentiate to the Administrator from the Moderator and the Users
-upload image
-moreBB
-Private Message
-Reply Only
-EFAM
-Calendar 1.8
-Pun Post Preview
-PunOnline
-Chat

In Admin
-Backup & Restore

smile

exc work flavius thanks.

there is no some way to give him to permissions to upload something like

if ($cookie['is_guest']) message($lang_common['No permission']);

PD: excuse by my ingles, use the translator of google

apper this

No File Selected
Back

sorry, i'm noob in this and my english is very bad.

i have a problen with this mod.
i used this code

<script type="text/javascript">
   function open_win()
   {
      window.open("http://www.ilovephysics.com/forum/images/upload/upload.php","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=450, height=150")
   }
</script>
<form>
   <input type="button" value="Upload Image" onclick="open_win()">
</form>

and when the popup open apper this error

$URL = "http://xxxxxx/xxx/xxx/upload/"; $maxsize = 153600

and then apper the normal webpage.

what can i do to resolve this error plz help me.

reason why I see I am not first with this problem, in previous messages already have written the same

i have one error with this mod when I try to make a new post..

"Unable to fetch group info."

and seen no solution please they do not help me.