Jump to content


Photo

Navigation Block


  • Please log in to reply
7 replies to this topic

#1 RisingPhoenix

RisingPhoenix

    Advanced Member

  • Administrators[Admin]
  • PipPipPip
  • 249 posts
  • Gender:Male
  • Location:Fort Benning, GA
  • Interests:I am currently in the US Army. I am not a coder. I am really familiar with Unreal Portal and IPB. So if it isn't in reference to something I have on my site ba4life.com then there isn't much I can do to help you.<br /><br />I am a normal user like most of you. Please don't invade my personal life by asking me questions that can already be found on this website.

Posted 18 April 2007 - 06:31 PM

Navigation Block

Find the following:
Admin CP > Unreal Mods > Add Custom Block

Then Enter the following:

Block Name:navigation
The name has to be lowercase and only one word for it to work


Block Title: Navigation
This is the title of the block that's shown on the site


Block PHP/HTML:

<?php

echo <<<EOF

<a href='{$this->ipsclass->base_url}act=idx'>Forum</a><br/>
<a href='{$this->ipsclass->base_url}act=search'>Search</a><br/>
<a href='{$this->ipsclass->base_url}act=members'>Member List</a><br/>
<a href='{$this->ipsclass->base_url}act=help'>Help</a><br/>
<a href="http://www.yourlink.com">Your links names</a><br/>
EOF;
?>

Be sure to put the php code in between the <?php and ?> tags

Posted Image
MultiGaming Clan Playing Games since 1997


#2 Andrew

Andrew

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 07 July 2007 - 06:29 PM

i did that and i get this error when trying to view the portal navigation block

Parse error: syntax error, unexpected '<' in /home/k1ckclan/public_html/forums/sources/action_public/uportal.php(845) : eval()'d code on line 2

and i went to the file and went to line 845 and i see this there.

eval("?>".$block['html']."<?php\n");

i am running 2.3.1 and unreal portal 2.2.0

#3 HotLikeFire

HotLikeFire

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 05 April 2008 - 03:06 PM

I get the same error as the poster above me. Any way to fix this?

#4 Hobbes

Hobbes

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 02 June 2008 - 11:04 AM

Thxs for this great block and for update !

#5 cricket

cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 308 posts

Posted 02 August 2008 - 03:34 PM

i did that and i get this error when trying to view the portal navigation block

Parse error: syntax error, unexpected '<' in /home/k1ckclan/public_html/forums/sources/action_public/uportal.php(845) : eval()'d code on line 2

and i went to the file and went to line 845 and i see this there.

eval("?>".$block['html']."<?php\n");

i am running 2.3.1 and unreal portal 2.2.0



I get the same error as the poster above me. Any way to fix this?


Fixed the code in the first post. Please re-copy and update your navigation block.

Posted Image


#6 getit

getit

    Member

  • Members
  • PipPip
  • 10 posts

Posted 31 January 2009 - 04:13 AM

i worked little more and came with this :)

<?php

echo <<<EOF

<img src=" http://www.yoursite.com/download/forum.png"/><a href='{$this->ipsclass->base_url}act=idx'><b> Forum</b></a><br/><br/>

<img src=" http://www.yoursite.com/download/calendar.png"/><a href='{$this->ipsclass->base_url}act= calendar '><b> Calandar</b></a><br/><br/>

<img src=" http://www.yoursite.com/download/members.png"/><a href='{$this->ipsclass->base_url}act=members'><b> Members</b></a><br/><br/>

<img src=" http://www.yoursite.com/download/arcade.png"/><a href='{$this->ipsclass->base_url} autocom=arcade '><b> Arcade</b></a><br/><br/>

<img src=" http://www.yoursite.com/download/music.png"/><a href="http://www.yoursite.com"><b> yoursite</b></a><br/><br/>

<img src=" http://www.yoursite.com/download/search.png"/><a href='{$this->ipsclass->base_url}act= search '><b> Search</b></a><br/><br/>

<img src=" http://www.yoursite.com/download/help.png"/><a href='{$this->ipsclass->base_url}act=help'><b> Help</b></a><br/><br/>

EOF;
?>

i used iamge size of 16 x 16 px

hope you people like it :)

#7 getit

getit

    Member

  • Members
  • PipPip
  • 10 posts

Posted 31 January 2009 - 04:13 AM

i want to use some offset margine in navigation block ,, i am not php master can anybody do that here plz?

#8 cricket

cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 308 posts

Posted 17 February 2009 - 06:57 PM

What do you mean exactly? Like a left margin? if so, then you can surround your html with
<div style='margin-left: 100px'> YOUR HTML HERE </div>

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users