vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to make pop-up menu (https://vborg.vbsupport.ru/showthread.php?t=192665)

khaledkhaled24 10-04-2008 12:48 PM

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

Lynne 10-04-2008 03:36 PM

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.

khaledkhaled24 10-04-2008 06:48 PM

Thanks Lynne for your reply.

Ok, now if I knew where is the function, how can I add it in my vbulletin page??

Lynne 10-04-2008 06:53 PM

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.

khaledkhaled24 10-04-2008 07:02 PM

Ok, do you know what is thing named?, as I am sure it is not a pop-up windows

Lynne 10-04-2008 07:22 PM

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.

khaledkhaled24 10-06-2008 02:33 PM

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!


All times are GMT. The time now is 02:17 AM.

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.01182 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete