51

(1 replies, posted in General discussion)

I have image posting disabled on my forums. Instead of displaying [ img]http://domain/image.gif[ /img] is there a way to display something like image posting disabled?

So if I use this to sign on to my site as Admin, other people that use the accelerator will be able to gain access to the admin section of my forums?

I noticed that mods can not ban admins but they can still edit/delete posts made by admins. How hard would it be to implement something to check that the post was made by admin and not allow mod to edit/delete it?

54

(0 replies, posted in PunBB 1.2 troubleshooting)

I tried putting links to recent posts on site index page. I have this in the page

<div id="leftcontent">
<div class="contentdivs">
<h5 align="center">Recent Forum Topics</h5>
<?
define('PUN_ROOT', '/home/user/public_html/forum/'); 
require PUN_ROOT.'include/common.php';
include('http://www.domain.com/forum/extern.php?action=active');
?>
</div>
</div>

And the css entry is this

#leftcontent { 
margin-top:5px; 
width:200px; 
float:left; 
}

.contentdivs{ 
background-color:#fff; 
margin:0px; 
padding:0px; 
border-style:double; 
margin-bottom: 5px; 
}

The recent topics show up just fine but they are not clickable links.

Edited to add:

They aren't clickable in IE 6 but in FF they are.

55

(1,382 replies, posted in General discussion)

micro$oft

56

(1,382 replies, posted in General discussion)

escalator

I did when I used the one from punres because the double quotes weren't escaped.

58

(1,382 replies, posted in General discussion)

stiff

Hi

Try looking in lang/English/register.php

Here's a little star if anybody wants it.

http://www.sellerscircle.com/forum/img/pip.gif

Connorhd wrote:

added to the punres wiki smile http://punres.org/doku.php?id=how-tos:adding_rank_icons

The last step needs changed to

<?php echo "<dd class=\"usertitle\">".$rank_pips."</dd>\n"; ?>

else it gives a parse error.

This is great smile

63

(1 replies, posted in PunBB 1.2 troubleshooting)

Never mind, it started working for some reason. I think I had the table wrong.

64

(1 replies, posted in PunBB 1.2 troubleshooting)

Trying to use an old mod found here http://punbb.org/forums/viewtopic.php?id=3439

The problem I'm having is that it doesn't write any values to the database and is only displaying the current number of users online in the place where it should display the most users ever online.

The code to add the value to the database is

// Most users-mod START
    // Set up the query and get the data
    $result = $db->query('SELECT * FROM '.$db->prefix.'most_users') or error('Unable to fetch most users online data', __FILE__, __LINE__, 

$db->error());

    $max_users_online = $db->fetch_assoc($result);
    // Add users and guests ´to $currently_online.
    // If you don't want to include guests, remove ' + $num_guests' below..
    $currently_online = $num_users + $num_guests;
    // If the amount of currently online users are more or equal to what was previously recorded..
    if ($currently_online>=$max_users_online['most_online']) 
    {
        // Set the time
        $max_users_online['when_was_it'] = time();
        // Set the amount of online users
        $max_users_online['most_online'] = $currently_online;
        // Store it in the table
        $db->query('UPDATE '.$db->prefix.'most_users SET most_online='.$currently_online.', when_was_it='.$max_users_online['when_was_it']) or error('Unable to update most users online data', __FILE__, __LINE__, $db->error());
    }
    // Most users-mod END

And the code to display it on the index page is

// MostUsers-mod START
    // Display what is currently stored in the table (using punBB date format).
    echo "\t\t\t\t\t\t".'<br>'.$lang_index['Most users'].'<strong>'.$max_users_online['most_online'].'</strong> ('.format_time($max_users_online['when_was_it']).').'."\n";
    // MostUsers-mod END
shinko_metsuo wrote:

there should be a default image supplyed with it for those who are graphicaly challanged (and lazy)

lol

That gives me an error

Parse error: parse error, unexpected '>'

67

(12 replies, posted in Feature requests)

The "lightness" was one of the reasons I chose PunBB. I love the speed it loads with and the small bandwidth it consumes.

This code

if ($cur_forum['last_post'] != '')
        $last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> '.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'<span class="byuser">'.$lang_common['in'].' <a href="viewtopic.php?id='.$cur_forum['last_tid'].'">'.pun_htmlspecialchars($cur_forum['last_subject']).'</a></span>';

shows the display as


Time by User
in Subject


How can I get it to show

Subject
Time
by User

I just want to check to be sure but when changing edit.php I just change

<p><input type="submit" name="submit" value="<?php echo $lang_common['Submit'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="s" /><input type="submit" name="preview" value="<?php echo $lang_post['Preview'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="p" /><a href="javascript:history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>

to this

<p><input type="submit" name="submit" value="<?php echo $lang_common['Submit'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="s" /><input type="submit" name="preview" value="<?php echo $lang_post['Preview'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="p" /><input type="button" value="Spell Check" onclick="openspell();" /><a href="javascript:history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>

and change

<form id="edit" method="post" action="edit.php?id=<?php echo $id ?>&action=edit" onsubmit="return process_form(this)">

to this

<form name="spelling_mod" id="edit" method="post" action="edit.php?id=<?php echo $id ?>&action=edit" onsubmit="return process_form(this)">

Cool...I made a worthwhile contribution to a much needed mod.

If I had only waited a couple more hours life would've been much easier tongue

Any way to get this to work with version 1.2.5?

Thanks....it works great now smile

LOL...it works perfect for replies but not for posts.

smile