heheh no worries.  use the reply-only mod for that - instead of the admin/mod only forum. big_smile

Hey lemmage, thanks smile

I'm using both externnews.php and extern.php on the front page of my site http://www.shuttertalk.com without any problems.  However, I'm using the original version - not the version that jacobswell has modded.

Like you, I've set one forum to be the "admin only" forum, and used the "Reply Only" mod so that only admins and mods can start new topics in that forum.

lemmage wrote:

I am having trouble including extern and externnews becausee it says I can't call the same funcions in functions.php and etc.  I tried just taking out the functions include, but there are other things that get used twice as well.

Are you able to use just extern.php on its own?  If that works, then maybe try using my original version of the mod.

If that doesn't work then perhaps post the code that you use to call the extern.php and externnews.php, then maybe we could take a look at it.

Jules

awesome! big_smile

179

(72 replies, posted in General discussion)

pgregg wrote:

mmm, sounds like a forum to me - surely it would be trivial to extend PunBB to blogging?  Built in searching, archiving, etc - those who like the forum interface can read that way.

Too right... with punbb's posting, editing and searching features, you don't really need to reinvent the wheel by installing another CMS/blogging system.  Look for PunNewz and also Reply Only mods (as Paul suggested), which is what I'm using to power the front page of my site. (http://www.shuttertalk.com)

Jules

cool!  let me know how it goes for you smile

181

(5 replies, posted in Feature requests)

maybe replace the index.php file and do a redirect...

either that, or copy viewforum.php to index.php and hack it around a bit so that the forum id is always set to the same one.

182

(9 replies, posted in Programming)

Hey just thought I'd share a simple javascript to display a random quote.

I used it in my announcement box...

Jules

<script language="JavaScript">var Quotation=new Array();

// Set up the quotations to be shown, below.
// To add more quotations, continue with the
// pattern, adding to the array.  Remember
// to increment the Quotation[x] index!

Quotation[0] = "All yuor base are belong to us.";
Quotation[1] = "Getting intimate with digital photography.";
Quotation[2] = "Repent! The end is coming, $9.95 at Amazon.";
Quotation[3] = "I got kicked out of Riverdance for using my arms.";
Quotation[4] = "Pastry satisfies where art is unavailable.";
Quotation[5] = "Delete not, lest you, too, be deleted.";
Quotation[6] = "O! Youth! What a pain in the backside.";
Quotation[7] = "Wishes are like goldfish with propellors.";
Quotation[8] = "Digital photograpy news, views and reviews.";
Quotation[9] = "Invention is the mother of too many useless toys.";
Quotation[10] = "There are only two reasons to sit in the back row of an airplane: Either you have diarrhea, or you're anxious to meet people who do.";
Quotation[11] = "I filled out an application that said, 'In Case Of Emergency Notify'. I wrote 'Doctor'...What's my mother going to do?";
Quotation[12] = "I think animal testing is a terrible idea; they get all nervous and give the wrong answers.";
Quotation[13] = "If your parents never had children, chances are you won't either.";
Quotation[14] = "The difference between genius and stupidity is that genius has its limits.";
Quotation[15] = "Honesty is the best policy, but insanity is a better defense.";


// ======================================
// Do not change anything below this line
// ======================================
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}
showQuotation();
</script>

Ok, here it is.  Download the install files here:
http://www.shuttertalk.com/reply_only.zip

Please backup your files and db before proceeding!!

Let me know how you go with this!

Jules

REPLY ONLY FORUMS PUNBB MOD
by Julian Tan
===========================

Description:
------------

This mod allows forums to be set to reply-only mode, 
on a forum by forum basis, through the administration panel.  
In this mode, only administrators and moderators can 
post new topics in those forums.  Users (and guests, 
depending on your permissions) can post replies though.  
This is useful for forums such as announcement forums, 
you want to control what topics are posted, but also wish 
to allow people to post feedback.


Version History:
----------------
1.0     Initial Release


Disclaimer:
-----------
Please take backups of both your punbb files and 
database before proceeding with this mod.  Use of 
this mod is at your own risk.  No responsibility will 
taken for any damage, loss, or inconvenience caused 
due to the usage of this mod.


Installation Instructions:
--------------------------

1.  Backup files and database.  Please.

2.  Use a mysql admin tool to execute the following 
(note, please replace [forum-prefix] with the your forum prefix for table names:

    ALTER TABLE `[forum-prefix]forums` ADD `reply_only` TINYINT AFTER `admmod_only` ;

    UPDATE `[forum-prefix]forums` SET reply_only = 0 ;

3.  Modify your admin_forums.php, viewforum.php and post.php files, 
as per the similarly named html files within the zip file.  
The changed lines are highlighted - the column on the left shows the new file.

Note that line numbers are approximate only - it may differ from yours 
due to modifications, etc.

4.  Log into your administration area, and under Forums, 
check "Reply only" for those forums which you wish to set to reply-only mode.


Enjoy!

Interesting... good stuff!

185

(6 replies, posted in PunBB 1.2 discussion)

wooo... secret! smile

186

(6 replies, posted in PunBB 1.2 discussion)

I suppose you could use the punbb search function and make it search particular forum(s)...

While waiting I made my own version... crazy SQL query though!!! wink

188

(6 replies, posted in PunBB 1.2 discussion)

Hey there!

When you say news function, is it something similar to PunNewz (search in Mod Releases)?

You can retrieve first row only by adding ORDER BY p.id LIMIT 1 to your query ...

Hi guys,

I've been looking for this feature in punbb but it's not available.  It's the ability to mark certain forums as being "reply only" forums - where guests can only reply to existing topics, and only admin and mods can post.  Example usage would be in an announcements forum - where the site admin makes announcements (and allows users to post replies) but users can't  make thier own announcements.

I've modified my site to be able to do this, but am tossing up whether to release it or not - depending on interest, to make it worth my while.

You can test it out on my site (http://shuttertalk.com):
- The first two forums, Announcements and News are Reply Only (new posts allowed for admin and mods only)
- All others are normal

In reply only forums, the "Post new topic" link is hidden.

Screenshot of the modified admin console:

http://shuttertalk.com/images/other/replyonly.gif

Let me know what you think!

190

(1,382 replies, posted in General discussion)

CPR

hey the downloaded zip file appears to be corrupt...

Hi Chacmool, thanks for the fix - it appears to be ok now.

I was thinking about this over the weekend - do you think it's possible to allow guests to vote as well?  It'll be hard to prevent people from voting twice I know...

What do you think? smile

Hey cool!  Exactly what I wanted!

However, the link to download produces:
"The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first."

Any alternative site?

Yeah, was just about to post that one about the delete topic... i think it's when the user is a guest / not logged in.  When you log in as another user, then the "delete" disappears.

195

(2 replies, posted in Feature requests)

That's the PunPoll Mod by Chacmool...

Thread is here if you wish to post bug reports:
http://punbb.org/forums/viewtopic.php?pid=15200#15200

Thanks for spotting it though. smile

Oh wihtout it, the error messages (no question / less than 2 answers) didn't show up.  it just displayed a blank message box! smile

197

(2 replies, posted in Feature requests)

Feature request - wonder if it's easy to do?

Is it possible to display the topic subject as well in the last post info, in the forum front page?  Something like:
http://demo.invisionboard.com/

I think it would make it more inviting for viistors to enter a specific forums if they knew  what the latest topic was being discussed in that forum...

Would there be additional database queries and a performance hit?


Jules

oh yeah... firefox seems ok now. smile

Oh one more thing...

I think in edit_save.php, it's missing:

global $pun_root, $language;
require $pun_root.'lang/'.$language.'/'.$language.'_poll.php';

Thanks dude!  Much better!

I think you're missing 'EditPostPoll' in your lang file, but that's easily fixed.

Also in the code you posted, there are some missing escape slashes in $checkboxes .= "\n\t\t\t\t"

But it's ok in your readme.txt file.


Thanks! I'm a happier man big_smile
Jules