How to set text box whide for Recommend US form. ?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How to set text box whide for Recommend US form. ?
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Hi

Email address are often longer then the text box on the Recommend US page so i want to change it and make it wider.
I cant seem to find how i can make the text input boxes of the Recommend US page a bit more wide.

I looked in the Recommend_Us module folder but there isn't any setting for it so it seems.
So where can i set the whide for those text field for the email address

Any suggestions ?



Back to top Reply with quote
#2   re: How to set text box whide for Recommend US form. ?
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Its still buggin me.... It surely must be set somewhere ?



Back to top Reply with quote
#3   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Look for the

<input type='text' name='email' size='30'>


Change the size to 35 for a larger box.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#4   re: How to set text box whide for Recommend US form. ?
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Meaby im overlooking something but i cant seem to find where to edit this ?

Please let me know in which file i can edit this.


Kind Regards,


phptest



Back to top Reply with quote
#5   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Open the modules/Reccomend_Us/index.php and look for the above line. Change the size= to a higher number for a larger input box.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: How to set text box whide for Recommend US form. ?
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Hi,

This is the content of the index.php in the recommend us dir. I still cant seem to find that line where it states size.


if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
   die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._RECOMMEND."";

function RecommendSite() {
    global $user, $cookie, $prefix, $db, $user_prefix, $module_name;
    include ("header.php");
    title(""._RECOMMEND."");
    OpenTable();
    echo "<center><font class=\"content\"><b>"._RECOMMEND."</b></font></center><br><br>"
   ."<form action=\"modules.php?name=$module_name\" method=\"post\">"
   ."<input type=\"hidden\" name=\"op\" value=\"SendSite\">";
    if (is_user($user)) {
    $row = $db->sql_fetchrow($db->sql_query("SELECT username, user_email from ".$user_prefix."_users where username='$cookie[1]'"));
   $yn = stripslashes($row['username']);
   $ye = stripslashes($row['user_email']);
    }
    echo "<b>"._FYOURNAME." </b> <input type=\"text\" name=\"yname\" value=\"$yn\"><br><br>\n"
   ."<b>"._FYOUREMAIL." </b> <input type=\"text\" name=\"ymail\" value=\"$ye\"><br><br><br>\n"
   ."<b>"._FFRIENDNAME." </b> <input type=\"text\" name=\"fname\"><br><br>\n"
   ."<b>"._FFRIENDEMAIL." </b> <input type=\"text\" name=\"fmail\"><br><br>\n"
   ."<input type=submit value="._SEND.">\n"
   ."</form>\n";
    CloseTable();
    include ('footer.php');
}

function SendSite($yname, $ymail, $fname, $fmail) {
    global $sitename, $slogan, $nukeurl, $module_name;
    $fname = stripslashes(FixQuotes(check_html(removecrlf($fname))));
    $fmail = stripslashes(FixQuotes(check_html(removecrlf($fmail))));
    $yname = stripslashes(FixQuotes(check_html(removecrlf($yname))));
    $ymail = stripslashes(FixQuotes(check_html(removecrlf($ymail))));
    $subject = ""._INTSITE." $sitename";
    $message = ""._HELLO." $fname:\n\n"._YOURFRIEND." $yname "._OURSITE." $sitename "._INTSENT."\n\n\n"._FSITENAME." $sitename\n$slogan\n"._FSITEURL." $nukeurl\n";
    mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
    update_points(3);
    Header("Location: modules.php?name=$module_name&op=SiteSent&fname=$fname");
}

function SiteSent($fname) {
    include ('header.php');
    $fname = stripslashes(FixQuotes(check_html(removecrlf($fname))));
    OpenTable();
    echo "<center><font class=\"content\">"._FREFERENCE." $fname...<br><br>"._THANKSREC."</font></center>";
    CloseTable();
    include ('footer.php');
}


switch($op) {

    case "SendSite":
    SendSite($yname, $ymail, $fname, $fmail);
    break;
   
    case "SiteSent":
    SiteSent($fname);
    break;

    default:
    RecommendSite();
    break;

}

?>



Back to top Reply with quote
#7   
swaungcenter
CZ Newbie
swaungcenter has been a member for over 19 year's 19 Year Member
usa.gif newmexico.gif
Occupation: Programmer
Age: 35
Gender: Male
Status: Offline
Joined: Nov 07, 2004
0.00 posts per day
Posts: 9
Points: 1,965
   
Find the lines that say:
<input type=\"text\" name=\"ymail\" value=\"$ye\">

and
<input type=\"text\" name=\"fmail\">


These are the lines you want to edit. Right before the close angle brackets, on both lines, put in this:
size=\"50\"

Change the number to however long you want your textbox to be.


Back to top Reply with quote
#8   re: How to set text box whide for Recommend US form. ?
phptest
CZ Super Newbie
phptest has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
That worked.. thanks icon_smile.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum