68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support > Target Banners to Category
v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
(#11)
Old
Mike-N-Tosh Mike-N-Tosh is offline
Member
Mike-N-Tosh will become famous soon enough
 
Posts: 57
Join Date: Jan 2007
Default Trying to use "Forward thinking"... - 02-19-2007, 02:31 PM

RE: Maffo,

Yes, I have heard great things about your mod for banners and I'm sure that works quite well. Unfortunately, it doesn't work for me running the PHPAdsnew. That's because I use the PHPAdsnew solution to send several sites.
---------
RE: Lhotch,

I'm trying to use forward thinking and be optimistic. One would hope over time that you would get MOST catgories sponsered with ads.

Therefore, having the JS code in separate files seems to make the most sense. In my case, I would like to have "default top banner ad (468 X60)" and two "default side banner ads (120-160 X 120-600)". In both of those types of ads, I would also like to offer a sponser category ad. Does that make sense?

-Mike
IndianaPC.org


Mike-N-Tosh
v3.1.5 Developer

IndianaPC.org Under construction
Reply With Quote
(#12)
Old
Mike-N-Tosh Mike-N-Tosh is offline
Member
Mike-N-Tosh will become famous soon enough
 
Posts: 57
Join Date: Jan 2007
Default RE: dawnrae - 02-19-2007, 02:34 PM

dawnrae,

You always post the greatest threads!

Thanks from a fellow Longhorns fan! Hook 'em Horns

-Mike


Mike-N-Tosh
v3.1.5 Developer

IndianaPC.org Under construction
Reply With Quote
(#13)
Old
Lhotch Lhotch is offline
Moderator
Lhotch has a spectacular aura about
 
Posts: 1,460
Join Date: Mar 2006
Default 02-19-2007, 02:45 PM

Quote:
Originally Posted by Mike-N-Tosh View Post
I'm trying to use forward thinking and be optimistic. One would hope over time that you would get MOST catgories sponsered with ads.

Therefore, having the JS code in separate files seems to make the most sense. In my case, I would like to have "default top banner ad (468 X60)" and two "default side banner ads (120-160 X 120-600)". In both of those types of ads, I would also like to offer a sponser category ad. Does that make sense?

-Mike
I would probably create a plugin then that takes the category as an argument, determines which JS invocation code to display based on category passed to and and displays appropriate invocation code.
Reply With Quote
(#14)
Old
gregbatch gregbatch is offline
Senior Member
gregbatch is on a distinguished road
 
Posts: 118
Join Date: Jun 2006
Default 02-23-2007, 02:57 PM

I used AdsNew for a long time before getting 68, however, I found Adsnew (now openads) to be a real pain to try to use in 68. No fault of 68, though. Doing what should be a simple task, was not with AdsNew. I switched to AdPeeps and it was so easy.

Just create banner zones that match your category IDs. Example: top-123 or (you can serve multiple websites, too) site1-top-123. Then put the Smarty call in your AdPeeps code:

Code:
<!-- START all AdPeeps.com Code --> <p align="center"> <SCRIPT type="text/javascript" SRC="http://www.yourdomain.com/bannerdir/adpeeps.php?bfunction=showad&uid=100000&bmode=off&bzone=site1-top-{$smarty.get.type}&bsize=all&btype=3&bpos=default&ver=2.0&btotal=1&btarget=_blank&bborder=0"> </SCRIPT> <NOSCRIPT> <a href="http://www.yourdomain.com/bannerdir/adpeeps.php?bfunction=clickad&uid=100000&bmode=off&bzone=site1-top-{$smarty.get.type}&bsize=all&btype=1&bpos=default&ver=2.0" target="_blank"> <img src="http://www.yourdomain.com/bannerdir/adpeeps.php?bfunction=showad&uid=100000&bmode=off&bzone=site1-top-{$smarty.get.type}&bsize=all&btype=1&bpos=default&ver=2.0" alt="Click Here!" border=0></a> </NOSCRIPT> </p> <!-- END AdPeeps.com Code -->
You are done. Now the code calls the zone site1-top-{whatever the category}. The small price (I think $79) more than made up for itself in time saved creating, and managing ads.

And, yes, Maffo's Mod is a fine one, but like you I needed to serve multiple sites.


Greg
3.1.4 Designer
www.valleywantads.com
Reply With Quote
(#15)
Old
Mike-N-Tosh Mike-N-Tosh is offline
Member
Mike-N-Tosh will become famous soon enough
 
Posts: 57
Join Date: Jan 2007
Default 02-23-2007, 06:08 PM

gregbatch,

Thanks for the tip! Maybe I need to check out Adpeeps. I've not heard of it before. Yes, getting phpAdsnew (I haven't upgraded to the "openads" yet) zones right, etc. can certainly be a pain in the arse!

I hope that Adpeeps is also opensource.

-Mike


Mike-N-Tosh
v3.1.5 Developer

IndianaPC.org Under construction
Reply With Quote
(#16)
Old
gregbatch gregbatch is offline
Senior Member
gregbatch is on a distinguished road
 
Posts: 118
Join Date: Jun 2006
Default 02-24-2007, 03:13 PM

I'm sure it's open, though I have had no need to change anything other than the header, so I haven't looked.
It's a free trial - 10 days I think. If you need some clean sandbox space to check it out I'm happy to set you up.


Greg
3.1.4 Designer
www.valleywantads.com
Reply With Quote
(#17)
Old
dawnrae dawnrae is offline
Junior Member
dawnrae is on a distinguished road
 
Posts: 18
Join Date: Jan 2007
Default 02-27-2007, 11:29 AM

Quote:
Originally Posted by Mike-N-Tosh View Post
I would like to do this exact same thing as well, but I'm using PHPadsnew. I just want to see if I'm understanding the logic in how this solution is being done.

Store the invocation code for displaying the ad in a folder on your site. (In your case the text files are here: http://www.hotspringshomefront.com/t...s/mwt/banners/)

The smarty code listed in this thread is stored in a php file located in the (68classifieds site/includes/classes/smarty/plugins/"myads.php")

Then you include a call to the smarty function within the layout.tpl.php file where you have designated your ad to be placed.

Is that correct, or am I missing something?

Thanks,
-Mike
Yes, that's basically the process. I create a separate file for each banner campaign -- a default one for each category and then any special ones for special categories. I put those in the folder you mentioned above. Then, in the layout.tpl.php file, I place a smarty function to display either the default or designated campaign based upon the category, etc.

Dawn

Go Horns!
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Banner in one Category BABBSELA v3.1 Questions & Support 3 02-10-2007 03:22 PM
Branding each Category BABBSELA v3.1 Modifications 0 02-10-2007 02:17 PM
Adding 'category' to 'new listings' display Chaslie v3.1 Modifications 4 10-28-2006 09:58 PM
Category problem dawyatt v3.1 Questions & Support 2 05-24-2006 04:58 PM
Category fields in view list Lagniappe v3.0 Questions & Support 2 04-19-2006 10:09 AM



Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com