The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Postbit Legacy Question
I need a push, as I know what I did is entirely wrong, but it works - just not the way I suspect it SHOULD be done.
In my postbit legacy I added search option to members posts and threads. Works fine. It looked rather plain to me, so I decided to toss in some images. This is where I think I did it wrong. It does work, but am hoping someone has a better way of doing this. Here is what I am using: Code:
<dt>{vb:rawphrase posts}</dt> <dd><div class="divspoiler"><img src= "/images/postbitposts.png"> <a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw post.userid}&contenttype=vBForum_Post&showposts=1" title="View {vb:raw post.username}'s posts">{vb:raw post.posts}</a></dd> Code:
<dt>{vb:rawphrase threads}</dt> <dd><div class="divspoiler"><img src= "/images/post.png"> <a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw post.userid}&contenttype=vBForum_Threads&showthreads=1" title="View {vb:raw post.username}'s startedthreads">{vb:raw thread.threads}{vb:rawphrase find_all_started_threads}</a></dd> The end result looks like the attachment. Is there a better way I should do this? Thanks in advance for any replies. |
#2
|
||||
|
||||
I don't see anything inherently wrong with it, other than your code has a few minor errors which would prevent it from validating. You might also want to make the entire image along with the text a link, but that's up to you. Particularly, you'll want to fix that <img> tag:
Code:
<dt>{vb:rawphrase threads}</dt> <dd> <div class="divspoiler"> <a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw post.userid}&contenttype=vBForum_Threads&showthreads=1" title="View {vb:raw post.username}'s startedthreads"> <img src="/images/post.png" alt="Some text here to support Readers" border="0" /> {vb:raw thread.threads}{vb:rawphrase find_all_started_threads}</a> </div> </dd> |
Благодарность от: | ||
Krusty1231 |
#3
|
||||
|
||||
Thank you for the reply.
I tried yours as is, but was confused by the "Some text here to support Readers" part. When I click on the text to search I get this: Quote:
Thank you for making the time to reply. |
#4
|
||||
|
||||
Just put anything there that explains what the image is for. [minicode]alt=""[/minicode] is required, although it can be left empty. But it's useful to include something descriptive about your image for things like search engines, and the visually impaired browsing your site using a Screen Reader.
Other than that, the code should be working as is. Have you closed the <div> tag in both instances? If one is still open, it could be creating some problems. |
#5
|
||||
|
||||
Doh! I realized that after I stared at it for a bit. Came back to find your post. I did forget the tag as pointed out.
Thanks again Sir. Works as it should. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|