|
Joined: Nov 2000
Posts: 1,271
Kahuna
|
Kahuna
Joined: Nov 2000
Posts: 1,271 |
i uploaded a buncha php files at work today, and now that i check them at home, i notice their formatting is all screwed up. instead of appearing in the nice, clean way, its a big jumbled mess.
this: [] info $Board_q = addslashes($Board); $query = " SELECT Bo_Title,Bo_Last,Bo_Read_Perm,Bo_Write_Perm,Bo_Moderated,Bo_Cat,Bo_CatName,Bo_ThreadAge,Bo_Reply_Perm,Bo_HTML,Bo_Markup,Bo_SpecialHeader,Bo_StyleSheet,Bo_Number,Bo_Threads FROM {$config['tbprefix']}Boards WHERE Bo_Keyword = '$Board_q' AND Bo_Active = '1' $groupquery "; $sth = $dbh -> do_query($query,__LINE__,__FILE__); $rows = $dbh -> fetch_array($sth); list($Title,$Last,$CanRead,$CanWrite,$Moderated,$C,$CatName,$ThreadAge,$CanReply,$HTML,$Markup,$fheader,$fstyle,$bonumber,$totaltopics) = $rows; $dbh -> finish_sth($rows); if (!$Title) { $html -> not_right($ubbt_lang['BAD_GROUP'],$Cat); } // If this is a visit to a new forum then we need // to track any preferences for this forum $updatemyprefs = 0; if ((!isset($myprefs['Board'])) || ($myprefs['Board'] != $Board)) { $myprefs['Board'] = $Board; $myprefs['age'] = $ThreadAge; $myprefs['sort'] = 5; $myprefs['view'] = $view; $updatemyprefs = 1; } else { if (($o) && ($myprefs['age'] != $o)) { $myprefs['age'] = $o; $updatemyprefs = 1; } if [/]
instead of this: [] <tr><td class="paddingtop paddingbottom autorow colored-row" valign="top"> <span class="autorow-title"> <label class="radio" for="maxgraemlins"> {$ubbt_lang['MAX_GRAEMLIN']}</label><br /> </span> <span class="autorow-description"> {$ubbt_lang['MAX_GRAEMLIN_1']} </span> </td><td class="paddingtop paddingbottom autorow colored-row" valign="top"> <input type="text" name="maxgraemlins" value="{$config['maxgraemlins']}" size="5" id="maxgraemlins" /> </td></tr> [/]
i'm using word pad (not note pad) to view the files. any idea how to fix'em?
|
|
|
|
Joined: Sep 2003
Posts: 803
Coder
|
Coder
Joined: Sep 2003
Posts: 803 |
happens to me too. If the file you are looking at and copying and pasting is online, thenyou have to save it to the desktop before you copy and paste. If you still have the original file you can just save it to desktop and then copy it from there and paste away. it also happens to some mods that are posted here. If you click the attachment and it brings up the page, you have to save it first. otherwise you get the mess...
|
|
|
|
Joined: Nov 2000
Posts: 1,271
Kahuna
|
Kahuna
Joined: Nov 2000
Posts: 1,271 |
heya doc...
its not an actual mod file i'm talking about, in this case. its, for example, my ubbt.inc.php file.
i modded it a few times, and everything always looked fine. then, recently, i downloaded a copy from my server, just to make sure i had the most recent version. and, when i went to edit it, it was all strung together in the above fashion.
is it possible to reformat it (other than manually)?
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
look for a file called dos2unix thats the issue.. unix formats differently than dos..
|
|
|
|
Joined: Nov 2000
Posts: 1,271
Kahuna
|
Kahuna
Joined: Nov 2000
Posts: 1,271 |
cool, will do thanks
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|