heheh no worries. use the reply-only mod for that - instead of the admin/mod only forum.
176 2004-06-19 09:42
Re: PunNewz (60 replies, posted in PunBB 1.2 modifications, plugins and integrations)
177 2004-06-19 05:17
Re: PunNewz (60 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hey lemmage, thanks
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.
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
178 2004-06-18 13:43
Re: Reply only forums (27 replies, posted in PunBB 1.2 modifications, plugins and integrations)
awesome!
179 2004-06-18 05:56
Re: Blogs anyone? (72 replies, posted in General discussion)
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
180 2004-06-18 04:38
Re: Reply only forums (27 replies, posted in PunBB 1.2 modifications, plugins and integrations)
cool! let me know how it goes for you
181 2004-06-17 14:28
Re: single forum mode? (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 2004-06-17 03:37
Topic: Random Quote (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>
183 2004-06-16 08:05
Re: Reply only forums (27 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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!
184 2004-06-16 05:45
Re: PunNewz (60 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Interesting... good stuff!
185 2004-06-16 05:42
Re: News query-question (6 replies, posted in PunBB 1.2 discussion)
wooo... secret!
186 2004-06-15 22:59
Re: News query-question (6 replies, posted in PunBB 1.2 discussion)
I suppose you could use the punbb search function and make it search particular forum(s)...
187 2004-06-15 21:28
Re: show topic of last made post on index v1.0 released (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
While waiting I made my own version... crazy SQL query though!!!
188 2004-06-15 21:25
Re: News query-question (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 ...
189 2004-06-15 13:01
Topic: Reply only forums (27 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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:
Let me know what you think!
191 2004-06-15 02:49
Re: show topic of last made post on index v1.0 released (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hey the downloaded zip file appears to be corrupt...
192 2004-06-15 00:17
Re: PunPoll v1.2.3 (188 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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?
193 2004-06-14 13:18
Re: show topic of last made post on index v1.0 released (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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?
194 2004-06-10 08:09
Re: PunPoll v1.2.3 (188 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2004-06-10 07:49
Re: Last Post Info (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.
196 2004-06-10 07:43
Re: PunPoll v1.2.3 (188 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Oh wihtout it, the error messages (no question / less than 2 answers) didn't show up. it just displayed a blank message box!
197 2004-06-10 06:44
Topic: Last Post Info (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
198 2004-06-10 05:33
Re: punBB bbcode button MOD 1.0 released (52 replies, posted in PunBB 1.2 modifications, plugins and integrations)
oh yeah... firefox seems ok now.
199 2004-06-10 03:09
Re: PunPoll v1.2.3 (188 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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';
200 2004-06-10 01:21
Re: PunPoll v1.2.3 (188 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
Jules