Previous Thread
Next Thread
Print Thread
Rate Thread
#280132 09/28/2004 6:29 PM
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?

Sponsored Links
#280133 09/28/2004 8:55 PM
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
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...

Duck #280134 09/29/2004 3:41 PM
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)?

#280135 09/29/2004 3:52 PM
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..

234234 #280136 09/29/2004 4:06 PM
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
cool, will do

thanks

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)