Tricked Out News

Welcome to TON. This site is dedicated to development of addons for the RavenNuke™ CMS
Follow Us:
Tricked Out Mods: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to center NukeNav
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> RavenNuke
View previous topic :: View next topic  
Author Message
bestbuildpc
I might as well work here
I might as well work here


Joined: Nov 16, 2009
Posts: 61

Reputation: 20.5Reputation: 20.5

PostPosted: Wed Oct 06, 2010 3:15 am 
Post subject: How to center NukeNav
Reply with quote

Hello everybody

I was checking some files and I couldn't find how to center the Nav Menu. Any suggestion?

Thanks in advance. Wink
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Fri Oct 08, 2010 8:49 am 
Post subject:
Reply with quote

It really depends on the theme. CSS based themes will probably need to have a defined width for the div and use something like margin: 0 auto; in your css.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
bestbuildpc
I might as well work here
I might as well work here


Joined: Nov 16, 2009
Posts: 61

Reputation: 20.5Reputation: 20.5

PostPosted: Fri Oct 08, 2010 9:18 am 
Post subject:
Reply with quote

I am running RN-Green, can you send the modify file so I can center the NukeNav menu. Question
  
Back to top
View user's profile Send private message Visit poster's website
bestbuildpc
I might as well work here
I might as well work here


Joined: Nov 16, 2009
Posts: 61

Reputation: 20.5Reputation: 20.5

PostPosted: Sat Oct 09, 2010 10:49 am 
Post subject:
Reply with quote

BUMP
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Sat Oct 09, 2010 2:19 pm 
Post subject:
Reply with quote

As soon as I have time I will work on it.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
kguske
Blingaholic
Blingaholic


Joined: May 19, 2009
Posts: 24

Reputation: 400.2Reputation: 400.2
votes: 1

PostPosted: Sat Oct 09, 2010 10:29 pm 
Post subject:
Reply with quote

bestbuildpc, why not take a look at the themes on ravennuke.com? If you use Firefox, the JSView addon will allow you to view / download the CSS quite easily on a theme that has the nukeNAV menu centered.
  
Back to top
View user's profile Send private message
bestbuildpc
I might as well work here
I might as well work here


Joined: Nov 16, 2009
Posts: 61

Reputation: 20.5Reputation: 20.5

PostPosted: Sun Oct 10, 2010 4:28 am 
Post subject:
Reply with quote

Hi kguske, thanks for your advice. I didn't know this addon. I will see what I can do since bobby is busy at the time. Embarassed

Note: kguske, I checked ravennuke.com and it doesn't have the to menu on the center. it has it on the left. I will see if I solve it. Another think. I tried already and it didn't work. This modification requires theme.php
  
Back to top
View user's profile Send private message Visit poster's website
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Sun Oct 10, 2010 9:28 am 
Post subject:
Reply with quote

Try replacing your theme.php function themeheader with this:

Code:
function themeheader() {

    global  $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $anonymous, $topic, $name, $sel, $db, $ThemeSel, $nukeNAV;
    cookiedecode($user);
echo "<body>";
   if ($banners) {
        echo ads(0);
    }
   
if (is_admin($admin)) {   
if (defined('INDEX_FILE')) {
    echo '<div id="header"><div id="header_inner" class="fixed"><div id="logo"><span><img src="themes/'.$ThemeSel.'/images/logo.gif" alt="" border="0" /></span></div></div><div style="width:730px; margin: 0 auto;">'.$nukeNAV.'</div><br style="clear: left" /></div><div id="main"><div id="main_inner" class="fixed"><div id="primaryContent_3columns">';
  }else{
    echo '<div><div id="header"><div id="header_inner" class="fixed"><div id="logo"><span><img src="themes/'.$ThemeSel.'/images/logo.gif" alt="" border="0" /></span></div></div><div style="width:730px; margin: 0 auto;">'.$nukeNAV.'</div><br style="clear: left" /></div><div id="main"><div id="main_inner" class="fixed"><div id="primaryContent_2columns">';   
  }
}else{
   
    if (defined('INDEX_FILE')) {
    echo '<div id="header"><div id="header_inner" class="fixed"><div id="logo"><span><img src="themes/'.$ThemeSel.'/images/logo.gif" alt="" border="0" /></span></div></div><div style="width:500px; margin: 0 auto;">'.$nukeNAV.'</div><br style="clear: left" /></div><div id="main"><div id="main_inner" class="fixed"><div id="primaryContent_3columns">';
  }else{
    echo '<div><div id="header"><div id="header_inner" class="fixed"><div id="logo"><span><img src="themes/'.$ThemeSel.'/images/logo.gif" alt="" border="0" /></span></div></div><div style="width:500px; margin: 0 auto;">'.$nukeNAV.'</div><br style="clear: left" /></div><div id="main"><div id="main_inner" class="fixed"><div id="primaryContent_2columns">';   
  }}
 
   
     if (defined('INDEX_FILE')) {

    echo '<div id="columnA_3columns">';
   }else{
       echo '<div id="columnA_2columns">';
  }
   
}


You may need to adjust the width some, but this should give you a starting point.
  
Back to top
View user's profile Send private message
bestbuildpc
I might as well work here
I might as well work here


Joined: Nov 16, 2009
Posts: 61

Reputation: 20.5Reputation: 20.5

PostPosted: Sun Oct 10, 2010 12:31 pm 
Post subject:
Reply with quote

How smart you are my friend. it is working perfect. Thank you very much. check it out at bestbuildpc.com Very Happy

I sent u several pms for the social icons.
  
Back to top
View user's profile Send private message Visit poster's website
kguske
Blingaholic
Blingaholic


Joined: May 19, 2009
Posts: 24

Reputation: 400.2Reputation: 400.2
votes: 1

PostPosted: Mon Oct 11, 2010 11:33 am 
Post subject:
Reply with quote

If you register for an account on ravennuke.com, you can change the theme after logging in. I believe one or more themes included with RavenNuke have nukeNAV centered.

Also, aren't the social icons available for download here or on spasticdonkey's site?
_________________
nukeSEO(tm)
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> RavenNuke All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
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
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©