| Author |
Message |
Attica
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18
|
Posted:
Fri Dec 07, 2007 7:22 am |
  |
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???? |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12372
|
Posted:
Fri Dec 07, 2007 8:22 am |
  |
|
     |
 |
Attica
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18
|
Posted:
Fri Dec 07, 2007 8:39 am |
  |
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. |
|
|
   |
 |
Attica
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18
|
Posted:
Wed Dec 19, 2007 8:08 pm |
  |
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? |
|
|
   |
 |
Attica
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18
|
Posted:
Thu Dec 20, 2007 7:49 pm |
  |
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. |
|
|
   |
 |
jammyme
Nuke Soldier


Joined: Jan 29, 2007
Posts: 22
Location: South Yorkshire, UK
|
Posted:
Fri Dec 21, 2007 2:08 am |
  |
Hey Attica
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,  |
|
|
    |
 |
Attica
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18
|
Posted:
Fri Dec 21, 2007 5:09 am |
  |
Thanks for ther hints. I will look into it after work tonight  |
|
|
   |
 |
jammyme
Nuke Soldier


Joined: Jan 29, 2007
Posts: 22
Location: South Yorkshire, UK
|
Posted:
Fri Dec 21, 2007 5:10 am |
  |
Hope you get it working mate  |
_________________ Phil
Project Developer
 |
|
    |
 |
Attica
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18
|
Posted:
Fri Dec 21, 2007 5:29 pm |
  |
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. |
|
|
   |
 |
Attica
Nuke Soldier


Joined: Jul 03, 2005
Posts: 18
|
Posted:
Fri Dec 21, 2007 6:28 pm |
  |
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... |
|
|
   |
 |
|
|