Support Forums

Old 09-12-2007, 11:16 PM   #1
ESVE
Guest
 
Posts: n/a
Default Add ads with 'x' php script

I am looking for the following solution.
My ads arrive through an SMS portal. This ad needs to be automatically added to the classified website, without human interference.
What will happen is the following. As soon as an SMS arrives, a php script is initiated on my host. This php script will open a 'link' to the server, and this 'link' has all the ad info in it. So something like:
http://somesite/add_ad.php?category=...=I+sell+my+car
This add_ad.php script must then create the ad in 68 classified, including some initial info like password, and ad expiry date etc.
Can I configure 68 Classified in such a way that what I need is possible ?

The thing is I can develop a whole classified webscript from scratch, but better use one available and shape it to my needs. Does 68 Classified offer this.
Oh, and other thing, the site is going to be in Spanish, so I need to translate all text to Spanish. That is possible no ?

Greetings from Lima
 
Old 09-13-2007, 12:48 AM   #2
civ
Senior Member
 
civ's Avatar
 
Join Date: Mar 2006
Location: Greer, SC
Posts: 667
Rep Power: 26
civ will become famous soon enough
Default

Just write yourself a simple script to take the SMS messages and inject the pertinent info directly into the 68C database, bypassing the 68C script itself. Just let 68C handle the display of the already-posted ads.
__________________
Civ's Modules (____NOW v4 COMPATIBLE____):

Stop Incomplete Listings! (proven revenue booster!)
Scam Filter (Just say no to Nigerians!) updated
Similar Listings (keep visitors longer)
Feedback Mod (testimonial builder)
Listing Status Reminder free!
civ is offline  
Old 09-13-2007, 03:44 PM   #3
ESVE
Guest
 
Posts: n/a
Default

Sure, that is exactly what I need. But is this feasible ? As I do not have bought the programm yet, I do not know how accessible all things are. Is an ad in the database nothing more than a row in a database with some fields. And is a user also nothing more than a field in another table ? In that case it could be feasible. If passwords are for example encrypted in a way that without having access to an encrypted 68 classified core, it is impossible to encrypt, then I could not simply inject it in the database.
Thanks for your reply.

Greetings

ESVE
 
Old 09-13-2007, 04:02 PM   #4
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,749
Rep Power: 109
Eric Barnes is a jewel in the rough
Default

Users are all stored in a one table where as listings are stored in one main table with seperate tables for the extra fields.

The user's password is encrypted with one-way encryption so you can not get this information from the database. But you can compare it.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 10-10-2008, 12:57 PM   #5
Junior Member
 
Join Date: Mar 2008
Posts: 12
Rep Power: 5
forumosa is on a distinguished road
Question How can I insert an md5 password into new user's row in class_user

I have a script that tries to take newly registered user's details from a phpBB3.0.2 user table and create a new account with it on my 68c installation (using 4.0.9). I described my situation back at phpBB.com (over here: phpBB • View topic - Almost got semi-manual integration of phpBB3 & 68classifieds) and confirmed:
  1. phpBB3 uses a salted hash encryption method that cannot be unhashed
  2. When a new user is created in phpBB, I can store an unencrypted password in a separate user table field for later use with 68c
On a batched basis, I will use my script to simultaneously activate the phpBB3 user and create her 68c account. This will be done by pulling the unencrypted password from phpBB's user table and then encrypting it using the md5() function and inserting it into my 68c class_user table

As my script activates all the phpBB users I've chosen, it loads an array of users to be inserted later into 68c. My unencrypted password field in phpbb_users will be in the 71st position, so I plan to use this to load the password array:
Code:
$c_password[$i] = $row[70];
Does this approach make sense?
Do you have any other suggestions? Or words of caution?
forumosa is offline  
Old 10-10-2008, 02:28 PM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,749
Rep Power: 109
Eric Barnes is a jewel in the rough
Default

I am not exactly sure how phpbb works now. But couldn't you just change our script to use their same hashing model. Then you wouldn't have to store the password and it would remain the same?
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 10-11-2008, 03:05 AM   #7
Junior Member
 
Join Date: Mar 2008
Posts: 12
Rep Power: 5
forumosa is on a distinguished road
Exclamation That didn't occur to me...

You mean replace the md5() being used in 68c for the phhbb_hash() and phpbb_check_hash()? That does make sense, but it also seems more complicated

Are there many files that I would have to change to replace, especially to check with entered passwords are true (which would use phpbb_check_hash)?
forumosa is offline  
Old 10-11-2008, 08:17 AM   #8
Junior Member
 
Join Date: Mar 2008
Posts: 12
Rep Power: 5
forumosa is on a distinguished road
Smile Got my answer!

I got my answer back at the phpBB forum - although 'tech support' over there tends to get cranky (I shouldn't complain - after all, it's free support)

Just sharing for those here who might be interested:
Quote:
The logical place to look for the user_add for registration is in includes/ucp/ucp_register.php (whoda thunk?).

This is the line that hashes the password:

Code:
            'user_password'         => phpbb_hash($data['new_password']),
at that point you could hash you own password from $data['new_password'] and store it in your other user table.
Posted at phpBB • View topic - Almost got semi-manual integration of phpBB3 & 68classifieds
forumosa is offline  
Old 10-11-2008, 08:49 AM   #9
Junior Member
 
Join Date: Mar 2008
Posts: 12
Rep Power: 5
forumosa is on a distinguished road
Cool It works!

Just want you to know that I got it working

Now I need to remove the parts of the Account Home (like in useraccountmodify.php) that would allow my 68c users to change their email or password. I will replace these areas with reminders to do all their account changes back at my phpBB3 website
forumosa is offline  
Old 10-11-2008, 11:40 AM   #10
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,749
Rep Power: 109
Eric Barnes is a jewel in the rough
Default

Thanks for the follow up. Would you mind sharing the steps you had to take to get it working?

A lot of people seem to ask about this.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline  

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.68classifieds.com/forums/pre-sales-questions/3602-add-ads-x-php-script.html
Posted By For Type Date
phpBB • View topic - Almost got semi-manual integration of phpBB3 & 68classifieds This thread Refback 10-11-2008 02:12 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Host or Script problem? Grebogreen v3.1 Questions & Support 3 05-08-2007 09:49 AM
PHP Cronjob For Full DB & Site Backup? Got a script? bgordon Off Topic 13 12-07-2006 01:01 PM
Using php scripts in pages martini55 v3.1 Questions & Support 7 05-26-2006 02:25 PM
including php files? munky20 v3.0 Questions & Support 4 04-14-2006 10:27 PM
adding a simple banner rotator From old forum calaf6 v3.0 Questions & Support 0 03-30-2006 04:47 PM


All times are GMT -4. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0