rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: alydhiends on March 05, 2008, 05:31:45 AM

Title: Shoutbox bug?
Post by: alydhiends on March 05, 2008, 05:31:45 AM
I'm using RAWR Template. Whenever i post a shout and refreshes the page or visit another directory, my post duplicates...
Now i got too many shouts of the same. o.O  :o
Title: Re: Shoutbox bug?
Post by: alydhiends on March 05, 2008, 06:08:07 AM
well, i was only experiencing it on beta 180.
Now it works fine with beta 2.3 181 :D
Title: Re: Shoutbox bug?
Post by: TSG on March 05, 2008, 11:16:42 AM
This has nothing to do with HFS. The bug is with post data and the shoutbox. I cant fix it.
Title: Re: Shoutbox bug?
Post by: rejetto on March 05, 2008, 11:21:03 AM
is the shoutbox in an iframe?
if yes, you can workaround this problem by having an intermediate page between the submit and the displaying of messages.

submit -> message accepted, immediate redirect -> display messages

so you have 2 moves, and the post data is only in the first move, while the refresh is only about the second (harmless)
Title: Re: Shoutbox bug?
Post by: TSG on March 05, 2008, 12:15:41 PM
Ok... how to do this using hfs.diff.tpl, uno if this bug gets fixed i can get rid of BETA in the titles :P it will be stable.
Title: Re: Shoutbox bug?
Post by: Giant Eagle on March 05, 2008, 03:26:24 PM
is the shoutbox in an iframe?
if yes, you can workaround this problem by having an intermediate page between the submit and the displaying of messages.

submit -> message accepted, immediate redirect -> display messages

so you have 2 moves, and the post data is only in the first move, while the refresh is only about the second (harmless)

Purge the post data, i told him that before :P the poor guy just doesnt listen

in php you use header("Location: blabla"); for this, can you set the header tags using macro's aswell?
Title: Re: Shoutbox bug?
Post by: rejetto on March 05, 2008, 04:40:09 PM
not for now, but what you do with header, you can do it with javascript or with meta tags
Title: Re: Shoutbox bug?
Post by: TSG on March 06, 2008, 09:21:00 AM
fixed in next builds, I used meta and a new folder system.

Posts are now found in /template/rawr_default/shoutbox/display_posts/
Processing takes place in /template/rawr_default/shoutbox/process_posts/
And smileys are now stored in /template/rawr_default/shoutbox/smileys/

I am releasing as soon as hfs works again :P i cant really release till rejetto releases a beta, I guess people wont trust mars link.
Title: Re: Shoutbox bug?
Post by: rejetto on March 06, 2008, 11:07:00 AM
what's the point in moving posts between folders?
Title: Re: Shoutbox bug?
Post by: TSG on March 06, 2008, 12:05:01 PM
Doesn't, just prevents the post script from running in the display folder, processing basically posts the post in the display_post folder. So that if the user refreshes the display_post folder there is no duplication of the posts.
Title: Re: Shoutbox bug?
Post by: alydhiends on March 06, 2008, 02:56:08 PM
...as i posted above, it got fixed already after the update of build 181 =P
Title: Re: Shoutbox bug?
Post by: TSG on March 06, 2008, 08:17:23 PM
Not from hitting Home/ though. Hitting that link would duplicate in every browser all the time.
Title: Re: Shoutbox bug?
Post by: Andrew-Sirius on March 09, 2008, 11:00:16 PM
Help me, please... ShoutBox it does not reflect messages. In folder [Template\rawr_default\shoutbox\display_posts] do be present text files with the messages, but in the browser messages are not reflected... What to make?
Title: Re: Shoutbox bug?
Post by: TSG on March 10, 2008, 05:32:39 AM
Do you have the template folder beside HFS... that shouldn't effect it anymore though... latest build of HFS?
Title: Re: Shoutbox bug?
Post by: Andrew-Sirius on March 10, 2008, 07:58:34 AM
Do you have the template folder beside HFS...

Yes, that full path: [c:\Program Files\Hfs\Template\rawr_default\shoutbox\display_posts\]

latest build of HFS?

Yes, build is 183
Title: Re: Shoutbox bug?
Post by: TSG on March 10, 2008, 08:01:08 AM
There shouldn't be a capital on template. Might be causing it.
Title: Re: Shoutbox bug?
Post by: Andrew-Sirius on March 10, 2008, 08:20:22 AM
No, problem was not decided after I it renamed folder in template. I think, does not load iframe   <-- Not, iframe is loaded when server is overloaded and i can see warning page about it...

Also, smiley not loaded too! I don't know what to do...