vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - SCANU's Guest Warn 3 - Elegant Floating Warning for your guests (https://vborg.vbsupport.ru/showthread.php?t=270070)

Mr_Running 07-29-2012 10:34 AM

Quote:

Originally Posted by Scanu (Post 2351908)
Go in plugin manager search for Guest warn plugins and edit the "Code including" one

Replace
PHP Code:

if ($vbulletin->options['guest_warn_active'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register'))) { 

With this
PHP Code:

if ($vbulletin->options['guest_warn_active'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register','blog'))) { 

It should work, let me know! :)


After some more thought I would like this to just be on the CMS. How?
I tried adding forum to the array but it didn't work?
Request: select pages to display

How to only have it on the CMS?

Scanu 07-29-2012 11:19 AM

Replace blog with vbcms or cms or content, one of these should work. Regarding the feature request i will try to add something like this

Mr_Running 07-29-2012 11:37 AM

Quote:

Originally Posted by Scanu (Post 2352329)
Replace blog with vbcms or cms or content, one of these should work. Regarding the feature request i will try to add something like this

:confused: I am confused.:p

Display Elegant Warning for your guests only on CMS?

Scanu 07-29-2012 12:14 PM

Sorry i misunderstood you, replace this
PHP Code:

if ($vbulletin->options['guest_warn_active'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register'))) { 

With this
PHP Code:

if ($vbulletin->options['guest_warn_active'] && $show['guest'] && in_array(THIS_SCRIPT, array('vbcms'))) { 


Aljuve 07-29-2012 04:30 PM

can U put this product in version 3.8 !?

zakonline 07-31-2012 04:23 AM

Very nice Mod :). Thanks for your contribution.

charlesr 07-31-2012 03:10 PM

All working fine apart from "check version" on the product page. I get "Version check failed. No version number was found at this location. The URL for the version check may be incorrect, or the server may be experiencing problems. Please try again later."

Scanu 07-31-2012 03:17 PM

Yes i know i wondered that it was wrong in my last mod so in next update ofall my mod i will fix this

Syxguns 08-10-2012 01:30 AM

Installed vB 4.2 PL2 works great! Thank you for the share!

Edit: I set this up so that even if you close it and then select a new link it's right back in your face. I have lots of guest, I hope this will annoy them and get them to register!

ChiNa 08-13-2012 07:32 AM

Amazing Job Scanu, I like this one a lot...
I am a bit new to vB4, Need to learn a bit more befor I can start coding,,


All times are GMT. The time now is 06:57 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.01356 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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