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 10-04-2008, 12:48 PM
khaledkhaled24 khaledkhaled24 is offline
 
Join Date: Jul 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to make pop-up menu

Hello to you all,
I want to know how can I make a pop-up menu and NOT A POP-UP window on the vbulletin. Since I searched a lot but I couldn't do it.

Example:
http://vbskins.com/theme/purplio.html
and click on download (while you are not signned in). You will see a pop-up message to tell you to register.
That is the message that I want to do.

Thanks in advance
Reply With Quote
  #2  
Old 10-04-2008, 03:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at the source code for the page. This javascript is called when you click on the download link - onclick="showregister(); return false;"

So, look in the page source for any non-vb javascript pages... there are several at the top of the page:
HTML Code:
<script type="text/javascript">loggedin=0;</script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/thickbox.js"></script>
<link href="/css/thickbox.css" rel="stylesheet" type="text/css" />

<link href="/css/rating.css" rel="stylesheet" type="text/css" />
<meta name="description" content="Purplio vB Skin:flowing purple theme" />
<meta name="keywords" content="Purplio purle  full width vbulletin vb skin style theme template" />
<script type="text/javascript" src="/js/jquery.highlightFade.js"></script></head>

Look through those and see if you can find that function.
Reply With Quote
  #3  
Old 10-04-2008, 06:48 PM
khaledkhaled24 khaledkhaled24 is offline
 
Join Date: Jul 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne for your reply.

Ok, now if I knew where is the function, how can I add it in my vbulletin page??
Reply With Quote
  #4  
Old 10-04-2008, 06:53 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can add the line into the template for the page you want it in, like SHOWTHREAD if that is where you want to use it.
Reply With Quote
  #5  
Old 10-04-2008, 07:02 PM
khaledkhaled24 khaledkhaled24 is offline
 
Join Date: Jul 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, do you know what is thing named?, as I am sure it is not a pop-up windows
Reply With Quote
  #6  
Old 10-04-2008, 07:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I told you, this is the line in the Downloads button - onclick="showregister(); return false;"

So, you need to look through those added javascript files for where he defines the function showregister. Then, copy that javascript to your forum (and any other functions that that function may call) and add the javascript to your download button and see if that works.
Reply With Quote
  #7  
Old 10-06-2008, 02:33 PM
khaledkhaled24 khaledkhaled24 is offline
 
Join Date: Jul 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne,
You didn't totally understand my last question.
What I am saying is (Technically Speaking) what is the name of such action? Meaning if I wanted to google for it, what should I search for???
I am not asking anything about the javascript that is added to the website.

Thanks once again!
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 05:25 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.03797 seconds
  • Memory Usage 2,215KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete