vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Scriptaculous Effects for vBulletin with User Dialogs (https://vborg.vbsupport.ru/showthread.php?t=136161)

Michael Morris 01-10-2007 10:00 PM

Scriptaculous Effects for vBulletin with User Dialogs
 
This project is cancelled.

Mr_Snob 01-11-2007 01:46 AM

heyy any screenshot would be cool :eek:

Michael Morris 01-11-2007 01:59 AM

Quote:

Originally Posted by Mr_Snob (Post 1155955)
heyy any screenshot would be cool :eek:


I've provided 3. The first is a popup (the global announcement) fully in. Note the rest of the forum window fades back to 50% to help it stand out. When you dismiss it the rest of the forum fades back to 100%

The second is a screen capture about halfway through the transition. Transitions run 1 1/2 seconds, that's hard coded in for the moment (I may move that to a setting later).

The third is the admincp shot of the settings.

However, to be honest, a simple screen shot doesn't do these things justice. They have to be seen fully animated to be appreciated :)

Mr_Snob 01-11-2007 02:06 AM

your hack sounds cool and you are too :D

Michael Morris 01-11-2007 02:53 AM

Version 1.0.1 30 minutes after version 1.0.0 because I forgot to put in the template caching call to avoid extra queries :\

Anyway, if anyone has any questions on this I'll be happy to answer them. In the meanwhile I'm going to cleanup the install process and go ahead and include the scriptaculous scripts in the mod zipfile.

SIN77 01-11-2007 03:13 AM

this seems very interesting

AMG021 01-11-2007 12:57 PM

looks intresting

VaaKo 01-11-2007 01:03 PM

Nice.

/me clicks install!

VaaKo 01-11-2007 01:10 PM

I'm having a problem, if you goto www.earthopia.com you'll get the system message but only the close button to click, the message isn't showing, and I have already written it.

Michael Morris 01-11-2007 01:11 PM

Thanks guys. I'm working on the PM launcher now - that's a little bit more complicated though but should be ready Sunday. That will add something to this that simply cannot be done with the javascript alert() function.

Firefox users should also note that this mod's fade down for logout works for them, unlike vbulletin's inbuilt grayscale trick which is IE only.

Michael Morris 01-11-2007 01:15 PM

Quote:

Originally Posted by VaaKo (Post 1156214)
I'm having a problem, if you goto www.earthopia.com you'll get the system message but only the close button to click, the message isn't showing, and I have already written it.

I saw a message when followed the link. Did you figure out what was wrong?

EDIT: This is what I saw under IE 6. Same in Firefox 2. Looks alright to me.

VaaKo 01-11-2007 01:32 PM

I'm not seeing anything: as an admin.
Even when I logout, I'm not seeing anything under IE & Firefox.

Why do you think?

dc pringle 01-11-2007 01:36 PM

I cant complete step 8 as it is only present in one of my four skins (possibly cuz i am running 3.6.0)

Still gonna give it a try though

What does step 8 actually do? Is it essential that i have that code in there?

VaaKo 01-11-2007 01:40 PM

Another bug, after users login they get by default an empty message with a close button, they can't access the forum before they click close... why is that man?

dc pringle 01-11-2007 01:47 PM

^^ I get that too

Also, when i edit a post and click 'save'

it doesnt go back to the original post in just says 'error on the page' on the bottom left hand corner and nothing seems to happen, although i did check it out and it does post

Michael Morris 01-11-2007 02:17 PM

Quote:

Originally Posted by VaaKo (Post 1156234)
I'm not seeing anything: as an admin.
Even when I logout, I'm not seeing anything under IE & Firefox.

Why do you think?

The plugin sets a cookie to prevent the popup from firing every page. If you didn't see it for whatever reason try dumping the cookie then closing the browser to end the session. I'll set up an account on your board though and see what it's doing.

EDIT: Created account mmorris and saw both dialogs as normal.

Michael Morris 01-11-2007 02:25 PM

Quote:

Originally Posted by dc pringle (Post 1156240)
I cant complete step 8 as it is only present in one of my four skins (possibly cuz i am running 3.6.0)

Still gonna give it a try though


What does step 8 actually do? Is it essential that i have that code in there?

Step 8 replaces the vbulletin default of greying out the screen and launching a logout confirmation with a scriptaculous dialog. If your skin doesn't have the code in the navbar it most likely moved the code to the header. In either event, it is not necessary to complete step eight for the mod to work.

Michael Morris 01-11-2007 02:29 PM

VaaKo, upon attempting to start a new thread I received the following error in the console.

Code:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMNSHTMLDocument.designMode]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://www.earthopia.com/clientscript/vbulletin_textedit.js?v=362 :: anonymous :: line 1307"  data: no]
The vbulletin editor generated this error - it is most likely a crashing due to conflict with the shoutbox. It is not related to this modification.

lovelypk 01-11-2007 11:40 PM

looks kool,
Clicked Install

jgommel 01-12-2007 02:13 PM

Hey there, I just installed this excellent mod, and most of it seems to work okay, but like another user mentioned, I can't utilize the effect in step 8. I'm using the iSkin (wrap) from extrempixels and the code you mention; though similar to some extent, is not exactly the same, and is indeed located in the header template (like you mentioned). Id still like to utilize the full potential of this install, could you or another member/user possibly look at the code I have and suggest a fix?

Current Header Code for Logout
Code:

<!-- LOGOUT -->
<if condition="$show['member']">
<td width="57" height="29"><a href="/forums/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><img id="nav_logout" src="$stylevar[imgdir_misc]/navx_logout.gif" width="57" height="29" border="0" alt="Logout" /></a></td>

One other thing - I noticed when I login as admin, the screen fades and I get 'Close' button, but no message. I checked my settings for 'Staff Announcement' and they are blank... any ideas?

Site: www.fstopmedia.com

Thanks,

Michael Morris 01-12-2007 03:52 PM

Quote:

Originally Posted by jgommel (Post 1157062)
Hey there, I just installed this excellent mod, and most of it seems to work okay, but like another user mentioned, I can't utilize the effect in step 8. I'm using the iSkin (wrap) from extrempixels and the code you mention; though similar to some extent, is not exactly the same, and is indeed located in the header template (like you mentioned). Id still like to utilize the full potential of this install, could you or another member/user possibly look at the code I have and suggest a fix?

Current Header Code for Logout
Code:

<!-- LOGOUT -->
<if condition="$show['member']">
<td width="57" height="29"><a href="/forums/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><img id="nav_logout" src="$stylevar[imgdir_misc]/navx_logout.gif" width="57" height="29" border="0" alt="Logout" /></a></td>


Change that to...
Code:

<!-- LOGOUT -->
<if condition="$show['member']">
<td width="57" height="29"><a href="#top" onclick="scriptaculous_log_out()"><img id="nav_logout" src="$stylevar[imgdir_misc]/navx_logout.gif" width="57" height="29" border="0" alt="Logout" /></a></td>


Quote:

One other thing - I noticed when I login as admin, the screen fades and I get 'Close' button, but no message. I checked my settings for 'Staff Announcement' and they are blank... any ideas?

Site: www.fstopmedia.com

Thanks,
Possible bug - I'll look at it tonight.

jgommel 01-12-2007 04:19 PM

Hey Michael - thanks for responding and giving me a hand. I tried changing my LOGOUT code, but when logging out, I get the following 404 page...

404 Not Found
The requested URL /login.php?do=logout&logouthash=41f7689411006c511fc c23073a361f66 does not exist.

Michael Morris 01-12-2007 05:00 PM

Quote:

Originally Posted by jgommel (Post 1157206)
Hey Michael - thanks for responding and giving me a hand. I tried changing my LOGOUT code, but when logging out, I get the following 404 page...

404 Not Found
The requested URL /login.php?do=logout&logouthash=41f7689411006c511fc c23073a361f66 does not exist.

Go to the new dialog_logout template (created when you installed the hack). The default contents of that template are:

HTML Code:

<div id="dialog_logout" style="display:none; position: absolute; top: 150px;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"><tr><td align="center">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="50%" align="center">
<tr><td class="tcat" style="padding: 5px;">Log Out?</td></tr>
<tr><td class="alt1">Are you sure you wish to logout?</td></tr>
<tr><td class="tfoot" align="center"><input class="button" type="button" value="Yes" onclick="window.location='login.php?do=logout&amp;logouthash=';" />&nbsp;&nbsp;<input class="button" type="button" value="No" onclick="dialogClose('dialog_logout');" /></td></tr></table>
</td></tr></table>
</div>

Replace with

HTML Code:

<div id="dialog_logout" style="display:none; position: absolute; top: 150px;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"><tr><td align="center">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="50%" align="center">
<tr><td class="tcat" style="padding: 5px;">Log Out?</td></tr>
<tr><td class="alt1">Are you sure you wish to logout?</td></tr>
<tr><td class="tfoot" align="center"><input class="button" type="button" value="Yes" onclick="window.location='/forums/login.php?do=logout&amp;logouthash=$bbuserinfo[logouthash]';" />&nbsp;&nbsp;<input class="button" type="button" value="No" onclick="dialogClose('dialog_logout');" /></td></tr></table>
</td></tr></table>
</div>

This is necessary since your forums seem to be off in an absolute directory (A portal setup I presume).

jgommel 01-12-2007 06:55 PM

Alright, we're getting closer... and yes, I've running vBadvanced CMPS as my frontend.

After editing the dialog_logout template, I was not able to save it due to the following error:

PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

