Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-08-12 15:55:18

HTD
New member
Registered: 2005-08-12
Posts: 7

smiley url

Hi i have a problem with smiley,
when i insert a smile i get this code:
<img alt="Smiley" src="xinha/plugins/InsertSmiley/smileys/0030.gif" />

but i need this:
<img alt="Smiley" src="/xinha/plugins/InsertSmiley/smileys/0030.gif" />

...a slash before the word xinha.

this is the only way for me to display smiles on my dinamic website..
how can i modify the plugin for obtain this?
thanks

   Coolest_admin

Offline

#2 2005-08-13 06:18:43

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: smiley url

what happens if you correct the path in the html-view?
does it stay correct?


Niko

Offline

#3 2005-08-13 09:42:07

HTD
New member
Registered: 2005-08-12
Posts: 7

Re: smiley url

4 me is not a problem but i implemented the area in a JOIN page where people of every kind insert its own data...
take a look here:

http://www.gettincool.com/register.html

i can't ask people, girls and teen noobs to edit the html...
i have to change the output of the plugin...

any hint?

Offline

#4 2005-08-13 09:53:45

kptkip
Xinha Community Member
Registered: 2005-08-13
Posts: 14

Re: smiley url

Hi,

from my point of view niko didn't want your user to do this, but you to test this via manual manipulation.

So we can get closer to the problem.

Kpt|Kip

Offline

#5 2005-08-13 10:03:08

HTD
New member
Registered: 2005-08-12
Posts: 7

Re: smiley url

oh.. yes,
i edited manually the code and the visualization problems disappeared when i added the slash...

so, i need the slash in output code...

Cris

Offline

#6 2005-08-13 10:13:48

kptkip
Xinha Community Member
Registered: 2005-08-13
Posts: 14

Re: smiley url

Hm, I have got the same problem, even with the file- and the imagemanager.

When I insert the Link or the image (I think it is the same phenomenon like yours) than it works for the moment. Even in the HTML-Code.

BUT:
After i have saved the article. The link or the src of the image is changed. everything before the TOP-Level-Domain including the leading slash disappears.

It doesn't matter if you take relative or absolute URLs.
Both:
http://www.example.org/images/myimage.gif
/images/myimage.gif
is changed to:
images/myimage.gif

I also don't understand this "feature". this change must be implemented extraordinary - this doesnt happen by accident.

Greetings
Kpt|Kip

Offline

#7 2005-08-13 15:40:08

HTD
New member
Registered: 2005-08-12
Posts: 7

Re: smiley url

Yes,
is something similar...
when a person enter a smile and save, the result is visible only until the page is reloaded. Probably thanks to the browser cache...
When another person try to look the page, the smile don't appear... the same if you reload the page or restart the browser...
When i edit the path adding the slash all work for all people...

cris

Offline

#8 2005-08-15 10:23:41

kptkip
Xinha Community Member
Registered: 2005-08-13
Posts: 14

Re: smiley url

Maybe something like this will help:

        xinha_config.stripBaseHref = false;                                    // Switch on/off BaseHref Stripping
        xinha_config.baseHref  = null;                                        // if stripBaseHref= true, define URL that will be stripped
        xinha_config.stripSelfNamedAnchors = false;

Greetings
Kpt|Kip

Offline

#9 2005-08-15 13:36:23

HTD
New member
Registered: 2005-08-12
Posts: 7

Re: smiley url

This is an example you propose or is a piece of code i can add to a file?

cris

Offline

#10 2005-08-15 17:28:19

kptkip
Xinha Community Member
Registered: 2005-08-13
Posts: 14

Re: smiley url

I was given this code to put into my intialisation-page, where all the other parameters are configured to start xinha.

The Problem is the stripingBaseURL-Function. This omits the beginning of your Link. The problem is, it doesn't work with my problem.
It doesnt matter wether the falg is set to true or false.

No reaction. But maybe it helps you with your smilie-problem.

Greetings Alex

Offline

#11 2005-08-15 20:04:35

HTD
New member
Registered: 2005-08-12
Posts: 7

Re: smiley url

I added the 3 lines you provided in my_config.js on step3

Now all work for me both with IE and FF, the URL created is the right one and complete http://www.gettincool.com/xinha/....

a friend of mine tried to insert a smile on its profile but he get a wrong url... as in past... i think he had a chache problem with firefox... i asked my friend to clear the cache and estart the browser but he got the same problem... dunno if he follow correctly my requests... 

in next days i will test the inserting of smiles with other users with various browsers.. so i hope to understand if all work correctly now or not...
in the meantime thanks for your help.. i will inform you if all work..

Thanks

   Cris

Offline

#12 2005-08-18 11:44:00

HTD
New member
Registered: 2005-08-12
Posts: 7

Re: smiley url

ok
i made a few test with other peoples and now i can say that work good for all..
thanks!


   Cris

Offline

#13 2005-08-18 18:09:52

Mul
New member
Registered: 2005-08-18
Posts: 2

Re: smiley url

kptkip wrote:

Maybe something like this will help:

        xinha_config.stripBaseHref = false;                                    // Switch on/off BaseHref Stripping
        xinha_config.baseHref  = null;                                        // if stripBaseHref= true, define URL that will be stripped
        xinha_config.stripSelfNamedAnchors = false;

Greetings
Kpt|Kip

That would work only if you want the img src contain the full URL including the hostname.  In my case, the original src contain just <img src="/images/filename.gif"/>, and I'd like that to be preserved vs. being changed to <img src="http://localhost/images/filename.gif"/>.

I believe the problem is in fixRelativeLinks, where document.location.href has one character too many, instead of http://localhost, it contains http://localhost/.  That screws up the <img src> url.

Offline

#14 2006-07-01 05:25:34

sgallery
New member
Registered: 2006-07-01
Posts: 2

Re: smiley url

Hi,
Sorry for my English, - I'm romanian.
href|src|background   for me is problem #1.
How I can disable at all replace src links ?
When I use the button Toggle HTML source all src links is changed.  Also I can't use first slash in src urls. This function does xinha unpredictable and unguided. I would like to disable this function in general. How it to make? 
I need in that all urls have remained as I edited manually and did not change (even if urls is wrong relatively xinha editor). Thanks!

Last edited by sgallery (2006-07-01 05:26:14)

Offline

Board footer

Powered by FluxBB