1 (edited by infonet 2007-07-17 14:04)

Topic: Table Small

as I can make to reorganize the table of the forum from 100% to 80% I want the table
to 800 pixels 
 
thanks

2

Re: Table Small

In your style css find "#punwrap" and change the width to 800px

#punwrap  { margin: 12px 20px; width: 800px }

Is this what you're looking for?

Re: Table Small

thanks

4

Re: Table Small

your welcome, glad I could help - I got a lot of help here....

Re: Table Small

ok

Re: Table Small

have problem positoin forum hrlp my

thanks

7

Re: Table Small

...sorry you need this, if you want the forum centered on stage

#punwrap  { margin: 0 auto 0; width: 800px }

where the first "0" ist the margin on top and the last "0" ist the margin bottom. "auto" sets left and right margin to auto and center the "punwrap" div on stage (but that works only,if the div has an defined width)

Re: Table Small

sorry have problem position name forum

pixel prpblem ok

9

Re: Table Small

What would you like to do with the name?
Do you have a link to your forum to see what's wrong?

10

Re: Table Small

Do you mean the Title of the forum?
If so, you have to find in the CSS "#brdtitle" - or create, I don't think it is actually there

#brdtitle { margin-left: 300px }

...and set some stuff

Re: Table Small

ok this

and possible attacmant photo inside post

thanks

12

Re: Table Small

well, you can use the normal "img_tag", but the photo has to be uploaded somewhere or you use some mods like:

http://www.punres.org/desc.php?pid=362
http://www.punres.org/desc.php?pid=77
http://www.punres.org/viewtopic.php?id=789&p=1  (I use this one)
http://www.punres.org/viewtopic.php?pid=16629#p16629 (very nice - and easy to install)

Re: Table Small

have this version http://lnx.fieranautica.com/Forum/index.php

punbb-1.2.15

as I can have the mod installed attacment image 
 
thanks

14

Re: Table Small

You can't install it?
If it says your version wont match with this mod
You can open up the "install_mod.php" file and find the line (somewhere at the beginning)

// One or more versions of PunBB that this mod works on. The version names must match exactly!
$punbb_versions    = array('1.2', '1.2.1', '1.2.3', '1.2.4', '1.2.5');

...and add your version in that array.

And if you are making modifications to your forum files, don't forget to comment your changes in that file - it will be easier to find those places later on if something went wrong.

Re: Table Small

from where I can take the donwload of the file
attacmanet

16

Re: Table Small

you can download the mods from the links I posted -

click on download files - files - and choose the newest file

Re: Table Small

have this errore http://lnx.fieranautica.com/Forum/plugi … ll_mod.php

Re: Table Small

You upload the contents of your "upload" folder to the "Forum" folder

Re: Table Small

have same problem

http://lnx.fieranautica.com/Forum/uploa … ll_mod.php

Re: Table Small

No, the CONTENTS, not the folder itself
So you should have
http://lnx.fieranautica.com/Forum/install_mod.php

Re: Table Small

this http://lnx.fieranautica.com/Forum/install_mod.php

after

Re: Table Small

no64 wrote:

You can't install it?
If it says your version wont match with this mod
You can open up the "install_mod.php" file and find the line (somewhere at the beginning)

// One or more versions of PunBB that this mod works on. The version names must match exactly!
$punbb_versions    = array('1.2', '1.2.1', '1.2.3', '1.2.4', '1.2.5');

...and add your version in that array.

And if you are making modifications to your forum files, don't forget to comment your changes in that file - it will be easier to find those places later on if something went wrong.

Re: Table Small

my version instaled and this punbb-1.2.15

Re: Table Small

this file install_mod


<?php
/***********************************************************************/

// Some info about your mod.
$mod_title      = 'Image Award Mod';
$mod_version    = '1.0';
$release_date   = '2005-05-16';
$author         = 'Frank Hagström';
$author_email   = 'frank.hagstrom+punbb@gmail.com';

// One or more versions of PunBB that this mod works on. The version names must match exactly!
$punbb_versions    = array('1.2.5');

// Set this to false if you haven't implemented the restore function (see below)
$mod_restore    = true;


// This following function will be called when the user presses the "Install" button.
function install()
{
    global $db, $db_type, $pun_config;

    
    $db->query("ALTER TABLE ".$db->prefix."users ADD imgaward VARCHAR(255) NOT NULL") or error('Unable to add column "imgaward" to table "users"', __FILE__, __LINE__, $db->error());

}

// This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above))
function restore()
{
    global $db, $db_type, $pun_config;

    $db->query("ALTER TABLE ".$db->prefix."users DROP imgaward") or error('Unable to drop column "imgaward" from table "users"', __FILE__, __LINE__, $db->error());

}

/***********************************************************************/

// DO NOT EDIT ANYTHING BELOW THIS LINE!


// Circumvent maintenance mode
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

// We want the complete error message if the script fails
if (!defined('PUN_DEBUG'))
    define('PUN_DEBUG', 1);

// Make sure we are running a PunBB version that this mod works with
if(!in_array($pun_config['o_cur_version'], $punbb_versions))
    exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions));

$style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $mod_title ?> installation</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" />
</head>
<body>

<div id="punwrap">
<div id="puninstall" class="pun" style="margin: 10% 20% auto 20%">

<?php

if (isset($_POST['form_sent']))
{
    if (isset($_POST['install']))
    {
        // Run the install function (defined above)
        install();

?>
<div class="block">
    <h2><span>Installation successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully prepared for <?php echo pun_htmlspecialchars($mod_title) ?>. See readme.txt for further instructions.</p>
        </div>
    </div>
</div>
<?php

    }
    else
    {
        // Run the restore function (defined above)
        restore();

?>
<div class="block">
    <h2><span>Restore successful</span></h2>
    <div class="box">
        <div class="inbox">
            <p>Your database has been successfully restored.</p>
        </div>
    </div>
</div>
<?php

    }
}
else
{

?>
<div class="blockform">
    <h2><span>Mod installation</span></h2>
    <div class="box">
        <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?foo=bar">
            <div><input type="hidden" name="form_sent" value="1" /></div>
            <div class="inform">
                <p>This script will update your database to work with the following modification:</p>
                <p><strong>Mod title:</strong> <?php echo pun_htmlspecialchars($mod_title).' '.$mod_version ?></p>
                <p><strong>Author:</strong> <?php echo pun_htmlspecialchars($author) ?> (<a href="mailto:<?php echo pun_htmlspecialchars($author_email) ?>"><?php echo pun_htmlspecialchars($author_email) ?></a>)</p>
                <p><strong>Disclaimer:</strong> Mods are not officially supported by PunBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.</p>
<?php if ($mod_restore): ?>                <p>If you've previously installed this mod and would like to uninstall it, you can click the restore button below to restore the database.</p>
<?php endif; ?>            </div>
            <p><input type="submit" name="install" value="Install" /><?php if ($mod_restore): ?><input type="submit" name="restore" value="Restore" /><?php endif; ?></p>
        </form>
    </div>
</div>
<?php

}

?>

</div>
</div>

</body>
</html>

Re: Table Small

ok

new error http://lnx.fieranautica.com/Forum/insta … hp?foo=bar