PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
gizmo2
Hangin' Around


Joined: Sep 15, 2007
Posts: 34
Location: Germany

PostPosted: Thu Jun 11, 2009 1:52 am Reply with quote Back to top

I'm sorry for asking such a simple question but i can't get it to work myself and haven't found it here (i'm sure i have tried the wrong words).

I need to write my own Site Navigation-block. Therefor i need the basical code. I tried:

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

$content  .=  "<p><a href="index.php">Startseite</a></p>"
?>


What is the mistake?

Thanks!
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Jun 11, 2009 3:00 am Reply with quote Back to top

Quote:

$content = '<p><a href="index.php">Startseite</a></p>';


The first variable to content does not need a period, as this is considered concatenating a string. Also you are trying to use double quotes inside double quoted strings - you should use single quotes. Finally, you do not end your line properly with a semicolon.

I suggest you read up more on basic PHP tutorials. It will help you a lot as you start to work with phpNuke.
View user's profile Send private message Visit poster's website
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Thu Jun 11, 2009 5:47 am Reply with quote Back to top

If it is just a simple navigation block you could also create it through the Block Admin interface.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum