Linklist 1.0

Creating and modifying plugins.
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Trograin, you can ignore my note about javascript... that was aimed at oxygenws..

About your problem, it looks like the ampersand throws the xml parser off...
You can encode the ampersand like this:

<link name="Miljöministeriet" link="http://www.miljo.fi/default.asp?node=17&lan=sv" />

And the link should work. I'll have a look at the code and see what I can do about replacing ampersands with an encoded string... There are probably some other characters that do the same thing that I don't know about...
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

Omid, if you would like to take a shot at using javascript to open the windows, feel free...
Thanks, ok, i'll work on this issue.
And the link should work. I'll have a look at the code and see what I can do about replacing ampersands with an encoded string... There are probably some other characters that do the same thing that I don't know about...
Nice bug :D
Thanks Matt, thanks Trograin.

I have a very long link list that I wold lketo implement.
as a NOTE....
you can add unlimited links and unlimited directories and unlimited subdirectories under your directories, until your limited PHP memory become full :)
My Blog, powered by s9y is http://oxygenws.com/blog/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

There is a problem with your request and another friends request in the followind link:
http://www.s9y.org/forums/viewtopic.php?p=15988

for his request i need to change "<a href=...." to "<a onclick=\"window.open....." to CAN set width and height of new pages (this works fine, now)
but how can i add TARGET to this feature?!

i think window.open ALWAYS opens a new window, not self nor parent nor ...

do you have any suggestion for it?

(sorry to cross posting, really i donno where is better!!!)
My Blog, powered by s9y is http://oxygenws.com/blog/
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

So far as I know, you are right that window.open() always opens a new window.
It might be that if a window exists with the same name (look at the parameters open() accepts) it will not open a new one, but I'm not sure that is much help...

If I had to choose between options I would like to support I would prefer to choose a configurable target and not support the javascript open... But that is just my preference.
p at sc

Is there a URL size limitation for Link List

Post by p at sc »

I've been trying to link to a url on kodakgallery, but link list bugs out.
It could partly be because of other characters in the URL like ? . and others... or could it be the SIZE of the url? See the "Born again" link below

Here is my code:

<dir name="Other Sites">
<link name="Garvin Hicking" link="http://www.supergarv.de/" />
<link name="Matthew Groeninger" link="http://www.theledge.net/" />
</dir>
<dir name="Pictures">
<link name="Born again" link="http://www.kodakgallery.com/I.jsp?c=lbp ... &y=-s6815a" />
<link name="Serendipity" link="http://s9y.org/" />
<link name="Zend" link="http://zend.com/" />
</dir>
<link name="OXYGEN Web Solutions" link="http://oxygenws.com/" />
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Is there a URL size limitation for Link List

Post by garvinhicking »

Try to change "&" to "&" in your URLs.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Actually, it looks like it is a problem with the ampersands...

if you encode them with & it seems to work fine...

Something like:

Code: Select all

www.kodakgallery.com/I.jsp?c=lbpo3wr.bh0weyfz&x=0&y=-s6815a
should work...
p at sc

same results

Post by p at sc »

I made those changes.. same results.. No known issues with the ? . or = symbols?

<dir name="Other Sites">
<link name="Garvin Hicking" link="http://www.supergarv.de/" />
<link name="Matthew Groeninger" link="http://www.theledge.net/" />
</dir>
<dir name="Pictures">
<link name="Born again" link="http://www.kodakgallery.com/I.jsp?c=lbp ... py=-s6815a" />
<link name="Serendipity" link="http://s9y.org/" />
<link name="Zend" link="http://zend.com/" />
</dir>
<link name="OXYGEN Web Solutions" link="http://oxygenws.com/" />
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: same results

Post by garvinhicking »

Pat:

Replace "&" with "&" as described, not with "&amp" as you did. :)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

How do I change the font used for the links in XML? I can't seems to figure it out :( The font for my links is different than the rest of my sidebar items. Thanks!
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

PerfectCr, could you provide a link please?
My Blog, powered by s9y is http://oxygenws.com/blog/
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

Sure click the www link or the link in my sig ;)
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

PerfectCr, did you get this fixed? (I could look at your page all day and not know... I suck with fonts...)

It looks like you are using the DHTML/CSS output (rather then DTree!!! Yeah!!!)...

To make changes to the style you should edit the linklist.css under your plugins/serendipity_event_linklist folder.
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

mgroeninger wrote:PerfectCr, did you get this fixed? (I could look at your page all day and not know... I suck with fonts...)

It looks like you are using the DHTML/CSS output (rather then DTree!!! Yeah!!!)...

To make changes to the style you should edit the linklist.css under your plugins/serendipity_event_linklist folder.
Tried that but when I changed it to Veranda nothing happened, in fact it then changed to Times New Roman :(
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

i think its because of your cache...
try CTRL+R or CTRL+F5 :)
My Blog, powered by s9y is http://oxygenws.com/blog/
Post Reply