1
PocketLnt
Re: Can I turn off the automatic e-mail address formatting feature?
  • 2006/6/23 14:15

  • PocketLnt

  • Just popping in

  • Posts: 4

  • Since: 2006/4/19


After a thorough game of hide-and-seek I finally found out how to disable this feature. Note that this will cause all mailto tags to not automatically format unless explicitly specified in the XOOPS code.

The offending file can be found at class/ module.textsanitizer.php

On or around line 131 there should be a function called makeClickable. Within this function there are two ararys: $patterns and $replacements.

Comment out the last element of both the $patterns and $replacements arrays. Be sure to close off the array with the appropriate ); if you've commented out those characters.

Save the file and repload your webpage. The modification should take effect immidiately and you shoudl not have to do the whole clear out templates_c and reload the System module dance.



2
PocketLnt
Can I turn off the automatic e-mail address formatting feature?
  • 2006/5/3 15:00

  • PocketLnt

  • Just popping in

  • Posts: 4

  • Since: 2006/4/19


Greetings.

I've searched through the various support forums and FAQs here, but I've yet to be able to find a way to disable a certain feature inherent in the XOOPS software.

I am the webmaster forhttp://www.teamhackaday.com, a group of Hack-a-Day readers who participate in Stanford's Folding@Home project. We run XOOPS as the main portal for the site, and I've noticed a small annoyance that crops up due to our project's name.

It seems that whenever I use the term "Folding@Home" on the site the XOOPS logic picks this phrase up as an e-mail address and formats it as a link to "mailto:Folding@Home". While this does not effect my site all that much it's still an annoyance as this crops up in every news post, download/link description, and every where else that the term Folding@Home is used on the site.

With this in mind, is there any possible way to disable this automatic e-mail address formatting feature? Anyone's help is most appreciated and I will give any further information if neccessary. Thank you.



3
PocketLnt
Re: Strange error in custom PHP blocks
  • 2006/4/20 14:15

  • PocketLnt

  • Just popping in

  • Posts: 4

  • Since: 2006/4/19


Just to not be rude and not post, I found the solution to my problem using some rather drastic measures.

I loaded up the block's information from the block_instance table in phpmyadmin and copied only the PHP code into an external editor. Sure enough, in the editor I could see that my escape characters themselves were not being escaped for storage my MySQL.

In another words, the strings were being stored in MySQL with the format:

printf("<table align=\"right\">\n");

Instead of the necessary:

printf("<table align=\\"right\\">\\n");

So I manually edited the files to escape the necesary characters, changed the character count variable, and poof. It worked. I'm sure this does not help with most of the other individual's problems on here, but this helped my specific problem.



4
PocketLnt
Strange error in custom PHP blocks
  • 2006/4/19 15:38

  • PocketLnt

  • Just popping in

  • Posts: 4

  • Since: 2006/4/19


I run the sitehttp://www.teamhackaday.com and I must say that I'm very happy with the XOOPS portal system. It's very flexible and the PHP blocks allow for some very interesting customizations.

I was originally running the site on a webhost donated by an acquaintance of mine, but as the group grew our needs for beefier and more reliable hosting grew. Thus, we moved the site to dreamhost.com and are very happy with their rates and services. (Not a plug, just personal backstory)


Everything is working wonderfully save for a strange error that I'm getting with the custom PHP blocks that I've written to display stats and other information. While on the personal host all was working well, but the same code doesn't want to work with the new host.

With PHP debugging enabled the error that I'm getting on the block is:

Parse error: syntax error, unexpected T_STRING in /homedirectoryisactuallyhere/modules/system/blocks/system_blocks.php(40) : eval()'d code on line 78

When I try to edit the block the code in error comes up as:

printf("<tr><td align="right">Team Rank:</td><td>%s</td></tr>n", number_format(return_val( $myFile->data[0]['child'][0]['child'], 'RANK')) );

Obviously this is due to the fact that the quotes around "right" are not escaped, so I escape these characters and submit the form. I get a message telling me that all went well, but no! The crass program has lied!

I get the same error and upon checking the source of the block again it shows the same line as before. In fact, further checking shows that all my escape charaters "/" are gone! I checked the database and sure enough the escape characters are there in the table, but they do not show up in the edit box of the custom block editor.

Like I said, very strange indeed.. but any help that anyone can offer will be most appreciated.

The setup is almost identical from host to host, the only difference being that the MySQL version changed from 4.1 to 5.0, but all tables check out A-OK. Any ideas?




TopTop



Login

Who's Online

154 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits