You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - automatic theme recognition, in forum block [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sat Jan 18, 2003 7:35 pm Reply with quoteBack to top

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?.
Find all posts by IACOJView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Jan 19, 2003 10:10 am Reply with quoteBack to top

I'll look into it again tomorrow, I play on the weekends and code on the weekdays right now Wink.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sun Jan 19, 2003 1:53 pm Reply with quoteBack to top

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 Wink
Find all posts by IACOJView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sun Jan 19, 2003 8:30 pm Reply with quoteBack to top

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?
Find all posts by IACOJView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sat Jan 25, 2003 6:25 pm Reply with quoteBack to top

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
Find all posts by IACOJView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sat Jan 25, 2003 6:27 pm Reply with quoteBack to top

for a block, use the
Code:
$content .="bla bla bla";
command, not echo.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sat Jan 25, 2003 6:37 pm Reply with quoteBack to top

Sad

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
Find all posts by IACOJView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sat Jan 25, 2003 6:41 pm Reply with quoteBack to top

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 Confused when it put it in content it worked fine.

Make sure the content has
Code:
$content .="
at the start of every line

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Sat Jan 25, 2003 6:45 pm Reply with quoteBack to top

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. Very Happy
Find all posts by IACOJView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Tue Jan 28, 2003 11:50 am Reply with quoteBack to top

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.
Find all posts by IACOJView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jan 28, 2003 12:13 pm Reply with quoteBack to top

Don't you love debugging code?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Tue Jan 28, 2003 12:57 pm Reply with quoteBack to top

LOL yeah

Speaking of debugging. Can you turn debugging on in a block? Confused
Find all posts by IACOJView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jan 28, 2003 1:08 pm Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Tue Jan 28, 2003 1:30 pm Reply with quoteBack to top

Thanks very much Smile

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.
Find all posts by IACOJView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.239 Seconds - 227 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::