NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: GiLli
Today: 2
Yesterday: 1
Overall: 15104

Visitation:
Guests: 506
Members: 1
Total: 507


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Game Quest Online - Games and more!
Game Quest Online - Games and more!

NukeResources :: View topic - Help with block
NukeResources Forum Index

NukeResources Forum Index -> Random Thoughts -> Help with block
Post new topic  Reply to topic    View previous topic :: View next topic 
Help with block
PostPosted: Sun Aug 20, 2006 9:34 am Reply with quote
Astroman
Resourceful
Resourceful
 
Joined: Apr 01, 2005
Posts: 71




I'm trying to make a block for some php ad script but I think I'm being a total spaz or something, I've tried all kinds of variations of this:

I'm trying to make a block for some php ad script but I think I'm being a total spaz or something, I've tried all kinds of variations of this:

<?php

if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}


ob_start();
include ("textLinkAds.php");
$tla_ads = ob_get_contents();
ob_end_clean();
$content = "<table border=1 bordercolor=#008040 cellpadding=5>";
$content .= "<tr><td align=center>";
$content .= $display1;
$content .= "</a></td></tr>";
$content .= "</table>";
?>



And I have this in a file called textLinkAds.php in my root folder:

Forums wont let me post the code...

http://www.terrypratchettbooks.org/texlinkads.txt

I just can't get it to work but I'm sure it's very simple. I read lots of other threads about it that were linked to in the php section but, like I said, I'm a bit of a spaz with this. Smile


I just can't get it to work but I'm sure it's very simple. I read lots of other threads about it that were linked to in the php section but, like I said, I'm a bit of a spaz with this. Smile

_________________
Dreams - Terry Pratchett - Arabian - Transdniestria
View user's profile Send private message
PostPosted: Thu Aug 24, 2006 1:51 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Well your file output is going to $tla_ads, but the block output wants to read $display1

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Mon Aug 28, 2006 11:28 am Reply with quote
Astroman
Resourceful
Resourceful
 
Joined: Apr 01, 2005
Posts: 71




Sorry I don't really know what you mean, could you type it here for me, altering the code I posted?

_________________
Dreams - Terry Pratchett - Arabian - Transdniestria
View user's profile Send private message
PostPosted: Mon Aug 28, 2006 12:49 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




I'm saying its reading the block input into $tla_ads
However the output is looking for the variable $display1

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Mon Aug 28, 2006 1:29 pm Reply with quote
Astroman
Resourceful
Resourceful
 
Joined: Apr 01, 2005
Posts: 71




I still don't understand it though, I tried different ways of writing it but I don't really know what I'm doing _ i just copied thye code from other threads and tired to guess what goes where, without understanding what any of it means.

_________________
Dreams - Terry Pratchett - Arabian - Transdniestria
View user's profile Send private message
PostPosted: Mon Sep 11, 2006 12:30 pm Reply with quote
Dove
Resourceful
Resourceful
 
Joined: Mar 17, 2004
Posts: 140
Location: USA




Try replacing where it says:
Code:
$content .= $display1;


to:

Code:
$content .= $tla_ads;


and place your textLinkAds.php in your blocks folder
View user's profile Send private message
PostPosted: Mon Sep 11, 2006 2:07 pm Reply with quote
Astroman
Resourceful
Resourceful
 
Joined: Apr 01, 2005
Posts: 71




Thanks, I'm sure I tired that but it seems to work. It seems to work with the textlinkads.php in the root though, not in the blocks folder. Smile

_________________
Dreams - Terry Pratchett - Arabian - Transdniestria
View user's profile Send private message
Help with block
 NukeResources Forum Index -> Random Thoughts
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 132 unique hit(s) in the past 24 hours.
Forums ©
NukeZone Hosting - Fast, Affordable and Dependable


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.27 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::