How do I change and/or style . . .
...change "Submitted by" (no colon) to "From:"?
and "Comments:" to "Comment:"?
...change "View guestbook" to "VIEW", and "Sign Guestbook" to "SIGN"?
...change font-size of "View..." and "Number of..." labels without affecting font size of Submitted by or Comments guest entries?
...change "Powered by PHP guestbook 1.6 from PHPJunkyard - Free PHP scripts" to "Powered by PHP guestbook 1.6"?
...change: "Number of entries:" to "Entries:", and "Number of Pages:" to "Pages:"?
and style these to "font-style: italic"?
...change email readout from "Contact" to "CONTACT"?
In "Submitted by", how do I remove or style to "font-style: italic", labels for "Name", "From", "Email"?
In "Comments" how do I remove "Added:" so only date displays?
On Sign guestbook form page, how do I enlarge font-size of :
Your name:
Where are you from?
Your e-mail:
Comments: Please do not enter URL addresses
(these are tiny compared to other text)
Gbook forum search terms used for help are too numerous to mention; see progress made in customization at: http://texanatrailslodge.com/reservations/guestbook/
NOTE: delete.gif, reply.gif, and ip.gif images were replaced with blank gifs, but mouseover still reveals links.
In future versions of Gbook, it would be great to have an admin cpanel for these functions rather than buttons on every comment that are accessible to everyone.
Methods for changing and styling default labels?
How do I change and/or style . . .
Find the text in file language.inc.php and change it....change "Submitted by" (no colon) to "From:"?
and "Comments:" to "Comment:"?
Find the text in file language.inc.php and change it....change "View guestbook" to "VIEW", and "Sign Guestbook" to "SIGN"?
Open file gbook.php and search for...change font-size of "View..." and "Number of..." labels without affecting font size of Submitted by or Comments guest entries?
Code: Select all
echo '<p>'.sprintf($lang['t01'],$total,$pages).'<br />';
Code: Select all
echo '<p style="font-size:120%;">'.sprintf($lang['t01'],$total,$pages).'<br />';
Code: Select all
<p style="text-align:center; font-size:120%;"><a href="'.$settings['website_url'].'">'.$lang['t61'].' '.$settings['website_title'].'</a>
Code: Select all
<p style="text-align:center"><a href="'.$settings['website_url'].'">'.$lang['t61'].' '.$settings['website_title'].'</a>
The copyright notice may not be changed or removed without purchasing a Copyright removal license....change "Powered by PHP guestbook 1.6 from PHPJunkyard - Free PHP scripts" to "Powered by PHP guestbook 1.6"?
Find the text in file language.inc.php and change it....change: "Number of entries:" to "Entries:", and "Number of Pages:" to "Pages:"?
Open file gbook.php and search forand style these to "font-style: italic"?
Code: Select all
echo '<p>'.sprintf($lang['t01'],$total,$pages).'<br />';
Code: Select all
echo '<p style="font-style:italic;">'.sprintf($lang['t01'],$total,$pages).'<br />';
Find the text in file language.inc.php and change it....change email readout from "Contact" to "CONTACT"?
Open gbook.php and search forIn "Submitted by", how do I remove or style to "font-style: italic", labels for "Name", "From", "Email"?
Code: Select all
<td valign="top" style="width:35%">'.$lang['t17'].' <b>'.$name.'</b><br />
';
if ($from)
{
echo $lang['t18'].' '.$from.'<br />';
}
if ($settings['use_url'] && $url)
{
$target = $settings['url_blank'] ? 'target="_blank"' : '';
echo $lang['t19'].' <a href="go.php?url='.$url.'" class="smaller" '.$target.'>'.$url.'</a><br />';
}
if ($email)
{
if ($settings['hide_emails'])
{
echo $lang['t20'].' <a href="gbook.php?a=viewEmail&num='.$i.'" class="smaller">'.$lang['t27'].'</a>';
}
else
{
echo $lang['t20'].' <a href="mailto:'.$email.'" class="smaller">'.$email.'</a>';
}
}
Code: Select all
<td valign="top" style="width:35%"><span style="font-style:italic;">'.$lang['t17'].'</span> <b>'.$name.'</b><br />
';
if ($from)
{
echo '<span style="font-style:italic;">'.$lang['t18'].'</span> '.$from.'<br />';
}
if ($settings['use_url'] && $url)
{
$target = $settings['url_blank'] ? 'target="_blank"' : '';
echo '<span style="font-style:italic;">'.$lang['t19'].'</span> <a href="go.php?url='.$url.'" class="smaller" '.$target.'>'.$url.'</a><br />';
}
if ($email)
{
if ($settings['hide_emails'])
{
echo '<span style="font-style:italic;">'.$lang['t20'].'</span> <a href="gbook.php?a=viewEmail&num='.$i.'" class="smaller">'.$lang['t27'].'</a>';
}
else
{
echo '<span style="font-style:italic;">'.$lang['t20'].'</span> <a href="mailto:'.$email.'" class="smaller">'.$email.'</a>';
}
}
Find the text in file language.inc.php and change it.In "Comments" how do I remove "Added:" so only date displays?
On Sign guestbook form page, how do I enlarge font-size of :
In language.inc.php file findYour name:
Code: Select all
$lang['t50']='Your name:';
Code: Select all
$lang['t50']='<span style="font-size:150%">Your name:</span>';
In language.inc.php file findWhere are you from?
Code: Select all
$lang['t51']='Where are you from?';
In language.inc.php file findYour e-mail:
Code: Select all
$lang['t52']='Your e-mail:';
Open gbook.php and findComments:
Code: Select all
<td><b><?php echo $lang['t16']; ?></b></td>
Code: Select all
<td><span style="font-size:120%;"><b><?php echo $lang['t16']; ?></b></span></td>
In language.inc.php file findPlease do not enter URL addresses
(these are tiny compared to other text)
Code: Select all
$lang['t54']='Please do not enter URL addresses';
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.
Henrie,
Thanks for explaining how/where to style language items.
I realized later it's better to create classes and add those to code instead of styles, so I went back and made changes again.
I searched gbook.php code for language items (t01, etc.) and experimented until I got what I wanted; even moved date and added Cancel link to Sign Guestbook form so I could eliminate View Guestbook link.
(See URL in previous post.)
Now everything looks great except for a couple of items:
1) How is email address styled that appears after entering password and clicking View Private Comment? I was able to style name, where from, comment, etc., but cannot style email that appears, even after adding .email class and applying it to language item t27
2) Where is font-style:italic being applied to items t30 (Admin Reply:) and t58 (Private Post, click to view), and to text for the Admin Reply to comment?
I've applied CSS class to these items, but italic font-style seems to be default, and I cannot override it with font-style:normal.
Thanks for explaining how/where to style language items.
I realized later it's better to create classes and add those to code instead of styles, so I went back and made changes again.
I searched gbook.php code for language items (t01, etc.) and experimented until I got what I wanted; even moved date and added Cancel link to Sign Guestbook form so I could eliminate View Guestbook link.
(See URL in previous post.)
Now everything looks great except for a couple of items:
1) How is email address styled that appears after entering password and clicking View Private Comment? I was able to style name, where from, comment, etc., but cannot style email that appears, even after adding .email class and applying it to language item t27
2) Where is font-style:italic being applied to items t30 (Admin Reply:) and t58 (Private Post, click to view), and to text for the Admin Reply to comment?
I've applied CSS class to these items, but italic font-style seems to be default, and I cannot override it with font-style:normal.
The text e-mail is language item t20, not t27. The display of the e-mail address itself is found in gbook.php file, line 5391) How is email address styled that appears after entering password and clicking View Private Comment? I was able to style name, where from, comment, etc., but cannot style email that appears, even after adding .email class and applying it to language item t27
Code: Select all
echo $lang['t20'].' <a href="mailto:'.$email.'" class="smaller">'.$email.'</a>';
Open gbook.php file and search for $lang['t30'] (found 2 times, lines 548 and 1007) and for $lang['t58'] (found 1 time, line 1000). You will find <i> and </i> tags in those lines. Remove those to remove italic style.2) Where is font-style:italic being applied to items t30 (Admin Reply:) and t58 (Private Post, click to view), and to text for the Admin Reply to comment?
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.