1

(1 replies, posted in PunBB 1.3 discussion)

I have a user group that I need to allow the ability to change the user group of people below them e.g:

Administrator
Group 1
Group 2
Group 3
Default Group


Group 1 can change people in Default Group, Group 3, and Group 2, and change them between those groups. Basically allow them to put them into any user group apart from their own and the admin one, is this doable with the default PunBB as I couldn't find the option, if not, is there an extension about does anoyne know?

Thanks.

I removed the check to see if a user had a permission to post from my custom page and just disabled the allowance of creating new posts in the forum.

It's not really the way I wanted to do it but it works at least ^^

Hi, so basically what I want is to hide the "Post new topic" link, but only in 1 forum for a certain user group. e.g:

Forum 1
User Group 1 - link hidden.
User Group 2 - link shown.


Forum 2
User Group 1 - link shown.
User Group 2 - link shown.


Now you may be thinking, well why not just go into the options and not allow User Group 1 from making new topics in Forum 1? Well, the reason for this is that I have written a custom page that posts a preformatted topic into that page. It's basically an application form. I want to ensure that any new posts made in there by anyone but User Group 2 (Admins basically), is only done through my custom page, and the easiest way to ensure that is to just hide that link but still allow posts.

I really have no idea where to start with this, so if anyone could point me in the right direction, or can think of an easier way to do this even, that would be great.


Thanks in advance smile

4

(14 replies, posted in General discussion)

Any update on this? I would really like this feature. That is, admin definable colours for user groups.

I deleted the cache_hooks.php and then it worked it seems, and it's created a new one again. Seems to be working now.

So I was messing about with the an extension, and I screwed it up. I can't go back and simply refresh my hooks now that I have reverted the change as the page where you can install/uninstall won't load ofc, so I'm wondering how I would undo this?

Cheers.

7

(32 replies, posted in PunBB 1.3 extensions)

The way I did it is as follows, I downloaded:

http://wowhead-tooltips.googlecode.com/svn/trunk/

(More information is in this thread, it's created by the user Arador on there)
http://www.wowhead.com/?forums&topic=3464.3#p42456

This allows you to create <item>ITEM NAME</item> links in HTML which will be picked up by the java script, recoloured according to item quality and show a tooltip to match.

From that point on it is simply a case of creating a BBCode that swaps the <item> tags for [item]. You can find extensions on here that do that already, and simply modify them to your needs (that's what I did).

I have done all this myself and have it working fine on our guild's forum, however it's not release worthy, if you have any troubles though I'd be more than happy to assist (if I can).

Example created by "Arador"
http://www.ritsumei.org/wowhead/

Hi, first of all let me say, both of these extensions are great, however my issue is this:
Slimbox will resize images just fine in the actual forum thread, however an image displayed on the portal (from the news posts window where it shows a preview of some posts in a forum) doesn't resize at all and isn't integrated with slimbox.

I was wondering how I would go about making slimbox hook into the portal page as well so that it resizes images there?

Thanks.

Managed to solve it myself. Spent the best part of a day on it considering I know no PHP, but after a lot of playing about with a copy of the post.php page I managed to get it working big_smile

Hi, just to explain the basic idea quickly:

I'm looking to have a form of some sort in a new page with a form where I can ask a set of questions, and then submit it making it display the information entered. I tried looking at the post.php page, however I am too much of a noob at php for me to figure anything out.  I have a custom form already of sorts, I just have no idea how to link it to the actual posting itself. If anyone knows how to do this and could make a really simple page with a few simple text boxes in a form as an example to help me out, that'd be great. Thanks.

Just to get a better idea of what I'm looking for, ultimately I'm looking to have something akin to this:
http://img29.imageshack.us/img29/4606/33710060.jpg

As I said, the whole design and actual questions, I can sort out myself, I just need a simple working example that will post from a few different boxes.

Any help would be great. Thanks.

Hi, this works great for the front page, however any custom pages I also have created via the portal it now shows on those too. Any fix for this so that it only shows in the panel? Thanks.

Edit:

I sort of have it, I replaced:

// add javascript and style files on the Index
if(FORUM_PAGE === 'index' || defined('FORUM_PORTAL')) {

With:

// add javascript and style files on the Index
if(! $_GET["page"] && FORUM_PAGE == defined('FORUM_PORTAL')) {

This makes it do exactly what I want:
It stops showing on the forum index, and custom pages created via the portal addon
It only shows on the portal panel created with the code above.

However it generates this error:

Notice: Undefined index: page

On all pages apart from the custom created pages via the portal addon.


Any ideas?

Nevermind, solved it:

// add javascript and style files on the Index
$thissite = $_SERVER["SCRIPT_URL"];
if(! isset($_GET['page']) && $thissite == "/index.php") {