Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


- - - - -

Dropdown Submenu Links


  • Please log in to reply
34 replies to this topic

#1 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 08 January 2009 - 06:32 PM

This is the support topic for the tutorial Dropdown Submenu Links.  Please post here if you have any questions or feedback.

#2 benking

benking

    Newbie

  • Unverified
  • Pip
  • 6 posts
  • IP.Board Version:IPB 2.3.x

Posted 22 February 2009 - 09:47 PM

nice tutorial m8 this helped me out loads on a mod im coding :D

#3 Anique

Anique

    Newbie

  • Members
  • Pip
  • 1 posts
  • IP.Board Version:N/A

Posted 27 March 2009 - 01:14 AM

<span id="subnav"><div class='ipb-top-right-link'><a href="#subnav">Links Name</a></div>
Michael i want to post this code into header align to right how can i do this :)

#4 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 27 March 2009 - 03:52 AM

View PostAnique, on Mar 27 2009, 06:14 PM, said:

<span id="subnav"><div class='ipb-top-right-link'><a href="#subnav">Links Name</a></div>
Michael i want to post this code into header align to right how can i do this :)

Edit: I've just updated the instructions to be a bit more clear.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#5 Dead

Dead

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Anique

Posted 27 March 2009 - 04:08 AM

OK but where in global header ? i m posting my skin messing up i m also trying default skin can you tell me where to add for header ??

#6 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 27 March 2009 - 04:47 AM

View PostDead, on Mar 27 2009, 09:08 PM, said:

OK but where in global header ? i m posting my skin messing up i m also trying default skin can you tell me where to add for header ??

Edit: I've just updated the instructions to be a bit more clear.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#7 Dead

Dead

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Anique

Posted 27 March 2009 - 04:54 AM

Working Fine If we neeed into member bar then ? Before My controls

#8 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 27 March 2009 - 05:05 AM

View PostDead, on Mar 27 2009, 09:54 PM, said:

Working Fine If we neeed into member bar then ? Before My controls

I haven't tested this but try opening Edit Template HTML > all global html > member_bar

Find:
<b><a href="{$this->ipsclass->base_url}act=UserCP&amp;CODE=00" title="{$this->ipsclass->lang['cp_tool_tip']}">

Add Before:
<span id="subnav"><a href="#subnav"><b>Links Name</b></a></span>&nbsp;&middot;&nbsp;

Save Template Bit.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#9 Dead

Dead

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Anique

Posted 27 March 2009 - 08:30 AM

In my custom skin its not working michael when i clicked nothing happen why :( i was so exicted but :(

#10 DragonFly

DragonFly

    Elite Member

  • Members
  • PipPipPipPip
  • 117 posts
  • Gender:Male
  • Location:Europe >> Netherlands >> Nijmegen
  • Interests:My interests are going to my love (not my girlfriend) and to PCGround.nl (my site). I'm an Admin of Dutch Computer-Forums.

    Maybe the forums will be in English later :)
  • IP.Board Version:IPB 3.0.x
  • First Name:Nicky Hendriks

Posted 27 March 2009 - 09:17 AM

Doesn't work at me either into the member bar :(

#11 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 27 March 2009 - 06:49 PM

View Postzamg0d1, on Mar 28 2009, 02:17 AM, said:

Doesn't work at me either into the member bar :(

It's also best to move the follow code to the bottom of member_bar template bit as well.

<script type="text/javascript">
	 //<![CDATA[
   menu_build_menu(
   "subnav",
   new Array(
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>"
   ) );
	 //]]>
   </script>

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#12 DragonFly

DragonFly

    Elite Member

  • Members
  • PipPipPipPip
  • 117 posts
  • Gender:Male
  • Location:Europe >> Netherlands >> Nijmegen
  • Interests:My interests are going to my love (not my girlfriend) and to PCGround.nl (my site). I'm an Admin of Dutch Computer-Forums.

    Maybe the forums will be in English later :)
  • IP.Board Version:IPB 3.0.x
  • First Name:Nicky Hendriks

Posted 27 March 2009 - 11:54 PM

Doesn't work either :(

#13 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 28 March 2009 - 12:11 AM

View Postzamg0d1, on Mar 28 2009, 04:54 PM, said:

Doesn't work either :(

Works fine for me, you probably didn't add the code properly, what's the content of your member_bar template bit?

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#14 DragonFly

DragonFly

    Elite Member

  • Members
  • PipPipPipPip
  • 117 posts
  • Gender:Male
  • Location:Europe >> Netherlands >> Nijmegen
  • Interests:My interests are going to my love (not my girlfriend) and to PCGround.nl (my site). I'm an Admin of Dutch Computer-Forums.

    Maybe the forums will be in English later :)
  • IP.Board Version:IPB 3.0.x
  • First Name:Nicky Hendriks

Posted 28 March 2009 - 01:45 AM

View PostMichael, on Mar 28 2009, 07:11 AM, said:

Works fine for me, you probably didn't add the code properly, what's the content of your member_bar template bit?
This is my code: (I have 3 skins but I upload one of them ;))
<if="$this->ipsclass->member['id']">
<div id="userlinks">
	<p class="home"><b>{$this->ipsclass->lang['logged_in_as']} <a href="{$this->ipsclass->base_url}showuser={$this->ipsclass->member['id']}">{$this->ipsclass->member['members_display_name']}</a></b> ( <a href="{$this->ipsclass->base_url}act=Login&amp;CODE=03&amp;k={$this->ipsclass->md5_check}">{$this->ipsclass->lang['log_out']}</a> )</p>
	<p>
