1
littletern
Hack for image import in News DHTML editor
  • 2006/10/16 18:40

  • littletern

  • Just popping in

  • Posts: 44

  • Since: 2005/6/5 2


Hi there,

I just want to ask where in imagemanager.php or anywhere else I must put this hack code:

<align="left"><img src="http://mypage.com/uploads/myimage.jpg" hspace="5" vspace="2" align="left">

I want to get nice wrap around image in NEWS 1.44 module for XOOPS.

I cant't believe that any editor don't support text wrapping around inserted images?

2
christian
Re: Hack for image import in News DHTML editor
  • 2006/10/16 20:23

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


with imagemanager.php it is not possible, but with adding a new class in you css file it's better.

sample :

.floatleft {
float: left;
border: 0px;
padding: 5px 2px 2px 2px;
}

3
littletern
Re: Hack for image import in News DHTML editor
  • 2006/10/16 21:16

  • littletern

  • Just popping in

  • Posts: 44

  • Since: 2005/6/5 2


Hmm, sound possible.. but, I was add new class in my theme css but nothing happens.. So, where I fault?
Can you please give me a little bit precise instructions? Tnx.

4
christian
Re: Hack for image import in News DHTML editor
  • 2006/10/17 9:11

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Read Step Three in this Faq

5
littletern
Re: Hack for image import in News DHTML editor
  • 2006/10/17 10:06

  • littletern

  • Just popping in

  • Posts: 44

  • Since: 2005/6/5 2


Ofcourse, that's not in question. But, my doubt is: I was put class in my css (and I was made all refreshments) but inserted image is still not good.

Ok, step by step:
1. I have XOOPS 2.0.15 and News 1.44. I use buyed theme from Xoopsdesign. For News I use DHTML without any WYSIWYG editor.
2. I want get text news with picture which where text is wrapped AND where text is not so close to picture.
3. I was put class code into my css but nothing happens.

What I'm doing wrong?

Example, I just want put my own pictures like system do with topic image:

Resized Image

or what I'm made manualy

Resized Image

Now, I have this situation (not good for me)

Resized Image

6
littletern
Re: Hack for image import in News DHTML editor
  • 2006/10/17 10:12

  • littletern

  • Just popping in

  • Posts: 44

  • Since: 2005/6/5 2


Wait, WHERE I must put my css file? Or, from which file I must call them?

7
marcionline
Re: Hack for image import in News DHTML editor

Quote:

littletern wrote:
Wait, WHERE I must put my css file? Or, from which file I must call them?


You need edit your style.css your theme (themes/your_theme_name/style.css).

8
littletern
Re: Hack for image import in News DHTML editor
  • 2006/10/17 13:17

  • littletern

  • Just popping in

  • Posts: 44

  • Since: 2005/6/5 2


Quote:

marcionline wrote:
Quote:

littletern wrote:
Wait, WHERE I must put my css file? Or, from which file I must call them?


You need edit your style.css your theme (themes/your_theme_name/style.css).


I was do this, but like I say, nothing happens. I'm not totaly newbie I know what I'm doing.

But I have problems with this css. Are you sure that class code will "say" to imported picture how she must be inserted?

That means ALL pictures on site will be positioned like css tell.

More help?

9
christian
Re: Hack for image import in News DHTML editor
  • 2006/10/17 13:30

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


1) you edit your (themes/your_theme_name/style.css) as say Marcionline pour add a new class

2)in admin system, preferences, General settings, edit

3)Check templates for modifications ? clic Yes and submit

4)Edit a article and for your image you write

<img src="http://www.yoursite.com/uploads/image.jpg" [b]class="floatleft"[/balt="caption" />

10
littletern
Re: Hack for image import in News DHTML editor
  • 2006/10/17 16:33

  • littletern

  • Just popping in

  • Posts: 44

  • Since: 2005/6/5 2


Quote:

christian wrote:
1) you edit your (themes/your_theme_name/style.css) as say Marcionline pour add a new class

2)in admin system, preferences, General settings, edit

3)Check templates for modifications ? clic Yes and submit

4)Edit a article and for your image you write

<img src="http://www.yoursite.com/uploads/image.jpg" [b]class="floatleft"[/balt="caption" />


Oh, all right. So, no chance to automate image import with rounded wrapp??
I still must do this MANUALY?
Uh!

Login

Who's Online

161 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits