1

Topic: Professional Customization

Is anyone available for "paid customization" of a PunBB forum which I setup for a business client of mine?

Please email toby@enhanced-designs.com.

Will pay via paypal.

Thanks,
Toby.

Re: Professional Customization

It depends on how large a customization we're talking about.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: Professional Customization

Nothing too large I expect.

First, the client would like to add iconic graphics next to categories (like next to Bug Reports on the PunBB board).

I can try to develop a list of items w/client first if someone's interested.

Thanks,
Toby.

Re: Professional Customization

That would probably help yes.

5

Re: Professional Customization

Here are the customizations I'll hire someone to do for my client's PunBB, located at:

http://www.homesteadhelpers.com/forums/

-Change every instance of "Topics" to "Recipes"
-Change "Message" to "Ingredients & Directions"
-If possible, break this message area into two side-by-side sections: an Ingredients section and a
Directions section. 
-Change "Announcement" to "Granny's Recipe Box"
-Bold font for everything in the announcement box and make each sentence
a separate line centered in the announcement box

Please send cost/requirements to toby@enhanced-designs.com

Thanks,
Toby.

Re: Professional Customization

all except If possible, break this message area into two side-by-side sections: an Ingredients section and a
Directions section.   are easy

the word changes are all in the language files

the accouncement press the enter key to have a new line tongue use [b] to make it bold and to centre it would need some code editing i think but only very small

7

Re: Professional Customization

Items 1, 2, 4 and 5 would take about 5 minutes to do.

Item 3 is more difficult. The easiest way to do it is bbcode which parses the message into a two column table and then returns it complete with the table code. Something like side by side quote boxes.

8

Re: Professional Customization

Connorhd wrote:

the word changes are all in the language files

I'm searching for the language files.
No clues from a search.

And I don't think you mean the "lang" folder

9

Re: Professional Customization

tobyb wrote:

And I don't think you mean the "lang" folder

Yes, ie. /lang/en/en_common.php:
// Miscellaneous (used in many scripts)
'Announcement'            =>    'Announcement',
'Options'                =>    'Options',

10

Re: Professional Customization

That works! Thanks.

Now, a quote please from someone to do item #3:

Use bbcode... "which parses the message into a two column table and then returns it complete with the table code. Something like side by side quote boxes."

Regards.

Re: Professional Customization

working on it wink

Re: Professional Customization

ok i've done is as a dual-columned quote with one called ingredients and one directions (you can easily edit the html to anything you want)

around like 200 in parser.php in includes folder replace the 2 arrays with

    $pattern = array('#\[b\](.*?)\[/b\]#s',
                     '#\[i\](.*?)\[/i\]#s',
                     '#\[u\](.*?)\[/u\]#s',
                     '#\[url\](.*?)\[/url\]#e',
                     '#\[url=(.*?)\](.*?)\[/url\]#e',
                     '#\[email\](.*?)\[/email\]#',
                     '#\[email=(.*?)\](.*?)\[/email\]#',
                     '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s',
                     '#\[ingredients\](.*?)\[directions\](.*?)\[/recipe\]#s');
    $replace = array('<strong>$1</strong>',
                     '<em>$1</em>',
                     '<u>$1</u>',
                     'truncate_url(\'$1\')',
                     'truncate_url(\'$1\', \'$2\')',
                     '<a href="mailto:$1">$1</a>',
                     '<a href="mailto:$1">$2</a>',
                     '<span style="color: $1">$2</span>',
                     '<table style="width: 95%" align="top" cellspacing="4" cellpadding="6"><tr><td style="width: 50%" class="punquote"><span class="puntext"><b>Ingredients</b><br>$1</span></td><td style="width: 50%" class="punquote"><span class="puntext"><b>Directions</b><br>$2</span></td><tr></table>');

then to add a recipe (and you can have text above an below type

[ingredients]blah blah blah[directions]blah blah blah blah[/recipe]

you can even use other bbcode in the recipe and of course smilies big_smile

have a look at http://66.98.138.31/~connorhd/puntest/v … ?pid=36#36

13

Re: Professional Customization

Connor, that is indeed very nice.

I fired up UltraEdit and copied your code snippet, might come in handy one day.

Re: Professional Customization

i was suprised it worked usually whenever i go near regular expressions everything starts to break,

oh btw tobyb the last line is the html the $1 is the ingredients and the $2 is the recipe so you can pretty much have any html there you like as far as i understand wink

15 (edited by tobyb 2004-10-07 15:21)

Re: Professional Customization

I replaced the parser.php section which begins and ends as follows with the php from your post but it had no effect:

$pattern = array('#\[b\](.*?)\[/b\]#s',

<snippage of middle part>
                    
'<span style="color: $1">$2</span>');

I simply switched out the script section and uploaded the revised parser.php file to the appropriate "include" folder.

Here's the test post,

http://www.homesteadhelpers.com/forums/ … ?pid=13#13

Thanks,
TB.

Re: Professional Customization

read my post after the code and look on your site again wink

17

Re: Professional Customization

Works!

But how do I convince visitors to use this pattern?

[ingredients]blah blah blah[directions]blah blah blah blah[/recipe]

Toby

Re: Professional Customization

well you could put it in the announcement, and also if users post it wrong you can edit it afterwards, it would be alot more work to do it a different way