<else />
<div id="userlinksguest">
	<p class="pcen"><b>{$this->ipsclass->lang['guest_stuff']}</b> ( <a href="{$this->ipsclass->base_url}act=Login&amp;CODE=00">{$this->ipsclass->lang['log_in']}</a> | <a href="{$this->ipsclass->base_url}act=Reg&amp;CODE=00">{$this->ipsclass->lang['register']}</a> )
</if>
<if="$this->ipsclass->member['mgroup'] == $this->ipsclass->vars['auth_group']">
	<b><a href="{$this->ipsclass->base_url}act=reg&amp;CODE=reval">{$this->ipsclass->lang['resend_val']}</a></b> &middot;
</if>
<if="$this->ipsclass->member['g_access_cp'] == 1 AND $this->ipsclass->vars['security_remove_acp_link'] == 0">
	<b><a href="{$this->ipsclass->vars['_admin_link']}" target="_blank">{$this->ipsclass->lang['admin_cp']}</a></b> &middot;
</if>
<if="$this->ipsclass->member['has_blog'] == 1">
	<b><a href="{$this->ipsclass->base_url}automodule=blog&amp;req=showblog&amp;mid={$this->ipsclass->member['id']}">{$this->ipsclass->lang['myblog']}</a></b> &middot;
</if>
<if="$this->ipsclass->member['has_gallery'] == 1">
	<b><a href="{$this->ipsclass->base_url}autocom=gallery&amp;req=user&amp;user={$this->ipsclass->member['id']}">{$this->ipsclass->lang['submenu_albums']}</a></b> &middot;
</if>
<if="$this->ipsclass->member['id']">
	<b><a href="{$this->ipsclass->base_url}act=UserCP&amp;CODE=00" title="{$this->ipsclass->lang['cp_tool_tip']}">{$this->ipsclass->lang['your_cp']}</a></b> &middot;&nbsp;<a href="{$this->ipsclass->base_url}act=Search&amp;CODE=getnew">{$this->ipsclass->lang['view_new_posts']}</a>
	<if="$this->ipsclass->member['g_view_board']">
		&middot;&nbsp;<a href="java script:buddy_pop();" title="{$this->ipsclass->lang['bb_tool_tip']}">{$this->ipsclass->lang['l_qb']}</a>
	</if>
	&middot;&nbsp;<a href="java script:friends_pop();">{$this->ipsclass->lang['gbl_my_friends']}</a>	
</if>
<if="$this->ipsclass->member['g_use_pm'] AND $this->ipsclass->member['members_disable_pm'] == 0">
	&middot;&nbsp;<a href="{$this->ipsclass->base_url}act=Msg&amp;CODE=01">{$msg['TEXT']}</a>
</if>
	</p>
</div>


This is my content without any edit ;)

#15 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 28 March 2009 - 02:00 AM

Looks fine to me, make sure your adding the javascript code as well to the member_bar template bit.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#16 DragonFly

DragonFly

    Elite Member

  • Members
  • PipPipPipPip
  • 117 posts
  • Gender:Male
  • Location:Europe >> Netherlands >> Nijmegen
  • Interests:My interests are going to my love (not my girlfriend) and to PCGround.nl (my site). I'm an Admin of Dutch Computer-Forums.

    Maybe the forums will be in English later :)
  • IP.Board Version:IPB 3.0.x
  • First Name:Nicky Hendriks

Posted 28 March 2009 - 02:34 AM

It works at this skin _O_

EDIT: Is there a way to make a border with background in a dropdown menu?

Edited by zamg0d1, 28 March 2009 - 02:41 AM.


#17 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 28 March 2009 - 02:35 AM

View Postzamg0d1, on Mar 28 2009, 07:34 PM, said:

It works at this skin _O_

Which skin would that be?

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#18 DragonFly

DragonFly

    Elite Member

  • Members
  • PipPipPipPip
  • 117 posts
  • Gender:Male
  • Location:Europe >> Netherlands >> Nijmegen
  • Interests:My interests are going to my love (not my girlfriend) and to PCGround.nl (my site). I'm an Admin of Dutch Computer-Forums.

    Maybe the forums will be in English later :)
  • IP.Board Version:IPB 3.0.x
  • First Name:Nicky Hendriks

Posted 28 March 2009 - 02:47 AM

Blue Beaches

#19 Dead

Dead

    Advanced Member

  • Members
  • PipPipPip
  • 35 posts
  • IP.Board Version:IPB 2.3.x
  • First Name:Anique

Posted 28 March 2009 - 04:23 AM

I m adding more links into it like then its not working only working for 3 links one more thing in internet expoler its not working in firefox working fine :)

<script type="text/javascript">
	 //<![CDATA[
   menu_build_menu(
   "subnav",
   new Array(
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>"
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>"
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>"
   ) );
	 //]]>
   </script>


#20 Michael

Michael

    Management

  • Management
  • 3,129 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 28 March 2009 - 04:26 AM

Yeah IE is a bit temperamental, you need to add a comma after every link (except the last one) for example.

<script type="text/javascript">
	 //<![CDATA[
   menu_build_menu(
   "subnav",
   new Array(
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
   img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>"
   ) );
	 //]]>
   </script>

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users