292207
einherjer:
One thing at a time. Here's what you need to do to successfully hack the options in a select box.
1) First, go to your database and in the table
xoops_topics change the field
topic_title from
varchar(50) to
varchar(255). This is so you have ample space to write the topic name in the database.
2) Open your file
admin/index.php and look for the function
modTopic() around line 226. Look for the place where the input text box is defined and instead of having 20 and 40 as the values for
size and
maxlength, set them to 40 and 250, so the page lets you write enough characters.
3) The function you mention is not the place to change site-wide the select boxes. For that, open your file
class/xoopstree.php and look for function
makeMySelBox(...). There, just before the line:
echo "<option value='$catid'$sel>$name</option>\n";
add a line saying:
$name = $myts->makeTboxData4Show($name);
This has the effect of passing the variable
$name through the sanitizer, and since this is hacked, it will display the correct string in your site's select boxes.
I think that should do it. Hope it helps.
Cheers.