1
stumpy
user drop down box
  • 2006/3/2 11:19

  • stumpy

  • Just popping in

  • Posts: 21

  • Since: 2005/5/11


I am working on newbb_thread.html and the drop down box


Originally it was the mammouth:

<div class="dropdown">
<{if $menumode eq 0}>

<select
name="poster" id="poster"
class="menu"

onchange="if(this.options[this.selectedIndex].value.length >0 ) { window.document.location=this.options[this.selectedIndex].value;}"
>
<option value=""><{$topic_post.poster.name}></option>
<{foreach item=bar from=$topic_post.poster.userbar}>
<{if $bar}>
<option value="<{$bar.link}>"><{$bar.name}></option>
<{/if}>
<{/foreach}>
</select>

<{elseif $menumode eq 1}>
<div id="poster<{$topic_post.post_id}>" class="userbar">
<table><tr><td>
<{foreach item=bar from=$topic_post.poster.userbar}>
<{if $bar}>
<a class="item" href="<{$bar.link}>"><{$bar.name}></a>
<{/if}>
<{/foreach}>
</td></tr></table>
</div>
<script type="text/javascript">document.getElementById("poster<{$topic_p ost.post_id}>").onmouseout = closeMenu;</script>
<div class="menubar"><a href="" onclick="openMenu(event, 'poster<{$topic_post.post_id}>');return false;"><{$topic_post.poster.name}></a></div>

<{elseif $menumode eq 2}>
<div class="userbar">
<ul>
<li>
<div class="item"><{$topic_post.poster.name}></div>
<ul>
<li><table><tr><td>
<{foreach item=bar from=$topic_post.poster.userbar}>
<{if $bar}>
<div class="item"><a href="<{$bar.link}>"><{$bar.name}></a></div>
<{/if}>
<{/foreach}>
</td></tr></table></li>
</ul>
</li>
</ul>
</div>
<{/if}>
</div>




The link that this is refering to is currently a drop down menu bar (class="menubar") within the script. This leads to a pull down menu that only has the persons name in it because I've disabled everything else! I want to change this for a simple link to their user profile. So all you'd see you be a white link. The class=white is set up in the css fine - that's not the problem. The problem is getting rid of the menu bar, and then making the link actually link to the user profile. Deleting the class from the div description doesn't make a difference.

Something close to (but this won't work :o( ):

<div class="menubar"><a href="../../modules/profile/userinfo.php?uid=$topic_post.poster.uid" class="white"><{$topic_post.poster.name}></a></div>

Maybe (but again doesn't work):

<div class="comTitle"><a href="../../userinfo.php?uid=<{$topic_post.poster_id}>#uid<{$topic_ post.poster_id}>"><{$topic_post.poster.name}></a></div>

anyone any idea what I am doing wrong?

Login

Who's Online

235 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits