Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
mrix
Client



Joined: Dec 04, 2004
Posts: 757

PostPosted: Sat Jan 23, 2010 6:28 am Reply with quote

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
 
View user's profile Send private message Visit poster's website
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Jan 23, 2010 10:55 am Reply with quote

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. 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Sat Jan 23, 2010 11:01 am Reply with quote

if you look at the advertising block you can see how ads are displayed. Just need to create ads with a new position (not 0 or 1) and then insert them where you want them displayed.
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Visit poster's website
mrix







PostPosted: Sat Jan 23, 2010 11:20 am Reply with quote

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
 
Palbin







PostPosted: Sat Jan 23, 2010 11:51 am Reply with quote

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.
 
mrix







PostPosted: Sat Jan 23, 2010 11:55 am Reply with quote

Quote:
If that is over your head let me know.


Shocked Shocked Shocked Shocked
In a word yes Confused Laughing


I didn't realise the advertising module was so complex to use Sad

Cheers
mrix
 
spasticdonkey







PostPosted: Sat Jan 23, 2010 2:37 pm Reply with quote

it's not that bad Smile
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
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Jan 23, 2010 2:41 pm Reply with quote

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
mrix







PostPosted: Sat Jan 23, 2010 2:59 pm Reply with quote

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
 
kenno
Worker
Worker



Joined: Jul 26, 2009
Posts: 117
Location: Scunthorpe, UK

PostPosted: Sun Jan 24, 2010 7:40 am Reply with quote

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
[ Only registered users can see links on this board! Get registered or login! ] , 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
 
View user's profile Send private message
spasticdonkey







PostPosted: Sun Jan 24, 2010 9:08 am Reply with quote

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">&nbsp; <a href="{U_FAQ}">{L_FAQ}</a>&nbsp; •&nbsp; <a href="{U_SEARCH}">{L_SEARCH}</a>&nbsp; •&nbsp; <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>&nbsp; •&nbsp; <a href="{U_GROUP_CP}">{L_USERGROUPS}</a>&nbsp; •&nbsp; <a href="{U_PROFILE}">{L_PROFILE}</a>&nbsp; •&nbsp; <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>&nbsp;
 •&nbsp; <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">&nbsp; <a href="{U_FAQ}">{L_FAQ}</a>&nbsp; •&nbsp; <a href="{U_SEARCH}">{L_SEARCH}</a>&nbsp; •&nbsp; <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>&nbsp; •&nbsp; <a href="{U_GROUP_CP}">{L_USERGROUPS}</a>&nbsp; •&nbsp; <a href="{U_PROFILE}">{L_PROFILE}</a>&nbsp; •&nbsp; <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>&nbsp;
 •&nbsp; <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.
 
kenno







PostPosted: Sun Jan 24, 2010 9:13 am Reply with quote

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
 
spasticdonkey







PostPosted: Sun Jan 24, 2010 9:25 am Reply with quote

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
 
mrix







PostPosted: Sun Jan 24, 2010 10:20 am Reply with quote

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
 
montego







PostPosted: Sun Jan 24, 2010 10:42 am Reply with quote

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.
 
mrix







PostPosted: Sun Jan 24, 2010 10:44 am Reply with quote

Ok fair enough but it seems like such a great advertising tool would you agree????
Cheers and thanks.
mrix
 
AndyB
Worker
Worker



Joined: Jun 03, 2004
Posts: 231
Location: Torrevieja, Spain

PostPosted: Mon Jan 25, 2010 3:27 pm Reply with quote

if it helps.... take a look at [ Only registered users can see links on this board! Get registered or login! ] , 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)
 
View user's profile Send private message
mrix







PostPosted: Tue Jan 26, 2010 12:31 am Reply with quote

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....
[ Only registered users can see links on this board! Get registered or login! ]

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
 
AndyB







PostPosted: Tue Jan 26, 2010 2:10 am Reply with quote

mrix wrote:
At present to you see where I have placed the Google ads here....
[ Only registered users can see links on this board! Get registered or login! ]

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


Ah. Sentinel Wink

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
 
mrix







PostPosted: Tue Jan 26, 2010 3:37 am Reply with quote

Oh you got blocked? I seem to get that a fair bit, another forum topic maybe Wink
Cheers
mrix
 
kenno







PostPosted: Tue Jan 26, 2010 4:06 am Reply with quote

AndyB wrote:
if it helps.... take a look at [ Only registered users can see links on this board! Get registered or login! ] , 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
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Jan 26, 2010 4:27 am Reply with quote

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.
 
View user's profile Send private message Send e-mail
mrix







PostPosted: Tue Jan 26, 2010 4:29 am Reply with quote

From what am trying to achieve I don't think my question has been answered?
Cheers
mrix
 
Guardian2003







PostPosted: Tue Jan 26, 2010 4:33 am Reply with quote

Give me a few hours, I will write up a tutorial Smile
 
mrix







PostPosted: Tue Jan 26, 2010 4:36 am Reply with quote

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??? Laughing

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 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©