[Tutorial] Creating Table BBCodes

New BBCodes, tips and tricks, hacks and MODs for the BBCode system

Re: [Tutorial] Creating Table BBCodes

Postby Highway of Life » 13 Feb 2007, 11:59

I didn't ... phpBB3 does that on it's own... sometimes it's annoying...
It doesn't do it all the time, check this out...
Spoiler:
Code: Select all
function a_cool_function($input)
{
    do $tuff;
}
Code: Select all
function a_cool_function($input)
{
    do 
$tuff;
}
Code: Select all
$variable = request_var('var', '');
Code: Select all
$variable request_var('var''');


EDIT: Shock It didn't do it that time!

Okay, a few more...
Spoiler:
Code: Select all
$domain = (!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain'];
Code: Select all
$domain = (!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' '; domain=' $config['cookie_domain'];
Code: Select all
header('Set-Cookie: ' . $name_data . '; expires=' . $expire . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
Code: Select all
header('Set-Cookie: ' $name_data '; expires=' $expire '; path=' $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' '; secure') . '; HttpOnly'false);
Code: Select all
   function check_ban($user_id = false, $user_ips = false, $user_email = false, $return = false)
Code: Select all
    function check_ban($user_id false$user_ips false$user_email false$return false)
Code: Select all
   $banned = false;
Code: Select all
    $banned false;

EDIT again: Okay, they fixed that bug for Beta5... so it's only in phpBB version 2 now. Smile
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10


Re: [Tutorial] Creating Table BBCodes

Postby Handyman » 13 Feb 2007, 12:36

when you use the [code=php] bbcode, it automatically adds the <?php at the beginning of it.
But don't take my word for it? try it! Wink

Edit: looks like they fixed that? looking at Highways code above
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7456
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Tutorial] Creating Table BBCodes

Postby JuliusCaesar » 13 Feb 2007, 14:03

when you use the [code = php] bbcode, it automatically adds the <?php at the beginning of it.

oh I see Wink Wink

by the way something is wrong with you bbcodes buttons
If I click "quote" twice ich get
Code: Select all
[quote][quote]

as you can see there is a slash "/" missing in the last quote tag Shock Shock
JuliusCaesar    
Lieutenant Commander
Lieutenant Commander
 
Posts: 430
Joined: 03 Aug 2006, 04:41
Location: Germany
Favorite Team: Germany :D
Gender: Male
phpBB Knowledge: 5

Re: [Tutorial] Creating Table BBCodes

Postby Spectral Dragon » 13 Feb 2007, 14:10

This looks like it belongs in the academy Smile
User avatar
Spectral Dragon
Cadet III
Cadet III
 
Posts: 31
Joined: 30 Jan 2007, 21:27
Location: Milan, MI USA
Gender: Male

Re: [Tutorial] Creating Table BBCodes

Postby Highway of Life » 13 Feb 2007, 14:40

Actually, it belongs in the Tips, Tricks and Tutorials, but you right, it needed to be moved... so... moved. Smile Good
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Tutorial] Creating Table BBCodes

Postby Semi_Deus » 15 Feb 2007, 15:38

Is it possible to have a Header above all forums?
Like a main commuications table?

There was a option in PhpBB2 already like this, like here: http://staff.forumup.nl
they have like a Staff Communications Header, how can i make one like this in PhpBB3 Olympus..?
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

Re: [Tutorial] Creating Table BBCodes

Postby Highway of Life » 15 Feb 2007, 15:51

look in /styles/subSilver/template/overall_header.html

That is where you would add a banner, but without a MOD, you could only add a static header at this time -- i.e. no automatically updating news, for example.
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Tutorial] Creating Table BBCodes

Postby Semi_Deus » 02 Mar 2007, 14:03

i tried inlcuding this:
Code: Select all
<table=90><tr><th=2>This is the header</td></tr>
<tr><td=row3,2>This is the small text under the header</td></tr>
<tr><td=row1,1>This is the left side of the table</td><td=row2,1>This is the right side of the table.</td></tr>
<tr><td=cat,2>This is the footer</td></tr></table>


But i didnt find the right spot.
But also i think that is wrong what i did.
Can anybody help me to insert a table above all forums..?
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

Re: [Tutorial] Creating Table BBCodes

Postby Highway of Life » 02 Mar 2007, 14:10

Above all forums?
So it would be in the template, and not a BBCode...
you would start out with:
Code: Select all
<table class="tablebg" width="100%" cellspacing="1">
    <
tr>
        <
th colspan="2">This is a header</th>
    </
tr>
    <
tr>
        <
td colspan="2" class="cat">This is an alternate header</td>
    </
tr>
    <
tr class="row2">
        <
td>This is the left side of the first row</td>
        <
td>Note the use of the class for this row</td>
    </
tr>
    <
tr class="row1">
        <
td>This is the left side of the second row</td>
        <
td>Note the use of the class for this row</td>
    </
tr>
</
table>
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Tutorial] Creating Table BBCodes

Postby Semi_Deus » 08 Mar 2007, 07:05

(found it already Grin , included it in SubBlue F++ Template)
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

PreviousNext

Return to BBCode System

Who is online

Users browsing this forum: No registered users and 2 guests