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



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

PostPosted: Tue Jan 26, 2010 5:48 am Reply with quote

If mods/ admin want to move this to a separate thread, no problem Wink

kenno wrote:
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


go to forums > administration > (Forum Admin) management> edit the particular forum you want to have the "sponsor"- note: this will only show on the forums list page, NOT at the top of each forum (in that case, follow the tutorial that will be provided later)

If you select the forum you want "sponsoring", edit, then here's an example:
Code:
<img src="forum image url" align="left">Description of the forum <br/><a href="hyperlink to sponsors website" alt ="alt text goes here" target="new"><img src="forum sponsor image/ logo" align="right"></br>Sponsored by Sponsor X</a> Description of what services your sponsor provides


Obviously you need to change parameters above to your specifics; The actual code I have in place is :
Code:
<img src="http://www.audifans.net/modules/Forums/images/older.jpg" align="left">For Audi 60, Audi 70, early mk1 80 (including 2 door), Super 90 and early 100- including 100 Coupe S <br/><a href="http://www.footmanjames.co.uk" alt ="Footman James Sepcialist insurance- For an immediate quote call: 0845 330 8429, quote ref: AOC" target="new"><img src="http://www.audifans.net/modules/gallery/albums/audioc_misc/FJforum.jpg" align="right"></br>Sponsored by Footman James</a> Providing excellent rates of discount for Audi Owners Club Members on Modern and Classic Car & Motorcycle, Home & Contents insurance


Hopefully that makes sense; if you look on my site, the code above is for the "Old Timers" Forum, Sponsored by a company called Footman James.

HTH.

Regards

Andy
 
View user's profile Send private message
kenno
Worker
Worker



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

PostPosted: Tue Jan 26, 2010 7:00 am Reply with quote

Thank you, I was not aware you could add code just straight into the description area of the forum admin.

Thank you for pointing me in the right direction and basically showing me how to do it
Worked a treat

Thanks Kenno
 
View user's profile Send private message
AndyB







PostPosted: Tue Jan 26, 2010 8:09 am Reply with quote

no problem, glad I could help Wink
 
mrix
Client



Joined: Dec 04, 2004
Posts: 757

PostPosted: Tue Jan 26, 2010 1:52 pm Reply with quote

My problem seems to be a no go Sad
Does anyone know anyone who could do the job?
Cheers all
mrix
 
View user's profile Send private message Visit poster's website
floren
New Member
New Member



Joined: Jul 23, 2009
Posts: 2

PostPosted: Tue Jan 26, 2010 4:03 pm Reply with quote

mrix wrote:
My problem seems to be a no go Sad
Does anyone know anyone who could do the job?
Cheers all
mrix


I sent you a pm.
 
View user's profile Send private message
mrix







PostPosted: Thu Jan 28, 2010 4:55 am Reply with quote

Hi all, big thanks to a member on these forums I got sent a link to a forum sponsor mod which actually does what I was asking in my initial post Very Happy
The only worry I have is that is it secure enough to use?
Could somebody if they find a moment check the code out? , its basically a text doc with the necessary edits..
The download link can be found here.. [ Only registered users can see links on this board! Get registered or login! ]
 
spasticdonkey
RavenNuke(tm) Development Team



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

PostPosted: Thu Jan 28, 2010 9:39 am Reply with quote

took a quick look, while I'm no security expert it looked ok. Just keep in mind altering the forum db tables may complicate future upgrades/conversions, and also note that the includes folder for the forums was moved in RN, i.e.
includes/page_header.php
is now here
modules/Forums/includes/page_header.php
 
View user's profile Send private message Visit poster's website
mrix







PostPosted: Thu Jan 28, 2010 10:30 am Reply with quote

Thanks for taking a look the mod seems to run really good Very Happy
Thanks
mrix
p.s wonder if it could be some how incorporated into a ravenuke release at some point?
 
Guardian2003
Site Admin



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

PostPosted: Thu Jan 28, 2010 2:32 pm Reply with quote

@ mrix, unlikely to be honest unless there was a lot of demand, which is why we try to canvass our users to see exactly what the demand might be for particular enhancements.
However, I personally think it's a nice enhancement but would prefer to see it ties to the Advertising module.
What I had in mind had already been posted much ealrier in this thread, so trick is to automate it by using some reference to the forum ID and the Advertising modules 'location' ID. Unfortunately the Advertising module uses an auto-incrementing number of the location ID so you would have to create location 1 thru 9 then use something like ads($forum_id+9) in the forum template so that whatever forum you were in it would automatically display the forum_id +9
The original 9 locations being reserved for other uses.
 
View user's profile Send private message Send e-mail
mrix







PostPosted: Thu Jan 28, 2010 2:39 pm Reply with quote

Quote:
@ mrix, unlikely to be honest unless there was a lot of demand

I think there could be a lot of demand if users of ravennuke were aware of what can be achieved with the mod... to be honest I don't think many realise the power of the advertising module full stop! I know I didn't. But I can only see the option to add advertisers to different forums is a very powerful one and would be great if it could somehow be combined with the existing advertising system Cool
Cheers and thanks
mrix
 
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Thu Jan 28, 2010 5:05 pm Reply with quote

There isnt much needed for it to achieve that
you only need to create new adds(#) position per user only.
So if you have by default 3 positions (top,bottom,block) for adds.
You have to create new adds(#) positions for each forum you want to have adds in.
inside the new positions you assign the single advertiser to it.
inside the forums page ( i dont now directly the affected filename) you create a code what checks if it has an add . (true a database table you have to created to combine adds to forums).
$forum_id = X;
$adds_id = X;
adds($adds_id);

EDIT:

the file is:
modules/Forums/templates/subSilver/viewtopic_body.tpl and/or themes/YOURTHEME/forums/viewtopic_body.tpl

Dont use text but use the number you used in the default advertising module.


Code:
modules/Forums/templates/subSilver/viewforum_body.tpl and/or themes/YOURTHEME/forums/viewforum_body.tpl


#
#-----[ FIND ]------------------------------------------
#

     <td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
   </tr>
  </table>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
      <td align="center">
         adds($forum_sponsor);
      </td>
   </tr>
</table>


The suggested addon you mentioned above is good to go
 
View user's profile Send private message Send e-mail
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 ©