[code] tag problem

Do any tags work properly.

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 7 months
Contact:

[code] tag problem

Postby Anthony » Tue Aug 26, 2008 11:41 pm

There is an error with your code tag. Blimy lol Illl find a working tag soon.

Here is some code.

[less than]?php
$string = "gjl;kr5m~gf8*jl;rkm#g#Mhfjkfl2345;a@kjfdbbrNV~E'J5Nknk@22@kNlkV3'EVK54k4eJK~EJkjgssl'kjTkjlkJRJl#k~jlekgjk#d";
echo ereg_replace("[^M R a d n e s]", "", $string);
?[greater than]

Now if I put that in code tags here is what i get.


Code: Select all

<php>
Last edited by Anthony on Tue Aug 26, 2008 11:49 pm, edited 1 time in total.
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 7 months
Contact:

Postby Anthony » Tue Aug 26, 2008 11:48 pm

ok, its not jsut code, its in normal text, anything like

[less than]?php

*** some code **

?[greater than]

is shortened to

<php>
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15759
Registered for: 17 years
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Tue Aug 26, 2008 11:52 pm

The code BBcode tag lets display a text and any code like that. This forum hasn't the BBcode for the PHP, so you can't use PHP script codes.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 7 months
Contact:

Postby Anthony » Wed Aug 27, 2008 1:14 pm

its not just php

html does it too.

[lt]img src="pic.jpg" alt="picture" /[gt]

becomes

Code: Select all

<img>
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15759
Registered for: 17 years
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Wed Aug 27, 2008 7:18 pm

The code BBcode tag cancels every result of any other bbcode and HTML codes. But I'm not sure of what do you mean. :roll:
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 7 months
Contact:

Postby Anthony » Wed Aug 27, 2008 10:26 pm

what I mean is that the bbcode on this forum i smessed up.

Code: Select all

tag. The code tag removes all formatting, the idea is that you put code in between the code tags and the code is not touched. For example. [url]https://phpfreaks.com/forum[/url]. Go there and you will see how the code tag is supposed to work. Normally if I were to paste some code it would be edited by the forum. For example <img> that there was... <img src="pic.jpg" alt="pic" /> The idea of the code tag is that if I put that in code tags, it should not be changed, but..., clearly it is being changed. [code]<img>
What I am trying to say is that your code tags don't work.
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15759
Registered for: 17 years
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Wed Aug 27, 2008 10:35 pm

This stuff isn't for me... :?

The code BBcode tag do what you've said, and it's ok.
I know that some codes of this website forum are messed up, and the upgrade to the phpBB 3.0 of the forum will solve them.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 7 months
Contact:

Postby Anthony » Thu Aug 28, 2008 12:49 am

ok, kl, I was going to suggest upgrading to phpbb3.

though personally I would recommend SMF, coz its much easier to skin.
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]

User avatar
Gafaddict
MM2X Admin
MM2X Admin
Posts: 413
Registered for: 20 years 3 months
Location: Manhattan, NYC
Contact:

Postby Gafaddict » Fri Aug 29, 2008 2:43 am

We can't upgrade to SMF, the software we use (PHPNuke) revolves entirely around the phpBB setup.

Conversely we can't upgrade to phpBB3 because its database has a completely different configuration from the phpBB2 PHPNuke is designed for.
[color=white]So many rocks up in my watch I can't tell what the time is

Also, [url=https://www.mmarchive.com]Midtown Madness Archive[/url][/color]

User avatar
Anthony
MM2X Occasional User
MM2X Occasional User
Posts: 389
Registered for: 18 years 7 months
Contact:

Postby Anthony » Fri Aug 29, 2008 8:34 pm

ah, ok,

is php nuke free and opensource?
[code:1]<php>[/code:1]
[url=https://madnessred.co.cc/][img]https://madnessred.co.cc/MadnessRedAnthony.png[/img]
[/url]

User avatar
Gafaddict
MM2X Admin
MM2X Admin
Posts: 413
Registered for: 20 years 3 months
Location: Manhattan, NYC
Contact:

Postby Gafaddict » Mon Sep 01, 2008 4:57 am

It has a free version and a paid version, but the free version is Open Source in the sense that you can edit the code freely, though the site says it runs under a Commercial License.
[color=white]So many rocks up in my watch I can't tell what the time is

Also, [url=https://www.mmarchive.com]Midtown Madness Archive[/url][/color]