Jump to content


New Tab


9 replies to this topic

#1 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 11 September 2009 - 12:04 PM

If you found a problem or a miss type please feel free to let me know, I think a PM would be better to keep the topic as small as possible.
A cheat sheet would have been nice, But could not find one. <_<
But I'll make one for you guys because I love Uportal. Iv also only tested this on -snip list is few posts down.

First off for my example I use "Home" for my Portal name, but you can replace it with what ever you like!

Step 1:
1. Go into your ACP under "Look & Feel" Click "IP.Board" to "Manage Templates & CSS"
1a. Than go into "Global Templates" > "globalTemplate"
1b. Find the line that says: (this is only part of the code just in-case they change it later)
['forums']

1c. Above that code add: (Might want to look at "1d." to make sure you do it right)
<if test="!ipsRegistry::$applications['uportal']['app_hide_tab']"><li id='nav_discussion' class='left {parse variable="uportalActive"}'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}'>Home</a></li></if>

You can change "Home" to what you want to call the tab.
If you did not edit your site making portal your homepage do this code instead.
<if test="!ipsRegistry::$applications['uportal']['app_hide_tab']"><li id='nav_discussion' class='left {parse variable="uportalActive"}'><a href='{parse url="app=uportal" seotitle="false" base="public"}' title='{$this->lang->words['homepage_title']}'>Home</a></li></if>


1d. So you should have something that looks like this by now (being the NEW CODE and Than the one you found! Line 2 could be a bit different base on the skin the above code should still work)
						<if test="!ipsRegistry::$applications['uportal']['app_hide_tab']"><li id='nav_discussion' class='left {parse variable="uportalActive"}'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}'>Home</a></li></if>
						<if test="!ipsRegistry::$applications['forums']['app_hide_tab']"><li id='nav_discussion' class='left {parse variable="forumActive"}'><a href='{parse url="act=idx" seotitle="false" base="public"}' title='{$this->lang->words['go_to_discussion']}'>{$this->lang->words['discussion']}</a></li></if>

Your forums should look like this now. (You will notice when you click the new tab it don't highlight, but it highlights the Uportal "Home" tab This is normal you are only on step 1.)
Posted Image

Edited by dv2236, 07 October 2009 - 11:03 AM.

Posted Image

#2 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 11 September 2009 - 12:13 PM

Now to Fix the make your new tab highlight.
Step 2:
2. -Snip, Go back to the line of code you added in step 1.
2a. Should be something like this, if you got alittle lost.
<if test="!ipsRegistry::$applications['uportal']['app_hide_tab']"><li id='nav_discussion' class='left {parse variable="uportalActive"}'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}'>Home</a></li></if>

2b. add this code above it.
{parse variable="uportalActive" default="" oncondition="IPS_APP_COMPONENT == 'uportal'" value="active"}

So now you should have something like this. This being the new code and than the last one you added.
						{parse variable="uportalActive" default="" oncondition="IPS_APP_COMPONENT == 'uportal'" value="active"}
						<if test="!ipsRegistry::$applications['uportal']['app_hide_tab']"><li id='nav_discussion' class='left {parse variable="uportalActive"}'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}'>Home</a></li></if>

Your forums should look something like this now.
Posted Image

Edited by dv2236, 07 October 2009 - 10:32 AM.

Posted Image

#3 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 11 September 2009 - 12:34 PM

Now to just get that other tab to go away. <_< Hide it don't seem to work, it hide's both. :wacko: But you can make the name blank, That should work for now. :)

Step 3:
3. Go into ACP or "System" tab / "My Dashboard"
3a. go into "Manage Applications & Modules" Should be able to see it at "My Dashboard"
3b. scroll down to "Third Party Add Ons" you should than see "Unreal Portal" Don't click the name
3c. Click the drop down button on the right hand side click "Edit Application Details..."
3d. Ok now you want to find the "Application Public Title" and make the box blank/empty

Now you should have something like this
Posted Image

Will that's about it hop it helps someone out.
Posted Image

#4 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 11 September 2009 - 01:05 PM

Custom skins tested on, and works.
  • Midnight Glow, Might want to remove this line of code it shows a blank tab that tacks me to homepage.
    						<if test="showhomeurl:|:$this->settings['home_url']">
    							<li id='nav_home' class='left'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li>
    						</if>
    

  • iDark
  • CleanCut, Works but the names are not the same for finding it. I'll edit first post to work with both.


I'll just edit this post as I test more skins.
You can also check out what it looks like Live on my website if you like.

Edited by dv2236, 07 October 2009 - 11:04 AM.

Posted Image

#5 justforthesake

    Member

  • Members
  • PipPip
  • 17 posts

Posted 12 September 2009 - 08:27 AM

this sounds great!
I'll be sure to make use of it once I install IPB 3 and UP..

but please tell me, isn't there an easier way to re-order the tabs from the admin panel?

#6 BlackburnRavers

    Member

  • Members
  • PipPip
  • 13 posts

Posted 14 September 2009 - 06:43 AM

ah respect, i have been trying to do this for ages. Thanks for letting us know how to do it ;)

#7 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 22 September 2009 - 08:24 PM

View Postjustforthesake, on 12 September 2009 - 08:27 AM, said:

this sounds great!
I'll be sure to make use of it once I install IPB 3 and UP..

but please tell me, isn't there an easier way to re-order the tabs from the admin panel?

I'm sorry it seems my email on this website is set to a old one that got hijacked a long time ago, sorry for my late reply.

You can kinda re-order the tabs around like the forums but it does it by groups like Root stuff as in forums etc, than extras like gallery, and than Third Party app like Uportal.

View PostBlackburnRavers, on 14 September 2009 - 06:43 AM, said:

ah respect, i have been trying to do this for ages. Thanks for letting us know how to do it ;)

Thanks I'm glade it was usfull! :)
Posted Image

#8 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 07 October 2009 - 10:19 AM

I just want it to be noted.
I just updated my forums to 3.0.4, and I could not use the home tab anymore. don't forget to set uportal back as the default page.
root forums folder > initdata.php
Find:
	define( 'IPS_DEFAULT_PUBLIC_APP', 'forums' );

Change to:
	define( 'IPS_DEFAULT_PUBLIC_APP', 'uportal' );

this can also be found in the install docs of uportal.

I'm also about to try this new skin CleanCut that I found in my download section on the IPB site.
Posted Image

#9 Playa

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 28 July 2010 - 11:33 AM

I DONT UNDERSTAND WAT ACP IS OR WERE IT IS

#10 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 28 July 2010 - 12:48 PM

ACP =Admin Control Panel.
Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users