Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Scriptaculous Effects for vBulletin with User Dialogs Details »»
Scriptaculous Effects for vBulletin with User Dialogs
Version: 1.0.1, by Michael Morris Michael Morris is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.4 Rating:
Released: 01-10-2007 Last Update: Never Installs: 48
Uses Plugins
Additional Files  
No support by the author.

This project is cancelled.

Show Your Support

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

Comments
  #22  
Old 01-12-2007, 03:52 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jgommel View Post
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.
Reply With Quote
  #23  
Old 01-12-2007, 04:19 PM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 01-12-2007, 05:00 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jgommel View Post
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).
Reply With Quote
  #25  
Old 01-12-2007, 06:55 PM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 01-12-2007, 07:11 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong tick then. I corrected the typo in my post above - it should save now.
Reply With Quote
  #27  
Old 01-12-2007, 09:00 PM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michael Morris View Post
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.
Reply With Quote
  #28  
Old 01-12-2007, 11:45 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ^^
Reply With Quote
  #29  
Old 01-13-2007, 12:58 AM
murekhalir murekhalir is offline
 
Join Date: Oct 2006
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #30  
Old 01-13-2007, 01:10 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337 View Post
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?
Reply With Quote
  #31  
Old 01-15-2007, 10:16 PM
WildSharky's Avatar
WildSharky WildSharky is offline
 
Join Date: Jun 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VaaKo View Post
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..
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 07:28 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.07287 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
  • (2)bbcode_code
  • (2)bbcode_html
  • (6)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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