PHP Classes

BUG {recommendpage}

Recommend this page to a friend!

      PHP Classes blog  >  Site design contest i...  >  All threads  >  BUG {recommendpage}  >  (Un) Subscribe thread alerts  
Subject:BUG {recommendpage}
Summary:template.html - {recommendpage} after {body} lock update
Messages:4
Author:Tomasz Malewski
Date:2009-12-04 22:02:56
Update:2009-12-05 01:27:08
 

  1. BUG {recommendpage}   Reply   Report abuse  
Picture of Tomasz Malewski Tomasz Malewski - 2009-12-04 23:20:35

1. template.html - Reset to initial contents.
2. In default code i want to change place of {recommendpage} to some right panel but when put it after {body}.
3. Click "Save and Preview" , HTML is ok but preview is old.
4. When go to "back to files list" and open again template.html any change in source code after changed {recommendpage} order gone :(

Tested under IE 6.0 & FF 3 and i flushed cache too.

Stock:
[code]
{ads}
{horizontalads}
{navigation}
{user}
{recommendpage}
{body}
{endnavigation}
{endseparator}
{credits}
[/code]

  2. Re: BUG {recommendpage}   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-12-05 00:09:04 - In reply to message 1 from Tomasz Malewski
I am not sure what you mean. You say you put {recommendpage} after {body} but in your example {recommendpage} is before {body}.

Anyway, {recommendpage} should be always before body. In reality that template becomes two templates when it is applied: header before body and footer after body. So {recommendpage} is not available in the footer.

If you try to put {recommendpage} after {body}, when you save the template, it should show a validation error and not accept the submitted template.

  3. Re: BUG {recommendpage}   Reply   Report abuse  
Picture of Tomasz Malewski Tomasz Malewski - 2009-12-05 01:10:29 - In reply to message 2 from Manuel Lemos
You are right Manuel:
"when you save the template, it should show a validation error and not accept the submitted template."
Now it appears but didn't yesterday and ~6h ago ... maybe You did it in meantime :) Now with this alert is clear what i did wrong.

Anyway trickjump to hack validation form will not be tolerated ?
Move {recommendpage} from R1 to R2 and make invisible {body} B2 only to cheat form.

[code]
{ads}
{horizontalads}
{navigation}
{user}
R1 R1-2
B1 {body} B1-2
R2 {recommendpage} R2-1
B2 <div class="nodraw"> {body} </div> B2-1
{endnavigation}
{endseparator}
{credits}
[/code]

  4. Re: BUG {recommendpage}   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-12-05 01:27:08 - In reply to message 3 from Tomasz Malewski
Yes, it was an additional validation step added recently because some authors were not putting the tags on the right side of the body divisor.

As for authors trying to cheat by making sections invisible, that is why proposed designs go through moderation before they are approved.