Help with event plug-in

Creating and modifying plugins.
Post Reply
vikram_khatri
Regular
Posts: 14
Joined: Fri Sep 16, 2005 9:23 am

Help with event plug-in

Post by vikram_khatri »

In a new user of your blog. I took time to go through all the documentations and this forum to find solutions to the issue that I am facing mainly due to my ignorance in php. It is only my third day. But, I am making progress like GWB.

I am trying to embed static pages (photo gallery) generated using picasa in to the blog entry.

I understand that I need to use iframe and for that I am using wrapurl plug-in. But I am lost as how to use this wrapurl plug-in when I create an entry. Please pardon me if it is a trivial question as I could not get info for how to do this.

I am using WYSIWYG option to create entries. Please give me some pointers as how to go about this.

This is what I did -

1. Go to the admin page and click on plug-in link.
2. Click on add a new WrapURL plug-in.
3. Put "TEST" in the HeadLine filed.
4. Keep Permalink "/uploads/PhotoGallery/Scenic/Index.html" (This is static page for photo album)
5. Keep shorthand name as pagetitle as it is.
6. I used URL as "/Photos/Scene/Index.html"
7. Height in Pixel 1000
8. Append get variable "no"
9. Hit Save

It saves the plugin as WrapURL (pagetitle) when I go back to the configure plugins link again.

So far so good but what next?

How do I use this event plug-in when I create a new entry. I guess that it is too trivial to ask as I did not get an answer anywhere in the forum or in docs.

Thanks for your help.


[/b]
vikram_khatri
Regular
Posts: 14
Joined: Fri Sep 16, 2005 9:23 am

Post by vikram_khatri »

Ok -

I provided http://www.google.com in the url field. I do not see any entry in the blog.

You can verify it in http://bluestar.zinox.com

You can go to the admin page with blog/blog987 to see what I did. I downloaded the latest stable release few days back only.

Thanks for a prompt reply.
vikram_khatri
Regular
Posts: 14
Joined: Fri Sep 16, 2005 9:23 am

Post by vikram_khatri »

After posting the reply, I was able to see wrapped external or internal web link shown in the blog if I specify that link in the browser manually. :D

In this case after creating wrapurl, if I go to my s9 blog http://bluestar.zinox.com/album/scenic/index.html, I can see the wrapped page within my blog. The url represent another url on same box as http://album.zinox.com/Scenic/index.html

But my ignorance is to how to show this wrapped url automatically as a blog entry. I do not know if that was the purpose of this plugin or not but I was under the impression that through this wrapped url plugin (serendipity_event_wrapurl), I will be able to create a blog entry which will be nothing but another page from my another site shown within s9 framework.

Please pardon my ignorance as I know nothing about php. I will start reading about it and it should not too hard to start tweaking plugins to meet my needs but it will take couple of days to get me familarized myself with php. The reason I wanted to do this as to bring some of my ASP.NET site contents within the blog as entry.

I appreciate your help.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What you want to do simply sounds like you want to enter plain HTML code in your entry. That's possible, of course.

If you're using a WYSIWYG editor though, you might face difficulties. Either deactivate the WYSIWYG temporarily for creatin gthe entry or switch to HTML Sourceview in the WYSIWYG editor (the "<>" icon).

Now in your entry just paste the iframe stuff:

Code: Select all

<iframe src="http://www.google.de" width="320" height=2240" />
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/
vikram_khatri
Regular
Posts: 14
Joined: Fri Sep 16, 2005 9:23 am

Post by vikram_khatri »

Rob / Garvin,

Thank you for taking time to explain it to me. I am getting to know s9 better and better every day now.

But, the issue is still the same. :oops:

If I use the iframe approach as Rob initially found it, my side bar disappears. I looked at the wrapurl code and and put the iframe within the table but still the side bar disappears.

Please see the link http://bluestar.zinox.com

The code that I put in the blog event was (Using WYSIWYG editor with <> option to write the HTML directly):

Code: Select all

<table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td height="1000"><iframe style="HEIGHT: 100%; frameborder: 0px" src="/uploads/albums/img_0989.jpg" frameborder="0" width="100%" height="100%" /></td></tr></tbody></table>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I wanted to look at it, but your blog only reports errors that the config_local file could not be read. Seems either you ore someone else with your admin account messed with the blog?

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/
vikram_khatri
Regular
Posts: 14
Joined: Fri Sep 16, 2005 9:23 am

Post by vikram_khatri »

Garvin,

Can you please try now? I was configuring samba with active directory on my win2k3 box and in the process, I changed some file permissions.That must have caused this error.

Can you please try now?

blog/blog789

http://bluestar.zinox.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The error is pretty easy. In your Iframe you include this link:

http://bluestar.zinox.com/uploads/album ... 9Thumb.jpg

If you call that link, you'll see, that you misspelled the URL because the file is not found and the default s9y page shows up.

If you use the correct link, the iframe problem will disappear :)

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/
vikram_khatri
Regular
Posts: 14
Joined: Fri Sep 16, 2005 9:23 am

Post by vikram_khatri »

Garvin -

Thanks so much. I fixed the url but still the right side bar will not show up. I think that I will buy a book on PHP and become an expert in 21 hours to understand what is going on. The disappearing right bar might be linked to style sheets as I have seen that before also.

Anyway, thank you so much. I like this blog very much particularly the architecture.

How I did it? - I am documenting on my aspx forum so that newbie like me could benefit from it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Looking at your blog now, the right sidebar is available! Did you change anything? :)

Best 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/
Post Reply