11
dukehen
Code syntax error?
  • 2004/6/26 3:09

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


In my struggles to find out why my centerblock section outputs nothing, I thought I would try here.

-----------------------------------
My code for the center section is:

<div class="centerblock">
<!-- Start center-center blocks loop -->
<{if $xoops_showcblock == 1}>
<{foreach item=block from=$xoops_ccblocks}>
<{include file="alter/centerblock.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->

<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<{include file="alter/lcenterblock.html"}>
<{/foreach}>
<!-- End center-left blocks loop -->

<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<{include file="alter/rcenterblock.html"}>
<{/foreach}>
<!-- End center-right blocks loop -->

<{/if}>
</div>

-----------------------------------
This is the output of my page:

<div class="centerblock">
<!-- Start center-center blocks loop -->
</div>
-----------------------------------

Now, it seems to be dying on the first IF statement. I have tried adding comments to later lines, but none of them show on the output. I assume XOOPS is dying right at the IF statement. I don't see anything wrong with it, considering I DO HAVE center content...?



12
dukehen
And I continue on...
  • 2004/6/18 15:11

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Geez, after looking at the code, I had an extra </DIV> in there, messing everything up.

One minor thing, problem solved.

---------------------------
So, I am now working on getting a basic center block displayed.

I make my center block div, and then punch in my XOOPS code, and I should be getting something but alas I am sure I have made another minor mistake.

Alright, I have checked my output, and it seems that I am not generating ANY centerblock output. Here is what my centerblock div "runs":

<!-- Center Blocks -->
<div class="centerblock">
<{if $xoops_showcblock == 1}> <!-- Check to see if any center blocks to display -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="alter/centerblock.html"}>
<{/foreach}>
<{/if}>
</div>
<!-- End Center Blocks -->

Now, alter/centerblock.html DOES exist, div class centerblock DOES exist.

I am sure there is another simple fix to this. I have tried dumping characters into this div, and apparently the IF statement is not "working" since if I put in characters before it, they are displayed, but after it they are not..?

Thanks



13
dukehen
Re: Need help with some basic theme questions
  • 2004/6/13 2:30

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


You should be I guess, since most of the DIVS are no longer in use (I basically combined most of them into 1 div (that encompassed a whole line, which was neccessary for the proper replication of db information).




14
dukehen
Re: Need help with some basic theme questions
  • 2004/6/13 0:19

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Yes, tie true I also live in this wonderland of mosquitos, slurpees and socials... :)

Well, they are pretty much all relative aside from the div that contains the module blocks.

I have tried setting everything to relative, but it still doesn't quite do the trick.

Hopefully I will get a few hours this weekend to try some more things.

Thanks



15
dukehen
Re: Need help with some basic theme questions
  • 2004/6/12 1:40

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Alright, I worked with the usermenu and it looks decent now.

However, the only way I can get both menus to appear and look good is if I do not position the DIV that all of the left blocks reside within.

Now, this obviously is not good because that means I cannot position the blocks below my header.

As I have it now, the header has been removed and the two block elements are in the proper order and basic look.

website here:http://www.alterboyz.com

files being used here:http://www.alterboyz.com/debug/

Any suggestions would be greatly appreciated!



16
dukehen
Re: Need help with some basic theme questions
  • 2004/6/12 0:50

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


I removed the header to see if anything was being layered underneath. Sure enough, it is there.

So, I have removed the header for the time being until I can figure out why my other blocks are not being put in line under my others.

Likely because I will have to edit more template files....joy joy!

:) Thanks



17
dukehen
Re: Need help with some basic theme questions
  • 2004/6/11 22:23

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Yes, I had originally tried defining my stuff in the leftblock html page, but after fiddling around, I found the best place is in the template file itself and just leave the block as the two standard items (title and content).

I can include the CSS tonight if need be, once I get back to my computer. Once thing I should notice is that after my foreach statements close off in my template, this is where I added another div that SHOULD have a bottom piece that closes off my mainmenu.

However, I have noticed that when I add it, nothing shows up. However, if I add them within one of the foreach statements, it will appear (although in the wrong place obviously). I am guessing that the div is being placed behind something (as already mentioned). Even though I set the z-index so that it would show up over anything, no luck there.

I think I will try my hand at the usermenu and see if I have more luck than with the mainmenu.

Thanks for your suggestions! I will strive to get the CSS up tonight!



18
dukehen
Re: Need help with some basic theme questions
  • 2004/6/11 19:39

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Alright, I have made some progress by moving around some code and using my brain (don't understand WHY I was doing some of the stuff I was doing).

Anyway, once I figure out why one of my DIVS is not displaying, my main menu might actually be done!!!

(my bottom div in the mainmenu template file shows up in my code from the source, but nothing is being displayed...?)



19
dukehen
If you get a blank screen after installing (with no errors)...
  • 2004/6/10 21:02

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


You may have run into the same problem I just did when installing XOOPS 2.0.6 on someone's server that looked to be perfectly set for Xoops. It had PHP, MySQL, etc. - everything set properly.

However, he set the file permissions on mainfile.php, and the three directories to 666. Everything came up fine during the installation, but he got a blank screen.

So, when I installed it (I watched him the first time) I chmod'ed to 777 instead of 666 - and we did everything the same. This time, it worked like a dream.

Just a general FYI...



20
dukehen
Re: Need help with some basic theme questions
  • 2004/6/10 19:10

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


<edit>




TopTop
« 1 (2) 3 4 5 ... 10 »



Login

Who's Online

123 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 123


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