Author |
Message |
mrix
Client
![](modules/Forums/images/avatars/blank.gif)
Joined: Dec 04, 2004
Posts: 757
|
Posted:
Sat Jan 23, 2010 6:28 am |
|
Hello all, I was thinking of an idea to get funding for my site by getting various sponsors to sponsor and individual forum... I was wondering if it would be possible to add a different banner at the top of each forum????
Cheers and thanks for any help.
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Jan 23, 2010 10:55 am |
|
It should be fairly easy to hard code something in there. I'm not 100% sure where you want these banners to show. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Sat Jan 23, 2010 11:01 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 23, 2010 11:20 am |
|
Hi there I did notice the built in advertising module but I am not sure if it can actually do what I am asking for, which is to place different banners in different positions for each forum.????
Cheers
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 23, 2010 11:51 am |
|
You would have to make a new position for each forum an only assign a single banner/advertiser for each position. Then in say viewforum.php (depends where you want it) you need to determine what position to use and then send it to the template. Then you need to edit the template to display it.
If that is over your head let me know. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 23, 2010 11:55 am |
|
Quote: | If that is over your head let me know. |
In a word yes
I didn't realise the advertising module was so complex to use
Cheers
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 23, 2010 2:37 pm |
|
it's not that bad
1. go to advertising admin -> ad positions
and create a position for each add you want to display
2. go to advertising admin -> Add a New Client
(ads have to be attached to a client)
3. go to advertising admin -> Add a New Banner
choose position you created in step 1
4. Manually edit your theme inserting something like this in the desired place (for instance for position 2)
$adText = ads(2);
echo '<div align="center">' . $adText . '</div>';
to display a random ad from all ads set at position 2 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Jan 23, 2010 2:41 pm |
|
Another option might be to embed the HTML link to each separate banner within the forum descriptive text. Guardian has done something similar, but for specific RSS feeds for given forums. You don't have much choice by way of positioning (I suppose one could use some fancy CSS though...), but it would potentially do the trick. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 23, 2010 2:59 pm |
|
Hi there, I am sorry but reading through the help given I feel I may of not made myself clear..
Basically what I am looking for is to add different clients banners to different forums.. whether its possible through the advertising module or another way?
Quote: | 1. go to advertising admin -> ad positions
and create a position for each add you want to display
2. go to advertising admin -> Add a New Client
(ads have to be attached to a client)
3. go to advertising admin -> Add a New Banner
choose position you created in step 1
4. Manually edit your theme inserting something like this in the desired place (for instance for position 2)
$adText = ads(2);
echo '<div align="center">' . $adText . '</div>'; |
So what explained above, will this code still work????
Many thanks for all the help.
cheers
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kenno
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/Cartoons/Cartoons_-_Pink_Panther.gif)
Joined: Jul 26, 2009
Posts: 117
Location: Scunthorpe, UK
|
Posted:
Sun Jan 24, 2010 7:40 am |
|
I am looking to do the exact same thing on my sites, where as to look for sponsors for certain sections within the forums.
I was also told this was possible through the advertising module but I could not figure out where or what to add in the theme file to achieve this.
I want to achieve some thing similar to this site I have come across while searching
http://www.vwgolfmk2.co.uk/modules.php?name=Forums , I have asked the admin on there but they have a web person who they pay who did this for them so they was unsure how it was done |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 24, 2010 9:08 am |
|
well if you are using google ad code you job is much easier as they load appropriate ads depending on the content of your page. You just need to go thru the template files in themes/YOUR_THEME/forums and find where you want to add the code (not all themes have their own forum templates, so look in forum module if not there)
one suggestion would be to place in overall_header.tpl
an example from fisubice
find:
Code:<table cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td class="navbkg2"> <a href="{U_FAQ}">{L_FAQ}</a> • <a href="{U_SEARCH}">{L_SEARCH}</a> • <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a> • <a href="{U_GROUP_CP}">{L_USERGROUPS}</a> • <a href="{U_PROFILE}">{L_PROFILE}</a> • <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
• <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></td>
</tr>
</table>
</td></tr></table>
<br />
|
replace with:
Code:<table cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="center">YOUR_AD_CODE_HERE</td>
</tr>
</table>
</td></tr></table>
<br /><table cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td class="navbkg2"> <a href="{U_FAQ}">{L_FAQ}</a> • <a href="{U_SEARCH}">{L_SEARCH}</a> • <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a> • <a href="{U_GROUP_CP}">{L_USERGROUPS}</a> • <a href="{U_PROFILE}">{L_PROFILE}</a> • <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
• <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></td>
</tr>
</table>
</td></tr></table>
<br />
|
where YOUR_AD_CODE_HERE is the code you get from google.
However, if you are looking to use the built-in advertising module to display different ads per forum category your task is more challenging, and would require some php experience.... loading a different ad position depending on the forum id. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kenno
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 24, 2010 9:13 am |
|
No not google adds, that site I linked to if you scroll down the forums you will see they have banners in different sections for what they call traders. I am looking to add that type of thing to my sites |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 24, 2010 9:25 am |
|
I'm pretty sure they just used Montego's suggestion above for that..
For me, that's a little confusing to have an ad that takes you to an external site in the forum description, some users might expect to visit the forum... but to each his/her own ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 24, 2010 10:20 am |
|
I would really like to add individual advertisers to the top of different sub forums and their ad banner to be a permanent one for that sub forum..
I would imagine this would be a very powerful tool for ravennuke.
Would it be possible to add some code to the database tables to add banners to the generated sub forums????
Cheers
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 24, 2010 10:42 am |
|
mrix, what you are asking for is not an insignificant customization. This is also the first that we have had folks about this, so it is not something that I would see us building directly into RavenNuke given everything else on our plate there. To do this, I believe that you would have to modify forum templates as well, which there-in lies the rub with incorporating into RN: could break all theme'd forum templates.
You might want to ask for help in the For Hire forum. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 24, 2010 10:44 am |
|
Ok fair enough but it seems like such a great advertising tool would you agree????
Cheers and thanks.
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
AndyB
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/50e5906d503900b86d7c3.jpg)
Joined: Jun 03, 2004
Posts: 231
Location: Torrevieja, Spain
|
Posted:
Mon Jan 25, 2010 3:27 pm |
|
if it helps.... take a look at www.audifans.net , forums.
(Hopefully you'll see some with not being registered)
A particular forum is "sponsored" by a particular company (has their banner/ text link)
Is this what you was after? Although the site isn't running RN, it runs a modified 7.6 nuke (thanks to chatserv, Raven, etc.) I hard coded the banners/ links in- this was done in the backend for the forums/ description. I can advise how, if of any use? (standard html in the admin area) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 26, 2010 12:31 am |
|
Hi there, that option is a good one if members entered my site through the whole forum and scroll down but I use a direct link sub menu on the left of the site...
At present to you see where I have placed the Google ads here....
http://www.sea-fishing.org/forum-3.html
Basically that page if my south coast fishing page and instead of the Google ade, my idea is to replace it with a company advertisement just for that sub forum.
Cheers
mrix
p.s I have posted in the Hire forum for help but no joy ![Sad](modules/Forums/images/smiles/icon_sad.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
AndyB
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 26, 2010 2:10 am |
|
mrix wrote: | At present to you see where I have placed the Google ads here....
http://www.sea-fishing.org/forum-3.html
Basically that page if my south coast fishing page and instead of the Google ade, my idea is to replace it with a company advertisement just for that sub forum.
Cheers
mrix
p.s I have posted in the Hire forum for help but no joy |
Ah. Sentinel
Quote: | You have been blocked from entering this site.
You have attempted to improperly access the admin area of this site.
All of the following information has been gathered to assist the webmaster should this need to be reported to local or federal law enforcement.
If you think this is a mistake you can contact the site webmaster at mrix(at)sea-fishing(dot)org.
Be SURE to include the following information in any email!
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Remote Address: 62.6.183.238
Client IP: none
Forwarded For: 10.30.200.10
Date Blocked: __TIMEDATE__
Block expires: __DATEEXPIRES__
PLEASE: bear in mind that even if you have done nothing wrong, you may be getting this page due to someone's misuse of the site in your ip range
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 26, 2010 3:37 am |
|
Oh you got blocked? I seem to get that a fair bit, another forum topic maybe
Cheers
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kenno
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 26, 2010 4:06 am |
|
AndyB wrote: | if it helps.... take a look at www.audifans.net , forums.
(Hopefully you'll see some with not being registered)
A particular forum is "sponsored" by a particular company (has their banner/ text link)
Is this what you was after? Although the site isn't running RN, it runs a modified 7.6 nuke (thanks to chatserv, Raven, etc.) I hard coded the banners/ links in- this was done in the backend for the forums/ description. I can advise how, if of any use? (standard html in the admin area) |
I would not mind knowing how to do this if thats ok mate
Cheers Kenno |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Tue Jan 26, 2010 4:27 am |
|
All the information required has already been posted in this thread i.e. create a banner with a unique location number, add the code required to call the specific ad and add it to where you want it in your forum template.
The trickiest part is finding the right place in the forum template to add the banner, which since they do vary a fair bit, you would need to do with some trial and error. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 26, 2010 4:29 am |
|
From what am trying to achieve I don't think my question has been answered?
Cheers
mrix |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 26, 2010 4:33 am |
|
Give me a few hours, I will write up a tutorial ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
mrix
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 26, 2010 4:36 am |
|
As I want different banners adding to different sub categories I cant get my head around how I would add code to the template to achieve this ?
Quote: | Give me a few hours, I will write up a tutorial |
are you taking the P???
If yourself or someone could help I don't mind paying for your time.
thanks for the help all.
Cheers
mrix |
Last edited by mrix on Tue Jan 26, 2010 5:52 am; edited 3 times in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|