I checked the code and found a tick inside the logouthash bracket instead of outside...
logouthash=$bbuserinfo['logouthash]';" I just moved the tic outside the bracket, and the template saved just fine.

Now when I try to log out, the 'Yes' button does nothing, but the 'No' button returns me back to the initial page (fades-in). We're getting closer.

I've also attached a few screenshots. One include the page that appears with no dialog; only the close button.

I appreciate your time helping me with this. Maybe once we get this working you can use this in an install txt file for those that use vBadvanced CMPS.

Michael Morris 01-12-2007 07:11 PM

Wrong tick then. I corrected the typo in my post above - it should save now.

jgommel 01-12-2007 09:00 PM

Quote:

Originally Posted by Michael Morris (Post 1157385)
Wrong tick then. I corrected the typo in my post above - it should save now.

Outstanding, Thats all working now! I appreciate your help fixing that.

Now on to a few other things I just tested out... The opacity of the msg box is matching that of the background, or the background is mimicking a mask. I have to check on my PC, but while viewing my site thru Firefox on my Mac laptop, the MSG box is very dim - almost like it's dimming with the background (Screenshot 1).

Secondly, while viewing my site thru Apple's Safari, the dialog box not only does the same thing I mentioned above, but it also resizes the box and throws it to the left (Screenshot 2).

Before I left work, I noted that on my work PC, the dialog ox was centered fine, but I don't recall the opacity issue.

Thanks.

Hornstar 01-12-2007 11:45 PM

This has some very good potential however can I request this.

Make another option to show for a specific user (username or userid). That way if a user is misbehaving I can then show them a pop up and hopefully they will get the point to stop. I think this would be a really cool idea. Also if you could with this specific idea, have options. eg. show popup every x minutes. and i may think of some more later.

nice work so far, but the above would make this stand out even more ^^

murekhalir 01-13-2007 12:58 AM

With this hack are we able to have a popup once every while for things such as 'vote for us' that doesnt come on too much, but at a good enough rate to get both votes and not annoy members?

Time limit perhaps? 1 popup a day?

Michael Morris 01-13-2007 01:10 PM

Quote:

Originally Posted by hornstar1337 (Post 1157618)
This has some very good potential however can I request this.

Make another option to show for a specific user (username or userid). That way if a user is misbehaving I can then show them a pop up and hopefully they will get the point to stop. I think this would be a really cool idea. Also if you could with this specific idea, have options. eg. show popup every x minutes. and i may think of some more later.

nice work so far, but the above would make this stand out even more ^^

The next addition I have planned is to display private messages in a dialog, and so why not just send the user a PM regarding their misbehavior?

WildSharky 01-15-2007 10:16 PM

Quote:

Originally Posted by VaaKo (Post 1156242)
Another bug, after users login they get by default an empty message with a close button, they can't access the forum before they click close... why is that man?

any word on getting this fixed as it happens on my site to and it would be cool to just have open and off thing so you did have to delete your message everytime..

And thanks for the great hack..

ociosos 01-16-2007 11:32 AM

hi it is really nice!!!! but im having some troble :( when i intall it, i having issues when i want to write a psot on the quick reply box on any thread... it is like deactive... well this only happend on FireFox on IE works just fine...

thank you in advance for your reply...

ePrOmD 01-24-2007 01:39 PM

hi.. its look grate!
only one question.. its works on vb 3.6.0?

JohnBee 02-05-2007 06:40 PM

Very fancy, love the transitions but this hack desperately needs on off controls for the popups though. Any chance you could add on/off checkbox next to each announcement option?

JohnBee 02-05-2007 09:30 PM

Another issue with this hack is this line...
Code:

<div id="primary_window" style="display:none;">
it will return a blank screen whenever another lightbox call is encountered *thickbox

SimplyBen 02-07-2007 09:10 PM

THAT IS GODLY! THANK YOU! Of all mods I have installed (1000's), this is by far the coolest one with minimal extra editing needed. oh and i have never spent the time to leave an actual comment on a mod.. so good job!

YogiTW 02-08-2007 10:55 PM

I just installed this and it broke the inline editing functionality. The error is:
"obj.style has no properties"

Referencing line 818 in vbulletin_textedit.js

SimplyBen 02-09-2007 08:39 PM

I get a blank box often on the homepage. Everyone has to click close before doing anything on a blank box. Anything have a way to fix this? this is the only thing stopping me from using this hack.

unitedbreaks 02-10-2007 07:39 PM

Quote:

Originally Posted by SimplyBen (Post 1178678)
I get a blank box often on the homepage. Everyone has to click close before doing anything on a blank box. Anything have a way to fix this? this is the only thing stopping me from using this hack.

Ditto. I installed, loved it.. but couldn't take the blank msg.

Also, If possible.. Add a fade(in/out) duration time setting in admincp.

Great hack I must say, just needs debugging.

YogiTW 02-11-2007 06:55 PM

The problem is vB's use of the for/in loop: for (var i in array_var) { }

When you alter the array prototype, those new values show up as i. For example:
Code:

Array.prototype.wtf = function() { }

var s = new Array("1", "2", "3");

for (var i in s) {
  alert(i);
}

you will get pop ups that say 1, 2, 3, and wtf.

SimplyBen 02-12-2007 03:39 PM

So, how to fix this exactly?


All times are GMT. The time now is 05:52 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.01351 seconds
  • Memory Usage 1,849KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (11)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
  • (40)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