Page 1 of 1
Help with event plug-in
Posted: Sun Sep 18, 2005 4:59 am
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]
Posted: Sun Sep 18, 2005 7:19 pm
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.
Posted: Mon Sep 19, 2005 5:06 pm
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.
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.
Posted: Mon Sep 19, 2005 6:28 pm
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
Posted: Tue Sep 20, 2005 12:11 am
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.
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>
Posted: Tue Sep 20, 2005 12:14 pm
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
Posted: Tue Sep 20, 2005 5:03 pm
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
Posted: Tue Sep 20, 2005 6:26 pm
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
Posted: Tue Sep 20, 2005 11:48 pm
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.
Posted: Wed Sep 21, 2005 1:19 pm
by garvinhicking
Looking at your blog now, the right sidebar is available! Did you change anything?
Best regards,
Garvin