Rickard wrote:

I doubt anyone here will make a converter that allows you to migrate away from PunBB.

Exactly. wink Who would want to?

52

(10 replies, posted in PunBB 1.2 discussion)

anyone?

53

(10 replies, posted in PunBB 1.2 discussion)

No, I designed the layout myself with punbb. Maybe you should look closer before making accusations.

Mezzyart will be better than deviantart tongue

54

(10 replies, posted in PunBB 1.2 discussion)

http://creaturecorp.mezzyart.com/

Forgot to post the link.

The span just stretches the given div or h2 so that the height is the same as the background. This would be useful since there is no way to get the height of a remote background image.

There seems to be a problem with it in Firefox... any advice?

55

(10 replies, posted in PunBB 1.2 discussion)

I'm making an engine that allows users to create custom styles for their pages. I have it set up so #brdmenu has a background image. I also insert a span with a width of 1 and an image inside that span to stretch #brdmenu to the proper height.

This works perfectly, but the background image doesn't stretch all the way to the bottom. It works fine in IE and Safari, but is messed up in Firefox. Any suggestions on how to remedy this problem? This behavior also occurs with h2s.

~Creaturecorp

56

(12 replies, posted in Programming)

Ok, I will create those and get back to you.

57

(12 replies, posted in Programming)

I've since changed the script, but I suppose I can get some sample entries. Just to clarify, you would like 20 to 30 sample entries to test with?

58

(12 replies, posted in Programming)

CREATE TABLE `newcomments` (
  `id` int(100) NOT NULL default '0',
  `parent` int(100) NOT NULL default '0',
  `text` text NOT NULL,
  `date` int(150) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

I had earlier removed the entries, but it would seem that it's easy to insert new ones.

59

(12 replies, posted in Programming)

It didn't really work... I think your code was supposed to have $sb instead of $all in the loop. I'm needing one that threads them in such a way that there can be more than one comment on a single level. I think this can only be achieved with a recursive function... is there anything wrong with having over 40 queries? Probably...

This is difficult since I have a nested comments script that works, but the only problem is the number of queries.

Tobi, if you can come up with one that doesn't use a crapload of queries and still is completely functional (with ordering ASC and DESC by date) perhaps I can offer you something for it.

60

(12 replies, posted in Programming)

Whoa, sounds like it would work perfectly!!!

I think from there, to limit the number of base comments, all I would have to do is

if($padwidth == 0)
$cmt_count++;

if($cmt_count > $limit)
break;

Thanks for the help, I'll go try it out as soon as possible!!

61

(12 replies, posted in Programming)

I should have explained more clearly. tongue

I have a mysql table with the column names 'id' and 'my_parent'. The first comment always has a my_parent of 0 and an auto-incremented id. When someone replies to said comment, my_parent of the new comment is the id of the one it's in response to. (say that ten times fast)

With this information, a recursive function can be called to spit out the comments.

something like

function comment_list($id){
//get comment information for comment with the value $id with a query containing  the count() command

$query= $db->query("SELECT *, count(blah) AS replies FROM comments ...blah blah blah");

while ($sb = $db->fetch_assoc($query)){

   //count the number of times the comment's id appears in other comment's my_parent field. Also echo the information back.

   if($sb['replies']>0){
      //add some padding to the next recursion

      echo '<div style="padding-left:8px;">';
      comment_list($newid);
      echo '</div>';

   }

}//end loop

}//end function

comment_list(1);

I hope that makes some sense. big_smile

It would be simpler just to set up a forum and have it in read only mode, so no new posts can be made. You could probably delete some of the less important files which aren't crucial to punbb operation.

63

(1,382 replies, posted in General discussion)

rodents

64

(12 replies, posted in Programming)

I've got a mysql database that has a comments table in it, with info my_parent and id. From this info, it's possible to call a recursive PHP function which causes the list to be spit out.

Now here's the one problem: this can take a megaload of queries since a new one is made inside each loop. Is this normal and should I just forget about it, or should I strive to design a system that nests the comments with only one loop and therefore one query?

~Creaturecorp

Custom .htaccess isn't really needed... since you can just link to the php file with no browser problems.

66

(7 replies, posted in Feature requests)

<code>
<OBJECT
  ID="mediaPlayer"
  CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
  CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/
    nsmp2inf.cab#Version=5,1,52,701"
  // (The above two lines should be joined as one line.
  // They have been split for formatting purposes.)
  STANDBY="Loading Microsoft Windows Media Player components..."
  TYPE="application/x-oleobject">
  <PARAM NAME="fileName" VALUE="http://msdn.microsoft.com/
    downloads/samples/Internet/imedia/netshow/smedia/NS3/JavaScript/
    Buttons/control.asx">
  // (The above three lines should be joined as one line.
  // They have been split for formatting purposes.)
  <PARAM NAME="animationatStart" VALUE="true">
  <PARAM NAME="transparentatStart" VALUE="true">
  <PARAM NAME="autoStart" VALUE="true">
  <PARAM NAME="showControls" VALUE="true">
</OBJECT>
</code>

67

(7 replies, posted in PunBB 1.2 troubleshooting)

I just added style="display:block;" to the image and object tags, and it works fine. I don't think that I would want to put img {display:block;} in the stylesheet because that would mean that with all the other pages I do that contain images I'd need to enclose it in a special tag.

68

(7 replies, posted in PunBB 1.2 troubleshooting)

Paul wrote:

...a simple entry in the stylesheet img {display: block} cures 90% of them...

Indeed it does. smile It's fixed in all browsers now, and even my other website which was having the same problem is now error-free. Thank you so much for sharing this method, it works perfectly.

~~Creaturecorp

69

(7 replies, posted in PunBB 1.2 troubleshooting)

Coloring the tables bgcolor yellow shows that it's the tables fault. I was using DIVs, but found later that the table behaved better. The divs still had the gap.

Closed the img tags and changed the attribute as instructed.

70

(7 replies, posted in PunBB 1.2 troubleshooting)

This says it's troubleshooting, and this has something to do with punBBs layout. I think it's apropriate for this forum then. smile

I have several sites where I have a table or image directly above the <div class="pun"> tag, and it has roughly a 2-3 pixel gap. This happens for some reason when in the xhtml strict mode, but not as much in xhtml transitional: but even then this little misbehaviour occurs in some browsers regardless.

Take a look here for an example.

Internet Explorer 5.5 doesn't have the gap, while the newer browsers do. Of course that may be inacurate because IE isn't standards compliant.

Any suggestions on how to be rid of it?

~Creaturecorp

71

(7 replies, posted in Programming)

Tobi, you're brilliant!!! Fabulous solution. Will it cause any load increase?

72

(7 replies, posted in Programming)

Boing

73

(7 replies, posted in Programming)

$arr=array(5,7,2,3,1);
$implode=implode(",",$arr);
        
$result=$db->query('SELECT myinfo FROM mytable WHERE id IN(".$implode.")");

while($sub=$db->fetch_assoc($result)){
//spit out the information
}

Using the IN syntax in mysql I'm able to extract data based on an array. The problem is that the database is ordering the information from the database as 1,2,3,5,7 rather than the order it appears originally. What could I do to force mysql to order the information in the same order as the array?

On a side note, why is IN() rarely mentioned in any mysql documentation? sad

~~Creaturecorp

74

(15 replies, posted in PunBB 1.2 discussion)

Can't it be done with images created from Photoshop?

Lucky for me I have GD. (I'm a poet and dun know it) smile

75

(15 replies, posted in PunBB 1.2 discussion)

Captchas were originally built to prevent bots from mass-inserting of urls at Altavista. It works by providing an obscured image composed of letters and numbers, often riddled with warps and specks.

Now Java programs have been created to automatically create users, unverified as they may be, in unsuspecting punbb databases. Considering admins of small and large punbb communities alike are suffering a lot lately from the vast amounts of registrations and whatnot, why not make captcha standard on punbb?

http://punbb.org/forums/viewtopic.php?id=6785

It could be very helpful. smile

~Creaturecorp