The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Two small code changes
Quote:
Also the second problem (which isnt a big deal) is that when i click anywhere on the line that the posters name is on the postbit legacy, the box comes up with find more posts by this user etc. I dont want it to do this, only when the user clicks on the actual name not the line do i want the box to come up. Can anyone help me with either of these? James |
#2
|
||||
|
||||
A div tag is a block element, thus it goes to the next line (as you are seeing). Try using span tags instead of the div tags and see if that works.
As for the second one, your javascript is running on the div element "postmenu_$post[postid]". So, if you click anywhere inside that div element, you are running the javascript "vbmenu_register("postmenu_$post[postid]", true)" |
#3
|
||||
|
||||
Thank you for the reply. I tried two different things, and i couldnt get the result with either one.
Attempt One (span for date): Quote:
Attempt Two (Span for both the name and date): Quote:
James |
#4
|
||||
|
||||
Try this:
Code:
$template_hook[postbit_messagearea_start] <!-- icon and title --> <span class="right"> $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if> </span> <span class="left"> <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername] </if> </span> |
#5
|
||||
|
||||
Now they are on the same line, but the date is on the left in front of the name, like this:
08-25-2007 aceofspades --------------- Added at 21:52 --------------- Got this working |
#6
|
||||
|
||||
Whoops, I didn't bother to look at your span tags. Do you have a class called right and left? If not, <span style="float:right"> should be written instead of <span class="right">
|
#7
|
||||
|
||||
Yeah thats how i got it working in the end.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|