vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - jQt jQuery Suite for vB4 (https://vborg.vbsupport.ru/showthread.php?t=267121)

ramil86 08-11-2011 06:42 AM

That means if i translate i vis xml, i'll have only in one language?

ramil86 08-11-2011 06:47 AM

i should import it as a language file, by overwriting my original English language right?

gothicuser 08-11-2011 07:01 AM

Quote:

Originally Posted by ramil86 (Post 2232142)
i should import it as a language file, by overwriting my original English language right?

Yes
It will only overwrite the defined phrases.
I'm a little new to the phrases/translation thing, so bare with me please.
I think that if you translate the phrases in the XML file I linked to, then change the highlighted name in the line:
Code:

<language name="English (US)" vbversion="4.0.0" product="jqt_suite" type="phrase">
to reflect your language, you can then import it to the appropriate language.
Please, anyone with more knowledge please correct me if I'm wrong.

ramil86 08-11-2011 07:55 AM

Thanks a lot, i'll try

ramil86 08-11-2011 11:01 AM

Dear gothicuser, i wonder if we can have it as a popup window when people visit our website, not when the click the register button. I really need such function, visitors will see the current jquery window right after they visit the web site. Is it possible. Any help would be greatly appreciated. Thanks

ramil86 08-11-2011 11:03 AM

the popup will be with the condition if a registered or not, maybe after a while it'll close itself or will have to be closed by the user with X button. Is it possible?

gothicuser 08-11-2011 11:20 AM

Quote:

Originally Posted by ramil86 (Post 2232196)
Dear gothicuser, i wonder if we can have it as a popup window when people visit our website, not when the click the register button. I really need such function, visitors will see the current jquery window right after they visit the web site. Is it possible. Any help would be greatly appreciated. Thanks

Somebody else requested that. I will look into including that as an option I think.
Can't do much until Saturday, but watch this space.

ramil86 08-11-2011 11:34 AM

Quote:

Originally Posted by gothicuser (Post 2232205)
Somebody else requested that. I will look into including that as an option I think.
Can't do much until Saturday, but watch this space.

Great, thanks a lot dear gothicuser . Looking forward to hearing from you

ramil86 08-11-2011 01:10 PM

I have a problem with this mode and the mode i installed before. My mod is "Latest Threads Ticker [jQUery] " https://vborg.vbsupport.ru/showthrea...=262910&page=7 . Both requires code insertion into navbar template. When i insert them together on of them does not function.

This is the code of the mode to enter at the end of navbar template
PHP Code:

<!--ticker-->
<
div id="ticker-wrapper" class="no-js">
<
ul id="js-news" class="js-hidden">
<
script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script>
    <
script type="text/javascript">
<!--
    for (var 
0threads.lengthi++)
    {
        
document.write('<li><a href="{vb:raw vboptions.bburl}/showthread.php?t=' threads[i]['threadid'] + '">' threads[i]['title'] + '</a>' '&nbsp;&nbsp;&nbsp;' '<span style="color: red;">Posted By:</span>''&nbsp;' threads[i]['poster'] + '</a>' '</li>');
    }
//-->
</script>
</
ul>
</
div>
<!--
ticker--> 


This is the code of your great mode to enter in navbar template
PHP Code:

{vb:raw template_hook.logreg_display


How to make them no to conflict with each other. I'd love to use both of them. Please show me the way. Thanks

gothicuser 08-11-2011 02:07 PM

Quote:

Originally Posted by ramil86 (Post 2232229)
How to make them no to conflict with each other. I'd love to use both of them. Please show me the way. Thanks

I will install this other mod on my test devbox and see if I can find a way to make them play nicely together.
You may have to wait until Saturday though.

ramil86 08-11-2011 02:56 PM

You're so good my friend, thank you so much.I wish your mod would be the mod of the month with your new great upgrades. Can't way to see the new perfect version of this mod. Good luck

AttalaEA 08-12-2011 02:06 AM

Dear gothicuser,

Thank you so much for this great mod, everything works fine except the logout button when i click on it the browser redirects to http://www.mywebsite.com/# and no popup shows up and stay logged in. [vBulletin 4.1.5 PL1][Note: I have set my homepage as Forums instead of the CMS]
I noticed that I can logout only while I am at my profile page only

Also I have a fixed width style, and when I resize the browser window to a smaller size the popup windows of registeration/login remains still at its place, why it doesn't move always centered with the website?

Also in IE9 the popup window always floats in the extreme left of the browser window not centered.

Finally how to add secuirty question to the registeration popup window?

Any help will be appreciated.

Thank You

gothicuser 08-12-2011 04:36 AM

Hi
For the first problem, I have to ask a question. Do you have lots of mods installed?
If yes then to fix the problem you will need to go to your AdminCP/Plugins & Products/Plugin Manager and open 'jQt Suite Parse the Logout Template'
Change the execution order from '20' to maybe '60' or higher. That should get the logout button working again.

The positioning of the popup is defined in the main script library. I don't have access to IE9 so would be grateful for a screenshot please.

Quote:

Originally Posted by AttalaEA (Post 2232501)
everything works fine except the logout button when i click on it the browser redirects to http://www.mywebsite.com/# and no popup shows up and stay logged in. [vBulletin 4.1.5 PL1][Note: I have set my homepage as Forums instead of the CMS]
I noticed that I can logout only while I am at my profile page only

Also I have a fixed width style, and when I resize the browser window to a smaller size the popup windows of registeration/login remains still at its place, why it doesn't move always centered with the website?

Also in IE9 the popup window always floats in the extreme left of the browser window not centered.

Finally how to add secuirty question to the registeration popup window?

Any help will be appreciated.

Thank You


AttalaEA 08-12-2011 11:36 AM

1 Attachment(s)
Hi,

I do not have lots of mods installed, and I have changed it gradulaly til I have reach 120 in the execution order of 'jQt Suite Parse the Logout Template' but still doesn't work.

Also for IE9 When I click on Logout it redirects me to the content CMS page (note I have changed homepage to forum) and I have attached also an image for the alignment issue.

I can PM you with AdminCP login to check it out if you don't mind.
Thanks

Attachment 131888

gothicuser 08-12-2011 12:17 PM

This one confuses me.
I will have to investigate to see if changing the home page could make a difference, though off the top of my head I can't see how as the link I use to logout is lifted directly from the vB logout code, I made no alterations. Though the security I added could well have a bearing. I'll get back to you on that one as soon as I can.

As regards to the IE9 alignment, I will see what I can do. I know that sounds feeble, but I have never used IE9 and have no idea what is compatible.
e.g. I use 'margin:auto;' to centralise the popup, but does IE9 recognise that definition??

Quote:

Originally Posted by AttalaEA (Post 2232600)
Hi,

I do not have lots of mods installed, and I have changed it gradulaly til I have reach 120 in the execution order of 'jQt Suite Parse the Logout Template' but still doesn't work.

Also for IE9 When I click on Logout it redirects me to the content CMS page (note I have changed homepage to forum) and I have attached also an image for the alignment issue.


Thanks

Attachment 131888


AttalaEA 08-12-2011 12:22 PM

Quote:

Originally Posted by gothicuser (Post 2232611)
This one confuses me.
I will have to investigate to see if changing the home page could make a difference, though off the top of my head I can't see how as the link I use to logout is lifted directly from the vB logout code, I made no alterations. Though the security I added could well have a bearing. I'll get back to you on that one as soon as I can.

As regards to the IE9 alignment, I will see what I can do. I know that sounds feeble, but I have never used IE9 and have no idea what is compatible.
e.g. I use 'margin:auto;' to centralise the popup, but does IE9 recognise that definition??

Yes It does recognize 'the margin:auto;' but do you need My AdminCP login to invetigate?

Thanks for your kind help, appreciated

ramil86 08-12-2011 01:01 PM

Quote:

Originally Posted by gothicuser (Post 2232241)
I will install this other mod on my test devbox and see if I can find a way to make them play nicely together.
You may have to wait until Saturday though.

Hi. I finally managed to prevent the conflict between multiple jquery plugins.
Here's what i did:

The original code of my other mod with jquery:

PHP Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<
script src="js/jquery.ticker.js" type="text/javascript"></script>
<
script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script>
<
script type="text/javascript">
    $(function () {
        $(
'#js-news').ticker();
    });
</
script>

3Open additional.css template

4
At the end of the template ADD the following code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* StatorLatest Threads Ticker  */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#ticker-wrapper * {
        
margin-leftauto;
        
margin-rightauto;





I just added
PHP Code:

var $j jQuery.noConflict(); 

code to my script and used
PHP Code:

$j 

instead of
PHP Code:

$ = 

the final code to prevent conflicts

PHP Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<
script src="js/jquery.ticker.js" type="text/javascript"></script>
<
script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script>
<
script type="text/javascript">
var 
$j jQuery.noConflict();
    
$j(function () {
        
$j('#js-news').ticker();
    });
</
script


ramil86 08-12-2011 01:03 PM

Quote:

Originally Posted by ramil86 (Post 2232212)
Great, thanks a lot dear gothicuser . Looking forward to hearing from you

Will u include facebook connect button in your future release? Or could you please show us how to include fconnect function to your mod. Thank you

gothicuser 08-12-2011 04:16 PM

Quote:

Originally Posted by ramil86 (Post 2232618)
Hi. I finally managed to prevent the conflict between multiple jquery plugins.

Thank you very much for sharing this, very useful indeed.

gothicuser 08-12-2011 07:14 PM

Quote:

Originally Posted by AttalaEA (Post 2232501)
Finally how to add secuirty question to the registeration popup window?

I have set it up to work with all three Human Verification methods, (Image, Recaptcha and Question/answer) and it is working for me in a fresh install of vB.
When I look into your AdminCP I'll see if there's a problem friend.

duketxboy 08-12-2011 08:06 PM

Is it possible just to add the register part if I already have a twitter style log in?

AttalaEA 08-13-2011 03:21 PM

Quote:

For those that have the IE9 issue, where the overlay is not centred, please download and unpack the attachment 'jquery.tools.min-all.js.zip' then upload it to your 'jqt_suite' folder, overwriting the original.
Thank you very much for your help that is working great now except very small issue that the login popup windows it opens initially very fine but after it opens it stretches itself to the right side and it looks very elongated. Any Suggestions.

Thanks

hivitro 08-14-2011 06:22 AM

Its look nice, i will try

ramil86 08-15-2011 07:14 AM

Any updates for facebook connect button intergration?

ramil86 08-15-2011 07:47 AM

Quote:

Originally Posted by gothicuser (Post 2232205)
Somebody else requested that. I will look into including that as an option I think.
Can't do much until Saturday, but watch this space.

any progress dear gothicuser?

gothicuser 08-16-2011 04:26 AM

Quote:

Originally Posted by ramil86 (Post 2233683)
any progress dear gothicuser?

Sorry to have been so long in replying.
I have been trying to get the Facebook button working last evening and this morning, without any success at all.
One of the edits I made killed my forums, so that was obviously not quite right :(
Will persevere and let you know as soon as there is any news.

kishorprins 08-21-2011 05:21 PM

1 Attachment(s)
I have a really odd problem ... I am using a custom style and every time I try to add the "Login/Register" button, my whole navbar is misplaced.


This only occurs when I try to change this code:
Code:

<ul class="nouser">
                        <vb:if condition="$show['registerbutton']">
                                <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
                        </vb:if>

to the one provided in the instructions.

GamersChallenge 08-21-2011 06:33 PM

great mod, can you maybe add for your next version forgotten password and user can also login using email? there is already a mod here that lets users login with email however it doesn't work with your mod. thank you so much for your time and effort helping the vb community

gothicuser 08-21-2011 07:11 PM

Quote:

Originally Posted by kishorprins (Post 2236250)
I have a really odd problem ... I am using a custom style and every time I try to add the "Login/Register" button, my whole navbar is misplaced.


This only occurs when I try to change this code:
Code:

<ul class="nouser">
            <vb:if condition="$show['registerbutton']">
                <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
            </vb:if>

to the one provided in the instructions.

The only thing I can suggest off the top of my head is to just change the <li> bit thus:
Replace this:
PHP Code:

<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li

With this:
PHP Code:

<li><a href="#" rel="#sheet" id="see">Log In/Register</a></li

(this will turn the 'switch' off, but if it does work I'll sort something out)

If that still causes problems then maybe the custom style has an element identifier of 'see', in which case let me know and again, I'll try to sort something out.
Sorry to sound so vague, but it's Sunday night, and I'm kn*cke*ed!

Quote:

Originally Posted by GamersChallenge (Post 2236276)
great mod, can you maybe add for your next version forgotten password and user can also login using email? there is already a mod here that lets users login with email however it doesn't work with your mod. thank you so much for your time and effort helping the vb community

The forgotten password I should have installed from the beginning, my bad. The login with Email I have tried, without much success, but (hopefully) watch this space.

GamersChallenge 08-21-2011 07:27 PM

here is a mod that allows to login with the email, maybe you can integrate to work with this mod?

https://vborg.vbsupport.ru/showthread.php?t=264192

kishorprins 08-22-2011 11:01 AM

Quote:

Originally Posted by gothicuser (Post 2236288)
The only thing I can suggest off the top of my head is to just change the <li> bit thus:
Replace this:
PHP Code:

<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li

With this:
PHP Code:

<li><a href="#" rel="#sheet" id="see">Log In/Register</a></li

(this will turn the 'switch' off, but if it does work I'll sort something out)

If that still causes problems then maybe the custom style has an element identifier of 'see', in which case let me know and again, I'll try to sort something out.
Sorry to sound so vague, but it's Sunday night, and I'm kn*cke*ed!


The forgotten password I should have installed from the beginning, my bad. The login with Email I have tried, without much success, but (hopefully) watch this space.

That certainly did the trick :)! I have planned some customization; I've been working on some better buttons and changing the layout (e.g moving he "Remember me" option to the right). Hope you do not mind adding these "improvements".

Edit:
Where is the javascript for the close (the "X" image) for the pop up?

gothicuser 08-23-2011 03:45 AM

Quote:

Originally Posted by kishorprins (Post 2236523)
Hope you do not mind adding these "improvements".

Where is the javascript for the close (the "X" image) for the pop up?

For the first part, improve ahead, no problems from me at all :)

The scripting for the close button is in the main jQuery library itself. Called by the
<a class="close"></a>

Good to hear the 'fix' worked, thankyou for letting me know.

kishorprins 08-23-2011 11:01 AM

Quote:

Originally Posted by gothicuser (Post 2236864)
For the first part, improve ahead, no problems from me at all :)

The scripting for the close button is in the main jQuery library itself. Called by the
<a class="close"></a>

Good to hear the 'fix' worked, thankyou for letting me know.

I really can't use that since I will be using the default image. Even if I were to change the CSS and image, the jquery is setting the position. I want to use a custom image to close but it seems to be not possible.

gothicuser 08-23-2011 11:39 AM

Quote:

Originally Posted by kishorprins (Post 2236971)
I really can't use that since I will be using the default image. Even if I were to change the CSS and image, the jquery is setting the position. I want to use a custom image to close but it seems to be not possible.

No, the CSS fixes the image and position.
PHP Code:

/* default close button positioned on upper right corner */
.close {
    
background-image:url(images/img/close.png);
    
position:absoluteright:0pxtop:0px;
    
cursor:pointer;
    
height:35px;
    
width:35px;


The line 'position:absolute; right:0px; top:0px;' fixes the position to the top right.
This can be changed or omitted to suite your needs.

kishorprins 08-23-2011 01:46 PM

1 Attachment(s)
Quote:

Originally Posted by gothicuser (Post 2236985)
No, the CSS fixes the image and position.
PHP Code:

/* default close button positioned on upper right corner */
.close {
    
background-image:url(images/img/close.png);
    
position:absoluteright:0pxtop:0px;
    
cursor:pointer;
    
height:35px;
    
width:35px;


The line 'position:absolute; right:0px; top:0px;' fixes the position to the top right.
This can be changed or omitted to suite your needs.

Well this is really odd. I removed the positioning for the close block and edited the picture like so:

Code:

.close {
        background-image:url(images/c.png);
        cursor:pointer;
}

This my code for the jqt logout template:
Code:

<vb:if condition="$vboptions['jqt_suite_markread']  == '0'">
<script src="{vb:raw vboptions.bburl}/jqt_suite/jquery.tools.min-all.js" type="text/javascript"></script>

</vb:if>
        <vb:if condition="$vboptions['storecssasfile']">
                {vb:cssfile jqtsuite_yesno.css}
        <vb:else />
                {vb:cssfile jqtsuite_yesno.css}
        </vb:if>
<!-- Start of Logout Dialog -->
<div id="shuut">

<div style="display: block;" class="pane" id="pane11">
<div class="lrtop">

  <div class="mlr">
    &nbsp; Log Out
</div>
 <p style="text-align:center;">Do you really want to leave so soon? </p>
    <br />
                                    <p style="text-align:center;" class="high">
                <!--<input type="submit" value="Log Out?" class="rounded" /> -->
                        <a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}"><img alt="Accept" src="images/a.png"></img></a>   

                      <a class="close"></a> 
                        </p>
</div>
</div>

</div>

<script>
$(document).ready(function() {
$("#myfirm").validator({
        message: '<div><em/></div>',
        position: 'top left',
        offset: [3, 40]
});
// overlay with masking. when overlay is loaded or closed we hide error messages if needed
$("#suu").overlay({mask: '#000', speed: 'slow', fixed: false}).bind("onBeforeClose", function(e) {
        $(".error").hide();
});
});
</script>
    <!-- End of Logout Dialog -->

I changed the css file, added a "accept" button and I want to ad the close button next to the accept button but ... This is my outcome (please see attached picture).

gothicuser 08-23-2011 02:06 PM

Give me a couple of minutes

kishorprins 08-23-2011 02:12 PM

Quote:

Originally Posted by gothicuser (Post 2237008)
Give me a couple of minutes

It seems to be the logregister template. Since that is also being called, the CSS for the close element positioning is being set.

gothicuser 08-23-2011 02:33 PM

Quote:

Originally Posted by kishorprins (Post 2237010)
It seems to be the logregister template. Since that is also being called, the CSS for the close element positioning is being set.

Right, the CSS you have to edit is the jqt_suite.css template (inside the CSS template list)
I managed (with some fiddling) to position the close image pretty accurately, though remember that a: the '<a class="close"></a>' is kept, as that is what the jQt script is polling for, b: you must keep the 'absolute' and c: any changes to the CSS will effect all three templates. (logout, markread and logreg).
Keeping that in mind I made changes along the lines of:
position:absolute; right:80px; bottom:25px;
Experiment and let me know.

p.s. reading back over this glased my eyes, if you understand it, you're a better person than me :o

kishorprins 08-23-2011 02:42 PM

Quote:

Originally Posted by gothicuser (Post 2237017)
Right, the CSS you have to edit is the jqt_suite.css template (inside the CSS template list)
I managed (with some fiddling) to position the close image pretty accurately, though remember that a: the '<a class="close"></a>' is kept, as that is what the jQt script is polling for, b: you must keep the 'absolute' and c: any changes to the CSS will effect all three templates. (logout, markread and logreg).
Keeping that in mind I made changes along the lines of:
position:absolute; right:80px; bottom:25px;
Experiment and let me know.

p.s. reading back over this glased my eyes, if you understand it, you're a better person than me :o

Let me decode that ...
Keep the '<a class="close"></a>' where it is, then I need to keep the absolute positioning in the CSS file and all changes that I make to the CSS file effects all three templates.

Thanks for the help :).

gothicuser 08-23-2011 02:45 PM

Quote:

Originally Posted by kishorprins (Post 2237019)
Let me decode that ...
Keep the '<a class="close"></a>' where it is, then I need to keep the absolute positioning in the CSS file and all changes that I make to the CSS file effects all three templates.

Thanks for the help :).

Ignore the CSS file, it's the CSS TEMPLATE you need to edit.
You're welcome.


All times are GMT. The time now is 06: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.01973 seconds
  • Memory Usage 1,918KB
  • 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
  • (5)bbcode_code_printable
  • (13)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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