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?
52 2005-05-06 01:20
Re: Warning : Security problem with google webaccelerator (19 replies, posted in General discussion)
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?
53 2005-05-05 21:41
Topic: Prevent moderators deleting posts made by admins (2 replies, posted in Feature requests)
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 2005-05-05 09:35
Topic: Problem with links (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 2005-05-04 21:35
Re: Word Association Thread (1,382 replies, posted in General discussion)
micro$oft
56 2005-05-04 01:08
Re: Word Association Thread (1,382 replies, posted in General discussion)
escalator
57 2005-05-03 08:46
Re: Ranks w/ stars ? (36 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I did when I used the one from punres because the double quotes weren't escaped.
59 2005-05-03 00:48
Re: Where do I change the text on the Registration page? (4 replies, posted in PunBB 1.2 discussion)
Hi
Try looking in lang/English/register.php
60 2005-05-02 23:49
Re: Ranks w/ stars ? (36 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Here's a little star if anybody wants it.
61 2005-05-02 23:47
Re: Ranks w/ stars ? (36 replies, posted in PunBB 1.2 modifications, plugins and integrations)
added to the punres wiki 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.
62 2005-05-02 20:44
Re: Dynamic template mod (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
This is great
63 2005-05-02 17:57
Re: Most users online mod (1 replies, posted in PunBB 1.2 troubleshooting)
Never mind, it started working for some reason. I think I had the table wrong.
64 2005-05-02 16:58
Topic: Most users online mod (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
65 2005-05-02 01:36
Re: Ranks w/ stars ? (36 replies, posted in PunBB 1.2 modifications, plugins and integrations)
there should be a default image supplyed with it for those who are graphicaly challanged (and lazy)
lol
66 2005-05-02 00:31
Re: [minimod] Last topic name in forum list. (27 replies, posted in PunBB 1.2 modifications, plugins and integrations)
That gives me an error
Parse error: parse error, unexpected '>'
67 2005-05-01 22:57
Re: PunBB Light Version... (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.
68 2005-05-01 22:51
Re: [minimod] Last topic name in forum list. (27 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
69 2005-05-01 21:38
Re: Can you make a Preview post button and a spell check button? (44 replies, posted in Feature requests)
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)">
70 2005-05-01 21:30
Re: Can you make a Preview post button and a spell check button? (44 replies, posted in Feature requests)
Cool...I made a worthwhile contribution to a much needed mod.
71 2005-05-01 21:17
Re: Can you make a Preview post button and a spell check button? (44 replies, posted in Feature requests)
If I had only waited a couple more hours life would've been much easier
72 2005-05-01 14:53
Re: [minimod] Last topic name in forum list. (27 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Any way to get this to work with version 1.2.5?
73 2005-05-01 14:02
Re: Can you make a Preview post button and a spell check button? (44 replies, posted in Feature requests)
Thanks....it works great now
74 2005-05-01 13:49
Re: Can you make a Preview post button and a spell check button? (44 replies, posted in Feature requests)
LOL...it works perfect for replies but not for posts.