If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Guestbook 2.3.1/Comment color question.  XML
Forum Index » Support Forum
Author Message
Anonymous



From the forum, I have figured out how to make the comment text black, but I have one more question. I am using a black background and would like to have all white text. How do I make the name above the comment in white as well?

TIA,
eric
Brianr
Beginner

Joined: 21/05/2004 15:16:13
Messages: 30
Location: Hamilton ON Canada
Offline

If your background is black, setting the colour to FFFFFF in the Admin Panel | Style should give you white as the default text colour.

Can you post the guestbook URL and indicate some text with the specific problem.
[Email] [WWW]
Anonymous



Thanks BrianR,
Here is the URL of the guestbook I am working on.

http://www.tribeband.com/guestbook/index.php

As you can see, I want to use an all black scheme. You can see my main posts and the comments underneath, but the name of the person posting is black text. If you highlight, you can see the names. Originally, the comment text was black as well, but I got the answer from http://proxy2.de/forum/viewtopic.php?t=2338.
I was hoping that would make the comment and the names white text, but that only took care of the comment text. How can I make the names show up in white text as well?

Thanks,
eric
Brianr
Beginner

Joined: 21/05/2004 15:16:13
Messages: 30
Location: Hamilton ON Canada
Offline

Did you hard code the colour change for the comment itself in com.php:

<td>
<hr size="1"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">$com[name]:</font><br>
<font color="#FFFFFF">$com[comments]</font>
</td>


If so just add color="#FFFFFF" to the first font tag

<td>
<hr size="1"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">$com[name]:</font><br>
<font color="#FFFFFF">$com[comments]</font>
</td>


That should override whatever default setting you have in Admin | Style but setting your default text to #FFFFFFF should accomplish the same thing
[Email] [WWW]
Anonymous



Brian,
This is what I have for my 'com' template:

<table width="90%" border="0" cellspacing="0" align="center">
<tr>
<td>
<hr size="0"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">$com[name]:<br>
<font color="#FFFFFF">$com[comments]</font>
</td>
</tr>
</table>

But only the comment text turns white, not the names that wrote the comments. I want the names to show up in white as well.
For example, if you go to my guestbook, you can see the comment 'another dumbass comment '. Right above it is the name 'rod:', but you can't see it because it only comes up in black (highlight to see it). I want those names in white.
Brianr
Beginner

Joined: 21/05/2004 15:16:13
Messages: 30
Location: Hamilton ON Canada
Offline

Change

<hr size="0"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">$com[name]:<br>


to

<hr size="0"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">$com[name]:</font><br>


That should fix it.
[Email] [WWW]
Anonymous



Thanks Brain,
that did the trick
Anonymous



Guest, how did you manage to remove the 'Administration' (or 'Administrator Only') link from appearing in addentry.php?

I have been able to remove it from index.php by editing body.php, but I'm not sure which file should be used to do the same for addentry.php.
Anonymous



Has anyone got an answer for this, please?
JTD
Graduate

Joined: 08/05/2004 21:52:50
Messages: 529
Location: Arkansas
Offline

look in body.php for this.

<b>| <img src="img/lock.gif" width="9" height="11"> <a href="admin.php">$LANG

LINK-> Use Lazarus Guestbook
[WWW] [Yahoo!] aim icon [MSN]
Anonymous



Yes, I edited that out of body.php, and that removes it from the first page, index.php.

When you click on 'Sign the Guestbook', the link to Admin is on the next page, addentry.php. It is that entry I want to remove.
JTD
Graduate

Joined: 08/05/2004 21:52:50
Messages: 529
Location: Arkansas
Offline

addentry.php

require_once $include_path."/admin/config.inc.php";

LINK-> Use Lazarus Guestbook
[WWW] [Yahoo!] aim icon [MSN]
Anonymous



I'm sorry, but removing that line from addentry.php causes the whole page to disappear with error dialog.

Here is the URL:

http://www.bshira.co.uk/gbook/

It is on the next page when you click on 'Sign the Guestbook' that I want to remove 'For Administrator Only'. It was removed from the page by editing body.php.
Brianr
Beginner

Joined: 21/05/2004 15:16:13
Messages: 30
Location: Hamilton ON Canada
Offline

See if you can find it in form.php. It should be this part of the line or something similar

| <img src="$GB_PG[base_url]/img/lock.gif" width="9" height="11"> <a href="$GB_PG[admin]">$LANG[BookMess5]</a>
[Email] [WWW]
Anonymous



Thank you, that has achieved the result I wanted.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum