Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Phpclassifieds integration with vbulletin Details »»
Phpclassifieds integration with vbulletin
Version: 1.02b, by ndahiya ndahiya is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.0 Rating:
Released: 08-19-2006 Last Update: 08-23-2006 Installs: 25
Is in Beta Stage  
No support by the author.

Hi

Please see below for working code to integrate vbulletin and phpclassifieds. Phpclassifieds ( http://www.deltascripts.com ) is one of the best classifieds scripts out there, free for non-profit use...


This integration works with vb 3.6 and phpclassifieds 7.1 . Will likely work with vB 3.5 but not tested.

----
Highlights:

"Lead" database is vBulletin.
Automatic login into phpclassifieds if logged in vBulletin (just need to click on login). Automatically creates user if none found.
Automatically updates name/email in phpclassifieds as and when they change in vBulletin.
If needed, the two applications can be "separated" easily later. Only restriction is that passwords for "transferred accounts " will need to be reset in phpclassifieds.

----
NOTE:

* This integration assumes field1 (in vBulletin) contains the "display name". If you wish to use the username instead of field1, just replace $vbulletin->userinfo['field1'] with $vbulletin->userinfo['username'] in member_login.php.

* It assumes no extra mandatory fields in phpclassifieds. The code would be more complicated with that.

* Assumes forums are installed in http://site/forums. If elsewhere, need to change links to the forums in the phpclassifieds templates only.

* Make sure you turn off email verification in PHPClassifieds. Let vBulletin handle that.


----
Installation Instructions:

* Phpclassifieds files to replace: 1
* Phpclassifieds Templates to edit/replace: 4
* SQL query to run: 1
* Product/Plugin in vbulletin: 1
* Install time: ~20 minutes

* Edit the variables on top of member_login.php. If you like, you can also change the vbulletin membergroups who are allowed access (find $usergroupid = $vbulletin->userinfo['usergroupid']; in the file).

* Upload member_login.php to "classifieds-path/".

* Edit PHPClassifieds templates (details in the attached file).

* If not already present, create a unique key on user_email field in phpclass_user table.
SQL Code: CREATE UNIQUE INDEX user_email ON phpclass_user (user_email);

* Import PRODUCT file product-phpclass_integration.xml in vBulletin (Used to "push" email changes to phpclassifieds).

* Go to PLUGIN "Update PHPClassifieds Email", select "Edit", and replace the mysql database/user/password info for the phpclassifieds database. Also, if your phpclassifieds user table is not "phpclass_user", please change it to the value you're using.

* That's it! You're set.

---
Version

1.00b: Original Release

1.02b: Fixes member_login.php file to automatically delete expired ads if auto mode is set. Just Replace the file in "classifieds-path/".

Show Your Support

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

Comments
  #12  
Old 08-20-2006, 10:41 PM
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ndahiya
That is relatively easy to do in the template member_change.tpl

Find and delete this code at the end of the template.
Code:
{if !$admin_Area}
    <center><a href='member_change.php?delete_me=1'><font color='red'><b><u>{$smarty.const.LA_DELETE_ME}</u></b></font></a></center>
{/if}

Note that "Delete my registration and delete my ads" DOES NOT delete the vb registration. similarly, for now, deleting a vb profile does not delte the ads opr phpclass user, but that can be a relatively simple extension.
It worked perfect! I though that that option will delete the registration on VB... I will leave as is since it will not do that.
Thanks
Reply With Quote
  #13  
Old 08-20-2006, 10:45 PM
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ndahiya
not sure if you have modded the templates yet, coz on the login page, you get 2 sets of logins...
No mods on the tample.. is as I download the script, if everything works well I will purchase a Lic. for my boards.. for now will be testing.

Not to post again, I have a problem getting the RSS working... is not working for me and without that feature I have not interest on getting that script yet and paid money...
Reply With Quote
  #14  
Old 08-20-2006, 11:57 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BETIServices
No mods on the tample.. is as I download the script, if everything works well I will purchase a Lic. for my boards.. for now will be testing.

Not to post again, I have a problem getting the RSS working... is not working for me and without that feature I have not interest on getting that script yet and paid money...
RSS not working is some other prob... this code does not change that AT ALL.
did you change the footer template? that might have introduced an error... i noticed your RSS path is /classifieds/images/rss.xml should be /classifieds/rss.xml

you can mod the phpclassifieds templates without buying a license...
Reply With Quote
  #15  
Old 08-21-2006, 01:18 AM
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
RSS not working is some other prob... this code does not change that AT ALL
I was wondering if anyone is having the same problem witch like you said .. is has nothing to do with the mod it self.

Quote:
did you change the footer template? that might have introduced an error... i noticed your RSS path is /classifieds/images/rss.xml should be /classifieds/rss.xml
I did not change anything but I will double check since maybe is a setting problem, I was wondering why it was pointing to images but I never used the program before until now.
Reply With Quote
  #16  
Old 08-21-2006, 01:40 AM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BETIServices
I did not change anything but I will double check since maybe is a setting problem, I was wondering why it was pointing to images but I never used the program before until now.
are you using the latest download of phpclassifieds ? if yes, it is poss a new bug may have been introduced since the prev release of 7.1. (sometimes version control can be iffy).

However, based on what is planned with the next version of phpclass, the mod should work seamlessly with 7.2 (expected in the next 1-3 weeks, based on discussion on those forums).


The unique index on phpclass_user (email) would probably be a part of the next phpclassifieds version (its really a bug/missing item in the current version), but besides that, most of the changes are front end, rather than core phpclassifieds code...
Reply With Quote
  #17  
Old 08-21-2006, 01:43 AM
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, guess what after I check you post and you said it should be in the classifieds folder for RSS is now working for me

That's all I need for now, I will try to make it look like my site the best I can.

Thanks again
Reply With Quote
  #18  
Old 08-24-2006, 01:59 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To upgrade to 1.02b, just replace member_login.php

This upgrade is *required* if you use auto mode (as opposed to using a cron task) to clear expired ads. Without this, ads will never be removed even after expiry.
Reply With Quote
  #19  
Old 08-27-2006, 03:48 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I played with this on a 3.5 site. The plugin calls for "executionorder" in fieldlist, and 3.5 doesn't use that so there is a sql error. It appears to still install the required info though.
Reply With Quote
  #20  
Old 09-08-2006, 11:13 AM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the plugin can be manually created, instead of using the product (just copy the plugin code from the product description file)... if you do that, this should work with 3.5.
Reply With Quote
  #21  
Old 09-25-2006, 04:54 AM
toolblast's Avatar
toolblast toolblast is offline
 
Join Date: Mar 2004
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help please! I cant seem to get this to work!

I followed all the steps in the readme... yet when I go to the login php file (member_login.php) it just redirects to 'install.php' (which is a 404 error since I erased it after installing classifieds).

All variables in the login php file are changed to what they should be, and the vb product and plugin imported fine. The plugin database values have also been changed.

What do I do??
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 08:04 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.04759 seconds
  • Memory Usage 2,315KB
  • 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
  • (1)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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