PDA

View Full Version : Mini Mods - Innovative On Top Display Window


TheLastSuperman
05-20-2009, 10:00 PM
Innovative On Top Display Window

Mod Version: 0.0.1
Compatible vB version: 3.5.x, 3.6.x , 3.7.x , 3.8.x (All versions even pre 3.5 etc)

DESCRIPTION:
Description: "Emphasize" and make particular content on your page stand out by keeping them always visible on the visitor's browser screen, using this script. The script uses CSS's "fixed" positioning to accomplish this in modern browsers, while for older browsers that don't support "fixed" (such as IE6), switches to "absolute" positioning to simulate the effect. But the script doesn't just keep an element fixated on the screen, it lets you manage their display frequency to make the whole affair sensible and user friendly. Here's what you can do with the script:

FEATURES:

Keep an element always visible on the page relative to one of the four corners of the user's browser window.
The element can either be one that's physically defined on the page, or inside an external file and dynamically added to the page using Ajax.
The floating element can be set to disappear after x seconds.
Control how often (frequency) the floating element is shown at all each time the page loads. The current options are: randomly based on x percentage (1-100%), once per browser session, or once every x days.
Control the fade effect that's added when the element is shown and hidden, respectively.


Special thanks to my Dynamic Drive for allowing me to use this script! ).

This hack is in the BETA stages and can be customized several ways and works with many forms of html and VB code. The code is stable and works quite well, I cannot however give permissions to re-use the code as I normally do - sorry but it would break Dynamic Drives Terms of Use and as I mentioned, I did obtain permission before posting for use!

Please notice there are two different ways to display, use both to experiment with different forms of code to achieve the desired effect. Additionally you can include some vbulletin codes into it for more ways to customize and use to your advantage/enjoyment! If by any means you are unsure if this will suit your needs please POST your curious query below :D as I support my mods and will do my best to find a solution for you and more importantly please post any new ways YOU the installers find to customize this for forum usage like custom login boxes (add more time lol) or user albums displayed, special announcements, etc etc!!

Please Click Here (http://www.dynamicdrive.com/dynamicindex17/stayontop.htm) for the Demo.

Link to full details and usage information by Dynamic Drive --> Click Here (http://www.dynamicdrive.com/dynamicindex17/stayontop.htm)

Also I have decided post mods on vb.org by password protecting the .zip, please view the code while logged-in, below.

Hopefully you users will not be too harsh on me! The .zip is password protected, and the password displayed within a "code" bbcode so at least the users have to be logged in to obtain the password.

The Zip's password is: vbdotorg

*Attention* Please view the first page as the 2nd and 3rd post were reserved and contain additional information.

TheLastSuperman :rolleyes:
http://www.innovationbyinstinct.com


For VBulletin.org Forum Support:

Click above in the right menu "Mark as Installed".
Post your question/problem in the thread including screenshots.
PM me if I do not reply in a timely manner.

soundbarrierpro
05-21-2009, 07:18 PM
So, if i understand this correctly......

The box with the information will appear whenever anybody hits the index? It's able to be configured to dissolve after xxx seconds?

Is it only the index or every single page?

Thank you. This looks neat.

TheLastSuperman
05-21-2009, 07:20 PM
Updated w/ screenshot :p

TheLastSuperman
05-21-2009, 07:23 PM
So, if i understand this correctly......

The box with the information will appear whenever anybody hits the index? It's able to be configured to dissolve after xxx seconds?

Is it only the index or every single page?

Thank you. This looks neat.

Ahh :D

It depends on what template you paste the code... (And yes, configurable via time limit/colors/images/all content)

Templates:


Header - Always appears even when refreshed (some might find this irritating).
Forum Display - Only when they click on a Category that displays the forums within ;).
Forum Home - Will only appear on forum home but each time it is refreshed.


Future Update to possibly include:


Displays only once per browser session.
Details for various content which can be used within.

soundbarrierpro
05-21-2009, 07:25 PM
Awesome! I've been trying to figure out some way to add a popup and this seems to be what I'm looking for. Will try it this weekend.

Thank you for the cool work.

TheLastSuperman
05-21-2009, 07:31 PM
Awesome! I've been trying to figure out some way to add a popup and this seems to be what I'm looking for. Will try it this weekend.

Thank you for the cool work.

No problem :D

Now if this is not exactly what you wanted please use the link to Dynamic Drive in my post as there are some more popup window codes available there, ANYONE can find great scripts/codes on there to use both personal or commercial. (The only snag is you cannot package it for sale i.e. you must use the code on the site your working on not part of your software etc and if you want to release a mod using their codes simply visit their forums (vb forums of course :D) and ask, they are quite nice especially ddadmin ;))

TheLastSuperman
05-22-2009, 12:02 AM
And another screenshot, I used the code to display within the template instead of external for vb code to work, if you use the external file it will not work until I alter/update the mod. Using the internal code you can also use phrases ;) - I have embedded a divx video in the popup and simply changed the timer to 60000 for 60 seconds as the video was 0:55 long.

See attachment :D

Now what can you place inside to get amazing results??? Check it out :p

soundbarrierpro
05-22-2009, 09:49 AM
So here's what I did.

I added the .js script to the "Clientscript" directory at my host

I edited the "Head" of the "FORUMHOME" template with the code it says to add

I edited the "Body" of the "FORUMHOME" template with the code it says to add (to test)

After doing this, a white box shows up with the sample text in the left hand corner of my forumhome.

Problems:

The head expands to compensate for the text box making the area in the head huge.

The text box never disappears after 15 seconds. It just stays there.

Why is the box white and not taking on the default color of my forum home?

I guess I should also add, I want to use exactly the type of thing you are using in your example.

Thank you

soundbarrierpro
05-24-2009, 11:42 AM
Working. Figured it out. Thanks for this. It's awesome

TheLastSuperman
05-24-2009, 02:49 PM
So here's what I did.

I added the .js script to the "Clientscript" directory at my host

I edited the "Head" of the "FORUMHOME" template with the code it says to add

I edited the "Body" of the "FORUMHOME" template with the code it says to add (to test)

After doing this, a white box shows up with the sample text in the left hand corner of my forumhome.

Problems:

The head expands to compensate for the text box making the area in the head huge.

The text box never disappears after 15 seconds. It just stays there.

Why is the box white and not taking on the default color of my forum home?

I guess I should also add, I want to use exactly the type of thing you are using in your example.

Thank you

Just remember some codes if you change the location of the contents i.e. the .js file you need to change the link within the code your pasting to /clientscript/filename.js

And sometimes you might if your stumped need to check the .js file for any links to files it calls on, always remember to check the small things before you freak everyone :D.

Working. Figured it out. Thanks for this. It's awesome

Yes it is, depending on how you figure out it's usefullness :D

I'm always surprised others do not make an effort to investigate the mods I release, especially the ones where I say your imagination is pretty much the limit. I'm rarely short or tactless w/ the replies in my mods lol but I can only hold so many hands and no I do not mind just saying I cannot be everyones Superman, apparently that is :p. Tinker members and maybe you'll become a coder one day! Long story short you can create a child of a style then test all these mods that simply call files or use pasted codes and tinker w/ it there! If you mess it up just delete the child style and repeat not very hard and you can learn that way so if your reading don't shake your head ask for help and the nice ones will find you eventually :p or figure it out yourself like soundbarrier did, nothing more rewarding IMO!

S-MAN

Edit: Ohh and Soundbarrierpro, if you use the internal one like I said you can use phrases and other vbcode snippets but if you call the external file it will not work unless you call the correct global files etc etc which like I said will be later on. Additionally if you want to have the "Click Here" to hide it now on the one that does not include that code, simply copy the code and rename the id examplediv instead of ajaxdiv and now it will hide it PLUS you can use the <if> tags and find the usergroup id and only show to certain usergroups i.e. if you wanted to place short video on why they should register to your forums OR something new like a service or product and please check back soon as I do plan to add the option ito display once per browser session as some do not mind this on forumhome and some hate it upon refresh even though a hide link is included!