26

(1 replies, posted in PunBB 1.2 discussion)

First off I would like to preface this question with the fact that I am new to the concept of caching outputs.  I have heard of it before, but just now scratching the surface on how it all works.  I know that it can speed up load times by not making continuous SQL queries and the like.  My question is how it all really works in the punbb scheme of things.  Is there a fixed expiry scheme in place?  I would look a the source, but I am unable to download the files at my place of work.  I had a brain fart while on my lunch break for some plugin/mod ideas and was wondering about using pre-existing pun functions (if they exist).  Does punbb use PHP built-in functions like ob_start(), ob_end_clean(), ob_end_flush(), ob_clean(), ob_flush(), etc...

Also, when should a caching scheme be used?  Dynamic generated ouput that does not change a lot, like menus, headers, and footers?  What steps should I take to apply caching properly?

this may be a better topic for the programming forum, but I was more concerned on how it works within punbb in general.

TIA,

Andrew

27

(16 replies, posted in PunBB 1.2 discussion)

I did something like that to get the fieldset to have rounded corners so moz would look like IE defaults.  Again though it was commented here that it breaks the XHMTL 1.1 strict rules  Just wondering, do you have to change the DOCTYPE to Transitional when you apply these moz only rules? Or is there a way to seperate the two so IE browsers look at the deault style sheets.  I know that IE will just ignore these rule but will it go into quirks mode?

See here for fieldset post. http://punbb.org/forums/viewtopic.php?id=6365

BTW, it does look cool.  I just hope that these will someday make their way into the standards...

28

(5 replies, posted in General discussion)

EDIT:  North of the equator wink

29

(8 replies, posted in PunBB 1.2 bug reports)

This is exactly why Web Development drives me crazy.  Any other industry would say you have to move forward.  But noooooooo.  I motion that all browsers shall have an experation date and stop working when they expire.  Good Luck Paul.  NS 6.x is such a bad browser.

30

(3 replies, posted in PunBB 1.2 show off)

Rickard wrote:

Very nice. The main navigation links are a bit difficult to read with the image background though.

Not that it matters but, I agree...

31

(7 replies, posted in General discussion)

They tested him for steroids, but the tests came up negatives.  His trainer confronted his father (now estranged) about the "secret concoction" he was feeding his son.  His father said if you ever mention this again "I will kill you".  He may have not taken steroids, but I bet his father was feeding him growth hormones.  (i.e "doggy steroids").  I saw the docemntary last night on TLC.  Its creepy, but I bet no one f's with him at school wink  lol.

32

(10 replies, posted in PunBB 1.2 show off)

Hey FireFusion.   On IE the forum looks fine, but the projects page of your site does not display the text to the left of the images on some of your projects. (Unless I hightlight the text with my mouse.)

I know you stated that its for 1.1.4, but will you have a compatable version for 1.2.x ?

Doh.  thats why connorhd is a moderator big_smile  He takes the time to read the code.

something like this?

<?php

function truncate_string($details,$max)
{
    if(strlen($details)>$max)
    {
        $details = substr($details,0,$max);
        $i = strrpos($details," ");
        $details = substr($details,0,$i);
        $details = $details." ..... ";
    }
    return $details;
}

?>

Usage

<?php

$text = truncate_string("hello there. This is a long string",19);

?>

Produces this

hello there. This .....

you would then have to have it link to "full story".   That is something that I am affraid is outside the scope of what the news generator was intended for.  Rickard offered this Admin plugin as a freebie.  any modifications will undoubtably have to be by the user.

So the answer is yes, it can probably be done. but I am not sure if the author will do requests like this on a onsie-twosie basis.  It would open the floodgates for more requests.  Someone may pick-up the ball and submit it as a mod. who knows...

36

(12 replies, posted in Feature requests)

How much lighter can you get wink  "PunBB - Tastes great, less filling.  with half the carbs as the leading BB"  lol

37

(16 replies, posted in PunBB 1.2 discussion)

Thanks everyone for your comments.

hcgtv wrote:

So in order for our styles to follow us from rev to rev, there has to be some kind of abstraction. I know, I'm talking about some kind of skinning or templating system, but it would alleviate upgrades and bring more styles to the table.

I think your idea of skinning/templating is a good one.  I know this is not phpBB, but have you ever tried to decipher phpBB or Vbulltin templates?  The last time I did, it was not for the beginner, and I had a rather hard time understanding it at first.  punBB has been a gift from the gods.  Even back in the 1.1 days, it took only a short time to figure out how to wrap it into your own design.  The first BB/forum I ever used was Vbulletin, and yes I did pay for it roll.  This was before I knew of free scripts, and was very new to php & webdev in general.  One of the things they did have that I thought was rather nice, and helped me tremendously was a "style cheat sheet" that had a screen capture of a forum display and notes as to what color setting was associated with specific areas of the display.  Kind of like if I were to draw an arrow to the H2 header in "Post a reply" and state that this is set here -> in the config.  VB, XMB and I believe phpBB use the admin interface to change colors of elements on the page.  I know that XMB stores this "color" scheme information in an SQL table.  I am not in favor of this due to the potential load it may put on a server every time it loads a page and calls the information from the database.

It?s a nice feature to be able to adjust color schemes in the admin interface.  Is there a way that it can be cached instead of calling the database each time a page loads, while still adhering to the K.I.S.S. methodology?

I am forever a huge fan of punBB, and the community that surrounds it.  Authors actually view and reply to posts without attitude, and I come away with a better knowledge of how punBB works, as well as learn a trick or two about PHP/MySQL/CSS every time I visit the site.

Thanks again!

38

(16 replies, posted in PunBB 1.2 discussion)

I am looking for a way to keep my custom forum styles separate from the stock punBB styles.  I have read other posts where it has been recommended that any custom styles should be put at the end of the style sheet(s) for easy reference.  I have no problem doing that, but when I predict that I will be using this excellent forum software on many of the sites that I have either already completed, or are in the planning stages.  I am worried that when upgrades are applied, (especially if I am not doing the upgrade), that the style mods I have made will be lost or forgotten.  Do you oppose, or recommend making a separate style sheet for all custom or modded styles, that can be imported like base.css and *_cs.css files are?

I am just looking for the best and easiest way of keeping my custom styles intact.  Fully realizing that best and easiest is not always the same solution.  I have already run into a problem where a client has found that there was an upgrade available and applied it before I had a chance to warn him.  Luckily I had a backup.  My thoughts are that if they by chance happen to overwrite the styles during an upgrade, that all I need to do is tell them to open the main CSS file and add:

/* Import the custom styles*/
@import url(imports/custom.css);

below

/* Import the colour scheme */
@import url(imports/Oxygen_cs.css);

Your thoughts?

I think its the box titled "Le parloir" on the main page.

40

(4 replies, posted in PunBB 1.2 discussion)

lol. awww a warm fuzzy on a Friday big_smile

Nothing. 

Its not in the color scheme file by default.  So I guess he could add this class definition to the Color Scheme file also. which would be a hell of lot easier.

Therefore: 

He should just open the _cs file and add the following to the bottom of the file:

.pagelink {
  color: #FFF;
}

If he wants it to be white text.  right?

this way there is no need to modify viewtopic.

Thanks connorhd ! big_smile

sometimes I tend to over "engineer" things.  your way is better.

EDIT: n/m paul beat me to it big_smile

the default text color can be found here in "stylename_cs.css"

/****************************************************************/
/* 1. BACKGROUND AND TEXT COLOURS */
/****************************************************************/

/* 1.1 Default background colour and text colour */

BODY {BACKGROUND-COLOR: #FFF}

.pun {COLOR: #333}

The problem is if you change it, it will affect the other text with the same color settings.  (i.e. where you have test/Guest... in your screen shot)  If you only want it to change the "Pages: #" you will have to make your own style rule for it and change the markup in viewtopic.php to reflect your custom style.


Look in viewtopic.php on line 170 for this:

<p class="pagelink conl"><?php echo $paging_links ?></p>

and change it to this AFTER you have made your own rule in the color scheme CSS file. I would put your own style rule at te bottom of the page so its easy t find your mods.

<p class="pagelink conl yourpagelinkstylename"><?php echo $paging_links ?></p>

I am have not tested this, but I am pretty sure it should work.

erissiva wrote:

Yeah...Mine are kind of weird...

0 - Neophyte
1 - Buzz-kill
....

HEY?!?!?!  tongue

44

(13 replies, posted in General discussion)

From MS "anti-spyware" site:

Microsoft® Windows AntiSpyware (Beta)
Windows AntiSpyware (Beta) is a security technology tizzle helps protect Windows hustla from spyware n otha potentially unwanted software . You'se a flea and I'm the big dogg.

Overview
Windows AntiSpyware (Beta) is a security technology thizzay helps protect Windows brotha F-R-to-tha-izzom spyware n otha potentially unwanted software. Known spyware on yo PC can be detected n removed so jus' chill. This helps reduce negative effects caused by spyware includ'n slow PC performizzles doggy stylin' pop-up ads, unwanted changes ta Internet sett'n, n unauthorized use of yo private information and cant no hood fuck with death rizzow. Continuous protection improves Internet messin' safety by guard'n over 50 ways spyware can enta yo PC . Freak y'all, into the beat y'all.

Since rhymin' Windows AntiSpyware (Beta) on January 6, 2005, we have received feedback from customa n hizzle made enhancements ta tha software based on this feedback. We hizzy enhanced some of tha real-time protection agents, added new threat categizzles n improved stability n performance doggystyle. If you is using a previous version you can simply upgrade ta tha refreshed version. The version numba of tha refreshed version is 1.0.509. To check tha version nigga click `bout Microsoft AntiSpywizzle on tha Hizzy mizzle. ...

LOL AntiSpywizzle.

/me sees a language pack for punBB in ta futua.

categizzles & forumizzies  lol

45

(34 replies, posted in PunBB 1.2 show off)

CodeXP wrote:

Actually, if you're going to continue using a fixed width I'd recommend you to just use CSS. It's actually not that difficult to get working smile

Ok, I will give it a whirl...  I like a challenge.

lol  Anyone that has to put up with all of our BS, and still remain semi-sane has to be a least 3/4 legit.  hehe


Who knows, maybe he is resposible for all the Vi@GrA emails that every male seems to get.  Not that I have a problem, but I seem to get tons of "enhancement" emails.  Even on newly created email accounts.  lol.  I better shutup. /me sees the target getting painted.

47

(34 replies, posted in PunBB 1.2 show off)

Thanks,

Its just a modded Main.tpl to match the rest of the site layout.  Now if i can only get it to work and validate with 1.2.x  I will be happy.  I guess I will do the wrap in tables like you did. and of course clean the H-E-double hockey stick out of the code.

48

(34 replies, posted in PunBB 1.2 show off)

CodeXP wrote:

(Hope you don't mind the messy code, I haven't started cleaning it up yet wink)

Not at all.  The site I linked you to is rather messy also.  I never got around to cleaning it up, because like 3 days after I finished it, 1.2 came out.

Doh!

Thats sucks Rickard.  I am sure there are more positives than negatives with your ISP smile  Its to bad legit people have to jump through hoops.

50

(1 replies, posted in PunBB 1.2 show off)

Looks good!  Consider maybe brightening or darkening the hyperlink text colors to make them easier to read.  They look a little to opaic.