293871
danyblue
Re: HTML problem in XOOPS and Other CMS?
  • 2002/7/16 9:27

  • danyblue

  • Just popping in

  • Posts: 48

  • Since: 2002/4/15


Hi,
I have found the function textsanitizer, which for me a non programmer was quite difficult.
I have been trying, from the explainations above, where could the problem be, in order to see if I could do something.
I have found the function where the problem might be,
function oopsNl2Br($text) {

$text =preg_replace("/(\015\012)|(\015)|(\012)/","<br />", $text);

And i have tried several things that i have search on the net.
the first one was

$text = str_replace("<br />", "","$text");
Which i think is replacing every <br /> by a space character, which would be the same thing than having nothing.
SO i commented the function also to see what happen, and it's work.
SO i would like to know what would be the implication of leting it that way, since it is working for me, will I be seing problems in other places?

Regards,
Danyblue



293872
Anonymous
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 21:17

  • Anonymous

  • Posts: 0

  • Since:


Cool
been in bed all day..sick as a dog...

btw all those intval() you use, if those are just to define the type the value are, then you can use typecasting todo that too:

(int)$val
(bool)$val
etc..



293873
onokazu
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 19:09

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Fixed now.

modules/xoopspoll/index.php

line 80
$voted_polls = (!empty($HTTP_COOKIE_VARS['voted_polls'])) ? $HTTP_COOKIE_VARS['voted_polls'] : array();

line 90
$poll->vote($HTTP_POST_VARS['option_id'], $REMOTE_ADDR, $xoopsUser->getVar("uid"));

line 100
$poll->vote($HTTP_POST_VARS['option_id'], $REMOTE_ADDR, $xoopsUser->getVar("uid"));




293874
Pitiless
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 18:10

  • Pitiless

  • Just popping in

  • Posts: 14

  • Since: 2002/5/16


It was happened after the update to 3.0.3

All another files are OK, only index.php occures this problems (my experiences)

Leave the updated files from fix 3.0.3 but take the index.php from fix 3.0.1

it means index.php in xoopspoll



293875
danyblue
Re: HTML problem in XOOPS and Other CMS?
  • 2002/7/15 14:42

  • danyblue

  • Just popping in

  • Posts: 48

  • Since: 2002/4/15


Hi,
thank you for the suggestion, but it doesn't work.
The problem that i am having is just focused on the first lines. It is why i Would like to investigate a little bit the code.
I tried to search for textsanitizer, but the amount of references are so huge that i have problems finding it. Can any one point met to the correct function/module, where i could take a look?

Regards,
Danyblue



293876
Neon
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 11:53

  • Neon

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/2/8 6


Just tried the Polls on this site too and found they don't seem to be working either!!



293877
Anonymous
Re: Polls allowing mulitple selections does not work!
  • 2002/7/15 10:01

  • Anonymous

  • Posts: 0

  • Since:


Tnx :o) Had probs myself but thought it was my ip or a cookie that was logged(since i posted it). For now i told the others, and will give it a look later on if noboby else does so before.

Tnx



293878
chapi
Re: HTML problem in XOOPS and Other CMS?
  • 2002/7/15 9:07

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


I had html code like this in one of my sections.

<table>
&nbsp;&nbsp;&nbsp;<tr>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;some content here
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
&nbsp;&nbsp;&nbsp;</tr>
</table>

with this code it lowered down my content.
After changing the code to the following, i had no problems.

<table><tr><td>some content here</td></tr></table>

I just deleted the spaces between the tags themselves.

Maybe this helps somebody ...



293879
salsailor
Polls allowing mulitple selections does not work!
  • 2002/7/15 9:02

  • salsailor

  • Just popping in

  • Posts: 3

  • Since: 2002/5/6 9


For a while, I was wondering why nobody votes on my new polls, it's a poll allows voting multiple choices. It just shows all zero. You can try with the current poll in xoops.org site now, it does not shown any votes.



293880
danyblue
Re: HTML problem in XOOPS and Other CMS?
  • 2002/7/15 8:35

  • danyblue

  • Just popping in

  • Posts: 48

  • Since: 2002/4/15


Where can i find the function that is processing the the post? Because i Want to take a look at it and try to make some modifications.

Regards,
Danyblue







Login

Who's Online

98 user(s) are online (55 user(s) are browsing Support Forums)


Members: 0


Guests: 98


more...

Donat-O-Meter

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

Latest GitHub Commits