Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Comments Php Script Colour Change


i have just got a free php comment script of the net. but the defualt theme is black text on white back ground.

Wile on my web site i have a dark back ground and white writing, so after many hours of php code readying and learning i have finaly managed to change most of the text into white exept for the last 3 text pices.

1. the "Name/ tilttle" of the comment/s

2. the "date and time" of when the comment was posted

3. the " comment/ text" which the user posted

from what i have found i belive i need to set the colour in this part of the script here but everything i have tryed hasnt worked.

1.  $COM_LANG['header'] = "Comments";

2.  $COM_LANG['months'] = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

3.  not sure where the code is for this :| i have just started with php.




View Complete Forum Thread with Replies

Related Forum Messages:
Change Background Colour
I want to display my query results using alternate background colours like the screen shot attached. Code:

View Replies !
Cell Colour Change!!!
I am trying to change the colour of a cell depending on what page the
user is on..

I have View.php the is loaded into every page!

This is what I was trying to do but I got no clue how it goes

If page is "home" Then cell colour should be blue
If page is "register" Then cell colour should be Red
If page is "contact us" Then cell colour should be yellow

View Replies !
Change New Topic Colour
I just installed a mod and now when theres a new post made somewhere, when your on the mainpage instead of it just telling you who posted it and the date, it now tells you who, were and the date. Heres a preview of it:

http://img210.imageshack.us/img210/6...ictitle1lm.jpg.

View Replies !
Calender Change The Background Colour
im have made a calender that i want to tie into a sql database , and depending on the value in the database will change the background colour of that day in the calender, the problem im having is with the following:

$colour = "#FF0000"; // this is just to test whether the background colour changes
$cal_event_opentd = "<td align=center bgcolor=#<?php echo $colour;?><b>"; 

but for some reason the backgroud doesnt change,can anyone tell me where im going wrong.

View Replies !
How Do You Change The Colour Of A Menu Drop Down?
Could somone please help me with changing the colour of a default menu dropdown? The border / dropdown arrow. Code:

View Replies !
Row Colour
I have a table and would like the row to change colours. The table uses two colours white and green. The frist row in the table should be green then white then green then white and so on.

How would i go about doing this thanks. I am using while() tio get the rows and storing it in a variable.

View Replies !
Table Row Colour
I have a table and would like the row to change colours. The table uses two colours white and green. The frist row in the table should be green then white then green then white and so on.

How would i go about doing this thanks. I am using while() tio get the rows and storing it in a variable.

View Replies !
Convert HEX Colour To Rgb
Im trying to convert a hex ref to rgb to use with the gd image manipulation. try:

$rgb = chunk_split('ff0000', 2);
// convert hex values to decimal
$r = hexdec($rgb[0]);
$g = hexdec($rgb[1]);
$b = hexdec($rgb[2]);
echo($r);
echo($g);
echo($b);

gives:

15150

where id expect 25500

View Replies !
Background Colour Not Showing
I need to use a coloured background for a page which contains tables. Using
Frontpage 2k I can create the background colour OK and it views correctly;
but when viewed using apache, there is no background colour, it is just
white.

View Replies !
Selecting Colour Problem
I have a dynamic part of the page where the user can select what colour they want the bottom and top table colour to be, the thing is, on the bottom part of the table i have my advertisment link, which if someone is cunning enough they could make the colours the same colour as the link in an attempt to hide the advertisment PHP Code:

View Replies !
Colour Top 3 Results In A Table
I'm currently trying to make a poker league whats seem to be going well.

I have populated a table with the league results, but would like 1st position in gold, 2nd in silver and 3rd in bronze. These will be the first three rows of the table, as the data has already been arranged in the correct order.

I'm a little unsure how to go about doing this, and wondered if anyone could point me in the right direction. Code:

View Replies !
Changing Text Colour
i had this script down but have modified it, somewhere along the way and can't see where, what i had was, if there were messages in the users inbox the word "Inbox" would go red, if there were unread messages in there the "Inbox" would go blue if there were no messages it would simple be black Code:

View Replies !
Changing An Images Colour
I have an image containing 3 colours. Is there anyway using PHP i can change these colours, one at a time, to whatever colour is selected via a dropdown menu?

View Replies !
Make A Colour Transparent
I would like to do is grab an image, determine what colour is at a certain pixel (maybe 10, 10) and then set that colour to transparent for the whole image. Basically it is so that I can dynamically place an image on various backgrounds for previewing. I am not worried about perfection (anit-aliasing, matte, etc).

