Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Phpclassifieds integration with vbulletin Details »
Phpclassifieds integration with vbulletin
Mod Version: 1.02b, by ndahiya (Coder) ndahiya is offline
Developer Last Online: Feb 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (0 vote - 0 average) Installs: 23
Released: 20 Aug 2006 Last Update: 24 Aug 2006 Downloads: 104
Not Supported Is in Beta Stage  

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Phpclassifieds integration with vbulletin ndahiya vBulletin 3.5 Add-ons 0 23 Aug 2006 12:01
Jpilot / Vbulletin Integration for Vbulletin 3 d3nnis vBulletin 3.0 Full Releases 36 13 Dec 2005 23:25

Comments
  #2  
Old 20 Aug 2006, 04:20
ndahiya ndahiya is offline
 
Join Date: Aug 2004
reserved.

btw, support for this integration will most likely be light coz I am not much of a coder...
Reply With Quote
  #3  
Old 20 Aug 2006, 06:11
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
Well I will be adding this to my collection
__________________
Community Forum
BET Internet Services
Driving Business to Business!
Reply With Quote
  #4  
Old 20 Aug 2006, 06:35
utw-Mephisto utw-Mephisto is offline
 
Join Date: Feb 2005
Do you have a demo running which I could check ?
Reply With Quote
  #5  
Old 20 Aug 2006, 07:31
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
My Demo after the install: http://www.betisforum.com/classifieds/

Works well the only thing I would love is a page intergraded with the forum .... wow
__________________
Community Forum
BET Internet Services
Driving Business to Business!
Reply With Quote
  #6  
Old 20 Aug 2006, 07:43
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
I also like to ask, how can I take the option: Delete my registration and delete my ads. from the file member_change.php as I like to block that also from hapening.
__________________
Community Forum
BET Internet Services
Driving Business to Business!
Reply With Quote
  #7  
Old 20 Aug 2006, 09:08
Edog Edog is offline
 
Join Date: Dec 2004
Installed works great .. yea having it read the forum skin would rock.
Reply With Quote
  #8  
Old 20 Aug 2006, 11:55
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Originally Posted by BETIServices
I also like to ask, how can I take the option: Delete my registration and delete my ads. from the file member_change.php as I like to block that also from hapening.
That is relatively easy to do in the template member_change.tpl

Find and delete this code at the end of the template.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Note that "Delete my registration and delete my ads" DOES NOT delete the vb registration. similarly, for now, deleting a vb profile does not delete the ads or the phpclass user, but that can be a relatively simple extension.

Last edited by ndahiya; 21 Aug 2006 at 02:33.
Reply With Quote
  #9  
Old 20 Aug 2006, 11:58
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Originally Posted by BETIServices
My Demo after the install: http://www.betisforum.com/classifieds/

Works well the only thing I would love is a page intergraded with the forum .... wow
not sure if you have modded the templates yet, coz on the login page, you get 2 sets of logins...
Reply With Quote
  #10  
Old 20 Aug 2006, 12:00
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Originally Posted by Edog
Installed works great .. yea having it read the forum skin would rock.
need to edit the file classfieds/style.css

not sure if there is a way to "auto" integrate it as the class names are all diff and it would be a pain to mod all templates...
Reply With Quote
  #11  
Old 20 Aug 2006, 23:41
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
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.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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
__________________
Community Forum
BET Internet Services
Driving Business to Business!
Reply With Quote
  #12  
Old 20 Aug 2006, 23:45
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
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...
__________________
Community Forum
BET Internet Services
Driving Business to Business!
Reply With Quote
  #13  
Old 21 Aug 2006, 00:57
ndahiya ndahiya is offline
 
Join Date: Aug 2004
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...

Last edited by ndahiya; 21 Aug 2006 at 01:00.
Reply With Quote
  #14  
Old 21 Aug 2006, 02:18
BETIServices's Avatar
BETIServices BETIServices is offline
 
Join Date: Aug 2006
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.

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.
__________________
Community Forum
BET Internet Services
Driving Business to Business!

Last edited by BETIServices; 21 Aug 2006 at 02:20.
Reply With Quote
  #15  
Old 21 Aug 2006, 02:40
ndahiya ndahiya is offline
 
Join Date: Aug 2004
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:20.

Layout Options | Width: Wide Color: