So, this allows me, as an admin at my forums, to post HTML?

1,452

(4 replies, posted in PunBB 1.2 discussion)

The PunBB download archive comes with a file in the /extras directory that updates your forum's database. Also, there is a forum version changer plugin in the downloads section (http://punbb.org/downloads.php).

1,453

(3 replies, posted in PunBB 1.2 discussion)

I'd like to prevent users from registering on my forums with temporary email addresses. Besides jetable.org, does anyone know some domains I should block?

1,454

(101 replies, posted in PunBB 1.2 discussion)

CodeXP wrote:

What this does, is check if the specified server responds to a "ping". If it doesn't, well, you'll get the invalid e-mail adress error message. It won't do much good if the "hacker" really specifies a real e-mail domain, but he didn't in this case, so then it would have blocked him smile

I made the tweak on my register.php, and tried registering with the email brian@ZZZZZZZZZZZZZZZY.org (fake), yet the registration still went throught. Any ideas?

druvans wrote:

I opened the forwarding functionality for Guests also.
Restricted guests from editing message and title with readonly tag,  tested with IE and mozilla latest versions. hope that will work with older versions also

Installed the mod, works great. How can I enable forwarding for guests too, like you did?

Ok, thanks, I'll try it out. I knew about the semicolons, and was planning on getting rid of them. That's just what the original author put in.

Right now I'm trying to integrate a simple link script called DS Linker into my forums. However, when I try to test the little progress I've made so far, I get the following error:

Parse error: parse error, unexpected $ in /mnt/web_g/d20/s22/a000skup/www/awesome/forum/linkerintegrated.php on line 69

Here's the code I have so far (not much, and not yet very well polished, but it's a start)

<?php
# Email address for link submissions to be sent to. (Required)
$sendto = "XXXXXXXXXXXXXXXXXXXXX";

# Set this to a password you will have to enter to approve links (Required)
$approvepass = "XXXXXXXXXXXXXXXX";

# Subject line in the email notification. (Required)
$subject = pun_htmlspecialchars($pun_config['o_board_title']) . ' / New Link';

# Form position. Top = 1, Bottom = 0. (Required)
$form = "0";

# Display name of link submitter with link? yes = 1, no = 0. (Required)
$submitname = "1";

# Link descriptions? yes = 1, no = 0. (Required)
$description = "1";

# Page title, e.g. the text between <title></title>. (Required)
$title = "Links";

# Text at the top of the page, leave blank for none. (Optional)
$toptext = "Member Links";

# For text longer than a few words, put it in a txt file, put the file in the same directory as linker.php, and give the filename here. (Optional)
$longtext = "";

# End of config section, do not edit below this line
/*==================================================================================*/
$version = 1.3;
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / ' . $title;
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
 
?>
        <div class="block">
            <h2><span><?php echo($toptext); ?></span></h2>
            <div class="box">
                <div class="inbox">
                    <?php
        if (!isset($_GET['action'])) {
            ob_start();
            include_once("links.dat");
            $rawdat = ob_get_contents();
            ob_end_clean();
            $dat = strip_tags($rawdat, '<a><b><i><u><br><p>');
    
        if ($longtext != "") {
            include("$longtext");
            print ("<p>");
        };
        if ($form == "0") {
            print ($dat);
        };
        ?>
                </div>
            </div>
        </div>
<?php
 
require PUN_ROOT.'footer.php';

Does anyone know how to stop this error? I can't proceed until I figure it out.

P.S. Even if i delete line 69 (the footer.php thing), the error still appears, just for a different line.

1,458

(15 replies, posted in PunBB 1.2 discussion)

Smartys wrote:

Now that I think about it, if you keep a "last edited" and "last edited post id" for each topic, you can check both: I was only thinking in terms of modding the code from what already existed.

Sorry sad, but once again, I really can't say that I understand what you're saying.

Smartys wrote:

Oh, and to explain #4 a little better
With a plain PunBB install, it's impossible to add another moderator group. However, if you edit the line in certain files for the variable $is_admmod (ie: edit.php, delete.php, viewforum.php, etc) so that another group matches it, you've "added" a group as moderators. You also have to make edits in profile.php so you can assign people in that user group to forums

Ok, I see what you're saying now. My PHP isn't that good, and I'm not that familiar with PunBB's source or inner workings or anything, but anyway could I do something along these lines?:

if ($someusergroup) {$is_admmod = TRUE}

If that's possible, is there a file in /include or something (common.php? - I dunno, just guessing by the name) to which I could add the code? Or would I just have to add it individually to each file where it's needed (assuming that would work, of course).

Hopefully multiple moderator user groups will be a feature in an upcoming version.

Jérémie wrote:

For pogenwurst: look at the MarkAsRead modification. But it's a mod, so that mean ssh, svn, diff, patch, grep and all kind of dino-geeky-wizard things to keep your punbb updated after it (when it can be updated).

Do you mean this: http://punres.org/viewtopic.php?id=321 ? Does that mod achieve the desired effect with editing posts that I mentioned before? I haven't seen anything saying it does, but maybe I missed something. Anyway, I don't mind installing mods - actually, I enjoy it, and have done so on several occasions. That mod was actually one I was planning on adding anyway.

Paul wrote:

I can't see the difficulty either. Isn't it just a case of checking against both the post time and edit time and if either is newer than the last visit time mark the post as new. Or did you mean posts that have been edited during the current visit.

Current visit would be preferrable, but just from last visit would be good too, and, in most cases, be good enough. How would I go about doing this?

1,459

(15 replies, posted in PunBB 1.2 discussion)

Smartys wrote:

4 isn't possible without editing every $is_admmod check and a couple others wink

Sorry, but I really don't know what that means.

Smartys wrote:

3 is possible by commenting out the checkbox and changing

$edited_sql = (!isset($_POST['silent']) || !$is_admmod) ? $edited_sql = ', edited='.time().', edited_by=\''.$db->escape($pun_user['username']).'\'' : '';

to

$edited_sql = ', edited='.time().', edited_by=\''.$db->escape($pun_user['username']).'\'';

Thanks! I'll have to give it a try.

Smartys wrote:

2. Is possible through moderate.php, they delete like normal topics

Oops... I never even thought of that.

Smartys wrote:

1. Is very difficult tongue

Yeah, I kinda thought it would be.

- Mark a post that has been edited since your last view of it as unread (I dunno, maybe, this one might be a bit tricky)
- Delete redirects to topics (Moved: blah blah blah)
- Disable silent edits
- Create a new user group and be able to give it's members moderator priveleges

1,461

(15 replies, posted in General discussion)

I'm just plain sick of those kind of arguments. The number of security bugs doesn't matter. It's the severity of those bugs, how long it takes to patch them (if they are patched at all), and how those bugs are exploited by hackers and purveyors of spyware, adware, etc.

1,462

(67 replies, posted in News)

Upgrade went fine, even with some mods installed. Yay!

Sounds cool. I'll have to try it.

1,464

(6 replies, posted in Feature requests)

Cool. Thanks CodeXP!

Shamir wrote:

Does this work on 1.2.7?

Yes.

1,466

(5 replies, posted in PunBB 1.2 show off)

Awesome. Is that a modified version of the Kontrast style?

Try looking at the docs to find out how to generate an RSS feed of new topics, then use a service such as RSSFWD.

I just added it to my forums - works wonderfully. Thanks!

1,469

(9 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

The redirect bug was fixed in 1.2.7.

That's wierd - I didn't have trouble with 1.2.6 either.

1,470

(41 replies, posted in PunBB 1.2 modifications, plugins and integrations)

Tobi wrote:

Since I've done a rather grown up image catalogue anyway I'd rather base it on that. wink

Yeah, that would probably be better.

1,471

(9 replies, posted in PunBB 1.2 troubleshooting)

I'm also on Fx 1.0.6, but no problems with redirects. Do you have any extensions/settings that might be causing trouble?

rootuid wrote:

Works great thanks.

No problem.

tobi wrote:

The only tricky part is that it requires a new field in PREFIXgroups. That's defined in mod_install.php so maybe you can do it in phpMyAdmin.

Ok, I just realized my host had phpmyadmin pre-installed smile. What command can I put in to add the new field?

1,474

(41 replies, posted in PunBB 1.2 modifications, plugins and integrations)

Rod wrote:

Very interesting ... maybe I'll contact you for a bigger project :) but for newbies, it's perfect. is it possible to have a page which lists the uploaded files ?

I guess you could just make a script that lists the files in the img/users directory. Wouldn't be all that elegant, but it'd work I guess. Once upon a time I downloaded a really old version (none of the fancy JS stuff, really bad design) of this script. You might be able to modify it or a similar script.

1,475

(34 replies, posted in Feature requests)

Rickard wrote:

I added a few more t-shirts with the bigger print. Thing is, you can only add a product type once, so you can't have the same t-shirt with two different prints.

Cool. If I ever go to a geek convention big_smile (not to insult anyone here, I spend way too much of my time on the PC too) I'll probably buy one.