Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2013, 04:56 PM
WoODoO's Avatar
WoODoO WoODoO is offline
 
Join Date: Apr 2009
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Modal PopUp

hello guys, I'm trying to make this popup working on my forum but I'm out of luck.
Added in FORUMHOME, header footer etc ...

It did not work.

...all files in their proper places
On another page without the vbulletin forum has worked.

Anyone have an idea?

Follow:

Code:
<!-- INICIO MODAL -->
<style>
/* jqModal base Styling courtesy of;
  Brice Burgess <bhb@iceburg.net> */

/* The Window's CSS z-index value is respected (takes priority). If none is supplied,
  the Window's z-index value will be set to 3000 by default (in jqModal.js). You
  can change this value by either;
    a) supplying one via CSS
    b) passing the "zIndex" parameter. E.g.  (window).jqm({zIndex: 500}); */
  
.jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -300px;
    width: 600px;
	height: 400px;
    background-color: #EEE;
    color: #333;
    border: 1px solid black;
    padding: 12px;
}

.jqmOverlay { background-color: #000; }

/* Fixed posistioning emulation for IE6
     Star selector used to hide definition from browsers other than IE6
     For valid CSS, use a conditional include instead */
* html .jqmWindow {
     position: absolute;
     top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://dev.iceburg.net/jquery/jqModal/jqModal.js"></script>
<script type="text/javascript" src="http://armapoint.com/forum/jquery.cookie.js"></script>
<script type="text/javascript">
jQuery().ready(function() {
	
  $('#fechar').click(function() {
    $.cookie('fechajanelaservidor','sim', { expires: 2 });
  })
  if($.cookie('fechajanelaservidor')) {
  	$('.jqmWindow').hide();
  } else {
  	$('#dialog').jqm();
  	$('#dialog').jqmShow();
  }
});
</script>

<div class="jqmWindow" id="dialog" style="font-size:16px; font-family:'Trebuchet MS', Arial, Helvetica, sans-serif">

<a href="#" class="jqmClose" id="fechar" title="Fechar esta janela por 2 dias"><img src="http://icons.iconarchive.com/icons/visualpharm/must-have/16/Delete-icon.png" /> Fechar</a><br>
<br>
<div style="text-align: center;"><strong style="color:#990000;">&gt;&gt;&gt; Ajude a manter o servidor &lt;&lt;&lt;</strong></div>
<hr/>
<div>
<div style="text-align: center;">
<img src="http://icons.iconarchive.com/icons/kyo-tux/phuzion/128/Sign-Alert-icon.png" />
</div>
<p>TEXTO INSERIDO PARA O AVISO. <br/><br/>
  TEXTO INSERIDO PARA O AVISOTEXTO INSERIDO PARA O AVISOTEXTO INSERIDO PARA O AVISOTEXTO INSERIDO PARA O AVISO.<br/><br/>
  TEXTO INSERIDO PARA O AVISOTEXTO INSERIDO PARA O AVISOTEXTO INSERIDO PARA O AVISOTEXTO INSERIDO PARA O AVISOTEXTO INSERIDO PARA O AVISO </p>
</p><br/>
<p><strong>TEXTO INSERIDO PARA O AVISO <a href="#" target="_blank">TEXTO INSERIDO PARA O AVISO</a>. </strong></p>
</div>
</div>





<!-- FIM MODAL -->
Reply With Quote
  #2  
Old 08-18-2013, 12:48 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try putting it in the headinclude template?
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 12:38 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.07756 seconds
  • Memory Usage 2,170KB
  • Queries Executed 11 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete