Page 1 of 2 12 LastLast
Results 1 to 15 of 27

Thread: INDEXU 3.1 - vBulletin 2.3.0 integration v.0.1 (not stable)

  1. #1
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default INDEXU 3.1 - vBulletin 2.3.0 integration v.0.1 (not stable)

    Integration rules:
    1. This hack is intended to use vBulletin as the main software
    and indexu is the other section of vBulletin forum.
    2. Membership is using vBulletin database and vBulletin
    has responsibility to handle it
    3. Keep to not to alter the table structure if it's possible

    New Files:
    1. /indexu/vb_config.php
    2. /indexu/vb_view_member.php
    3. /vbulletin/idx_login.php
    4. /vbulletin/idx_function.php

    Hacked Files:
    1. /indexu/login.php
    2. /vbulletin/member.php


    Installation:
    1. Edit configuration file /indexu/vb_config.php to your
    vBulletin configuration
    2. Upload new files to both vbulletin and indexu
    3. For hacked files, you can just upload them if you do not
    any hack installed, or edit the file by hand.


    Changes in hacked files:
    1. /indexu/login.php
    - It's all entirely new code. Just replace all the old one
    - The purpose is to redirect into vbulletin login page

    2. /vbulletin/member.php
    - put this line in line 3
    PHP Code:
            include("idx_function.php"); 
    - put in line 58-62
    PHP Code:
        // indexu logout //
        
        
    IDX_Logout();
        
        
    // end of indexu login // 
    - put in line 101-105
    PHP Code:
        // indexu login //
        
        
    IDX_Login($username,$password);
        
        
    // end of indexu login // 

    Known problem:
    - Somehow when user logged in, she can't get into review page.
    (but it work my local pc - apache/php/mysql/windows)
    - After logged in into vBulletin admin control panel, then
    try to enter indexu admin control panel, it will redirect to
    vBulletin instead of indexu

    Limitation:
    - Some indexu features are not tested yet to work. Most are that
    related with membership.

    Any comment/idea/contribution is always welcome
    www.nicecoder.com
    www.dodyrw.com

  2. #2
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    I know where the problem occur: indexu cookie that set from vbulletin/idx_function.php is not set properly. Still working on it...
    www.nicecoder.com
    www.dodyrw.com

  3. #3
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    It work
    the problem?? /vbulletin/member.php is not correctly uploaded before. I re-upload it. And work.

    I check again the file /vbulletin/idx_function.php is not correct. I'll zip it again here. I delete the attachment before and add here.
    www.nicecoder.com
    www.dodyrw.com

  4. #4
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default File to download

    Here is the file. Enjoy!
    Attached Files Attached Files
    www.nicecoder.com
    www.dodyrw.com

  5. #5
    markbrooks is offline Registered User
    Join Date
    Sep 2002
    Location
    UK
    Posts
    89

    Default Further VB Hack Consideration

    Hi Dody,

    Good job, I will certainly look into using this with my Vbulletin.

    I have found another hack at vbulletin.org which allows a member signing up in the forum automatically becoming a member of the Indexu site. I have tested that hack with IndexU 3-1 and VBulletin V2-30 and it works fine.

    It might be worth your while taking a look at the hack and modify it further, therefore, someone becoming a member of the IndexU site automatically becomes a member in the forum where the user does not currently exist and vice versa, that is to say someone who signs up to the forum who is not currently a member with the indexU site becomes a member of the IndexU site as this hack currently does.

    I attach the VB hack found on vbulletin.org for your consideration.
    Attached Files Attached Files

  6. #6
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    Thanks markbrooks. I'll take it as my reference.
    I'll try to make it simple. I know it's too difficult for most users to applay that hack

    My current idea is hacking /lib/users.class.php that control the membership. It can be used as a driver. I mean it will some users.class.php file that for other script, like phpbb, invision board, and others. Just replace with appropriate users.class.php file.
    I hope this will work
    www.nicecoder.com
    www.dodyrw.com

  7. #7
    scheetz is offline Registered User
    Join Date
    Aug 2002
    Posts
    92

    Default

    Hey,

    I'm having some problems. I can't get into my indexu admin control panel at all. it redirects me to the vbulletin control panel every time. also the user cp and become an editor werent working. i changed
    PHP Code:
    if($users_obj->GetUserAuthentication(1)!=0){
      
    $back_url urlencode("cp/editor_remove_img.php");
      
    header("Location: ../login.php?f=1&b=$back_url");

    to
    PHP Code:
    if(!$COOKIE_USER_AUTHENTICATED) {
      
    $back_url urlencode("cp/editor_remove_img.php");
      
    header("Location: ../login.php?f=1&b=$back_url");

    in the cp files and in become_editor.php and it works. the only problem is the backlink doesnt work. when you are logged in and it sends you to the login page and then back to where you were i just get an error page. this is the page it tries to go to: http://www.home.com/forums/idx_login...or.php?cat=46&

    also, how do you use vb_view_member.php. right now the indexu looks like this: user_detail.php?u=xxx

    thanks

  8. #8
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    Here is how to capture back link without need to write actual url:
    PHP Code:
    if (empty($COOKIE_USERNAME)) {
      
    //$url = urlencode('http://'.$HTTP_ENV_VARS["HTTP_HOST"].$HTTP_ENV_VARS["REQUEST_URI"]);
      
    $url urlencode('http://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
        
    header("Location: login.php?b=$url&f=1");

    about vb_view_member.php, here is what I have in msg.php
    PHP Code:
    // show hot links in main page 
    $msg["10002"] = "
      <tr>
          <td valign=top width=5><img src=images/arrow_red.gif border=0></td>
          <td valign=top>
          <a href='detail.php?linkid=<%link_id%>'
                  style='font-size: 11px;    color: #000000; text-decoration: none;'>
                <%title%></a> <font color=#808069> 
                - by <a href='vb_view_member.php?username=<%author%>' 
                style='font-size: 11px;    color: #808069; text-decoration: none;'><%author%></a>
          </td>
        </tr>
        <tr height=5>
          <td colspan=2></td>
        </tr>
    "

    I added new custom field named 'author', it's done manually when she submit his url. This 'author' should has the same username with vb has.
    Please DO NOT add field named 'username', because it would make indexu confused. Use 'user_name' instead, or others.

    Member and admin control panel do not working yet. This integration is not finished yet. I'm still working on it.
    www.nicecoder.com
    www.dodyrw.com

  9. #9
    esm's Avatar
    esm
    esm is offline Active Member
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    well, you guys are doing a great job on this and I sure hope you get the last bug out.

    The review feature is a big part of what I hope to do so I will need this feature.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  10. #10
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    The review feature is a big part of what I hope to do so I will need this feature.
    esm, this feature is done. You can try to put a review in Hacks/MODs section. It need you login to vb first
    www.nicecoder.com
    www.dodyrw.com

  11. #11
    player is offline Registered User
    Join Date
    Jan 2002
    Posts
    58

    Default

    Cant wait for this to be stable. So all indexu user functions should work from the vb user base, such as users favorite links, reviews, etc.

  12. #12
    esm's Avatar
    esm
    esm is offline Active Member
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by dody
    esm, this feature is done. You can try to put a review in Hacks/MODs section. It need you login to vb first
    so, where are we at with this? is this ready to go?
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  13. #13
    esm's Avatar
    esm
    esm is offline Active Member
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by dody
    esm, this feature is done. You can try to put a review in Hacks/MODs section. It need you login to vb first
    hmmmm....just tried to add a review to one of the MODs. Still get error msg "could not find"
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  14. #14
    esm's Avatar
    esm
    esm is offline Active Member
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default Re: Further VB Hack Consideration

    Originally posted by markbrooks
    I have tested that hack with IndexU 3-1 and VBulletin V2-30 and it works fine
    doesn't look too hard to do...just some cut and paste stuff. I can do that!!!

    but....the intro area says

    Code:
    | tested on vb 2.2.3-2.2.5 and indexu 3.0.0-3.0.4                       |
    It does work on 3.1?????
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  15. #15
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    It does work on 3.1?????
    Of course not
    hmmmm....just tried to add a review to one of the MODs. Still get error msg "could not find"
    You should logout first, then login again. Your last login may be weeks ago that using old script. You should login using use script, just logout and login again.
    www.nicecoder.com
    www.dodyrw.com

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 9
    Last Post: 01-11-2005, 07:36 PM
  2. Replies: 3
    Last Post: 01-11-2005, 07:26 PM
  3. Replies: 3
    Last Post: 01-30-2004, 05:42 PM
  4. Replies: 0
    Last Post: 01-29-2004, 06:55 PM
  5. vbulletin and indexu integration
    By Hart_House in forum v3.2
    Replies: 8
    Last Post: 08-18-2002, 09:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •