Recent Topics

1 Jan 12, 2008 20:04    

My b2evolution Version: 1.10.x

Hi there
I have only just joined this forum and was hoping somebody could tell me where to find the formating.php page in V2.3

I wanted to allow object and style tags in posts, but just can't seem to find the correct page to make the changes in.

Thanks in advance,

Gz

2 Jan 12, 2008 20:06

/blogs/conf/ or /conf/
If you open the file, first look at the predefined options (the variables you can turn on by changing 0 -zero- to 1 -one-).

Good luck

3 Jan 12, 2008 20:44

Cheers for that, that's where they hid it ;)

I am still getting these errors, any ideas

* Tag <object> may not have attribute type
* Tag <object> may not have attribute data
* Tag <object> may not have attribute title
* Tag <a> is not allowed within tag <object>

Gz

4 Jan 12, 2008 20:48

Look for line ~ 81:

$posts_allow_objects = false;


and set it to true:

$posts_allow_objects = true;

Good luck

5 Jan 12, 2008 20:52

This isn't from 1.1.0 but have a look into it...
Find something that looks like this... beginning at line 490 in a 2.0.0.1 version.

if( $posts_allow_objects )
{
	$allowed_tags += array
	(
		'object' => 'param embed',
	  'param' => '',
	  'embed' => '',
	);
	$allowed_attributes += array
	(
	  'object' => 'codebase classid id height width align type style data',

and note the addition to "object" there is "type" and "data"

6 Jan 12, 2008 21:00

Great addition, John.

Keljem, if you still have problems, please post the code you are trying to use.

Good luck

7 Jan 12, 2008 21:25

Thanks very much for all your help both of you.
I will have a look at this later and post my code if it doesn't work.
Thanks again.

Gz

8 Jan 12, 2008 22:45

Afwas, thanks for that I tried that with no luck.
John, thanks, its almost worked, it now just says... Tag <a> is not allowed within tag <object>

Any ideas please ?

This must be the offending article in one of my posts.

<param name="movie" value="/media/flvplayer.swf?file=/media/videos/mac.flv&amp;image=/media/videos/mac.jpg&amp;bufferlength=5"/>
<a href="http://www.macromedia.com/go/getflashplayer">Macromedia Flash Player (tm) 7 required</a></object>

Thanks y'all
Gz

9 Jan 12, 2008 22:50

Cut this out and leave it out of the post:

<a href="http://www.macromedia.com/go/getflashplayer">Macromedia Flash Player (tm) 7 required</a>


or place it after the closing </object>

Good luck

10 Jan 12, 2008 22:52

@keljem
Is that the complete code for the flash?

If not please post the full code as there are bits that can be left out and or reformatted :)

As Afwas has just demonstrated

11 Jan 12, 2008 22:58

Yipeeeeee,
Cheers guys, that's got it by the horns.
I just put the <a> tag after the <object>

Thank you both for you very quick replies and help. It is much appreciated.

Enjoy the rest of the weekend.
Happy bloggin/ coding

Gz
www.garysblog.co.uk

(recently updated to V2.3 and not finished yet)

12 Jan 12, 2008 23:38

*Waves to Gary*

You muppet, I deleted your duplicate comment for yah ;)

To allow <a> inside <object> you need to change this part of that section of code to look like this :

   $allowed_tags += array
   (
      'object' => 'param embed a',
     'param' => '',
     'embed' => '',

;)

¥

13 Jan 12, 2008 23:55

*waves back to Paul*

Lol, Cheers for that. These forums are great :)

I didn't know I had duplicated a comment to be honest. I previewed and then saved, I must of messed up there somehow ;)

Gz

15 Jan 13, 2008 00:03

keljem wrote:

Lol, Cheers for that. These forums are great :)

bugger me, you finally realised :D

¥

16 Jan 13, 2008 19:11

You may of opened the door, but it just took me a while to enter (of my own free will).

Gz ;)

17 Jan 13, 2008 20:12

Next time I'll just bitch slap yah through the door ... it'll save oodles of energy :D

¥

18 Jan 13, 2008 22:23

Promises, promises

Gz :P


Form is loading...