Recent Topics

1 Dec 30, 2007 19:15    

My b2evolution Version: 1.9.3

Hey.

I am trying to add a watermark to my image files with a png file, CSS, and HTML. Like [url=http://www.tutorial5.com/content/view/129/52/]THIS[/url].

So I went into the rsc/css/img.css file and added this:

#watermark_box {
position:relative;
display:block;
}

img.watermark {
position: absolute;
top: 4px;
left: 4px;
}

I HAD to include the # before the watermark_box or it wouldn't work. I don't know why. :)

I then posted the HTML on my post. Sort of like this.

<div id="watermark_box">
<img src="iamthebestphotographerever.jpg" alt="My wonderful image"/>
<img src="watermark.png" class="watermark" alt="Watermark image" />
</div>

To get it [url=http://www.amandatakesoff.com/b2evolution1/index.php/2007/12/29/yong_in_university_taekwondo_demo]to work[/url], I had to go into the HTML checker and temporarily turn it off, then turn it back on.

I am going to be doing a photo a day project this year and I would really prefer to not have to manually turn that off and on. Is there a way to change the checker so I don't have to do it just for this form of HTML?

I found [url=http://forums.b2evolution.net/viewtopic.php?t=6164&highlight=edit+html+checker]this post[/url], and [url=http://forums.b2evolution.net/viewtopic.php?t=3807]this one[/url], too. But I have no idea how to apply that to my own life. :)

2 Dec 30, 2007 19:35

hi atavistic,

You use the pound mark # for styling an id. Were it a class you would use a dot (.) I refer to the id in

<div id="watermark_box">

The dot is visible in

img.watermark

That refers to a class, in your case

class="watermark"

.

Now for the html checker problem. I do not know the 1.9 version, but is there a variable $allow_post_style or similar? If so check it on (make the value '1' in stead of '0' like you do with the htmlchecker).

If this doesn't work either upgrade to 1.10.3 or download 1.10.3 and find the /conf/_formatting.php file in that version and upload it to the server.

This should do the trick. Please report back to this topic.

Good luck

3 Dec 30, 2007 19:36

Dang. You told me I was going to have to upgrade... :lol:

It's 3:30 am here. Will try after some sleep. Thanks!

4 Dec 31, 2007 00:33

Afwas wrote:

Now for the html checker problem. I do not know the 1.9 version, but is there a variable $allow_post_style or similar? If so check it on (make the value '1' in stead of '0' like you do with the htmlchecker).

In the /conf/_formatting.php file? I couldn't find it.

If this doesn't work either upgrade to 1.10.3 or download 1.10.3 and find the /conf/_formatting.php file in that version and upload it to the server.

I downloaded and uploaded just the /conf/_formatting.php, but when I tried the HTML, I get this error when I try to save.

Tag <div> may not have attribute id

:?:

5 Dec 31, 2007 00:50

You really should upgrade, for loads more resaons than I can be arsed to type, some of them involve security, others involve widgets, but all of them involve the fact that I'd be able to free up a fair chunk of my hard drive if I didn't have to keep copies of old versions around so I can answer questions ;)

for pre whatever version it was that the setting that Afwas mentioned was added to conf/_formatting.php ... crack open the same file and meander down to line 144 ish and change this bit :

// Allowed Attribute classes
define('A_coreattrs', 'class title');

to look a tad like this :

// Allowed Attribute classes
// I really should upgrade, not only will I have a cutting edge tool that's more flexible than a flexible thing on a flexible day ... I'd help save HDD space worldwide :D
define('A_coreattrs', 'class title id style');

;)

¥

6 Dec 31, 2007 01:28

OK, well, I tried upgrading and got this.

Additional information about this error:

MySQL error!

Duplicate entry 'penis-enlargement' for key 2(Errno=1062)

Your query:

INSERT INTO evo_antispam(aspm_string)
VALUES ('penis-enlargement'), ('online-casino'), ('order-viagra'), ('order-phentermine'), ('order-xenical'), ('order-prophecia'), ('sexy-lingerie'), ('-porn-'), ('-adult-'), ('-tits-'), ('buy-phentermine'), ('order-cheap-pills'), ('buy-xenadrine'), ('xxx'), ('paris-hilton'), ('parishilton'), ('camgirls'), ('adult-models')

7 Dec 31, 2007 02:24

OK. Well. I tried installing/upgrading again and got a mess of stuff I did not understand. At all. I tried running the install scripty thing and got a page full of pink and red and things like

'.T_('Check your database config settings below and update them if necessary...').'

'.sprintf(T_('The minimum requirement for this version of b2evolution is %s version %s but you are trying to use version %s!'), 'MySQL', '3.23', $mysql_version ).'

'.sprintf(T_('The minimum requirement for this version of b2evolution is %s version %s but you are trying to use version %s!'), 'PHP', '4.1.0', phpversion() ).'

'; echo '

'.'b2evolution cannot be installed, because of the following errors:'.'
'; echo '

* '.implode( '
* ', $req_errors ).'

'; echo '

And so on and so forth.

So! I did your little trick to the /_formatting file and it works.

Thanks!

But unfortunately...I'm still making you save some space on your HD. :)

8 Dec 31, 2007 11:41

Bugger, guess I need to buy another HDD ;)

¥


Form is loading...