Go Back   vBulletin Setup > General Forums > General Discussion


Please Register to get full access to the forums.
Post New Thread  Reply



#1   12-20-2006, 12:10 AM
Posts: n/a
Help with a quick edit on a Theme (SMF)


I have F-Body Online - Index with a m3talc0re theme "Musiconica". I want to add a few links in the top under the header, but in a bit different way. Just like this:


I am not a good coder, AT ALL. If someone can give me the code to be able to add another pull down like that I would be extremely happy.

I want it for this; I have installed the custom action mod, and want to use this pulldown to show the links to those pages like these:
History of the Camaro

So someone can click this link, and then it shows a pulldown, with the "Camaro history" link and others. I can fill in the links no problem, i just dont know where to start witht he code, and I can't even find it in the files.


So it would pulldown, then i can put a link for that page, and others in it. Again, I really really suck :-[ at coding, so If someone could spell this out for me I'd be extremely happy


Heres the code for the original
Also, I don't want the people to have to be logged in to view it.
Code:
	// How about the [quick links] button?

	if ($context['user']['is_logged'])

		echo '

				<td class="main-navigation"><a href="', $scripturl, '#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottomright\')">Quick Links<img src="', $settings['images_url'], '/search_down.gif" width="10" height="10" /></a>

				<!--Do not remove outer most DIV tag with id="quicklinks"-->

<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">

	<table width="100%" border="0" cellpadding="0" cellspacing="1">

		<tr>

			<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Links</td>

		</tr>

		<tr>

			<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=unread">New Posts</a></td>

		</tr>

		<tr>

			<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=unreadreplies">New Replies</a></td>

		</tr>

		<tr>

			<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">User Settings</td>

		</tr>

		<tr>

			<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=profile">View Profile</a></td>

		</tr>

		<tr>

			<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=account">Account Settings</a></td>

		</tr>

		<tr>

			<td height="20" align="left" valign="middle" class="windowbg"><a href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=forumProfile">Edit Profile</a></td>

		</tr>

	</table>

<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks\'); return false">[Close]</a></div>



</DIV>

Quote   |  



#2   12-20-2006, 12:16 AM
Posts: n/a


Quote:
<a href="', $scripturl, '#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottomright\')">
Quote:
id="quicklinks"
That link is calling the id quicklinks. The onClick is the event that is opening the menu (on click open quicklinks, not sure what bottomright is doing). I don't know what the onclick is calling exactly though

There should be a javascript funtion called overlay(); See if you can find it in the template or external javascript files.
Quote   |  
Post New Thread  Reply
vBulletin Setup > General Forums > General Discussion


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up a theme. Protic vBulletin Questions 2 10-30-2007 05:24 PM
Which files I need to edit to edit the default RSS feed? Yogesh Sarkar vBulletin Questions 3 08-20-2007 11:32 PM
where do I edit to remove these ? Brandon vBulletin Questions 1 01-13-2007 03:56 PM
edit joh vBulletin Questions 7 12-07-2006 05:40 PM


All times are GMT -6. The time now is 05:42 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory