| Author |
Message |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Sat Jan 18, 2003 7:35 pm |
  |
The block is sort of working.
It does change between themes now, but I can't get the new post images to show up, and I can't seem to get the rows to be recognised, so its showing up with one solid background color.
The other problem is that the block appears to be the entire page. Its very easily noticible when you change to a different template.
Anyone know what I'm looking for to fix that?. |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Jan 19, 2003 10:10 am |
  |
I'll look into it again tomorrow, I play on the weekends and code on the weekdays right now . |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Sun Jan 19, 2003 1:53 pm |
  |
Thanks
I'll reup the new file later today if I haven't gotten it to function, since it is sorta working would help if you actually have the right script.
I understand the need to play  |
|
|
   |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Sun Jan 19, 2003 8:30 pm |
  |
I uploaded the new file.
Can't figure out why that little line is in the top left corner of it.
I was looking through some of the other nuke scripts and noticed that in many cases Globals are defined through out the script. I was thinking that maybe if the table variables that contain the row info were made global, the then the colors for the theme would show through in the correct place in the table.
Problem is I don't know if you can do that without calling a function because everywhere I saw it done, there was a function. I tried using a couple different functions and ended up with getting a parse error past the close line of code. In theory I think it would work.
Any ideas on it? |
|
|
   |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Sat Jan 25, 2003 6:25 pm |
  |
I nearly have this script worked out I think. The images are showing, and it changes with the theme. The only problem I have now is the bars at the top and bottom of the last 5 posts don't show up. Ok well I can make them show up, but then it wrecks the structure of the rest of the block. The info doesn't disappear or anything like that, it goes from being a normal sized center block to one that takes the entire page and wraps itself around the other blocks.
Also I can't can't get the vertical lines that seperate the parts of the table to show up. the horizontal cells are a little wider then I would like, but I think that can be modified afterwards.
I'm pretty sure everything else works.
I've used echo to get the table structure and style to show, and have rearranged it about a dozen times, am having some difficulty with the last bit. If anyone has suggestions I would appreciate them.
You can see it here on my test site I have a copy of the last 5 forum posts block above the one I've been working on as a reference. The alignment of the titles is wrong, but that has something to do with the vertical dividers not showing up.
Thanks for your help |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sat Jan 25, 2003 6:27 pm |
  |
for a block, use the
| Code: |
| $content .="bla bla bla"; |
command, not echo.
ArtificialIntel |
|
|
   |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Sat Jan 25, 2003 6:37 pm |
  |
I'm going to head back to the drawing board then I think. I changed it from content because the whole thing wouldn't display.
Thanks |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sat Jan 25, 2003 6:41 pm |
  |
I've just finished the modules tweak that I was working on, and anything that I put in the echo tags was appearing above the block heading when it put it in content it worked fine.
Make sure the content has at the start of every line
ArtificialIntel |
|
|
   |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Sat Jan 25, 2003 6:45 pm |
  |
Thanks,
I'll give it another go. I noticed that it was all appearing above the block title too. LOL Had NO idea how to fix it either. I was just happy it was showing up with the images and the correct colors.
Thanks for all your help. You guys have been great.  |
|
|
   |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Tue Jan 28, 2003 11:50 am |
  |
I've changed things around again. Got it working with content instead of echo, but the title of the block shows on the left instead of in the center. I can't get the top bar or lines between posts to show up. |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Tue Jan 28, 2003 12:13 pm |
  |
Don't you love debugging code? |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Tue Jan 28, 2003 12:57 pm |
  |
LOL yeah
Speaking of debugging. Can you turn debugging on in a block?  |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Tue Jan 28, 2003 1:08 pm |
  |
To an extent yes. I think the block of code you can add anywhere is listed in the announcement forum thread. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
IACOJ
Major


Joined: Jan 15, 2003
Posts: 1269
Location: USA
|
Posted:
Tue Jan 28, 2003 1:30 pm |
  |
Thanks very much
EDIT: I turned debugging on, now I'm extremely confused. This the error that I got back
| Code: |
Fatal error: Unsupported operand types in /home/iacoj/www/test/PHP-Nuke/html/blocks/block-Who_is_Online.php on line 35
|
On my test site I'm using the standard who's online block that comes with phpbb port.
I looked at the script for the who's online block this is line 35 and 36.
| Code: |
$who_online_num = $guest_online_num + $member_online_num;
$who_online = "<center><font class=\"content\">"._CURRENTLY." $guest_online_num "._GUESTS." $member_online_num "._MEMBERS."<br>"; |
Is this a cookie issue? I had a cookie code in the forum block before and got back a ton of errors for it. Maybe I'm just writing it wrong, I've tried it a few different ways. |
|
|
   |
 |
|
|