vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   VB3 pop-up on all pages for non-registered users??? (https://vborg.vbsupport.ru/showthread.php?t=74706)

mikehawk 01-20-2005 02:09 AM

VB3 pop-up on all pages for non-registered users???
 
I direct many guests to certain threads and they never check the forum home so it defeats the popup register.... /

Andreas 01-20-2005 02:27 AM

I hate (DHTML) popups, and I tend to think that I am not the only one.
Keep in mind that this might just getting on the nerves of your guests ... an alternative board is always just 2 clicks away.

mikehawk 01-20-2005 03:46 AM

In all honesty, it really doesn't matter to me.

Tekton 01-20-2005 03:53 AM

glad to hear you want guest to have a positive experience :P

with the js file uploaded can't you just include the showing part in the header template instead of a normal one?
Code:

        <style type="text/css">
        #vbpopup { position:absolute; height:1; width:1px; top:0; left:0; }
        </style>
        <if condition="$show['guest']"><script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script></if>


mikehawk 01-20-2005 06:59 AM

Quote:

Originally Posted by Tekton
glad to hear you want guest to have a positive experience :P

with the js file uploaded can't you just include the showing part in the header template instead of a normal one?
Code:

        <style type="text/css">
        #vbpopup { position:absolute; height:1; width:1px; top:0; left:0; }
        </style>
        <if condition="$show['guest']"><script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script></if>



added it to header template and nothing happened...?

Tekton 01-20-2005 07:06 AM

er, headinclude. Sorry~

edit: you might need like a

eval('$vbpopup = "' . fetch_template('forumhome_vbpopup') . '";');

at the (near?) end of the global.php file if that's possible, or in the php files that you want it included in...

It might be simpler to just add it to the specific files and templates.

mikehawk 01-20-2005 07:06 AM

Is there a file to edit other than index.php to do this then?

Quote:

Originally Posted by Tekton
er, headinclude. Sorry~

Still a no go man...

HTML Code:

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $versionnumber" />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />

<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->

<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
// -->

</script>
<style type="text/css">
        #vbpopup { position:absolute; height:1; width:1px; top:0; left:0; }
        </style>
        <if condition="$show['guest']"><script type="text/javascript" src="clientscript/vbulletin_vbpopup.js"></script></if>

<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>

Where would I put it in? There are no body/head tags?

Tekton 01-20-2005 07:20 AM

the headinclude is INSIDE head tags from the other templating. see edit above.

mikehawk 01-20-2005 07:35 AM

ok so...

1.. edit global.php

2. put the code in headinclude?

Basically I want vbpopup on all thread pages... could I edit showthread and then edit showthread template?

Still haven't gotten this to work....

i'm gonna go to bed.. hopefully someone can clear this up... i want the popup to show on forumhome and showthread pages...

I did the same edits to "showthread.php" as I did to "index.php" and then the same edits to "showthread" template as I did to "forumhome" template...

it only shows up on forum home.... :disappointed:

Tekton 01-20-2005 08:23 AM

If you want it on showthread, do what it says for the forumhome for the showthread.php and the showthread template.


All times are GMT. The time now is 04:26 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.02044 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete