MassiveFPS
Welcome, Guest
Please Login or Register.    Lost Password?
Re:PHP Question (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:PHP Question
#704
Taiko! (Admin)
Can you break this wood?
Admin
Posts: 566
graph
User Online Now Click here to see the profile of this user
Gender: Male MassiveFPS! Location: Abilene, TX Birthdate: 1982-04-29
PHP Question 1 Year, 2 Months ago  
Say, I'm trying to get a dotted line to appear as white by placing
QUOTE:
<tr class="dottedline" style="color:#333;">
in the respective PHP file. Doesn't seem to work, am I doing something wrong?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#710
DrDysdy (User)
FNG
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Question 1 Year, 2 Months ago  
Where in the PHP file are you placing it?

Are you doing something like:
Code:

echo "<tr class=dottedline style=color:#333;>";
Or
Code:

<?PHP *random PHP code* ?> <tr class="dottedline" style="color:#333;"> <?PHP *more random PHP code* ?>
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#712
Taiko! (Admin)
Can you break this wood?
Admin
Posts: 566
graph
User Online Now Click here to see the profile of this user
Gender: Male MassiveFPS! Location: Abilene, TX Birthdate: 1982-04-29
Re:PHP Question 1 Year, 2 Months ago  
Here's my file for the detailed view of games in the gamelist, I've tried color:white and color:FFF also, I must be doing something wrong:

Code:

<?php defined( '_VALID_MOS' ) or die( 'Restricted Access.' ); ?> <div class = "ld-mainbody"> <div class="ld-cover"> <table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" > <tr class="ld-ext-title"> <td colspan="3" class="listingNameHeading"><?php echo $mySobi->title ?></a> </td> <td colspan="2" align="right"></td> </tr> <tr class="dottedline" style="color:#FFF;"> <td width="12%">Status:</td> <td width="38%" class="rdottedline"><?php echo $mySobi->customFieldsData['field_gamestatus']; ?> </td> <td width="12%">Platform:</td> <td width="38%" class="rdottedline"><b><?php echo $mySobi->customFieldsData['field_platform']; ?></b></td> </tr> <tr class="dottedline" style="color:white;"> <td width="12%">Reviewer:</td> <td width="38%" class="rdottedline"><a href="http://www.massivefps.com/index.php?option=com_fireboard&func=fbprofile&task=showprf&userid=<?php echo $mySobi->owner; ?>"> <img src="<?php echo $mosConfig_live_site;?>/components/com_sobi2/images/ext/usericon.gif" alt="Go to user profile" border="0" align="absmiddle" /> <?php echo $mySobi->username; ?></a> </td> <td width="12%">Date Added:</td> <td width="38%"><?php echo $mySobi->publish_up ; ?></td> </tr> <tr class="dottedline"> <td width="12%">Developed by:</td> <td width="38%" class="rdottedline"><?php echo $mySobi->customFieldsData['field_developer']; ?></td> <td width="12%">Updated:</td> <td width="38%"><?php echo $mySobi->lastUpdate ; ?></td> </tr> <tr class="dottedline"> <td width="12%">Genre:</td> <td width="38%" class="rdottedline"><?php echo $mySobi->customFieldsData['field_genre']; ?></td> <td width="15%">Views:</td> <td width="35%"><?php $this->showHits($config,$mySobi);?> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2" style="padding:5px 5px;" > <?php if ( $mySobi->customFieldsData['field_gallery_url'] ) {; ?> <a href="<?php echo $mySobi->customFieldsData['field_gallery_url']; ?>" target="_blank"> <img src="<?php echo $mosConfig_live_site;?>/components/com_sobi2/images/ext/gallery.gif" alt="Gallery" hspace="2" border="0" /> </a> <?php } ?> <a href="<?php echo $mySobi->customFieldsData['field_discuss_url']; ?>" target="_blank"> <img src="<?php echo $mosConfig_live_site;?>/components/com_sobi2/images/ext/discuss.gif" alt="Discuss" hspace="2" border="0" /> </a> <?php if ( $mySobi->customFieldsData['field_pricecheck_url'] ) {; ?> <a href="<?php echo $mySobi->customFieldsData['field_pricecheck_url']; ?>" target="_blank"> <img src="<?php echo $mosConfig_live_site;?>/components/com_sobi2/images/ext/pricecheck.gif" alt="Price Check" hspace="2" border="0" /> </a> <?php } ?> <?php if ( $mySobi->customFieldsData['field_news_url'] ) {; ?> <a href="<?php echo $mySobi->customFieldsData['field_news_url']; ?>" target="_blank"> <img src="<?php echo $mosConfig_live_site;?>/components/com_sobi2/images/ext/news.gif" alt="News" hspace="2" border="0" /> </a> <?php } ?> <?php if ( $mySobi->customFieldsData['field_fansites_url'] ) {; ?> <a href="<?php echo $mySobi->customFieldsData['field_fansites_url']; ?>" target="_blank"> <img src="<?php echo $mosConfig_live_site;?>/components/com_sobi2/images/ext/fansites.gif" alt="Fansites" hspace="2" border="0" /> </a> <?php } ?> </td> </tr> <tr> <td valign="top"><?php if ( $mySobi->customFieldsData['field_description'] ) {; ?> <div class="detailsText"><?php echo $mySobi->customFieldsData['field_description']; ?></div> <?php } ?></td> <td valign="top" width="33%"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" align="center"><?php echo $img; ?></td> </tr> <tr> <td valign="top">&nbsp;</td> </tr> <tr> <td valign="top" align="center"><?php $this->getPlugin($mySobi,'gallery'); ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <!-- Rev --> <div style="background:#EEE; border:1px solid #ccc; padding:3px 5px; font-size:14px; color:#333; font-weight:bold;margin-top:20px;"> User Reviews </div> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <?php $this->getPlugin($mySobi,'reviews'); ?> </td> </tr> </table> <!-- /Rev --> </div> </div>
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#714
DrDysdy (User)
FNG
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Question 1 Year, 2 Months ago  
On line 27 switch this:

Code:

<? php
for this:
Code:

<?php
I'm not sure about the dotted line. I'll figure it out.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#715
DrDysdy (User)
FNG
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Question 1 Year, 2 Months ago  
Do you have a CSS file you use for this?


try this in your style sheet:
Code:

td.dottedline {border-bottom-style: dotted; color:#FFF;}
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#716
Taiko! (Admin)
Can you break this wood?
Admin
Posts: 566
graph
User Online Now Click here to see the profile of this user
Gender: Male MassiveFPS! Location: Abilene, TX Birthdate: 1982-04-29
Re:PHP Question 1 Year, 2 Months ago  
Looks like the spacing in the code was just an issue when I pasted it to this forum, I was looking at that thing for a good 30 minutes

About the CSS, I went ahead and added this line:
Code:

td.dottedline { border-bottom-style: dotted; color: #FFFFFF }
To no avail...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#717
DrDysdy (User)
FNG
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Question 1 Year, 2 Months ago  
oh sorry, try these:

Code:

tr.dottedline { border-bottom-style: dotted; color: #FFFFFF }
and
Code:

td.rdottedline { border-bottom-style: dotted; color: #FFFFFF }
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#721
Taiko! (Admin)
Can you break this wood?
Admin
Posts: 566
graph
User Online Now Click here to see the profile of this user
Gender: Male MassiveFPS! Location: Abilene, TX Birthdate: 1982-04-29
Re:PHP Question 1 Year, 2 Months ago  
Thanks for the help! Looks like I found out how to make it work (sorta) I'm going through different styles right now, I might actually just go without any lines as that looks better than what I have placed so far
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#736
DrDysdy (User)
FNG
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:PHP Question 1 Year, 2 Months ago  
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
© 2007 MassiveFPS.com - All Rights Reserved | Link Exchange | Contact Us | Advertise on this site