PDA

View Full Version : change the font for user reviews?


Anonymous
02-08-2005, 02:49 AM
How do I change the font size for the review body? Thanks!

imported_Tim Mousel
02-08-2005, 09:18 AM
Just open the file for which you want to change the font. The text displayed is regular html. You can change the font as you would in any html document. Here's a tutorial if you're unsure how to do that:

http://www.geocities.com/SiliconValley/Campus/1924/font.html

Tim

Anonymous
02-08-2005, 08:44 PM
For example, where is the "review" part located in index2.php so I can alter that font? I see this:

<? echo "$review"; ?>

but I can't figure out where the html is related to this. To be even clearer, I'm trying to change the font of where people say things like:

"This product is really good blah blah blah. I highly recommend it..."

Thanks for the help!

Tom

Anonymous
02-08-2005, 08:49 PM
nevermind Tim. Got it to work by assigning a css class to the cell where the $review is echoed. Thanks!

Anonymous
02-08-2005, 09:06 PM
One problem did resurface related to this question. I'm trying to change the font of this part:

echo "<table width=95%><tr>";
if(isset($prevPage)) { echo "<td align=left>$prevPage
</td>"; }
else { echo "<td>
</td>"; }
if(isset($nextPage)) { echo "<td align=right>$nextPage
</td>"; }

I tried:

echo "<table width=95%><tr>";
if(isset($prevPage)) { echo "<td align=left class="category">$prevPage
</td>"; }
else { echo "<td>
</td>"; }
if(isset($nextPage)) { echo "<td align=right class="category">$nextPage
</td>"; }

by adding class="category" (which is one of my css defs) but there was an error. Is there anywhere else I can include the css class? Thanks!

imported_Tim Mousel
02-09-2005, 08:16 AM
The line starts out with

echo "

Notice the ". If you put " inside, the script thinks that is signifying the end of that statement. You have to escape them with a slash, like this:


echo "<table width=95%><tr>";
if(isset($prevPage)) { echo "<td align=left class=\"category\">$prevPage
</td>"; }
else { echo "<td>
</td>"; }
if(isset($nextPage)) { echo "<td align=right class=\"category\">$nextPage
</td>"; }


Tim

Anonymous
02-12-2005, 08:47 AM
Thanks for the tutorial Tim! It worked great. ;)

Sleepless
04-18-2005, 03:56 AM
Okay. I'm really confused. I would like the entire review to be in an Arial font. I cannot seem to get this to work. I want the listing to also be in arial. How do I do this?? I managed to get part of it but not all. Please help. Here is the review page. If you click on a review you will see how part is in Arial. http://www.sleeplessnightsonline.com/review/items.php
My site has adult content.

imported_Tim Mousel
04-21-2005, 11:07 PM
Sleepless, in the file you want the changes, you can add a font tag directly or you can do it with a style sheet as in the example above.

If you absolutely can't get it to work, email me your file and what font you want.

Tim
mousel@defend.net

armani
04-30-2005, 12:35 PM
I've read the previous posts, and have managed to change everything I want on my site to arial, EXCEPT the actual review text: "I thought the flight was great.... etc"

(See this link:)

http://www.airline-reviews.co.uk/review/index2.php?item_id=127

Is there a simple way to do it as I'm unfamiliar with css..?

Many thanks

John

Sleepless
04-30-2005, 02:09 PM
Hi John,
I'm not sure if I did it the correct way, but it works. I actulally added this to index2 <font face=arial size=2>

<td><font face=arial size=2><? echo "$review"; ?></td>

I put this before each item in the review I wanted in arial. It took me a while but it worked!
http://www.sleeplessnightsonline.com/review/items.php

armani
05-01-2005, 07:38 PM
Thnaks Kelly, but I had to have my site custmomised, so I can't see the reviews on index 2 it just searches for them!

Its frustrating as I managed to change everything else but have no idea 'where' to go to change the review text!

John

imported_Tim Mousel
05-02-2005, 12:06 AM
armani, I logged on your server and changed

<? echo "$review"; ?>

to

<font size="2" face="Arial, Helvetica, sans-serif"><? echo "$review"; ?></font>

Tim

armani
05-02-2005, 01:12 AM
Thanks a million Tim! - I didn't want to bother you with it..
Excellent customer service again as usual!!