Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2006, 06:59 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Question about template

HI!

I want to have my userrank (you can see the 'pips') to have a drowpdownbox, just like the username.

So when you click it; it drop's down and show's information.

I want to have this:


Does anybody know how I can achieve this?
Reply With Quote
  #2  
Old 05-21-2006, 07:07 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong forum
Reply With Quote
  #3  
Old 05-21-2006, 07:13 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow .. I see now . I'm sorry.

I'll ask the mod to move it.
Reply With Quote
  #4  
Old 05-21-2006, 07:32 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already did.
Sorry I can't help you out
Reply With Quote
  #5  
Old 05-21-2006, 08:45 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, thank you .
Reply With Quote
  #6  
Old 05-22-2006, 07:10 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is an example.

HTML Code:
<div id="rank_popup">
        <a href="">The Image</a> <script type="text/javascript"> vbmenu_register("rank_popup", true); </script>
</div>

<div class="vbmenu_popup" id="rank_popup_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead" colspan="2">Icons</td></tr>
        <tr><td class="alt1">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr><td>Image1</td><td>text1</td></tr>
        <tr><td>Image2</td><td>text2</td></tr>
        <tr><td>Image3</td><td>text3</td></tr>
        <tr><td>Image4</td><td>text4</td></tr>
        <tr><td>Image5</td><td>text5</td></tr>
        <tr><td>Image6</td><td>text6</td></tr>
        </table>
        </td><tr></table>
</div>
Reply With Quote
  #7  
Old 05-22-2006, 10:34 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankyou, I'm going to try that!

I'm not exactly sure what you mean with "the image". I have to fill in the URL of the image?
And what about 'image1, image2' etc.. Do I have to repeat the <img src="ETC".." untill I have the right nummer of pips or is ther also an easy way?
Reply With Quote
  #8  
Old 05-22-2006, 11:02 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok.. it worked, but still not perfect.

Take a look at this:

Source:
PHP Code:
            <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
            <if 
condition="$post['rank']"><div id="rank_popup"><a href="">$post[rank]</a> <script type="text/javascript"vbmenu_register("rank_popup"true); </script></div>
        <
div class="vbmenu_popup" id="rank_popup_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr><td class="thead" colspan="2">Classificatie</td></tr>
        <
tr><td class="alt1">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr><td><img src="images/aangepast/pip_1.gif"></td><td>20 99 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_2.gif"></td><td>100 499 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_3.gif"></td><td>500 999 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_4.gif"></td><td>1000 4999 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_5.gif"></td><td>5000 9999 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_6.gif"></td><td>10000 14999 berichten </td></tr>
        <
tr><td><img src="images/aangepast/pip_7.gif"></td><td>15000 15000berichten </td></tr>
        </
table>
        </
td><tr></table></div></if> 
FireFox:


Internet Explorer:
In IE when I click the image, I go to the index of my forums. The menu doesn't pop out. Some people do have a dropdownmenu in Internet Explorer but it doesn't look very nice:

(it seems like 1 dot doesn't give a dropdown, 2 don't and only with 3 dots it's going to drop)

Opera:
The menu doesn't pop out, when I click the image only the page refreshes.

I guess this problem is solved when I remove the "<a href=" part and replace it by "onmouseover = "this.cursor = 'pointer';"

(PS: is there a possibility to smaller the font? Cause I wanted to use
Code:
<div class="smallfont">
but because I'm using
Code:
<div class="vbmenu_popup
already I think that isn't possible).
Attached Images
File Type: png firefox.PNG (6.4 KB, 0 views)
Reply With Quote
  #9  
Old 05-23-2006, 06:01 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok.. it seems that only the first person who has pips also has a dropdown menu.

This problem only seems to appear in IE.

Whieeeeeee!

I'm using
PHP Code:
            <if condition="$post['rank']"><div id="rank_popup_$post[postid]style="cursor: pointer;"><a href="">$post[rank]</a> <script type="text/javascript"vbmenu_register("rank_popup_$post[postid]"true); </script></div>
        <
div class="vbmenu_popup" id="rank_popup_$post[postid]_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0" width="270">
        <
tr><td class="thead" colspan="2">Classificatie</td></tr>
        <
tr><td class="alt1">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr><td><img src="images/aangepast/pip_1.gif"></td><td>20 99 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_2.gif"></td><td>100 499 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_3.gif"></td><td>500 999 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_4.gif"></td><td>1000 4999 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_5.gif"></td><td>5000 9999 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_6.gif"></td><td>10000 14999 berichten</td></tr>
        <
tr><td><img src="images/aangepast/pip_7.gif"></td><td>> > dan 15000 berichten</td></tr>
        </
table>
        </
td><tr></table></div></if> 
now and it's working!

Thank you for the help LiveWire!
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04373 seconds
  • Memory Usage 2,315KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete