ROMANIAN gbook.php translation code

Everything related to GBook PHP guestbook
Post Reply
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

ROMANIAN gbook.php translation code

Post by Lao »

/*************************************
Title: Gbook.php ROMANIAN TRANSLATION
Version: 1.6
Author: Lao Mayer
Demo:
Download:
Website:

Short description: Just a simple ROMANIAN translation of Gbook.php


*************************************/
Here goes my first post. It's a romanian translation for the language.inc.php file. I really like this guestbook and I started using it on my site since 2-3 days ago: http://www.importpieseauto.ro

The only thing I couldn't understand is how to integrate it in one of my pages ("Mesajele clientilor"). I read all the posts about how to integrate it, but didn't understand, because I'm not a programmer, I don't know much PHP.

Can anyone help me on this one problem? Maybe if I submit the codes via email...

Code: Select all

<?php
/*
********************************************
GBOOK LANGUAGE FILE
Version: 1.6
Language: ROMANIAN
Last modified: 14th Feb 2008 17:41
Translated by: Lao Mayer (www.importpieseauto.ro)
Original by: Klemen (www.phpjunkyard.com)
********************************************
PLEASE REFER TO THE README.HTM FOR INFORMATON ABOUT TRANSLATING THIS FILE
*/

/* Encoding for HTML pages */
$lang['enc']='windows-1250';

/* Error messages */
$lang['e01']='Nu puteti scrie mesaje deocamdata!';
$lang['e02']='ID invalid';
$lang['e03']='Introduceti numele';
$lang['e04']='Introduceti o adresa de email valida sau lasati campul necompletat.';
$lang['e05']='Introduceti un domeniu valid sau lasati campul necompletat.';
$lang['e06']='Postati mesajul';
$lang['e07']='Introduceti codul din imagine';
$lang['e08']='Codul a fost introdus gresit';
$lang['e09']='Introduceti parola';
$lang['e10']='Introdudeti raspunsul dumneavoastra';
$lang['e11']='This is not a valid action!';
$lang['e12']='Parola gresita!';
$lang['e13']='Setati parametrii CHMOD fisierelor pt scriere la 666 (rw-rw-rw-)!';
$lang['e14']='Fisierul "bad words" nu a putut fi gasit! Verifica numele fisierului. Majoritatea serverelor sunt CaSe SeNsiTiVe!';
$lang['e15']='Parola gresita! Numai ADMIN-ul poate citi acest mesaj!';
$lang['e16']='Parola gresita! Selectia nu a fost stearsa!';
$lang['e17']='Puteti introduce un singur mesaj pe ora! (pentru evitarea SPAM-ului)';
$lang['e18']='Setati parametrii CHMOD fisierelor pt scriere la 666 (rw-rw-rw-) si asigurati-va ca serverul d-voastra permite citirea scripturilor PHP!';
$lang['e19']='Eroare';
$lang['e20']='EROARE: Adresa IP invalida, accesul interzis!';
$lang['e21']='EROARE: V-a fost interzis accesul la mesaje!';

/* Text used */
$lang['t01']='Numar de mesaje: %d Numar de pagini: %d';
$lang['t02']='Prima';
$lang['t03']='Precedenta';
$lang['t04']='Urmatoarea';
$lang['t05']='Ultima';
$lang['t06']='Nici un alt comentariu. Puteti fi primul care scrie un mesaj!';
$lang['t07']='Acest mesaj a fost trimis de:';
$lang['t08']='Clic pentru a continua';
$lang['t09']='Vizualizeaza adresa IP';
$lang['t10']='Numai ADMIN-ul poate vizualiza adresele IP. Pentru a vizualiza IP introduceti parola de ADMIN si apasati pe "Vizualizeaza IP".';
$lang['t11']='Renunta / Inapoi';
$lang['t12']='Mesajul a fost postat cu succes!';
$lang['t13']='Raspundeti mesajului anterior';
$lang['t14']='ADMIN-ul poate folosi acest formular pentru a raspunde unui mesaj. Pentru a raspunde mesajului selectat introduceti parola de ADMIN, mesajul, apoi apasati pe "Raspunde".';
$lang['t15']='Postat de';
$lang['t16']='Mesaje:';
$lang['t17']='Nume:';
$lang['t18']='Din:';
$lang['t19']='Website:';
$lang['t20']='E-mail:';
$lang['t21']='Parola Admin:';
$lang['t22']='Optiuni aditionale:';
$lang['t23']='Baneaza aceasta adresa IP';
$lang['t24']='Vizualizeaza IP';
$lang['t25']='Raspuns:';
$lang['t26']='Mai mult';
$lang['t27']='Contact';
$lang['t28']='Dezactiveaza smileys';
$lang['t29']='Raspunde';
$lang['t30']='Raspunsul ADMIN-ului:';
$lang['t31']='Adaugat:';
$lang['t32']='Sterge';
$lang['t33']='Raspunde';
$lang['t34']='Inapoi la pagina de mesaje';
$lang['t35']='Citeste raspuns privat';
$lang['t36']='Acesta este un mesaj privat si poate fi citit numai de catre administratorul site-ului. Pentru a citi introduceti parola de ADMIN si apasati pe "Citeste mesaj privat".';
$lang['t37']='Selectia a fost stearsa!';
$lang['t38']='Sterge mesajul';
$lang['t39']='Numai administratorul site-ului poate sterge mesajele. Pentru a sterge introduceti parola de ADMIN si apasati pe "Sterge".';
$lang['t40']='Sterge';
$lang['t41']='Cineva a adaugat un mesaj pe www.siteultauaici.ro'; // <-- This is e-mail subject
$lang['t42']='Salut, Lao!';
$lang['t43']='Cineva a adaugat un mesaj'; // <-- This is text inside e-mail
$lang['t44']='Mesaj (fara smileys):';
$lang['t45']='Vizitati linkul de mai jos pentru a vizualiza mesajele:';
$lang['t46']='Sfarsitul mesajului';
$lang['t47']='Mesajul a fost adaugat cu succes!';
$lang['t48']='Scrieti un mesaj';
$lang['t49']='Campurile obligatorii sunt cele <b>ingrosate</b>.';
$lang['t50']='Nume si prenume:';
$lang['t51']='Localitatea:';
$lang['t52']='E-mail:';
$lang['t53']='Website:';
$lang['t54']='Nu introduceti site-uri in mesaj';
$lang['t55']='Acesta este un mesaj privat, ascunde-l!';
$lang['t56']='Introduceti codul de deasupra:';
$lang['t57']=' Adauga mesajul ';
$lang['t58']='Mesaj privat. Clic pt vizualizare.';
$lang['t59']='Inapoi';
$lang['t60']='Vizualizeaza toate mesajele';
$lang['t61']='Inpoi la';
$lang['t62']='Cod de siguranta';
$lang['t63']='Vizualizeaza adresa de e-mail';
$lang['t64']='Numai Administratorul poate vizualiza adresele de email. Pentru a vizualiza adresa de email introduceti parola de ADMIN si apasati pe "Vizualizeaza Email".';
$lang['t65']='Adresa email a acestui mesaj este:';
$lang['t66']='Adresele de email nu sunt facute publice!';

?>
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Thanks for sharing.

To install it just save this code as "romanian.inc.php", upload it to your server and in your settings.php file change language.inc.php to romanian.inc.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

Post by Lao »

Sorry for my bad english explanation. I was refering to the guestbook, not the translation code. :)

I managed just a few minutes ago to do something about it, but it looks ugly, all thing appart. Can you take a look here?

http://www.importpieseauto.ro/mesaje/gbook.php

Thanks.
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

Post by Lao »

I read all about inserting HTML in header.txt and footer.txt and all about iframe. I can't do it right, don't know how. :shock:
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Lao,

I am not that familiar with iframes, so i used the solution with the header.txt, footer.txt and style.css file.

In header.txt you put what normally is in your <body> until and including part <!-- Begin Content --> <div id="content">.
I tested with:

Code: Select all

<!-- Begin Container -->
<div id="container">
	<!-- Begin Masthead -->
	<div id="masthead">
		<p class="style1" style="width: 616px;"><strong>
		<span class="style2">Mobil:</span></strong><span class="style2"> +40 766-45.55.45<br>
		<strong>Fax:</strong> +40 351-40.28.28<br>
		<strong>Yahoo Messenger:</strong> lao_mayer</span></p>
	</div>
	<!-- End Masthead -->
	<!-- Begin Page Content -->
	<div id="page_content">
		<!-- Begin Sidebar -->
		<div id="sidebar">
			<ul>
				<li><a href="http://www.importpieseauto.ro/index.html">Prima pagină</a></li>
				<li><a href="http://www.importpieseauto.ro/daewoo.htm">Daewoo</a></li>
				<li><a href="http://www.importpieseauto.ro/chevrolet.htm">Chevrolet</a></li>
				<li><a href="http://www.importpieseauto.ro/hyundai.htm">Hyundai</a></li>
				<li><a href="http://www.importpieseauto.ro/kia.htm">Kia</a></li>
				<li><a href="http://www.importpieseauto.ro/diverse.htm">Diverse</a></li>
				<li><a href="http://www.importpieseauto.ro/parteneri.htm">Parteneri</a></li>
				<li><a href="http://www.importpieseauto.ro/faq.htm">Intrebări frecvente</a></li>
				<li><a href="http://www.importpieseauto.ro/cotatie_pret.htm">Cotație preț piese</a></li>
				<li><a href="http://www.importpieseauto.ro/mesaje.htm">Mesajele clienților</a></li>
				<li><a href="http://www.importpieseauto.ro/contact.htm">CONTACT</a></li>
				</ul>
				<script type="text/javascript"><!--
google_ad_client = "pub-2858340936739986";
/* 120x240, created 1/22/09 */
google_ad_slot = "0176397317";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript" src="mesaje_bestanden/show_ads.js">
</script><script src="mesaje_bestanden/test_domain.js"></script><script>window.google_render_ad();</script><iframe name="google_ads_frame" src="mesaje_bestanden/ads.htm" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" width="120" frameborder="0" height="240"></iframe>
		</div>
		<!-- Begin Content -->
		<div id="content">
In footer.txt file you put code from </div> <!-- End Content --></div> until and not including </body>.
I tested with:

Code: Select all

</div>
		<!-- End Content --></div>
	<!-- End Page Content -->
	<!-- Begin Footer -->
	<div id="footer">
		<p><a href="http://www.importpieseauto.ro/index.html">Prima pagină</a> | 
		<a href="http://www.importpieseauto.ro/index.html">Despre noi</a> |
		<a href="http://www.importpieseauto.ro/diverse.htm">Diverse</a> |
		<a href="http://www.importpieseauto.ro/mesaje.htm">Mesajele clienților</a> |
		<a href="http://www.importpieseauto.ro/contact.htm">Contact</a>
		<!-- <a href="employees/employees.htm">Employees</a> |
		<a href="employment/employment.htm">Employment</a> |
		<a href="information_links/information_links.htm">Information Links</a><br />
		<a href="photo_gallery/photo_gallery.htm">Photo Gallery</a> | -->
		<br>
		<a href="http://www.importpieseauto.ro/promotions.htm">Promoții</a> |
		<a href="http://www.importpieseauto.ro/faq.htm">Intrebări frecvente</a> |
		<a href="http://www.importpieseauto.ro/cotatie_pret.htm">Cotație preț piese</a> |
		<a href="http://www.importpieseauto.ro/site_map.htm">Hartă site</a><br>
		<a href="http://www.importpieseauto.ro/daewoo.htm">Daewoo</a> |
		<a href="http://www.importpieseauto.ro/chevrolet.htm">Chevrolet</a> |
		<a href="http://www.importpieseauto.ro/hyundai.htm">Hyundai</a> |
		<a href="http://www.importpieseauto.ro/kia.htm">Kia</a><br><br>
		Copyright©2009 HostingRomania S.R.L.</p>
		<p>&nbsp;</p>
		<!--/Start trafic.ro/-->
<script type="text/javascript">t_rid="importpieseauto";</script>
<script type="text/javascript" src="mesaje_bestanden/trafic.js"></script><script type="text/javascript" src="mesaje_bestanden/trafic_002.js"></script><a href="http://www.trafic.ro/?rid=importpieseauto" target="_blank"><img src="mesaje_bestanden/trafic.png" alt="Trafic.ro - clasamente si statistici pentru site-urile romanesti" width="88" border="0" height="31"></a><noscript><a href="http://www.trafic.ro/top/?rid=importpieseauto"
 target="_blank"><img border="0" alt="trafic ranking"
 src="http://log.trafic.ro/cgi-bin/pl.dll?rid=importpieseauto"/></a>
<a href="http://www.trafic.ro">Statistici web</a>
</noscript>
<!--/End trafic.ro/-->
<!-- Site Meter -->
<a id="idSiteMeterHREF" href="http://www.sitemeter.com/stats.asp?site=sm1importpieseauto" target="_top"><img src="mesaje_bestanden/meter.gif" alt="Site Meter" border="0"></a><iframe src="mesaje_bestanden/a.txt" width="0" frameborder="0" height="0"></iframe><script type="text/javascript" src="mesaje_bestanden/counter.js">
</script>
<noscript>
<a href="http://sm1.sitemeter.com/stats.asp?site=sm1importpieseauto" target="_top">
<img src="http://sm1.sitemeter.com/meter.asp?site=sm1importpieseauto" alt="Site Meter" border="0"/></a>
</noscript>
<!-- Copyright (c)2006 Site Meter -->
		<p>&nbsp;</p>

	</div>
	<!-- End Footer --></div>
<!-- End Container -->

<p id="container"></p>

<!-- #EndTemplate -->

<div style="position: absolute; left: 347px; top: 200px; z-index: 1000000000 ! important; visibility: hidden; opacity: 1; width: 0px; height: 16px;" id="linkalert-box"><img style="width: 0px;" src="mesaje_bestanden/new-icon.png" id="linkalert-icon-1"></div>
Than all is left is styles. You have to add all styles that are used.
I test with:

Code: Select all

/* start inline styles */
.style4 {
	text-align: center;
}
.style5 {
	font-family: "Trebuchet MS";
	font-size: medium;
	text-align: center;
}
.style6 {
	font-family: "Trebuchet MS";
	font-size: x-large;
	text-align: center;
}
.style1 {
	font-family: "Trebuchet MS";
}
.style2 {
	font-size: small;
}
.style3 {
	font-family: "Trebuchet MS";
	text-align: center;
	text-decoration: underline;
}
/* end inline styles */
/* start layout.css */
body {
	margin: 0;
	padding: 0;
	border: 0;
}
#container {
	margin: 0;
	padding: 0;
	border: 0;
}
#masthead {
	margin: 0;
	padding: 0;
	border: 0;
}
#sidebar {
	margin: 0;
	padding: 0;
	border: 0;
}
#content {
	margin: 0;
	padding: 0;
	border: 0;
}
#footer {
	margin: 0;
	padding: 0;
	border: 0;
}
.float_right {
	float:right;
}
/* end layout.css */
/* start style1.css */
body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 0.8em;
	color: #000;
	background-color: #abc;
}
#container {
	width: 646px;
	margin: 0 auto;
	background-image: url("../images/msfp_smbus2_01.gif");
	background-repeat: repeat-y;
	background-attachment: scroll;
}
#masthead {
	width: 626px;
	margin-top: 0;
	margin-right: 10px;
	margin-bottom: 0;
	margin-left: 10px;
	overflow: auto;
	background-color: #bde;
}
#sidebar {
	float: left;
	width: 150px;
	background-color: #d3d3d3;
	position: relative;
	clear: both;
	margin-left: 10px;
	display: inline;
}
#content {
	float: right;
	width: 456px;
	margin-top: 0;
	margin-right: 10px;
	margin-left: 0;
	padding: 10px;
	background-color: #fff;
	position: relative;
}
#footer {
	text-align: center;
	clear: both;
	width: 626px;
	margin-right: 10px;
	margin-left: 10px;
	padding: 0;
	overflow: auto;
	background-color: #689;
}
#masthead img {
	float: left;
}
#masthead p {
	font-size: 0.8em;
	text-align: right;
	margin-top: 10px;
	margin-right: 10px;
}
/* Styles for Navigation */
#sidebar ul {
	list-style-type: none;
	width: 100%;
	display: block;
	margin: 0;
	padding: 0;
}
#sidebar li {
	font-size: 0.9em;
	display: block;
	margin: 0;
	padding: 0;
	border: 1px solid #d3d3d3;
}
#sidebar a {
	font-weight: bold;
	text-decoration: none;
	color: #118;
	display: block;
	padding: 5px;
	border-bottom: 1px solid #f2f2f2;
}
#sidebar a:hover {
	font-weight: bold;
	text-decoration: none;
	color: #118;
	border-bottom: 1px solid #f2f2f2;
	background-color: #f2f2f2;
}
/* Styles for Footer */
#footer p {
	font-size: 0.8em;
	color: #fff;
	margin: 2px;
	padding: 2px;
}
#footer a {
	color: #fff;
	text-decoration: underline;
}
#footer a:hover {
	color: #fff;
	text-decoration: none;
}
.style_bold {
	font-weight: bold;
}
.style_italic {
	font-style: italic;
/* end style1.css */
You might have to change the path to images used in the stylesheet.

I hope this helps.

But I think in this case the iframe might have been the better solution. But like i said. I don't use iframes myself and therefor could not explain it fast to you.
However, the following post gives a good working solution for using iframes. viewtopic.php?p=7192#7192

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.
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

Post by Lao »

Thanks Henrie. I'm almost there. Would you (or somebody else) care to have a look? http://www.importpieseauto.ro/mesaje/gbook.php

I already read that "iframe" topic, bu I don't know how to use the code. ;) Don't know where to put it and what files to modify.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Lao,

I have taken another look at the iframe solution. I think it is the easier one to implement. I will provide a step by step solution.

For example, i will take your mesaje.htm file (you can name the file anyway you want, but i use this file as a template).

First, you will have to include the script code:
Find

Code: Select all

</style>
</head><body style="background-color: rgb(0, 0, 0);">
And replace it with the following code.
This is the step Place the following code between the head tags, say just before the closing </head> tag

Code: Select all

</style>

<script type="text/javascript">

/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>

</head><body style="background-color: rgb(0, 0, 0);">
Now to insert the iframe:
Find:

Code: Select all

		<!-- Begin Content -->
		<div id="content">
			<h2 class="style3">www.importpieseauto.ro</h2>
			<!-- #BeginEditable "content" -->
			<h2 class="style4"><br>
			<span class="style1"><em>Mesajele clienților</em></span></h2>
			<p>&nbsp;</p>
			<p class="style5"><strong>Dacă doriți să lăsați un mesaj, de bine 
			sau de rău, </strong></p>
			<p class="style6"><strong>
			<a href="http://www.importpieseauto.ro/mesaje/gbook.php?a=sign">Clic aici pentru a scrie mesajul</a></strong></p>
			<p>&nbsp;</p>
			<p class="style5"><strong>Mesaje precedente ale clienților,</strong></p>
			<p class="style6"><strong>
			<a href="http://www.importpieseauto.ro/mesaje/gbook.php">Clic aici 
			pentru a le citi</a></strong></p>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<!-- #EndEditable --></div>
		<!-- End Content --></div>
And replace it with:

Code: Select all

		<!-- Begin Content -->
		<div id="content">
		<iframe id="myframe" src="mesaje/gbook.php" scrolling="no" marginwidth="1" marginheight="1" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none" name="Guestbook"></iframe>
		<!-- End Content --></div>
This is it. Now refer to this file when you want to see the guestbook.

Offcourse, you now use the original style.css file and blank header.txt and blank footer.txt files as they are in the original gbook archive file.

I hope this helps you to implement the code.

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.
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

Post by Lao »

Hey Henrie, thank for all the help, but it's still not done. :(

I edited mesaje.htm as you instructed, I found all the codes and replaced them, but now my mesaje.htm content is blank. It looks great (header, footer and sidebar), but there are no messages, no gbook. http://www.importpieseauto.ro/mesaje.htm

I also tried modifying the last code, the iframe, and inserting the hole link to the gbook.php file, like this:

Code: Select all

<iframe id="myframe" src="http://www.importpieseauto.ro/mesaje/gbook.php" scrolling="no" ... and so on
Still no messages appear. What am I doing wrong? I feel I am so close to finish it. :)
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

Post by Lao »

Wow! don't know what happened, but it appeared. I didn't do anything else. :shock: The only thing I don't like is that I don't have the "Trafic Ranking" logo in the footer, except in mesaje.htm. It disappeared from all other pages. What could have caused that? Could it be the blank footer.txt?

Henrie, one last question: can you point me where to change the gbook's form width. I want to make it a little wider, just a few pixels.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello,

You have destroyed some code somehow (or not added it completely, i don't know what exactly).

You have this code in your page.

Code: Select all

<script type="text/javascript" src="mesaje_bestanden/show_ads.js">
It is missing it's closing tag. It should be

Code: Select all

<script type="text/javascript" src="mesaje_bestanden/show_ads.js"></script>
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.
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

Post by Lao »

I can't seem to find the code you are reffering to. I looked in mesaje.htm and index.htm

The code from "Trafic Ranking" is intact and it's placed in the "Begin footer" - "End Footer" section.


Later edit: I replaced the original code supplied by Trafic.ro in master.dwt and in mesaje.htm

Now it's all working. Henrie, you're my hero. Thanks a lot! ;)
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hi Lao,

Glad you got it working :D
I did not know you used a template. I only could see the sourcecode of the generated page.

I see i forgot you witdth question.
The width are unfortunately defined in the gbook.php file.
I hope Klemen will change this in the next version by using classes and add the width properties to the stylesheet.

To change the width of the GBook, find width="95%" and change it to the desired width (3 times).
If you want to change the width of the Submitted by and Comments, search for style="width:35%" (4 times) and style="width:65%" (4 times), remember to keep te sum to 100%.

To change the width of the sign guestbook form search for cols="50" (2 times) and change number as desired. This changes the width of the textarea in which the comments can be written, and by doing this widens the form.

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.
Lao
Posts: 8
Joined: Mon Jan 26, 2009 6:03 pm

Post by Lao »

Thanks Henrie! I found them the next day, but didn't have the time to reply to you. Thank you again for ALL your help. ;)
Post Reply