51

(98 replies, posted in PunBB 1.3 extensions)

Okay, so I looked through the code and I found that viewtopic.php doesn't seem to have a hook that is located above the signature area (but below the posters message). I created my own hook and placed it on line 499/500:

($hook = get_hook('vt_row_msg_after')) ? eval($hook) : null;

Then I modified the manifest.xml file to use that hook rather than the vt_row_pre_display hook (line 684):

<hook id="vt_row_msg_after"><![CDATA[

Now I got it how I want it: http://forums.programming-designs.com/post/5707/#p5707 smile

I'd suggest in the next update for PunBB to add another hook in the place I made mine (line 499/500 of viewtopic.php) as it could be very useful for other extensions too I assume.

52

(98 replies, posted in PunBB 1.3 extensions)

KeyDog wrote:

try that one

Same problem. But as I was trying that, I found a new version of the attachment extension in the repository and installed it.

Note: In the pun attachment settings, the "save changes" button seems to be positioned wrong. Also, shouldn't the attached file show above a person's signature rather than below it? Other then that, it works great.

53

(98 replies, posted in PunBB 1.3 extensions)

I tried using this version of the extension: http://punbb.informer.com/trac/changese … format=zip

But I get this message when viewing forum messages with the extension enabled:

Notice: Undefined index: attach_disable_attach in /.../forums.programming-designs.com/viewtopic.php(15) : eval()'d code on line 10

Notice: Undefined index: attach_disable_attach in /.../forums.programming-designs.com/viewtopic.php(241) : eval()'d code on line 30

Hey I just validated the code for you. You can download the XHTML 1.0 Strict validated version here: http://www.programming-designs.com/misc … strict.zip

The problem was using wrap="virtual" and giving the form the name attribute. Instead, I created a hidden submit button using display: none; and gave it the proper name.

Nice and simple. I like it. Suggest though: make it xhtml 1.1 strict valid? A couple of small errors.

Should be easy to fix. I'll look at the extension code myself n see if I can fix it.

56

(115 replies, posted in Supported extensions)

Thanks for the great release smile

57

(19 replies, posted in PunBB 1.3 extensions)

Nice polls work great now smile

58

(19 replies, posted in PunBB 1.3 extensions)

I tried using the poll but it doesn't work yet.. Any clue as to when this will be completed?

59

(3 replies, posted in PunBB 1.2 troubleshooting)

For some reason it seems like on random days there will be loads of people on my forums -- yesterday there was a fluctuation of somewhere between 100 - 200 guests on the boards. Right now theres an excess of 350+ guests which is odd. First off, I don't have that many registered members (around 550, a bunch of them inactive), secondly, only 10-20 members actually login and post on any given day, and third, I can't find the source of where they're coming from.

So my question is, is there something possibly wrong with my PunBB? If so, how comes it eventually comes back down and then it returns to normal with 20-30 guests on the forum?

See for yourself: http://forums.programming-designs.com

Could it be bots? Has anyone else had similar problems? It doesn't really effect the site but it's just kinda weird and bugs me a little.

60

(2 replies, posted in PunBB 1.2 show off)

I've submitted it once before but quite a long time ago. Since then I've changed the logo (and also my main sites layout) and added some functionality to the forums including spoiler tags, spell check, an akismet spam modification, and more.

Link: http://forums.programming-designs.com

On the main site located at http://www.programming-designs.com I have a latest forum topics section where visitors can get a glimpse at what's on the forum. Let me know what you guys think smile

Jérémie wrote:

And if the reader doesn't have javascript on its UA? roll

Then too bad. Until the day W3C adds the :hover class to div classes then javascript will have to do xD

I don't like using javascript myself but nowadays people are using it more and more -- loads of web applications use javascript and browser compatibility is getting really good when it comes to javascript.

I saw another post in here in regards to adding a spoiler tag so I went and used some code I found and modded it to my liking.

Demo: http://forums.programming-designs.com/v … p?pid=4248

Instructions

Step 1. Open parser.php

Step 2.
Find:

                '[img]$1[/img]',

After add:

                '[spoiler]',
                '[/spoiler]',

Step 3.
Find:

                     '#\[email=([^\[]*?)\](.*?)\[/email\]#',

After add:

                     '#\[spoiler\](.*?)\[/spoiler\]#',

Step 4.
Find:

                     '<a href="mailto:$1">$2</a>',

After add:

                     '<div class="spoiler" onmouseover="this.style.height=\'auto\';" onmouseout="this.style.height=\'20px\';"><b>Spoiler:</b> <i>Hover to reveal text</i><br /><br />$1</div>',

Step 5. Upload parser.php

Now for each style sheet you'll need to add the following:

.spoiler{
    height: 20px;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #fafafa;
}
DIV.spoiler {MARGIN: 5px 15px 15px 15px; PADDING: 8px}

All done. Hope you enjoyed smile

Well I got the idea from this: http://hotscripts.com/Detailed/53743.html

Description: A PHP file uploader that is uneffected by the upload_max_filesize property. Use the included PHP script with Thin Slice Upload applet to transfer hundreds of Gigabytes regardless of your php.ini settings. Interrupted uploads can be resumed. The scripts can be easily modified to completely change the appearence for a better fit into your website. Get your free download now.

So thought it would be implementable? If someone could take a look at that and let me know that'd be great.

I currently have an attachment mod installed (http://punbb.org/forums/viewtopic.php?id=7096) but am wondering if someone can make an attachment mod that uploads the file in segments. The problem is with my hosting I have a max upload limit (8 mb) and want people to be able to upload files larger than that by uploading pieces of a file at a time as to by pass the upload limit (defined in php.ini).

Any help would be greatly appreciated. If it could use same mod I provided above that would be great.

My forums is located at http://forums.programming-designs.com

I put a latest posts display on my main site located at http://programming-designs.com using AJAX. I messed around with the extern.php file and combined an AJAX script known as jQuery + jSpy plugin to dynamically add newly posted topics to the main page, so you can see new posts being made live.

Let me know what you think.

I am getting this error on my forums:

An error was encountered
Error: Unable to fetch category/forum list.

I have NO clue why. My forums have been running fine up til now and am wondering why it would suddenly have this problem. What does this error mean and why could it have happened?

I looked at the database with phpMyAdmin and don't notice anything wrong. Whats the category/forum list? I have the forums table in the database. Please help.

My forums is located here: http://www.programming-designs.com/forums/

Edit: I enabled debug mode and this is what the error says:

File: C:\Accounts\programm\wwwRoot\forums\index.php
Line: 51

PunBB reported: Unable to fetch category/forum list

Database reported: Can't create/write to file 'C:\DOCUME~1\mysql\LOCALS~1\Temp\#sql_298_0.MYD' (Errcode: 17) (Errno: 1)

Is this a problem on the server side? Would I need to contact my host about this?

http://programming-designs.com/forums - I installed it on my forums, visit the suggestions forum and do a post preview (only forums where guests can post) to see it in action.

68

(4 replies, posted in General discussion)

Generally nowadays programmers don't do it all on their own -- it's more of a team effort, each programmer with their specific talent to combine with the other's work. Though we still have to learn a bunch of languages and is a very competitive field.

69

(1 replies, posted in Feature requests)

This is not easily possible unless written specifically for your authentication system. This would require either having PunBB access the tables in your authentication system rather than the users login/password, or viceversa, having your authentication system automatically add user/password info to the PunBB tables when they register through your authentication system and append existing ones and update the cookie on PunBB at the same time with your authentication system.

Perhaps their avatar was too big in file size or too big in width/height as specified in your forum settings.

dss, see this page on wikipedia: http://en.wikipedia.org/wiki/User_agent#Bots

Also scroll down and see external links.

dss -- I found another potential problem. When case sensitive is not selected, that means if you type the bot string in upper case then it potentially could have problems as it would lowercase the useragent but NOT the user agent string you defined. I now updated it in the same zip file download. Go to the link I provided and reupload the botdetect.php file and that should do the trick -- this could make a LOT of the bots show up now.

72

(36 replies, posted in PunBB 1.2 troubleshooting)

Either that or you could write your own mod or request the mod that would enable such a thing.

73

(10 replies, posted in Programming)

There's the HSL color format (Hue, Saturation, Luminence). Though to use it for your website would require a javascript/php function to convert it to RGB, unless they have a built in function for it that I don't know about.

I will have a look in a couple hours -- I have an idea where it may be but not sure, will check into it. May write an install_mod to delete/append a new list of bots when I have found a reliable source.

But, until then, I have something that may/may not interest you:

Color Code Your Bot
To color code your bot simply delete the bot definition (remember to hold onto the user agent string) and create a new one with this alias:

<dd style="color:#ff0000">Bot Alias Here</dd>

You can also use these for bold/italic/underlined text:

<b> </b> <i> </i> <u> </u>

This can differentiate the bots from the actual members or from other bots. Later on I made include features that automatically set all (or selected) bot's text formatting to what you choose.

Open the source code for the site in notepad and find where the image is located, then look at which divs/span names the image is embedded in to determine what style item you need to modify. Play around with it -- it's the best way to learn how to make changes.