/*************************************
Script name: GBook - PHP Guestbook
Current version: 1.7
Price: FREE
Short description:
*************************************/
First of all thank you very much for your great
guestbook script, let me show you:
http://www.lisareinhardtmakeupartist.co ... /gbook.php
since I wanted to keep the "look" of the website I decided
to use <iframes> to embed the php guestbook into a html page:
http://www.lisareinhardtmakeupartist.com/guestbook.html
However I am having a small problem: the Googlebot doesn't
like <iframes>, so i've been looking for a workaround and I
was able to get help from a php programmer who gave me this
code to include the guestbook into the page
This is his code:
<?php
$site = 'http://www.lisareinhardtmakeupartist.co ... /gbook.php';
echo str_replace('src="/', 'src="' . $site, file_get_contents($site));
?>
This is the "new" guestbook page:
http://www.lisareinhardtmakeupartist.com/guestbook.php
As you can see all the formating/graphics/links aren't working
properly I guess because the css and images folder the php
guestbook is calling for needs to be moved in my server or it
has to be linked following the correct path...
I was wondering if someone would be kind enough to help me fix this
small issue and if so, how much your fee would be?
I am a illustrator/photoshop guy, I am not a programmer whatsoever
Thank you very much in advance!
Anderson//
andersondosantos20@gmail.com
03/12/10
I need help re-linking css/hyperlinks properly
-
- Posts: 1
- Joined: Sat Mar 13, 2010 5:22 am
Hello Anderson,
I did not get your way to embed the Gbook running on my test webserver so I could not test if following solution works.
Try changing in gbook.php file of Gbook (line 45-46) to
If that works, you might have go add the gbook/ to all coded links in GBook files.
For example in folder templates/default
I did not get your way to embed the Gbook running on my test webserver so I could not test if following solution works.
Try changing in gbook.php file of Gbook (line 45-46)
Code: Select all
/* Template path to use */
$settings['tpl_path'] = './templates/'.$settings['template'].'/';
Code: Select all
/* Template path to use */
$settings['tpl_path'] = './gbook/templates/'.$settings['template'].'/';
For example in folder templates/default
- overall_header.php lines 35-36
<a href="gbook/gbook.php"><?php echo $lang['t60']; ?></a> |
<a href="gbook/gbook.php?a=sign"><?php echo $lang['t48']; ?></a>
But i am not sure this will work as you want, because when i tried to open the page this way, it broke your layout again. So i think you have to call it again in the way you called your normal gbook but now with the link $site = 'http://www.lisareinhardtmakeupartist.co ... php?a=sign';
But as said before, i am not sure about this as i did not get your code running on my test webserver.
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.