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

Reply
 
Thread Tools
Floating Guest Notify Details »»
Floating Guest Notify
Version: 1.0.0, by Omranic Omranic is offline
Developer Last Online: Sep 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 10-03-2007 Last Update: 10-03-2007 Installs: 297
Uses Plugins Template Edits
 
No support by the author.

Please remember to click Mark as Installed if you use this modification.
Support questions from members who have not marked this as installed will be considered low priority.



Many thanks:
To all vBulletin Gurus.

Name: Floating Guest Notify

Descreption: This Small mod. shows a small nice floating box notify the guest to register to gain full access & more features.


How it works:
It's as simple as drinking water, nothing to explain.


Features:
  1. Can enable/disable mod totaly. v1.0.0
  2. Specify closing behavio (browser session...). v1.0.0
  3. Set X, Y offset. v1.0.0
  4. Floating position (from top / from bottom). v1.0.0
  5. Compatible with bot RTL & LTR modes, it changes its position & appearance according to the direction of the page. v1.0.0
  6. displayed only for guests & disappeared in 'register' page. v1.0.0
  7. All template edites done for you automatically. v1.0.0
  8. fully phrased. v1.0.0


Help Us:
  • Suggestions needed to develop this mod .
  • Translators needed to support more users (translation credits will go to their owners).


Known Isues:
None till now.


History:
v1.0.0 4/10/2007 04:00 AM (EEST): First initial public release.


Notes:
I'm using the javascript code embedded in this mod from long time & I don't know his author, any one know him please notify me with his name & link to his home page to post his credits here.
I don't know if some one has published this before or not, so forgive me if there is.
Supported Languages till now: Arabic, English (two products supported in the package, just install one [arabic or english]).


Screen Shots:
Available down there.


Technical Notes:
Plugins: 2
New Phrases: 16
Template changes: 1 (AUTO)
Code Changes: 0
New Templates: 1
New Settings: 7
DB Tables: 0
DB Alterations: 0
Cron Jops: 0


Installation Procedure:
  • Import the product file from your admincp.
  • upload the image close.gif to the 'misc' directory in your images folder.
  • Done .


Control:
  • vbulletin options -> Floating Guest Notify

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
newbie2007

Comments
  #72  
Old 06-07-2008, 06:40 AM
Javierogo's Avatar
Javierogo Javierogo is offline
 
Join Date: Jun 2008
Location: M?xico
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks dude!
Reply With Quote
  #73  
Old 06-08-2008, 11:19 AM
maleficarum maleficarum is offline
 
Join Date: May 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Thanks.
Reply With Quote
  #74  
Old 06-08-2008, 02:02 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

upload the image close.gif to the 'misc' directory in your images folder. there is nothing to upload.
Reply With Quote
  #75  
Old 06-17-2008, 10:54 PM
callumbush callumbush is offline
 
Join Date: May 2008
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah where is the image? I can't find it either...
Can someone email it to me?
Reply With Quote
  #76  
Old 06-24-2008, 08:52 AM
globofan globofan is offline
 
Join Date: Jun 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeh same problem, the image file is not there.
Reply With Quote
  #77  
Old 06-27-2008, 11:17 PM
kylek kylek is offline
 
Join Date: Oct 2003
Location: British Columbia, Canada
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great with 3.7.2!! Only thing to figure out how to center the message.
Reply With Quote
  #78  
Old 07-07-2008, 09:32 AM
dadoc's Avatar
dadoc dadoc is offline
 
Join Date: Apr 2008
Location: Australia
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed but I want to change the font color

any ideas?
Reply With Quote
  #79  
Old 07-16-2008, 03:55 PM
Sycoloco1212 Sycoloco1212 is offline
 
Join Date: Mar 2008
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i edited mine to go full screen and also left out the image to exit it since i cant find it.. this is what mine looks like ( The Code In RED Will Be What It Shows )

<Preview: http://img168.imageshack.us/img168/1328/registerew1.jpg >

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="phpkd_float_guest_notify" active="1">
	<title>Floating Guest Notify</title>
	<description><![CDATA[This Small mod. shows a small nice floating box notify the guest to register to gain full access & more features.]]></description>
	<version>1.0.0</version>
	<url><![CDATA[https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=phpkd_float_guest_notify]]></url>
	<versioncheckurl><![CDATA[https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=phpkd_float_guest_notify]]></versioncheckurl>
	<dependencies>
	</dependencies>
	<codes>
	</codes>
	<templates>
		<template name="phpkd_floating_guest_notify" templatetype="template" date="1191432967" username="z" version="1.0.0"><![CDATA[<if condition="$show['guest'] AND THIS_SCRIPT != 'register'">

<style type="text/css">
#topbar
{   
	PADDING-TOP: 5px;
	PADDING-BOTTOM: 5px;
	PADDING-RIGHT: 5px; 
	PADDING-LEFT: 5px;
	VISIBILITY: hidden;
	BORDER-TOP: black 1px solid;
	BORDER-BOTTOM: black 1px solid;
	BORDER-RIGHT: black 1px solid;
	BORDER-LEFT: black 1px solid;
	WIDTH: 100%;
	FONT-FAMILY: Tahoma;
	POSITION: absolute;
	BACKGROUND-COLOR: white
}
</style>

<script type="text/javascript">
var persistclose = $vboptions[phpkd_floating_guest_notify_closing]
var startX = $vboptions[phpkd_floating_guest_notify_xoffset]
var startY = $vboptions[phpkd_floating_guest_notify_yoffset]
var verticalpos = "$vboptions[phpkd_floating_guest_notify_position]"

function iecompattest()
{
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name)
{
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0)
	{
		offset = document.cookie.indexOf(search)
		if (offset != -1)
		{
			offset += search.length
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

function closebar()
{
	if (persistclose)
	document.cookie="remainclosed=1"
	document.getElementById("topbar").style.visibility="hidden"
}

function staticbar()
{
	barheight=document.getElementById("topbar").offsetHeight
	var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var d = document;
	function ml(id)
	{
		var el=d.getElementById(id);
		if (!persistclose || persistclose && get_cookie("remainclosed")=="")
		el.style.visibility="visible"
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.$stylevar[right]=x+"px";this.style.top=y+"px";};
		el.x = startX;
		if (verticalpos=="fromtop")
			el.y = startY;
		else
		{
			el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
			el.y -= startY;
		}
		return el;
	}
	
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop")
		{
			var pY = ns ? pageYOffset : iecompattest().scrollTop;
			ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else
		{
			var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
			ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("topbar");
	stayTopLeft();
}

if (window.addEventListener)
	window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
	window.attachEvent("onload", staticbar)
else if (document.getElementById)
	window.onload=staticbar
</script>

<div id="topbar">
	<table width="100%">
		<tr>
			<td width="99%">
					<phrase 1="$vboptions[bbtitle]" 2="register.php$session[sessionurl_q]">$vbphrase[you_are_unregistered]</phrase>&nbsp;&nbsp;&nbsp;&nbsp; </td><td width="1%"><a onclick="closebar(); return false" href="$vboptions[bburl]"><img style="float: $stylevar[left]" src="$stylevar[imgdir_misc]/close.gif" border="0"></a>
			</td>
		</tr>
	</table>
</div>

</if>]]></template>
	</templates>
	<plugins>
		<plugin active="1" executionorder="5">
			<title>Floating Guest Notify Template Cache</title>
			<hookname>cache_templates</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['phpkd_floating_guest_notify_status'] AND $vbulletin->options['phpkd_floating_guest_notify_autotemp'])
{
	$globaltemplates[] = 'phpkd_floating_guest_notify';
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Floating Guest Notify Template Change</title>
			<hookname>parse_templates</hookname>
			<phpcode><![CDATA[if ($vbulletin->options['phpkd_floating_guest_notify_status'] AND $vbulletin->options['phpkd_floating_guest_notify_autotemp'])
{
	$vbulletin->templatecache['header'] = str_replace($vbulletin->options['phpkd_floating_guest_notify_search_text'], $vbulletin->options['phpkd_floating_guest_notify_search_text'].$vbulletin->templatecache['phpkd_floating_guest_notify'],$vbulletin->templatecache['header']);
}]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="GLOBAL" fieldname="global">
			<phrase name="you_are_unregistered" date="1191433161" username="z" version="1.0.0"><![CDATA[<FONT COLOR="black">&nbsp;&nbsp;Welcome to the MultiPlayer Gamerz forums, To gain full access to MultiPlayer Gamerz you must, </font><a href="{2}"><FONT COLOR="#0000ff">register</font></a><FONT COLOR="black">  for a free account to gain Full access.</font>]]></phrase>
		</phrasetype>
		<phrasetype name="vBulletin Settings" fieldname="vbsettings">
			<phrase name="setting_phpkd_floating_guest_notify_autotemp_desc" date="1191430251" username="z" version="1.0.0"><![CDATA[Set to 'Yes' to enable the Automatic Template Changes for this modification. If you disable this, the modification will not work unless you manually edit the relevant templates.]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_autotemp_title" date="1191430251" username="z" version="1.0.0"><![CDATA[Auto template change]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_closing_desc" date="1191429390" username="z" version="1.0.0"><![CDATA[Set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_closing_title" date="1191429390" username="z" version="1.0.0"><![CDATA[Closing behavior]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_position_desc" date="1191429759" username="z" version="1.0.0"><![CDATA[Set the floating position of the notify box, "fromtop" or "frombottom".]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_position_title" date="1191429759" username="z" version="1.0.0"><![CDATA[Floating position]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_search_text_desc" date="1191431364" username="z" version="1.0.0"><![CDATA[Edit the text that the Auto Template Change searches for. Do <b>not</b> alter this unless you understand what you are doing, otherwise the modification will stop working.]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_search_text_title" date="1191431364" username="z" version="1.0.0"><![CDATA[Auto-Template Search Text]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_status_desc" date="1191429305" username="z" version="1.0.0"><![CDATA[Check if you need to activate or deactivate the floating guest notify.]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_status_title" date="1191429305" username="z" version="1.0.0"><![CDATA[Floating Guest Notify Active?]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_xoffset_desc" date="1191429478" username="z" version="1.0.0"><![CDATA[Set X offset of bar in pixels.]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_xoffset_title" date="1191429478" username="z" version="1.0.0"><![CDATA[X offset]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_yoffset_desc" date="1191429495" username="z" version="1.0.0"><![CDATA[Set Y offset of bar in pixels.]]></phrase>
			<phrase name="setting_phpkd_floating_guest_notify_yoffset_title" date="1191429495" username="z" version="1.0.0"><![CDATA[Y offset]]></phrase>
			<phrase name="settinggroup_phpkd_floating_guest_notify" date="1191429164" username="z" version="1.0.0"><![CDATA[Floating Guest Notify]]></phrase>
		</phrasetype>
	</phrases>
	<options>
		<settinggroup name="phpkd_floating_guest_notify" displayorder="1120">
			<setting varname="phpkd_floating_guest_notify_status" displayorder="10">
				<datatype>boolean</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="phpkd_floating_guest_notify_closing" displayorder="20">
				<datatype>boolean</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="phpkd_floating_guest_notify_xoffset" displayorder="30">
				<datatype>number</datatype>
				<defaultvalue>3</defaultvalue>
			</setting>
			<setting varname="phpkd_floating_guest_notify_yoffset" displayorder="40">
				<datatype>number</datatype>
				<defaultvalue>3</defaultvalue>
			</setting>
			<setting varname="phpkd_floating_guest_notify_position" displayorder="50">
				<datatype>free</datatype>
				<optioncode>select:piped
fromtop|fromtop
frombottom|frombottom</optioncode>
				<defaultvalue>fromtop</defaultvalue>
			</setting>
			<setting varname="phpkd_floating_guest_notify_autotemp" displayorder="60">
				<datatype>boolean</datatype>
				<optioncode>yesno</optioncode>
				<defaultvalue>1</defaultvalue>
			</setting>
			<setting varname="phpkd_floating_guest_notify_search_text" displayorder="70">
				<datatype>free</datatype>
				<defaultvalue><![CDATA[<!-- logo -->]]></defaultvalue>
			</setting>
		</settinggroup>
	</options>
	<helptopics>
	</helptopics>
	<cronentries>
	</cronentries>
	<faqentries>
	</faqentries>
</product>
Edit the RED Colored Code to your needs
Reply With Quote
  #80  
Old 07-16-2008, 04:16 PM
Sycoloco1212 Sycoloco1212 is offline
 
Join Date: Mar 2008
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright now for the image i made this Direct Link: http://img366.imageshack.us/img366/5356/23092320gn6.jpg

so when you get done it will look like this.. Sorry image was to big to cut it out so that side << got cut off <Preview: http://img410.imageshack.us/img410/2...terexitme5.jpg >

Download the image close.jpg below first

now goto you sites directory or use FTP and goto

Public_Html - Forums - Images - Styles - YOUR THEMES FOLDER - Misc

now drop the close.jpg inside the MISC folder were i specified.. now it won't work just yet as you can see we used jpg... and we need gif.. so now right click the close.jpg and click rename "make sure its inside the misc folder before renameing" then rename it to close.gif ( for maximum quality ) then just save everything and now you should have a exit button..

now if you want it so when they close it, and refresh the page or goto a different page goto ( admin CP - vBulletin Options - Floating Guest Notify ) and set Closing behavior to NO then hit save

also you can see a demo here of everything: Http://mpgamerz.net Register if you want =)
Reply With Quote
  #81  
Old 07-17-2008, 06:20 PM
YuOr YuOr is offline
 
Join Date: Jun 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, thanks!
Just my two cents
1. I attached the close.gif (just in case somebody is still looking for it). Right click on it and save
2. I uploaded gif to my style's misc folder, not forum/images/misc and now it works
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 02:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05015 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete