Jump to content

russia5

Members
  • Posts

    94
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

russia5's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I figured the problem. This is an alternative domain i.e.) public_html/atc-roofing.com/xxx I did not have acc-roofing.com folder included into the path. I did put in acc-roofing/ into it but I still got the error so I took it out. After lots and lots of studying it, and with your help in telling me that there was absolutly something wrong with the path, then I caught it. I owe you a lot of gratitude. Thans so much!!! Greg
  2. require_once('/home1/nuclearp/public_html/libs/pear/DB.php');I This Is Your Absolute Path: /home1/nuclearp/public_html/atc-roofing.com Warning: require_once(/home1/nuclearp/public_html/libs/pear/DB.php): failed to open stream: No such file or directory in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.php on line 6 Fatal error: require_once(): Failed opening required '/home1/nuclearp/public_html/libs/pear/DB.php' (include_path='.:/opt/php54/lib/php') in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.phpon line 6
  3. I added the DB.php and I took the : out of the code, as you suggested, and I got the following output: This Is Your Absolute Path: /home1/nuclearp/public_html/atc-roofing.com Warning: require_once(DB.php): failed to open stream: No such file or directory in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.php on line 4 Fatal error: require_once(): Failed opening required 'DB.php' (include_path='.:/opt/php54/lib/php:/home1/nuclearp/public_html/libs/pear/DB.php') in /home1/nuclearp/public_html/atc-roofing.com/includes/ru_connection.php on line 4
  4. I can not find why my pear directory is failing. DB.php which is in the pear directory does not open. I have pasted code to show the path of the server to the secondary website(see the red below for the code and the output). The path that I can see is: /home1/nuclearp/public_html/libs/pear/DB.php Thanks to anyone who can see why I am getting my error. This is the index.php //this script reads the path and is listed in the output below: <?php $path = getcwd(); echo "This Is Your Absolute Path: "; echo $path; ?> <?php require_once("includes/ru_config.php"); require_once("includes/ru_connection.php"); require_once("includes/ru_data.php"); require_once("includes/ru_utils.php"); require_once("libs/ru_multi_smarty.php"); $smarty->display("index.tpl"); ?>This is ru_config.php <?php //require_once(dirname(__FILE__) . 'ru_4pear.php'); ini_set("include_path", ini_get("include_path") . ":/home1/nuclearp/public_html/libs/pear/"); require_once('DB.php'); This is the output from www.atc-roofing.com (the index.php result)
  5. I am setting up Smarty for the first time. (I have the parent site www.xyz.com and within that site's folders, I have a daughter site www.atc-roofing.com The folder list is: public_html/atc-roofing/ public_html/xyz folders and index.php Under the folder public_html/ atc-roofing/ reside the folling folders: smarty/libs/(smarty folders and files atc-roofing/cashe/ atc-roofing/templates/ atc-roofing/templates_c/ acc-roofing/config/ The public_html/atc-roofing/ index.php file reads: <?PHP // put full path to Smarty.class.php require_once ('smarty/libs/Smarty.class.php')> $smarty = new Smarty; $smarty->caching = true; $smarty->cache_lifetime = 120; $smarty->template_dir = './templates'; $smarty->compile_dir = './templates_c'; $smarty->assign('name', 'Ned'); $smarty->display('index.tpl'); ?> The error I am getting is: Fatal error: Class 'Smarty' not found in /home1/nuclearp/public_html/atc-roofing.com/index.php on line 6 Can anyone see what I am doing wrong with my path to the Smarty.Class.php
  6. I have been tasked to find the problem with this site's database connection. The site is a PHP, MySQL, Smarty site. Currently, I am getting the following when www.mysite.com is called. The index.php is located at www.mysite.com/index.php The current locations of the following files are: includes/ru_config.com includes/ru_connection.com All the replaced passwords, usernames, and site specific information worked previously so the problem is not there. One problem there might be, is in ru_connection where the paths for ru_4pear and DB.php might be wrong. There locations are: includes/ru_4pear.com libs/pear/DB.php ru_config.php index.php ru_connection.php DB.php ru_4pear.php
  7. russia5

    text styles

    Thanks but did not work. I am still getting red text. For some reason, it is not seeing the a.one style and I think it is still seeing the A style. ???
  8. russia5

    text styles

    I have also changed my declareation to COLOR: black; and still have not got it to change. I believe it must be getting formatted from another css statement somehow.
  9. russia5

    text styles

    I added A.one { COLOR: #FFFFFF; FONT-FAMILY: Arial, Verdana, Helvetica; FONT-SIZE: 13px; FONT-WEIGHT: bold; TEXT-DECORATION: none } A.one:hoover { COLOR: #FFFFFF; FONT-FAMILY: Arial, Verdana, Helvetica; FONT-SIZE: 13px; FONT-WEIGHT: bold; TEXT-DECORATION: none } Then to the anchors I added <td> <a class="one" href="disclaimer.php">Disclaimer</a> </td> and I got no results
  10. russia5

    text styles

    Thanks for the response. I believe the body { font-family: Verdana, Helvetica, sans-serif; } is where the "copywrite 2007" is getting its styling from. There is no style for color so maybe it defaults to black. What I want to do, is to make the anchors in this one spot black. I have looked quite a bit, and I do not see a way to style them inline with html like a <p> (I believe if you inline style a <p> it overrides the external stlye sheet styling. Anyway, I need to be able to change those anchors to be of the same style as the Copywrite 2007 Anybody know how?
  11. russia5

    text styles

    Hello, My site is www.russiansweets.us I can not figure out what is giving me the black font color and style in the right nav menu. "Copywrite" (below search by ID.) can anyone tell me the style of this print? Thanks Below is the HTML <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0"> <table> <tr> <a href="contact.us.php">Contact Us</a> <tr/> <tr> <td> Copyright 2007 <a href="http://www.russiansweets.us">Russian Sweets</a><br /> </td> </tr> </table> Here is the CSS for the page. body { font-family: Verdana, Helvetica, sans-serif; } form { margin: 0px } table { font-family: Verdana, Helvetica, sans-serif; font-size: 13px; } a.paginglink, a.paginglink:hover, a.paginglink:visited { font-size: 13px; font-weight: bold; color: #0099FF; font-family: Verdana, Arial, Helvetica, sans-serif; } a.photolink, a.photolink:hover, a.photolink:visited { font-size: 13px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; } .ulinedtd { border-bottom: 1px #dddddd solid; } .style { font-family: Arial, Helvetica, sans-serif; font-size: 9px; } .linktext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF; text-decoration: none; font-weight: bold; } .bluetext { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #003366; text-decoration: none; } .orangetext { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #CA5100; text-decoration: none; } A { COLOR: red; FONT-FAMILY: Arial, Verdana, Helvetica; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none } A:hover { COLOR: #993300; FONT-SIZE: 11px; FONT-WEIGHT: bold; TEXT-DECORATION: none } input { border-left : 1px solid #000000; border-right : 1px solid #ffffff; border-top : 1px solid #ffffff; border-bottom: 1px solid #000000; text-decoration:none; }
  12. Thanks... I found out that in my browser, it was actually there, but it very very wide, leaving just the left part of the form vissual
  13. Hello, I am including one PHP template into another. In the Browser Firefox, the form shows, however, in IE, the form does not show. Can anyone tell me why? <HTML> <HEAD> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> <script type="text/javascript" language="JavaScript" src="/javascripts/overlib.js"></script> <TITLE>Business Introductions</TITLE> <style type="text/css"> <!-- .testspan { color:#BB0022; } //--> </style> </HEAD> <BODY bgcolor="#ffffff"> <style type="text/css"> input { border: 1px solid #808000; width: 336px } textarea { border: 1px solid #808000 } select { font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif } </style> <table width="80%" border="1" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Russian Hosts</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" > </head> <body> <ul id="navigation"> <li> <a href="">Home<br /></a> </li> <li> <a href="/aboutus.php">About Us<br /></a> </li> <li> <a href="/privacy_policy.php">Privacy Policy<br /></a> </li> <li> <a href="/disclaimer.php">Disclaimer<br /></a> </li> <li> <a href="contactus.php">Contact Us<br /></a> </li> </ul> </td> <td style="background-color: #d9e3ed"> <div></div> <div><form method='post' action='contactus_processor.php'> <table width='60%'> <tr> <td colspan='2' align='center'><h3>Contact us</h3></td> </tr> <tr> <td valign='top'><input type='hidden' name='to' vlue='gregory' size='20'><input type='hidden' name='form' value='Contact us'>Message: </td> <td><textarea name='message' rows='20' cols='50'></textarea> </td> </tr> <tr> <td><input type='reset' value='Reset form'></td> <td><input type='submit' value='Send'></td> </tr> </table> </form> </div> </td> </tr> </table> </BODY> </HTML> <- end of sourse from IE ->
  14. russia5

    Layout cells

    Fixed the problem, thankyou very much. Adjusted the colspan to 4 in the pagination cell. I have three spaces at the top of my template .tpl page, viewed by my "IE View Source" however, when I open the template .tpl page up in my PHP editor, or in Note Pad, they are not there. I believe they are the reasons that my page two inches below the top of the page. Does anyone know how I could be getting them? Could it be in the PHP coding?
  15. russia5

    Layout cells

    Thankyou for your response. I have "boiled" down the code to having just the images, in a 5x4 matrix and below them is the pagination, still left aliegned. To my calculation, looking at the code, the pagination should be centered below the images. Can you tell me what is causing it to be left aliegned? <body topmargin="0" leftmargin="0" rightmargin="0" link="#FF6633"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" height="0%"> {*sid, picture1*} {foreach name=outer item=user from=$users} {if $smarty.foreach.outer.index is div by 5} <tr valign="top"> {/if} <td width="18%" align="center"><a href="gallery/ru_girl.php?id={$user.sid}"><img src="images_thumb1/{$user.picture1}" alt="Picture of {$user.full_name}" border="0"></a><br></td> {if ($smarty.foreach.outer.index + 1) is div by 5} </tr> {/if} {/foreach} <tr> <td align="center"> <script src='js/ru_pagination.js' type='text/javascript'></script> {pagination pageurl = $thepager->pageurl pageno = $thepager->pageno pagecount = $thepager->pagecount hiddenstr = $hiddenstr} </td> </tr> </table>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.