View Replies !
Background Alternating Colour Code
Im having problem making my background alternate between colors.  Following is my code, the result alternates 2 colors ok, but prints each entry from my database 30 times. Code:

View Replies !
Alter Font Colour Within Text Box
I have been trying to change the font colour within a text box. I have used a hidden box with echo but want to display within the box to continue the theme of my forms. I am stuck and been trying different methods, but with no joy any help would be greatly appreciated. current code this not working is PHP Code:

<? echo "";
if ($percentage >= 87.5) {
    $color = '#00FF00'
} elseif ($percentage >= 37.5) {
    $color = '#ff9900'
} else {
    $color = 'red'
}
?>
<input type="text" name="percentage" value="<? echo '<b style="color:' . $color . '">' . $percentage . '</b>' ?>">...

View Replies !
Replacing A Colour With An Other In A Truecolor Picture
would anyone know the most efficient way to replace a colour with an other in a truecolor picture?

For the moment, I'm doing it manually, looping though the pixels and using imagecolorat() to test the pixel and imagesetpixel() to change its colour if needed, but it's slooooow: a 900x800 picture takes 10 seconds or so to convert one colour, and I will need to convert up to 50 colours.

View Replies !
Colour Selected Columns Using Sessions?
i have this code that creates all these columns using checkboxes,

