Topic: Missing DIV in page output..

Hi guys,

I've got this problem with the Miniportal sidebar versus the Calendar Mod

A user would click the edit an event link;
if there's no event to edit, this code

if(!$db->num_rows($result)){
message($lang_calendar['no_events']);
}

will generate this particular output in the whole php page

        <!--Calendar Version:2.0.6a -->
<div class="blocktable">

<div id="msg" class="block">
    <h2><span>Info</span></h2>
    <div class="box">
        <div class="inbox">
        <p>There is no event to edit</p>
        <p><a href="javascript: history.go(-1)">Go Back</a></p>
        </div>
    </div>
</div>
        
    </div>    
</div>

but a </div> tag is missing in the code ^^ so the sidebar won't display properly... This output display the sidebar below the There is no event to edit message. So instead of getting the correct display as show below, I get the result as shown at the bottom of this image.

http://i119.photobucket.com/albums/o144/indiequebec/idqcaleditnogood.gif

anyone know how I could make an extra </div> appear in the ^^ code whenever this function is called?. Or any other way to fix this problem?

I'm willing to provide additional files/code if necessary...

Thanks!

Re: Missing DIV in page output..

upon further investigations, do you guys think I'd need to edit one of the templates?
is there a way to see which template is "attached" to this no_event message?

Re: Missing DIV in page output..

is there a <div class="clearer"></div> in there some where?
try to do a <!--<div class="clearer"></div>-->

see if that fixes it?


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Missing DIV in page output..

yes there's a <div class="clearer"></div> at the bottom of the generated output (calendar.php?action=edit). But I don't know how to modify this output since the content of the php code is created after a user would click a link..

Re: Missing DIV in page output..

try to do this replace the <div class="clearer"></div>

with
<!--<div class="clearer"></div>-->
see what that does
and give me a link to ur site.

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Missing DIV in page output..

Well that's the thing, I don't know how I could edit that page since it's kinda generated after a user would click a particular link.

It's the only bug preventing me from putting the calendar on my website, so it's not in prod yet. I'm working on it using wamp but I'll be glad to send you the site and the db.txt or grant you remote access to my pc. (via msn messenger?)

Re: Missing DIV in page output..

what are you using to edit the files with notepad?

i use dreamweaver 8


i use the cal mod and i have the minical and the event listings in my site.
http://nalan.org

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Missing DIV in page output..

I use notepad++
nice site!

Re: Missing DIV in page output..

it is punbb 1.2.14 and im working on it with the miniportal mod from punres wiki

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

10 (edited by Vanslyde 2007-03-18 17:52)

Re: Missing DIV in page output..

Glad to see it's working fine for you! : P

Got any adivce with respect with the problem I'm encountering? Did I manage to explain it good enough for people to understand it? I know what's missing in the output, but I don't know which file or template to edit in order to fix it.

Re: Missing DIV in page output..

Hi Quaker,

Can you let me know if and when you ever sort out that issue I see that you have on your site as I do on mine using the left/right blocks. What I mean is that when you go to viewtopic the entire area is sent to the bottom of the page.

Cheers!
Bingiman

Re: Missing DIV in page output..

I have exactly the same problem - sometimes with the whosonline block under the forum page and sometimes with the calendar.
And all that different in different browsers.

FluxBB - v1.4.8

Re: Missing DIV in page output..

I don't think this can be corrected and this is one of the major drawbacks to using divs in my opinion. I'll probably mod mine to use tables just for that area. Anyway, my problem lies in the viewtopic area. Everthing more or less looks fine. I ended up going back to the left block layout for now.

14

Re: Missing DIV in page output..

it seems to be a clearer issue with that div..
i have took a few div out and in ff and ie7 it fixes the issue but in ie6 still got the same problem. err this dang css issue with all the browsers.. why cant they set a standard and stick with it....

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Missing DIV in page output..

I actually get it to work but as you mentioned it looks different in all browsers.