Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (id242), 24 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/23/08
Posts: 10
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#186447 - 06/12/07 04:39 PM Edit Template File With My Own Custom DropDown Menu
Justin1524 Offline
newbie
Registered: 08/17/06
Posts: 30
I'd like to edit one of the template files to include a custom drop down but I'm having a bit of trouble modifying this to do what I want.

 Code:
<table width="100%" class="t_standard">
<tr>
<td class="tdheader" style="cursor: pointer" id="options_control" onclick="showHideMenu('options_control','options_popup')">
{$lang.FORUM_OPTIONS} <img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</td></tr>
</table>
</td>
</tr>
</table>


So I'm not sure where the array $lang.FORUM_OPTIONS is stored. Basically I want to create my own array of links.

Anyone done this or can help me out? If so, post your customer DropDown Menu code here. Thanks.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#186448 - 06/12/07 05:02 PM Re: Edit Template File With My Own Custom DropDown Menu [Re: Justin1524]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
\languages\xxxxxx\postlist.php
Top
#186456 - 06/12/07 06:44 PM Re: Edit Template File With My Own Custom DropDown Menu [Re: Ian]
Justin1524 Offline
newbie
Registered: 08/17/06
Posts: 30
I guess not really what I wanted. Just interested in some code that I can insert in the template to do a dropdown menu with the same look and feel but where I can edit the links to my liking. Anyone done this? Copy/paste your code in this thread...
Top
#186462 - 06/12/07 07:39 PM Re: Edit Template File With My Own Custom DropDown Menu [Re: Justin1524]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
You'd be better off with modification requests at UBBDev as most of the people over there specialize in tearing the UBB apart
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#186529 - 06/13/07 12:06 PM Re: Edit Template File With My Own Custom DropDown Menu [Re: Gizmo]
Justin1524 Offline
newbie
Registered: 08/17/06
Posts: 30
I looked and couldn't find anything. Hmm, I'll keep trying to figure it out. Shouldn't be too hard.
Top
#186530 - 06/13/07 12:58 PM Re: Edit Template File With My Own Custom DropDown Menu [Re: Justin1524]
Justin1524 Offline
newbie
Registered: 08/17/06
Posts: 30
Ok got it working! I edited the activetopics template file because I decided I want this to be my homepage view. I wanted a dropdown that allowed users to post a new topic to whichever forum they wanted. Here's the code in case anyone else wants to do this.

 Code:
<!--BEGIN CUSTOM MENU-->

<div id="mymenu_popup" style="display: none;">
<table class="popup_menu">
<tr><td nowrap='nowrap' class="popup_menu_header">
Which Forum?
</td></tr>
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board=8">Everything Audio</a>
</td></tr>
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board=2">The Lounge</a>
</td></tr>
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board=3">Buy and Sell</a>
</td></tr>
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board=4">Tips and Tricks</a>
</td></tr>
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board=5">Listen To My Recording</a>
</td></tr>
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=newpost&Board=6">DA7 Support</a>
</td></tr>
</table></div>
<script type="text/javascript">registerPopup("mymenu_popup");</script>

<!--END CUSTOM MENU-->


Then insert this where you want the dropdown to appear

 Code:
<td width="13%" class="tdheader" style="cursor: pointer;" id="mymenu_control" onclick="showHideMenu('mymenu_control','mymenu_popup')">
<a href="javascript:void(0);"><img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/posticon.gif" alt="" border="0" /> New Topic</a>
<img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" /> 
</td>


Wasn't too hard to figure out. You could do this anywhere.

You can see a working example here: http://www.audiotalkback.com

Upper left hand corner where it says New Topic on blue bar.

Top
#186531 - 06/13/07 02:08 PM Re: Edit Template File With My Own Custom DropDown Menu [Re: Justin1524]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Well done \:\)
Top
#186537 - 06/13/07 05:59 PM Re: Edit Template File With My Own Custom DropDown Menu [Re: Ian]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
I would use that as a portal / home page.

As above well done ;\)
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
Today at 12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10491 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image