Hey Chacmool!  I'm a fan of your work...

I've installed PunPoll v1.2.4, and it works a treat: http://shuttertalk.com

However, just some feedback - when editing topics, the poll section should be hidden unless there is already a poll on the topic.  I suggest maybe making it like the new post form -- where there's a checkbox to show the poll section or not, and then make it checked by default if there is a poll on the topic already.

What do you think?

Also, do you have steps on how to install it on edit.php as well?

Thanks,
Jules

oooh, thank ye thank ye!

Hey Chacmool, now that punres is down, where can I download this mod?

205

(5 replies, posted in Feature requests)

Ok thanks.

Here's my contribution to the world of punbb: smile

<form method="get" action="forums/search.php" id="search">
Search forums:<br>
<input type="hidden" name="action" value="search">
<input type="text" name="keywords" size="14" maxlength="100">
<input type="submit" name="search" value="Go" accesskey="s">
</form>

You can also add

<input type="hidden" name="show_as" value="topics">

if you want your results to show up as topics (default search behaviour), instead of posts.

Demo on my site: http://www.shuttertalk.com

Cheers,
Julian

206

(5 replies, posted in Feature requests)

My punbb forums are installed under:
http://www.shuttertalk.com/forums/

I want to put a search box on my front page at
http://www.shuttertalk.com/index.php
which can search the forums, without having to enter the forums first, and then click on "search"

207

(5 replies, posted in Feature requests)

Hi all,

Just wondering, if anyone has some HTML to put a quick search box on the front page of your site?  Don't want to re-invent the wheel...


Thanks!
Jules

Hi Maciek,

I installed your mod - great idea and I really like it. It's very useful for everyday use.

Just some feedback:

1)  In firefox browsers, the buttons show up as normal buttons, instead of the flat style sheet ones.  any ideas?

2)  I didn't like the way your mod introduces new, non-standard bbcode (e.g. size, font, list).  My suggestion would be to put this functionality into a separate mod?

3)  Should also make the mod appear in the quickpost section.  It's pretty easy to do - I've modified your code to do so on my site:

http://www.shuttertalk.com/

Anyway, thanks again for the great mod!

Ok, number of posts added.

Changed line 243 (add t.num_replies to DB query)
and line 278 (to display $cur_topic['num_replies'])

I've updated the zip file if you're interested.

Oops, sorry.. my bad!  Serves me right for releasing untested code.

I've uploaded a new version, please use this one and follow the instructions below:
http://www.shuttertalk.com/externnews.zip

To turn off the paragraph truncation feature:

Comment out the following code (~269):

// Display first paragraph only (comment out next four lines to turn off)
//$paragraph = preg_split("/\s*\n+/", $cur_post['message']);
//if ($paragraph[1]) {
//    $cur_post['message'] = $paragraph[0] . "...";
//}

Let me know how you go!

211

(7 replies, posted in PunBB 1.2 show off)

Rickard wrote:

One thing I would change are the colors in the forum. It doesn't quite match up with the rest of the site.

Thanks for the comments, Rickard!  I'll look into the colour scheme.  I love PunBB by the way - keep up the good work!


p.s. when's 1.2 coming out?  can't wait!

Ev!L-E!NsTe!N wrote:

I like this moddification a lot btw.. but how can i display the text instead of only the first paragraph?

Hey Evil Einstein, thanks for the comments.

If you want to turn off the one-paragraph truncation, comment out the following block of code in externnews.php: (~line 269)

    // Display first paragraph only
    $paragraph = preg_split("/\s*\n+/", $cur_post['message']);
    if ($paragraph[1]) {
        $paragraph[0] .= "...";
    }

Cheers,
Julian

213

(7 replies, posted in PunBB 1.2 show off)

Site for digital photography for all those interested...
http://www.shuttertalk.com

Also managed to incorporate punbb as a news hack for the front page news...

Please feel free to post in the forums, and to leave feedback!

214

(12 replies, posted in Feature requests)

Yes please!  A forum setting where users can reply to existing topics, but not start new ones will be great!  Like AnzCFrk, I want to create a site news forum where only mods / admin can create topics, but also where users can reply to them.

Anyone know any quick mods / hacks to do this?

Hi,

I was looking for a simple solution for displaying forum posts on the front page of a site - nothing bloated like bolting on a CMS - but despite searching through the forums, I was unsuccessful.  As a result, I decided to hack the extern.php to do this.

It works pretty much the same way as extern.php works:
- just drop externnews.php into our forum directory, and include (as per extern.php)
- use action=new or active (but it would probably make sense to only use new)
- use fid to limit to one forum only
- Displays first paragraph of text only
- Does parsing of bbcode in text
- uses <div class="..."></div> CSS styles to display different sections.  Define these in your stylesheets to format them the way you want.

newsdateheader = date header for grouping posts by date
newsheading = news heading
newstext = actual post text
newstagline = the poster name and time of post

Todo:
- RSS part doesn't work, I've only done the HTML display at the moment
- Perhaps display posts from multiple forums (category maybe??)
- Improve db queries (I copied and pasted form viewtopic.php)
- Parsing of smilies doesn't quite work - image location is wrong //** Edit This can be fixed by copying the /forums/img/ directory to wherever you plan to use this script


Anyway, let me know how you go with this one.  I'm by no means a php programmer, and as I said before, this is just a hack I put together.  Please feel free to share your knowledge and improve on it (especially the RSS and smilies bit)...


Demo at: http://shuttertalk.com
Download from: http://shuttertalk.com/externnews.zip

Version history:
- 2004-06-02: changed display of posts, and added number of replies
- 2004-06-23: fixed "order by" bug on line 266

Enjoy!
Jules