vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Forum Tournaments & Ladders (https://vborg.vbsupport.ru/showthread.php?t=189375)

bananalive 09-14-2008 10:36 AM

Quote:

Originally Posted by harlita (Post 1621465)
UserID fetch inputs HTML header information into the USERID feild which, of course doesn't work.

I'm using 3.7.3 and just did a new install of this hack.

Would you like a screenshot to see what it's doing or are you already familiar with what I'm describing?

[s]Screenshot would be helpful please. I've tested it on my forum and it works fine with me (In IE7 and Firefox). Whats the user's name? Has it worked at all?[/s] Did you upload tmnt_getuser.php -> \ ? <- If you haven't uploaded this file then you get the error you described.
Quote:

Originally Posted by WNxWakko (Post 1621470)
I am having the same issue. Everything else in this mod works very well.

When I try and add a member, I have two boxes, one for ID one for username. When I enter a name and click fetch, I get this,

I learned that the only way to bypass and add a member is if I enter both their username and go hunting down their userID.

How do I resolve this issue?

[s]As i said above I dont get this problem. Whats the user's name? Has it worked at all? [/s]Did you upload tmnt_getuser.php -> \ ? <- If you haven't uploaded this file then you get the error you described.
Quote:

Originally Posted by butler312 (Post 1621695)
I haven't installed the newest version yet, but I have some issues/suggestions:

1) Tournament creator doesn't see an actual bracket. He/She just sees it in a list form. They are in the correct order so you can still figure out the bracket by going down the line and pairing them up, but this is extremely annoying if it is a large tournament.

The layout for tournament moderators has been fixed in latest version. (Screenshot)

WNxWakko 09-14-2008 01:03 PM

Quote:

Originally Posted by bananalive (Post 1621856)
[s]
[s]As i said above I dont get this problem. Whats the user's name? Has it worked at all? [/s]Did you upload tmnt_getuser.php -> \ ? <- If you haven't uploaded this file then you get the error you described.


Yes that file was uploaded to my forum root directory. I reuploaded it again just to make sure it wasnt corrupted. Still having the same issue.

bananalive 09-14-2008 02:28 PM

1 Attachment(s)
Quote:

Originally Posted by WNxWakko (Post 1621916)
Yes that file was uploaded to my forum root directory. I reuploaded it again just to make sure it wasnt corrupted. Still having the same issue.

Try replacing attached file with your current tournament.php

WNxWakko 09-14-2008 02:41 PM

Uploaded file. still not working.

harlita 09-14-2008 02:57 PM

For the sake of page loading and space I'll just link the screenshots rather than img tagging them.

BananaLive - here you'll see the correct files are uploaded to the correct locations:
tmnt_getuser.php
tmnt_selectuser.php
clientscript.js


And here you'll see what happens when I try to enter the Username:
Adding Username - as you can see, it resolves the name having successfully found the member in the username field itself..
Note: I've tried it both ways, by ignoring the offered username in the dropdown, and by selecting the username in the drop down.

But once I click "Fetch UserID" you'll see it automatically populates the UserID field with the HTML output that Wakko and I are both seeing.

This happens in both IE 7 and FF 3 on two different computers (etc etc etc).

Any ideas on what is going wrong?

I'm running 3.7.3 Patch Level 1 VBulletin and the problem seems to be only with the UserID Fetch, as it works perfectly fine if I manually input both the UserID and the Username.


Edit - just saw your post with the file attachment, I will try that really quick as well. Thanks so much for supporting your mod, by the way. It's one of the things that makes this community freaking awesome!


:)

WNxWakko 09-14-2008 05:02 PM

I found something interesting.

I decided to put tmnt_getuser.php into my webroot which is one directory up from my forum root directory and I got a different error in your id box shown below.

Quote:

<br /><b>Warning</b>: require_once(global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/warriornation.net/httpdocs/tmnt_getuser.php</b> on line <b>2</b><br /><br /><b>Fatal error</b>: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'global.php' (include_path='.:.:') in <b>/warriornation.net/httpdocs/tmnt_getuser.php</b> on line <b>2</b><br />
This leads me to believe that your script is looking at my webroot instead of forum root. If I take the file back out of my webroot, the error returns to the original message I pasted in an above thread.

Stifmeister2 09-14-2008 07:21 PM

Quote:

Originally Posted by bananalive (Post 1620589)
To use this mod with v3.6.x you will need to create template memberinfo_css with following css
(This is for the css needed for the comments to be displayed properly)
HTML Code:

<style type="text/css" id="memberinfo_css">
<!--
#content_container {
        width:100%;
        float:$stylevar[left];
        margin-$stylevar[right]:-256px;
}
#content {
        margin-$stylevar[right]:256px;
}
#sidebar_container {
        width:250px;
        float:$stylevar[right];
}

