Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
SCANU's Guest Warn 3 - Elegant Floating Warning for your guests Details »»
SCANU's Guest Warn 3 - Elegant Floating Warning for your guests
Version: 3.1, by Scanu Scanu is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.x.x Rating:
Released: 09-10-2011 Last Update: 07-27-2014 Installs: 330
Uses Plugins Auto-Templates
Translations  
No support by the author.

Description
This modification shows an elegant warn for all guests of your forum with the possibility to add a close button, it's a conversion of this mybb add-on. For all the features or the mod version history click here Look at the screenshots for more!

Installation

Upload the product via admincp and go in Settings->Guest Warn Settings to customize the close option etc.. Then search in stylevars for GuestWarn to customize the style.
To update just redownload and reupload the file, make sure that overwriting is set to Yes

Demo

Online demo: http://scanu.altervista.org/forum.php

Translations
  • Arabic translation by Dr.OsamA (download in the attachments) ONLY 2.7

PLEASE NOMINATE THIS MOD FOR MOTM AND CLICK MARK AS INSTALLED

Please donate to support my free works

If you like this mod see this other elegant mod for your forum: click here
To get support:
  1. Mark this mod as Installed
  2. Copy/Pasted errors or screenshots
  3. URL/link to site


Many thanks to my brother: Clear (Darkness95) that allowed me to convert his plugin and using his style. Please if there are errors in the phrases let me know.
To the coders: This mod use javascript and css but i don't want to write them in other files because i like that the mod is easy to install so you have not to upload files, the image too are situated in online server so you don't have to download and re-upload in your server. That's all

Download Now

File Type: xml Guest_Warn 2.7-Arabic by alra7ba.xml (13.6 KB, 102 views)
File Type: xml SCANU's Guest Warn 3.xml (19.7 KB, 284 views)
File Type: xml Guest Warn 3.1.xml (15.0 KB, 164 views)

Screenshots

File Type: png warn.png (22.0 KB, 0 views)
File Type: jpg Settingsguestwarn.jpg (114.7 KB, 0 views)
File Type: png thankyou.png (4.3 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #192  
Old 11-02-2012, 09:54 AM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I can hide the warn to spiders like google yahoo etc.. (I think it's possible) but probably if someone visit google cache or translate your site using google translate, he won't see the warn, if this is not a problem i can add this feature to the next version
Reply With Quote
  #193  
Old 11-10-2012, 01:34 AM
qwer81 qwer81 is offline
 
Join Date: Aug 2012
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok! Thank you! I'm waiting for the next version!
Reply With Quote
  #194  
Old 12-04-2012, 05:48 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works well. I installed it on my website version v4.2.0 www.forexmegacashback.com

Thanks,

fxdigi-cash
Reply With Quote
  #195  
Old 08-01-2013, 11:46 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on 4.2.1?

Thanks
Reply With Quote
  #196  
Old 08-01-2013, 12:52 PM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use it on 4.2.1 with no issues.
Reply With Quote
  #197  
Old 08-05-2013, 04:41 PM
BeoRski BeoRski is offline
 
Join Date: Apr 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by qwer81 View Post
Hello! I noticed that the content of the message for guests appears in the search results on google, under the title of the topic

Is there a way to hide it? Thank you!
Editing "Code including" in Plugin Manager does this. Replace it with the code below:

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

$templater = vB_Template::create('guestwarn_html'); //Create html template
$guestwarn_html = $templater->render(); //saving template on a variable

$templater = vB_Template::create('guestwarn_css'); //Create css template
$template_hook[headinclude_css] .= $templater->render(); //Including template on footer hook

$templater = vB_Template::create('guestwarn_script'); // Create javascript template
$template_hook[footer_javascript] .= $templater->render(); //including template on footinclude hook

$vbulletin->templatecache['footer'] .= ' $final_rendered .= \'' . addcslashes($guestwarn_html, "'\\") . '\'; '; //Inserting html in the footer template
}
This basically moves it to the footer which is way beyond what Google shows on the search results...
Reply With Quote
  #198  
Old 08-21-2013, 08:00 PM
kandhro kandhro is offline
 
Join Date: Dec 2012
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

such a great mod , nominated for NOM
Reply With Quote
  #199  
Old 08-22-2013, 04:27 PM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kandhro View Post
such a great mod , nominated for NOM
Thank you
Reply With Quote
  #200  
Old 09-06-2013, 08:35 PM
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guest warn 3 has been released! Here is the new feature list
Quote:
- 3.0
- Improved javascript code
- Hidden to spiders
- Hidden in the login page
- Fixed templates group name
- Fixed some phrases
- Added the possibility to add a second message like "Thank you you take a good choice You're being redirected to the register page in n seconds"
- Now the warn's message is a phrase, not an option (for multi-languages forum)
Reply With Quote
  #201  
Old 09-09-2013, 01:32 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BeoRski View Post
Editing "Code including" in Plugin Manager does this. Replace it with the code below:

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

$templater = vB_Template::create('guestwarn_html'); //Create html template
$guestwarn_html = $templater->render(); //saving template on a variable

$templater = vB_Template::create('guestwarn_css'); //Create css template
$template_hook[headinclude_css] .= $templater->render(); //Including template on footer hook

$templater = vB_Template::create('guestwarn_script'); // Create javascript template
$template_hook[footer_javascript] .= $templater->render(); //including template on footinclude hook

$vbulletin->templatecache['footer'] .= ' $final_rendered .= \'' . addcslashes($guestwarn_html, "'\\") . '\'; '; //Inserting html in the footer template
}
This basically moves it to the footer which is way beyond what Google shows on the search results...
From this
Code:
if ($vbulletin->options['guest_warn_active'] && !$show['search_engine'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register','login'))) {
to this
Code:
if ($vbulletin->options['guest_warn_active'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register','login'))) {
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 10:20 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.08874 seconds
  • Memory Usage 2,366KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (16)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete