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-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..


All times are GMT. The time now is 01:49 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.01258 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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