.list_no_decoration {
        list-style-type:none;
        margin:0px;
        padding:0px;
}

div.fixed_width_avatar {
        text-align:center;
        width:60px;
}

/**
* Memberinfo Small
*/
li.memberinfo_small {
        margin-top:6px;
}
li.memberinfo_small div.fixed_width_avatar {
        margin-$stylevar[right]:6px;
}
li.memberinfo_small div.info_bar, #friends li.memberinfo_small div.info_bar {
        border-width:1px 0px 0px 0px;
        margin-bottom:6px;
}
li.memberinfo_small div.info_bar ul {
        padding:6px;
}
li.memberinfo_small ul.friend_im_list li {
        display:inline;
        margin-$stylevar[right]:3px;
}
li.memberinfo_small ul.friend_im_list img {
        vertical-align:middle;
}

/**
* Memberinfo Tiny
*/
li.memberinfo_tiny {
        height:105px;
        width:75px;
        overflow:hidden;
        float:$stylevar[left];
        text-align:center;
        margin:1px;
}

/**
* Tabs and Blocks
*/
.content_block {
        margin-bottom:6px;
        padding:$stylevar[cellspacing]px;
}
.content_block .block_row {
        padding:$stylevar[cellpadding]px;
        margin:$stylevar[cellspacing]px 0px 0px 0px;
}
.content_block .block_title {
        padding:$stylevar[cellpadding]px;
        margin:0px 0px 0px 0px;
}
/*.content_block h4.thead, .content_block .block_title {
        padding:4px;
        margin:$stylevar[cellspacing]px 0px 0px 0px;
}*/
.content_block .block_footer {
        text-align:$stylevar[right];
        padding:4px;
        margin:$stylevar[cellspacing]px 0px 0px 0px;
}
a.collapse_gadget {
        float:$stylevar[right];
}

/**
* Popup Menus Built With List Markup
*/
ul.vbmenu_popup li {
        padding:4px;
        margin:0px 1px 1px 1px;
        white-space:nowrap;
}
ul.vbmenu_popup li.first {
        margin:1px;
}
ul.vbmenu_popup li.notext {
        font-size:1px;
}

/**
* Override Menu CSS for 'Send Message' Menu
*/
#minicontact_menu li.vbmenu_option, #minicontact_menu li.vbmenu_hilite {
        padding:0px;
        padding-$stylevar[right]:4px;
}
#minicontact_menu li.vbmenu_option img, #minicontact_menu li.vbmenu_hilite img {
        padding:4px;
}

/**
* Profile Field List Title / Value Pairs
*/
dl.profilefield_list dd {
        margin-bottom:3px;
        margin-$stylevar[left]:16px;
}

/**
* Sidebar profile field blocks
*/
#sidebar_container dl.profilefield_list {
        font-size:11px;
}

/**
* Top Panel
*/
#main_userinfo {
        margin-bottom:20px;
}
#main_userinfo #profilepic_cell {
        border-bottom-width:0px;
        padding:4px;
}
#main_userinfo .profilepic_adjacent {
        padding-$stylevar[left]:6px;
}
#main_userinfo h1 {
        font-size:18pt;
        font-weight:normal;
        margin:0px;
}
#main_userinfo h2 {
        font-size:10pt;
        font-weight:normal;
        margin:0px;
}
#reputation_rank {
        float:$stylevar[right];
}
#reputation {
        margin-bottom:6px;
        text-align:$stylevar[right];
}
#rank {
        margin-bottom:6px;
        text-align:$stylevar[right];
}
#send_message_cell {
        padding-bottom:6px;
        text-align:$stylevar[right];
}
#link_bar ul {
        padding:4px;
}
#link_bar li.thead {
        float:$stylevar[left];
        margin-$stylevar[right]:10px;
        white-space:nowrap;
        font-weight:normal;
        background:transparent;
}
#link_bar a {
        text-decoration:none;
}
#link_bar a:hover {
        text-decoration:underline;
}
#activity_info {
        border-top-width:0px;
}
#activity_info div.alt2 {
        padding:4px;
}
#link_bar #usercss_switch_link {
        float:$stylevar[right];
        margin-$stylevar[left]:3px;
        margin-$stylevar[right]:0px;
}

/**
* Visitor Messaging Tab
*/

#qc_error_div {
        text-align:$stylevar[left];
        margin-bottom:6px;
}
#qc_error_header {
        font-weight:bold;
}
#qc_error_okay {
        text-align:$stylevar[right];
}

#message_form {
        display:block;
        margin:0px;
}
#message_form textarea {
        width:98%;
        height:50px;
}
#message_form div.messagetext {
        text-align:$stylevar[left];
}
#message_form div.allowed_bbcode {
        float:$stylevar[left];
}
#message_form div.submit_button {
        text-align:$stylevar[right];
}

#visitor_messaging #inlinemodsel {
        float:$stylevar[right];
}

#visitor_messaging #view_my_conversation_link {
        float:$stylevar[right];
        text-decoration:none;
}

#visitor_message_inlinemod_form {
        margin:0px;
        display:block;
}

#message_list {
        border:none;
}
#message_list li {
        margin-bottom:6px;
}
#message_list div.fixed_width_avatar {
        margin-$stylevar[right]:6px;
        float:$stylevar[left];
}
#message_list div.visitor_message_avatar_margin {
        margin-$stylevar[left]:66px;
}
#message_list div.info_bar {
        border-width:1px 0px 0px 0px;
        margin-bottom:6px;
}
#message_list div.info_bar div.alt2 {
        padding:6px;
}
#message_list div.info_bar a.username {
        /*font-weight:bold;*/
}
#message_list .visitor_message_date {
        float:$stylevar[right];
}
#message_list .group_message_date {
        float:$stylevar[right];
}
#message_list .inlinemod_checkbox {
        float:$stylevar[right];
}
#message_list div.visitor_message_body {
        overflow:auto;
}
#message_list ul.controls {
        margin-top:6px;
        text-align:$stylevar[right];
}
#message_list ul.controls li {
        display:inline;
        margin-$stylevar[left]:6px;
}
#message_list ul.controls a:link, #message_list ul.controls a:visited {
        text-decoration:none;
}
#message_list .deletedmessage{
        float: $stylevar[left]
}

/**
* About Me Tab
*/
#aboutme li.profilefield_category {
        font-weight:bold;
        margin-top:6px;
}
#aboutme dl.profilefield_list {
        font-weight:normal;
        margin:6px 16px 0px 16px;
}
#aboutme dl.profilefield_list dd {
        margin-bottom:6px;
        margin-$stylevar[left]:0px;
}
#aboutme #signature {
        width:100%;
        overflow:auto;
}
#aboutme #simple_aboutme_link {
        text-align: $stylevar[right];
        display: block;
}

/**
* About Me Tab (Alternative)
*/
#aboutme2 dl.profilefield_list dd {
        margin-bottom:6px;
        margin-$stylevar[left]:0px;
}

/**
* Statistics Tab
*/
#stats fieldset.statistics_group {
        margin-top:6px;
}
#stats fieldset.statistics_group ul {
        padding:6px;
}
#stats fieldset.statistics_group ul li {
        margin-bottom:3px;
}

/**
* Statistics Tab (Alternative)
*/
#statistics2 ul.statistics_group li {
        margin-bottom:3px;
}

/**
* Friends Tab
*/
#friends a.edit_friends_link {
        float:$stylevar[right];
}
#friends_mini a.edit_friends_link {
        float:<if condition="$prepared['friendcount']">
$stylevar[left]<else />$stylevar[right]</if>;
        <if condition="$prepared['friendcount']">margin-$stylevar[right]<else />margin-$stylevar[left]</if>:10px;
}

/**
* Infractions Tab
*/
div#infractions.content_block {
        padding:0px;
}

/**
* Contact Info Tab
*/
#contactinfo fieldset {
        margin-bottom:6px;
}
#contactinfo div.fieldset_padding {
        padding:6px;
}
#contactinfo #messaging_list li {
        margin-bottom:3px;
        margin-$stylevar[right]:16px;
        float:$stylevar[left];
        white-space:nowrap;
}
#contactinfo #instant_messaging_list li {
        margin-top:6px;
        margin-$stylevar[right]:6px;
        position:relative;
}
#contactinfo #instant_messaging_list .im_img_link {
        vertical-align: middle;
}
#contactinfo #instant_messaging_list .im_txt_link {
        position:absolute;
        $stylevar[left]:75px;
}
#contactinfo #additional_contact_details dd {
        margin-$stylevar[left]:0px;
        margin-bottom:6px;
}

/**
* Albums Block
*/
#albums_mini_list li {
        text-align:center;
        margin-bottom:6px;
}

/**
* Mini Friends Block
*/

#friends_mini_list a.username {
        display:block;
        margin-top:3px;
}
#friends_mini div.friends_counter {
        padding-bottom:6px;
}

/**
* Groups Block
*/
span.group_count {
        float:$stylevar[right];
}
ul.group_list {
        margin:6px 0px 0px 6px;
}
ul.group_list li {
        display:inline;
        margin-$stylevar[right]:3px;
}
#public_usergroup_list a:link, #public_usergroup_list a:visited {
        text-decoration:none;
}

/**
* Traffic Block
*/
ol.last_visitors_list {
        margin:0px;
        margin-top:6px;
}
ol.last_visitors_list li {
        display:inline;
        margin-$stylevar[right]:3px;
}

$template_hook[memberinfo_css]
-->

</style>


Thx! ;) And thanks for adding live demo, this is just what I'm looking for. :) I'll install this as soon as I get this one last thing right...


Do you mean I'll have to create a new template with that code, or just add all that to my style settings -> custom css ?

And could someone with a bit of skills add this code to the *.xml file? :o If it's not too much of work... I have many styles and it would take some time to add this to every style. :( The *.xml would put it to every style automatically... :o

bananalive 09-14-2008 07:28 PM

1 Attachment(s)
Quote:

Originally Posted by Stifmeister2 (Post 1622161)
Thx! ;) And thanks for adding live demo, this is just what I'm looking for. :) I'll install this as soon as I get this one last thing right...


Do you mean I'll have to create a new template with that code, or just add all that to my style settings -> custom css ?

And could someone with a bit of skills add this code to the *.xml file? :o If it's not too much of work... I have many styles and it would take some time to add this to every style. :( The *.xml would put it to every style automatically... :o

Attached product file which will add the template to each style for you.

Stifmeister2 09-14-2008 08:47 PM

Quote:

Originally Posted by bananalive (Post 1622166)
Attached product file which will add the template to each style for you.

Thanks BIG TIME dude! ;)


*clicks install*

Stifmeister2 09-14-2008 08:55 PM

----edit----

Damn, I got and error when I tried to install:



Code:

Database error in vBulletin 3.6.4:

Invalid SQL:

                                INSERT INTO vbb_setting
                                        (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, validationcode, blacklist, product)
                                VALUES
                                        (
                                        'tmnt_active',
                                        'tournament',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        14,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'tournament2008'
        ),
        (
                                        'tmnt_active',
                                        'tournament',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        19,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'tournament2008'
        ),
        (
                                        'tmnt_createthread',
                                        'tournament',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        20,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'tournament2008'
        ),
        (
                                        'tmnt_cpp',
                                        'tournament',
                                        '5',
                                        '5',
                                        'number',
                                        '',
                                        24,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'tournament2008'
        ),
        (
                                        'tmnt_desclength',
                                        'tournament',
                                        '97',
                                        '97',
                                        'number',
                                        '',
                                        28,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'tournament2008'
        );

MySQL Error  : Duplicate entry 'tmnt_active' for key 1
Error Number : 1062
Date        : Sunday, September 14th 2008 @ 11:48:15 PM
Script      : http://www.myforum.com/forums/admincp/plugin.php?do=productimport
Referrer    : http://www.myforum.com/forums/admincp/plugin.php?do=productadd
IP Address  :
Username    : Stifmeister
Classname    : vB_Database


I hope this didn't screw anything in my forum?? :eek: Any damage to my 'vbb_setting' ???


All times are GMT. The time now is 04:23 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.02462 seconds
  • Memory Usage 1,844KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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