Javascript to show entries on external site plugin??

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Joe Suli
Regular
Posts: 6
Joined: Sat Apr 24, 2010 4:53 pm

Javascript to show entries on external site plugin??

Post by Joe Suli »

Hi,

Thought I'd make this its own thread, since it wasn't really the original question of my last thread.

I've installed the plugin, but can't quite figure out what URL to use in the <script src> attribute.

The Serendipity installation is here:
http://www.mydomain.com/serendipity

I don't quite understand what the "Backend Url" attribute is for on the plugin config screen. I've read the documentation but can't seem to hit on the correct path to use in the <script src>.

Can anyone recommend a path to use in the <script src> tag to make this work?

For instance, based on the documentation, I'm using:
<script src="http://mydomain.org/serendipity/plugin/ ... "></script>

but nothing displays. Do I have to initialize this script in the document head or something?

Any advice would be great; really would love to get this working!

Thanks,
Joe
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Javascript to show entries on external site plugin??

Post by garvinhicking »

Hi!

"Backend URL" is what you configure inside the plugin itself. There, you should actually simply enter "backend". You only need to that keyword, that is inserted on www.mydomain.com/serendipity/plugin/KEYWORD

- also note if your site does not support URL rewriting or you don't have that active, you need to index mydomain.com/serendipity/index.php?/plugin/KEYWORD.

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/
Joe Suli
Regular
Posts: 6
Joined: Sat Apr 24, 2010 4:53 pm

Re: Javascript to show entries on external site plugin??

Post by Joe Suli »

Garvin,

You were right... URL rewriting was not active. Indexed the page and all is good!

Thanks!
Joe
kspain
Posts: 2
Joined: Thu May 13, 2010 9:00 pm

Re: Javascript to show entries on external site plugin??

Post by kspain »

Hi, I was wondering a couple of things about this plugin.

I have managed to make it work quite easily (I haven't installed it yet but the trials have been successful), but I'd like to pimp it a bit more and I don't know if it is possible.

First of all, I would like to know if there is a way of displaying recent entries, but only after a certain one. For example, I might like to display only the second recent entry, up to the fifth, but not the first one.

The other question I've got is: I have a photoblog. Is is possible to display just the pictures, instead of the titles? Or the thumbnails?

The idea is to have a main page on my website where I can display the first entry as a picture and the second to fifth entries as thumbnails or titles. So basically, the idea of the backend plugin, but with pictures instead of titles.

Thanks :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Javascript to show entries on external site plugin??

Post by garvinhicking »

Hi!

That's not possible with the current plugin; you'd need to modify the PHP code there to add such specific rules...
The other question I've got is: I have a photoblog. Is is possible to display just the pictures, instead of the titles? Or the thumbnails?
You could achieve that by using CSS to hide the things you don't want to see? Other than that, you'D also have to modify the PHP code output... (which is not so hard at all!)

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/
kspain
Posts: 2
Joined: Thu May 13, 2010 9:00 pm

Re: Javascript to show entries on external site plugin??

Post by kspain »

Ok, I'll play with the css then. Thanks a lot :D
Post Reply