|
01-31-2004, 02:33 AM | #1 |
Green Mole
Join Date: Oct 2003
Posts: 17
|
sponsored links
Hi people.
Since there are plenty of banner extraction tools, you can choose one and call it in libs/search_function.php. At the end of this file there is a banners() function in order to show sponsored links as well. Banners() calls another function called adbanner(). You should define adbanners() in libs/adbanners.php. adbanner() calls your banner extraction tool in order to select banners. adbanner() returns a html chunk ready to be displayed. Your template have to contain this tag <phpdig:adbanner/> to show banners. You can turn on this feature using a constant defined in config.php. The submitted files contain comments in order to fully understand my little modifications. Best regards. Gius |
04-22-2004, 04:00 PM | #2 |
Green Mole
Join Date: Apr 2004
Location: North Wales
Posts: 11
|
I'm fairly new to this. Have you got a working example with a banner extraction tool to look at?
Snorkx.. |
04-23-2004, 03:35 AM | #3 |
Green Mole
Join Date: Oct 2003
Posts: 17
|
Hi.
A working demo is coming soon. JyGius |
04-23-2004, 03:45 AM | #4 |
Green Mole
Join Date: Apr 2004
Location: North Wales
Posts: 11
|
You mentioned that there are plenty of extraction tools available. What should I be looking for cos I can't find much about them. Do you have any links to share or point me in the right direction?
Thanks Snorkx |
04-23-2004, 05:46 AM | #5 | |
Orange Mole
Join Date: Sep 2003
Posts: 40
|
Quote:
For a working demo check this search engine |
|
04-29-2004, 06:41 AM | #6 |
Green Mole
Join Date: Apr 2004
Posts: 12
|
This thread is most likely confusing since there is no /libs/adbanners.php present in your mod, nor in any version of PhPdig, not even an example of such file exist that i have been able to find. I know you're not referring to snatching a file from a banner program like PhPAds and transplanting it into the PhPdig libs directory.
Your mod seems to rely on /libs/adbanners.php to function, care to include it or explain creating it? |
04-29-2004, 07:18 AM | #7 | |
Orange Mole
Join Date: Sep 2003
Posts: 40
|
Quote:
/libs/adbanner.php should be present (and the function banners() implemented) only if you activate "sponsored links" adding the following lines to config.php. PHP Code:
The key point is the banner extraction from DB based on keywords of the query string. That point is completely dependent on the adserver you use. I'm using a custom built adserver, so I can't figure out how let Phpdig work with another adserver. |
|
04-29-2004, 07:37 AM | #8 |
Green Mole
Join Date: Apr 2004
Posts: 12
|
For one Alvin, hats off to you, you're did a great job on the example engine listed above. Theres tons of banner systems like PhPbanners out there, the delima is you're the only person i've seen thusfar that has produced something similar to Google Adwords which is "exactly" what i need. I have DynAds and Adbanners both and neither of them do what i want.
Both DynAds and PhPBanners "can" deliver text banners which are activated by keywords, but DynAds want to deliver it only with an image, and PhPbanners wont deliver ads with a text link AND a description the way yours does. With this in mind, and with it also in mind that you appear to have developed your code yourself, it seems you hold the key to my completing my project. If you can make your code, deliver multiple keyword ads per page, in the format that is shown on your example website, and if such can be controlled by some simple means, i will pay you for a copy of the code |
04-29-2004, 08:03 AM | #9 |
Green Mole
Join Date: Apr 2004
Location: North Wales
Posts: 11
|
Ahh.. I've been thinking of it entirely differently. I've been working on some code based on this but rather than using a "banner extraction tool" I have been getting the results returned from the phpdig search and basing this for premium links. Therefore, the ads are only for sites you have listed. Ihave changed the main db to flag for premium listings, an expiry date and last viewed date so that the banners will be rotated fairly.
Is this what anyone was looking for? I will make this code available as soon as it's done. I was also considering limiting the search returns for the main search to one result per domain as this is one of the problems I have found while coding the adbanner. I think a separate topic on this is in order tho. Regards, snorkpants |
04-29-2004, 08:03 AM | #10 | ||
Orange Mole
Join Date: Sep 2003
Posts: 40
|
Quote:
Thanks RaGe We are working hard to customize Phpdig, adding new features and correcting bugs. Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bann URLs / Domains & Sponsored Links | PL_90 | Mod Requests | 0 | 10-18-2007 05:23 AM |
Text ads and sponsored links? | WebSpider | Mod Requests | 2 | 03-09-2005 01:17 AM |
sponsored links, logged clicks... | JÿGius³ | Mod Submissions | 12 | 04-29-2004 07:53 AM |