You are not logged in.
#1 2005-07-13 22:58:33
- Guest
- Guest
included gallery, thumbs don't enlarge
I tried to include SG in wordpress, but so far it doesn't work fine. If I'm clicking on an image, it doesn't enlarge.
In singapore.ini I changed the following:
index_file_url = "http://felixufer.de/?page_id=24&"
base_url = "http://felixufer.de/fotos/"
page, which includes SG:
http://felixufer.de/?page_id=24
root directory of SG:
http://felixufer.de/fotos/
What did I do wrong?
#2 2005-07-17 11:58:04
- Guest
- Guest
Re: included gallery, thumbs don't enlarge
Before including external.php I added print_r($_GET), because I thought that the GET-variables aren't handed over correctly. But this is not the case as you can see on my website (http://felixufer.de/?page_id=24). Another thing is, that it is always detected as an album, so probably there is something wrong with the isImage-Function.
#3 2005-07-26 03:43:11
- Felix Ufer
- Member
Re: included gallery, thumbs don't enlarge
Hey folks,
could you please look what might be the problem. I asked some friends, but they couldn't help me.
Thanks a lot in advance!
[url=http://felixufer.de]felixufer.de[/url]
Offline
#4 2005-08-02 23:25:43
- Felix Ufer
- Member
Re: included gallery, thumbs don't enlarge
Please have a look into it.
Thanks.
[url=http://felixufer.de]felixufer.de[/url]
Offline
#5 2005-08-07 16:29:31
- pavian
- Moderator

Re: included gallery, thumbs don't enlarge
Well, I solved the problem, since I had access to his WordPress. It was an php error.
I believe there will be a HowTo on Wordpress and singapore soon.
Offline
#6 2005-08-08 18:52:07
- tamlyn
- Lead Developer

Re: included gallery, thumbs don't enlarge
Hey felix, I looked at your problem on my last forum answering marathon but it stumped me too. What do you mean by 'php error' pavian? Coding error in sg/wp or bug in php? Howto would go down a treat!
Offline
#7 2005-08-08 22:32:26
- pavian
- Moderator

Re: included gallery, thumbs don't enlarge
hehe, I don't want to embarrase Felix, but he had an error in an include(): He used an absolute http adress instead of a relative path.
Well he promised me he would write a HowTo!
What you basically need to do is to install a plugin that allows php-code to be executed from inside WordPress. Then you create a new page "photos" inside WordPress. You will have to find out the page_id after creating it.
If you check on http://www.felixufer.de you will find it to be 24: http://felixufer.de/?page_id=24. Well thats your index_file_url for the singapore.ini ?page_id=24&. Now on the Wordpress page photo you just include the external.php.
...well its a short summary of what we basically did. I am sure Felix will write a long and nicely formated HowTo. Also maybe one could write somekind of installer to include singapore into wordpress more easily.
Offline
#8 2005-08-10 14:10:14
- Felix Ufer
- Member
Re: included gallery, thumbs don't enlarge
How to include Singapore into WordPress
Install Singapore
At first you have to follow the normal installation routine. For questions how to do that have a look into docs directory.
Upload the external template of Singapore
Get the external template of Singapore.
Upload it to the templates directory.
Install Wordpress PHP Exec Plugin
Download the latest version of the plugin: phpexec.txt.
Rename the plugin to phpexec.php and put it into your wp-content/plugins directory.
Activate the plugin from WordPress administration menu (wp-admin/plugins.php).
Create new site inside Wordpress
Now you create a "photos" page inside WordPress with the following content:
Code:
<phpcode>
<?php include("path-to-sg-directory/external.php"); ?>
</phpcode>Don't forget to replace 'path-to-sg-directory' with the correct relative path to your Singapore directory. Don't use the absolute path, this won't work.
After creating keep a note of the page ID. You can find the ID in the WordPress administration menu (wp-admin/edit-pages.php).
Change singapore.ini
Set default_template in line 28 to external:
Code:
default_template = "external"
Change index_file_url in line 208:
Code:
index_file_url = "http://www.yoursite.com/blog/?page_id=20&"
Set the right URI to your WordPress directory and the right ID as you have noted it. The path has to be absolute.
That's it!
Workaround: Make it valid!
I noticed that the "photos" pages in WordPress aren't valid HTML. That's because of PHP Exec Plugin which puts the entered PHP code automatically into a <p>-tag. To avoid this open phpexec.php and change line 62 as follows:
Code:
$phpexec_output .= '</p><!-- begin php --><p>' . ob_get_clean() . '<!-- end php --><p>';
[url=http://felixufer.de]felixufer.de[/url]
Offline
#9 2005-08-11 13:36:04
- tamlyn
- Lead Developer

Re: included gallery, thumbs don't enlarge
Hey thanks felix - now I *really* have to get that wiki up and running :!:
Are you sure that last code snippet has the right number of <p> tags? It looks odd to me but I know nothing about wordpress so...
Offline
#10 2005-08-11 19:44:53
- Felix Ufer
- Member
Re: included gallery, thumbs don't enlarge
You need three <p>-tags and it has nothing to do with WordPress, it's just because of that PHP Exec Plugin.
You want to run a wiki? Great idea! I guess this would stop asking the same questions again and again, would make it easier to support people with problems.
If you have trouble with installing the wiki or if you need help feel free to write me an e-mail.
[url=http://felixufer.de]felixufer.de[/url]
Offline