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, 254 guest(s) and 19 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Block info not inside border... [ ]
 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
Attica
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18


PostPosted: Fri Dec 07, 2007 7:22 am Reply with quoteBack to top

Hello i have a block that a friend and I hashed togeather for our site. Everything functions perfectly... Except the content will not display INSIDE of the block frame.

The easiest way explain what i mean is to look here: http://ptpclan.net/index.php

In the top left corner you will easily see what i mean.. PLEASE PLEASE any idea why that does that????
Find all posts by AtticaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Fri Dec 07, 2007 8:22 am Reply with quoteBack to top

All the content must be placed in the $content variable and not just echo'd out

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Attica
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18


PostPosted: Fri Dec 07, 2007 8:39 am Reply with quoteBack to top

Ok here is where i show my true noobness...


Where would that be? I know I know... i dotn belong doing php lol. But i am trying.
Find all posts by AtticaView user's profileSend private message
Attica
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18


PostPosted: Wed Dec 19, 2007 8:08 pm Reply with quoteBack to top

Can anyone explain this to me? I did a search in the files for $content.... Didnt find anything.

A hint in the right direction even?
Find all posts by AtticaView user's profileSend private message
Attica
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18


PostPosted: Thu Dec 20, 2007 7:49 pm Reply with quoteBack to top

Ok new tactic.

Is there anyone willing to fix my block so that it works correctly? I would be willing to work out a reasonable fee for their effort.

The current version of the block can be seen here: (left side)

http://ptpclan.net/index.php

If possible i would like to have the names scroll instead of just expand the block size. And would it be possible to make two different servers populate the same block side-by-side in a middle block section?

If some one could do this i would be more then willing to work out a financial reimbursement for their time.

Please contact me through PM.
Find all posts by AtticaView user's profileSend private message
jammyme
Nuke Soldier
Nuke Soldier


Joined: Jan 29, 2007
Posts: 22

Location: South Yorkshire, UK

PostPosted: Fri Dec 21, 2007 2:08 am Reply with quoteBack to top

Hey Attica Smile

You can probably sort much of this out for yourself and everything you mention is definately achievable.

You can use the sample block code (block-sample.php) below to build your block - simply remember that everything you wish to display must be added to the $content string, so modify this string to change what is displayed...

Code:
<?php
/************************************************************/
/* Sample Block (for PHP-Nuke)           www.wap2go.co.uk   */
/************************************************************/
if (eregi("block-sample.php", $_SERVER['PHP_SELF'])) {
   Header("Location: ../index.php");
   die();
   }

// Fetch Global Strings
global $nukeurl, $sitename, $prefix, $db;

// Build the $content String (displayed within your block template)
$content = "<center>"
          ."        Sample Text"
          ."</center>";
?>


Quote:
If possible i would like to have the names scroll instead of just expand the block size?

Yes, this would take a little longer though and may require some javascript?

Quote:
And would it be possible to make two different servers populate the same block side-by-side in a middle block section?

Yes, you would need to make a second block though, in which you'd have to change your script to connect to a different server.

Hope this helps, Very Happy
Find all posts by jammymeView user's profileSend private messageVisit poster's website
Attica
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18


PostPosted: Fri Dec 21, 2007 5:09 am Reply with quoteBack to top

Thanks for ther hints. I will look into it after work tonight Smile
Find all posts by AtticaView user's profileSend private message
jammyme
Nuke Soldier
Nuke Soldier


Joined: Jan 29, 2007
Posts: 22

Location: South Yorkshire, UK

PostPosted: Fri Dec 21, 2007 5:10 am Reply with quoteBack to top

Hope you get it working mate Very Happy

_________________
Phil
Project Developer

Image
Find all posts by jammymeView user's profileSend private messageVisit poster's website
Attica
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18


PostPosted: Fri Dec 21, 2007 5:29 pm Reply with quoteBack to top

I created the block using the code you gave.. Not it just make everything on my site disappear...

Sometime sit sucks so much to be a noob. Especially when trying to do something that is apparently WAYYY over my head.
Find all posts by AtticaView user's profileSend private message
Attica
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18


PostPosted: Fri Dec 21, 2007 6:28 pm Reply with quoteBack to top

Also i made a copy of the "working" block file. Renamed it, and changed the ip it looked for. Hoping to at least get both of our servers showing partially.

I found that even though i changed the name of the second one, as well as the ip... I cant run both blocks at the same time... One makes the other fail.. But if i turn one, Either one, off the other works fine..

It is a good thing i shave my head.. Cause otherwise i would have no hair...
Find all posts by AtticaView 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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.049 Seconds - 223 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::