I was looking to include my Adsense javascript code in that area, at least on the discussions and categories section. I was digging through the code a bit tonight and thought the DiscussionGrid might be the area I'm looking for, instead of adding it directly to Side Panel. I'm already implementing the Adsense code in the Panel, but I thought having it right above the Discussions, it may be more targeted and effective.
a) create a control and add it to the page above the discussions - similar to my lussumobanner code (see the suggestions tab) but use the CONTROL_POSITION_BODY instead of CONTROL_POSITION_HEAD. b) attach to the prerender delegate of the discussion grid and throw your content in there. c) create a new theme and change the discussions.php template to include your code
I'd recommend the first option and try to stay away from the third. Themes are useful, but it's always better to try to stick with the default theme so you don't miss out on changes in future revisions.
Okay, I'll try that when I get home tonight. I did it the old fashion way for now, by echo'ing the javscript adcode where need be. So basically I am using step 3 right now. I'd like an easier way to do in the future with an extension. I'll have to play around with it later, thanks for the help.
Thank you very much. That worked like a charm and made it work perfectly. Soon, I'll have an extension available for download that allows for a banner to be displayed at the top of the main body. Now, the only other thing that I'd like to add to this extension is an Adsense banner directly above the Add Your Comments. I currently tweaked this for my Vanilla forum through the comments.php file in theme. I know this isn't the best way to do it.
What method should I use to echo a piece of javascript in that region?
Hey Mark that CONTROL_POSITION_BODY_ITEM worked great but it puts it at the bottom of dicussions is there a way to move it to the top ? (top being above the discussions not top of page ;-) Ok I figured out how to do it but need some tricky moving advice,
I want to move it above the header but not at the top of the page if that makes any sense ;-) ie - > top of page where lussumo banner usually would go - > here is where I want the banner to go < - (just above the header) - > header tab links - > discussion grid top
Comments
What exactly do you want to add?
I was looking to include my Adsense javascript code in that area, at least on the discussions and categories section. I was digging through the code a bit tonight and thought the DiscussionGrid might be the area I'm looking for, instead of adding it directly to Side Panel. I'm already implementing the Adsense code in the Panel, but I thought having it right above the Discussions, it may be more targeted and effective.
Any help would be much appreciated.
a) create a control and add it to the page above the discussions - similar to my lussumobanner code (see the suggestions tab) but use the CONTROL_POSITION_BODY instead of CONTROL_POSITION_HEAD.
b) attach to the prerender delegate of the discussion grid and throw your content in there.
c) create a new theme and change the discussions.php template to include your code
I'd recommend the first option and try to stay away from the third. Themes are useful, but it's always better to try to stick with the default theme so you don't miss out on changes in future revisions.
Notice: Undefined index: CONTROL_POSITION_BODY in /home/content/j/p/m/jpmitchell7/html/extensions/AdsenseCode/default.php on line 41
I'm not sure how to format CSS stylesheet for this, so could that be a reason why its not working right?
Thank you very much. That worked like a charm and made it work perfectly. Soon, I'll have an extension available for download that allows for a banner to be displayed at the top of the main body. Now, the only other thing that I'd like to add to this extension is an Adsense banner directly above the Add Your Comments. I currently tweaked this for my Vanilla forum through the comments.php file in theme. I know this isn't the best way to do it.
What method should I use to echo a piece of javascript in that region?
Thanks for your help so far.
http://lussumo.com/community/discussion/2715/advert-addon/#Item_4
I plan to improve it, of course. :-)
Ok I figured out how to do it but need some tricky moving advice, I want to move it above the header but not at the top of the page if that makes any sense ;-)
ie
- > top of page where lussumo banner usually would go
- > here is where I want the banner to go < - (just above the header)
- > header tab links
- > discussion grid top