Dealemma 2.0.6
Contents
Setup
Dealemma requirements:
- php 5+
- mysql 4+
- lampp server (linux, apache, mysql, php, perl)
Database
You will have to import the database structure and some database data to your database from a zip file that will be given to you. It’s easier for you that you use a tool such phpmyadmin
Filesystem
First you will have to extract a file called dealemma_X.zip somewhere on your hard disk.
Then you will have to upload the files to your server via FTP (check the information sent to you when you bought the server package)
Attention: Please do make sure that a file called .htaccess, included also in the zip file, will also be uploaded.
File modifications
You will have to make the following changes in the following files:
application/config/config.php
Please add the url of your site with an / in the end. eg. http://example.com/
$config['base_url']
application/config/database.php
Fill in your username, password, and server and the mysql database name for your mysql server
Writable folders
The following folders and files must be writable in server (777).
Normally they should be, must please make sure that they are.
files/images
application/cache
theme/style
theme/style/main.css
Administration
Using your browser navigate to http://yoursite.com/admin.
Click register and create a new account. This will be the administrator account.
Afterwards, nagivate again to http://yoursite.com/admin login with the new account. Then make sure that settings → configuration -> Allow registration is set to 0
Cron jobs
You will have to set the following cron jobs via your control panel of your server σας. You will have also to make sure that the server’s time is the time you want it to be (that it matches with your audience’s time) so the user experience is better.
Attention! In the **[base_dir]** put the whole path of the server up until the root of the application. eg. /home/www
30 */2 * * * /usr/local/bin/php -f [base_dir]/index.php parser start
If you use the newsletter:
0 5 * * * /usr/local/bin/php -f [base_dir]/index.php newsletter send
That’s it! Well done. Enjoy dealemma.
Διαχείριση
Terms
Υπάρχουν δύο κατηγορίες όρων. Οι πόλεις και οι κατηγορίες. Για να καταλάβετε πως λειτουργεί το διαχειριστικό θα εξηγήσω μερικά πράγματα.
Όταν η πλατφόρμα τραβάει προσφορές από τα xml των deal sites κάποια από αυτά δίνουν μαζί με κάθε προσφορά και μια κατηγορία στην οποία ανήκει. Παράδειγμα μια προσφορά δίνει hotels. Κάποια άλλη προσφορά δίνει ξενοδοχεία. Δεν θα ήταν πολύ άσχημο στο site μας να φαίνεται ότι έχουμε μια κατηγορία hotels και μια ξενοδοχεία;
Γι αυτό το λόγο στο διαχειριστικό των όρων κάνουμε αντιστοιχία των όρων που δίνουν οι προσφορές με έναν όρο της αρεσκείας μας. Για παράδειγμα μπορούμε να λέμε στο σύστημα ότι όποια προσφορά έχει κατηγορία hotels, ξενοδοχεία ή διακοπές να ανήκουν όλα στην κατηγορία διακοπές.
Το σύστημα μας δίνει τη δυνατότητα να προσθέσουμε και δικές μας κατηγορίες. Για παράδειγμα ας πούμε ότι οι προσφορές μας δίνουν όρους spa, μασάζ. Εμείς θέλουμε να ανήκουμε σε μια άλλη κατηγορία που δεν μας τη δίνουν. Θα φτιάξουμε λοιπόν μια δικιά μας κατηγορία “Σπα – Μασάζ”.
Τα ίδια ακριβώς ισχύουν και για τις πόλεις.
Σημειώσεις
- Δεν μπορείτε να επεξεργαστείτε ή να διαγράψετε όρους που αντιστοιχούν σε κάποια προσφορά ή που ομαδοποιούν άλλους όρους
Δείτε το παρακάτω βίντεο για να πάρετε μια ιδέα.
Add new deal site
Η διαδικασία προσθήκης νέου site χωρίζεται σε 2 μέρη:
Αρχικά πατάμε στο admin sites->add new deal site
Προσθέτουμε όνομα, url και επιλέγουμε τον affiliate της επιλογής μας.
Μετά στο bid και στο trail προσθέτουμε τα δεδομένα τα οποία μας τα παρέχει ο affiliate μέσα από το control panel του. (To bid είναι σχεδόν πάντα ο αριθμός του text δημιουργικού.)
Μην ξεχάσετε να πατήσετε το status ώστε να γίνει άσπρο. Έτσι θα ενεργοποιηθεί το site.
Σημείωση: Αν το xml που έχετε περιέχει έτοιμο το affiliate link τότε στο network του site θα πρέπει να επιλέξετε κανένα.
Save
Αφού προσθέσουμε το site θα πρέπει στη συνέχεια να προσθέσουμε το xml του. Πάμε στο sites->all sites. Δίπλα από τον τίτλο του ονόματος του site πατάτε πάνω στο εικονίδιο + για να προσθέσετε το xml του deal site.
Το xml είναι ο τρόπος με τον οποίον μεταφέρονται τα δεδομένα από το deal site στον aggregator. Για να δουλέψει η διαδικασία πρέπει να αντιστοιχίσουμε τα ονόματα των πεδίων (id, name, title, description) με τα πεδία του xml… πχ (deal_id, deal_site).
Μπορείτε να δείτε τα ήδη περασμένα site από την εγκατάσταση για να πάρετε παράδειγμα.