Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Virgin_Steel
Worker
Worker



Joined: Sep 30, 2004
Posts: 108
Location: Sf

PostPosted: Sun Apr 03, 2005 5:37 am Reply with quote

I'm using php-Nuke Platinium 7.6.0 and i want to translate my block's titles.I found this: [ Only registered users can see links on this board! Get registered or login! ]
Quote:
Search:
$title = $row[title];
Replace with:
$title = translate($row[title]); ....

in my mainfile.php the line was
Code:
$title = stripslashes(check_html($row['title'], "nohtml"));

anyway i change it to
Code:
$title = translate($row['title']);

And now everything works,just want to ask is there something wrong that my line wasn't the same (
Code:
$title = $row[title];
) !
Asking to know if this damage something?
Thank u!
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Apr 03, 2005 10:33 am Reply with quote

Although I have never used the translate function, just from a coding standpoint, I would think that it might be better to do the following so that you still get the stripslashes and check_html checks:

Code:


$title = translate(stripslashes(check_html($row['title'], "nohtml")));


But, then again, not knowing anything about translate(), I can't tell you if this will work or not, but I think you should try it to see if you get the same result. It is a little "safer".

Regards,
montego

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Virgin_Steel







PostPosted: Sun Apr 03, 2005 1:49 pm Reply with quote

montego, you're awesome man:) Thank you so much.Now i'm calm.Thank you, it's very nice hack btw!I Always wanted to know how to do it!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©