if (isset($_SESSION['checkbox2'])) {
fwrite($handle,'<td><xsl:value-of select="county_UA"/></td>'."
");
}
if (isset($_SESSION['checkbox3'])) {
fwrite($handle,'<td><xsl:value-of select="pop_code"/></td>'."
");
}

<td><xsl:value-of select="county_UA"/></td>
<td><xsl:value-of select="pop_code"/></td>

i want be able to have the ability to give the user to colour the columns they require using dropdownlist for the fields and radiobuttons for colours: Code:

View Replies !
Cell Colour Based On Field Data
I have a mysql database and i am using php to display some field data in a table cell on a page. The field data is either 'failed' or 'passed', how can i make the cell colour change depending on the field data result?

View Replies !
Paste Colour Coded Scripts Into This Forum?
i noticed alot of people paste their scripts colour coded, what editor do you use to do this? I have PSPad but I dont think it has the feature of copying script with forum colour tags...

View Replies !
Image(jpeg) Upload & Resize Loses Colour?
I am uploading an image to a server and resizing the image then saving it to a directory,I had it working fine on my local machine (windows) but when i uploaded the code to the server (linux) - same directory structure etc, it didnt work the colour appeared to be removed from the image, as though the number of colours in the image was reduced to 2 or 4 or something?

has anybody come accross similar problems with GD or image functions in php?

View Replies !
Use Session Variables To Pass The Background Colour Of A Page
I am trying to use session variables to pass the background colour of a page loaded into a frame using session variables. I declare tyhe colour in the main page which loads first, this is the content in the main page and echos OK.

$_SESSION['content_color'] = "#E9E9E9";
echo $_SESSION['content_color'];

However if I echo the session variable in my loaded page in another frame I don't get anything at all.

View Replies !
How To Update Form Input Field Background Colour On Validation Error
I have been searching for form validation scripts for ages and all th ones that I like are far too complicated and inflexible so I decided to stick with my own which is easier to understand.

The only thing I don't like which i have seen on better form validation scripts is that and fields with errors are highlighted.  i can only presume that they have used php to set the background color of the input field or textarea.

How would I add some code to change the background colour of form elements if an error is found? Here is my code which validates the form but doesn't change form elements colours. Code:

View Replies !
Change Field Content After Select Change
Having looked but can not find a solution, can this be done.

I have a table (airports) that contains 2 fields.

field 1 = airport_name
field 2 = iata_code

I have a form which has a dropdown list which gets its content from the airports table using field 2 (airport_names).

What I am trying to do is when a user selects the name of an airport, field 2 (iata_code) is updated to the corrosponding record. Code:

View Replies !
Comments Box
how to go about creating a text-based database so i could add a comments box to my website. My webserver allows php, but doesnt allow mysql, which is quite annoying but im sure this can be done without...

View Replies !
Comments
Have a form on a page that allows a person to enter a name, and a comment. Then what they post will show up at the bottom of the page. any ideas?

View Replies !
Pop-up Comments
is there a good pop-up commenting script anywhere? I looked at hotscripts.com and I really couldn't find what I need. I want user's to click on a "comments" link and have a pop-up window allowing them to leave a comment and view it. I would like these comments stored in a txtfile if thats the best way.

View Replies !
Getting The Comments
Code:

<?php
// Database connect //
$server = mysql_connect("", "", "");
$connection = mysql_select_db($server);
//Connect to stories table //
$sql = mysql_query('SELECT * FROM `storys` ORDER BY `id` DESC');
$numofrows = @mysql_num_rows($sql);
$result = mysql_query("SELECT * FROM storys_comments WHERE story_id = id", $server);
$num_rows = mysql_num_rows($result);
//Start Loop //
print '<table width="100%" border="0" cellpadding="4" cellspacing="0" >'
print '<TR class="story_top"><td width="60%">Story</td><td width="15%">Comments</td><td width="15%">Author</td><td width="10%">Poster</td></TR>'
while($row = mysql_fetch_array($sql, MYSQL_BOTH)) {
//start colour changing loop//

View Replies !
Poll With Comments
I need php voting script where everybody can add comment. I found many
voting scripts, but no has ability to add comment. Can you help me?

View Replies !
PHP Manual With Comments
Is there a current copy of the PHP manual available with user comments?
I can't seem to spot one on the doc page.

View Replies !
Why Are Comments Preceeded By // Not Ignored?
Problem occurs only when running php script at the command line.

Here is an example:

<?php
//myscript.php
//-should be called from some page.
//-sets cookie on visitor's first visit - expires in 2 days (default).
//-does this and that (and also the other thing).
//records special data in /var/blah.txt (when using another-script.php).
//////////files//////////
$blah = '/var/blah.txt'
/////////////////////////
phpinfo()
?>

When I try to run this script at the command line, the comments produce errors:

rh9 [/root] # ./myscript.php

../myscript.php: line 1: ?php: No such file or directory
../myscript.php: line 2: //myscript.php: No such file or directory
../myscript.php: line 3: //-should: No such file or directory
../myscript.php: line 8: unexpected EOF while looking for matching `''
../myscript.php: line 12: syntax error: unexpected end of file

Is there something I need to set in php.ini, or am I missing something?

View Replies !
<html> In Comments
I want to let my users to insert html tags in comments: PHP Code:

View Replies !
Using Comments In Your Site
almost this way, on this page, how would you make a web page where you will put a comment in one of your page in your site and once sent by the customer, it would allow your administrator to read it and reply to the responant, i think that is the term i want to use,  what he or she wants to hear about the question he or she asked.

almost the same way as this, would you redirect that page that has a comment to itself and may pass the question to the administrator side in order for the admin to read and reply what the customer wants to know, not showing it was or have been sent how would you make such a thing?

and how would you know, if the reply of the administrator has been passed or has given to the customer to read the answered question that the customer wants to know. Do i need to create another web page for the customer LIKE  an" e-mail account" web page to one of a given site like Netscape, MSN, YAHOO, AMAZON  etc... in order to check if the e-mail reply by the admin has been sent/passed or if email did not received by the customer at all

if you know what code to use, please do help me to do such a thing in order for me to know how to make it this in my webpaget that i am doing, if the question is to vague just asked me again what i need to add to make this  question to be clear and vice versa. 

View Replies !
Comments Sytem
In my site i want to put a comments sytem, so a visitor can enter a comment into a form and it will appear at the botoom of my webpage.

I know how to do the forim in html, but how would i make the comment appear at the bottom of the page straight after a visitor has posted it?

View Replies !
Removing Comments
I happen to have a bunch of stuff in a database(who here doesn't right?)and in one of the feilds I have a list of html snidbits that are deliniated by html style comments. I did this so the whole field could be displayed in an html page and the user would never see the delination. However the bossman is for whatever reason very parinoid about having comments in the end html.

Anyways enough backstory - I need to write a script that will take html comments out of a given string without removing other html tags.

View Replies !
Any Comments On Easyphp?
Anyone have experience with Easyphp? I just installed it on my local Windows machine; was wondering if other users have any comments on the package as a local development tool. So far it looks good; any non-obvious cons or things I should be careful with when using easyphp?

View Replies !
Kinds Of Comments
How many different kinds of comments are there for PHP? I know the common 2 which are '//' and "/* */". Are there any other ones?

View Replies !
Comments On Profiles
i recently got a script a friend, its like a myspace & youtube clone kind of thing, the problem with it is that when i go to a members profile and view comments members left, its shows the oldest to news, i want it to show newst to oldest?? Code:

View Replies !
Comments Box With Txt File
I am trying to build something for a backend and I'm not sure how to do it. I need to have a text area where an operator can put in some text, click the submit button and it stores in a text file. I will then use an include to bring the entire contents of the .txt file as the alt text for that box. I want operators to be able to freely add text to the .txt file, without deleting previous comments.

View Replies !
Comments For Each Post
I have comments and I have the post with permalinks, but I just don't have them together to make it a blog. here is the table I have to comments
id
name
message
site
ip

table for content(the post)
id
topicname
content
name
date
ip

View Replies !
PHP Comments Script
I want a simple script in php for users to post their comments into mysql and then display them in another page.

View Replies !
Comments Script
I am looking for a PHP script (with MySQL) to allow users to add comments at the bottom of dynamic pages (for example site.com/page.php?page=1). Script needs to be simple with minimal security features (no registration, removing tags and preventing flooding).

View Replies !
Comments System!
I have a site which already has a news system built in it is custom made not word press or anything. I want to integrate a comment system into in but just cant get my head around it would i have a separate table or a row in the news table.

View Replies !
Tags In Comments
I've made a very simple site comment system for people to leave quick messages that anyone can view. Currently I convert all the html tags to their html code equivalents, but I'd like to allow people to post url's using something like [url]. I've already added support for [b] [/b] (for bold), but I haven't find an easy solution for:

[url]somesite[/url]
and possibly
[url]somesite[urlname]click here[/urlname][/url]

View Replies !
File Upload With Comments Box
Here is the situation. I have a 'Comments' box on a HTML page where a user will enter some comments. Once the submit button is pressed, the comments show up on a PHTML page(summary).
I am now trying to place a File Upload option on the HTML page also, whereby I want the user to be able to enter comments, select a File, then only press 1 Submit button that will then show both the Comments and the File on the PHTML page.

View Replies !
Creating A User-Comments Box
I'm having a bit of trouble creating a user-comments box. Basically, I'm working on a website like YouTube, which offers videos. Next to the videos, I'd like a comments table/box where users can post their comments about the video. There should only be 5 comments, so as not to flood the page. I would like the comments to be picked randomly from a database or sorted by newest first. Up to now I've got:

User input through a form -> Data is entered into database (MySQL)
However, as I mentioned before, I'm unsure about how this data would be entered into the comments table (and sorted).

View Replies !
Submiting Comments To A Database?
i've created a blog-ish site, and i want the users to be able to comment on the articles. i've been looking at forums to figure out how they submit the comment to the php page, but i'm not sure how it does it. it looks like it just submits the form to the php page, but don't spaces cause all kind of problems when you use method="get"?

View Replies !
Do Comments Impose A Performance Hit?
I've got a PHP application that's 2 megs in size. Of that, my guess is
200k-400k is comments. Do they impose a performance hit? I've been
postponing any kind of optimization, but at some point I'll have to do
it. Is taking out the comments worth it? Of all the optimizations I can
do, where should it rank?

View Replies !
XML Parsing And HTML Comments
I find myaelf writing a template system (yeah, I know - but there is a
reason I'm not using an existing one). So I'm trying to parse xhtml using
the builtin expat parser. Mostly it works fine, however it ignores anything
that looks like an HTML comment. This is a bit of a problem as I see a lot
of code written like:

<script type='text/javascript>
<!--
alert("hello world');
// -->
</script>
<style type="text/css">
<!--
..style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>

Now obviously the browser is seeing the stuff inside '<!--' ...'-->' but
expat doesn't. I tried adding a non-parsed handler, but still can't see it.

View Replies !
Php Comments And Speed Effect
just wondering, do comments have any effect on speed of the script? I mean i don't think i use a ton on in code comments but i do keep track of version of classes and function with php doc and just wondering, i imagine it should have almost none.

View Replies !
Filter Links Out Of Comments
last week I posted a link to my site where people can leave comments and some low-life decided to post links on that page. Is there someway to filter out links?  I dont really want to use the htmlspecialchars() or the htmlentities() to simply disable them, I want to block them altogether. Maybe some way to filter out "www" or something?

View Replies !
Deleting Comments From Database
i have a message board that enters information to the data base fine, but where i try to create a detele for individual comments, it does not seem to work, any ideas on how to write a delete for this so that it deletes individual messages Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved