PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
AndyB
Worker
Worker


Joined: Jun 03, 2004
Posts: 227
Location: Tamworth, UK

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

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 to the forums!
, 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 Visit poster's website
kenno
Worker
Worker


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

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

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


Joined: Jun 03, 2004
Posts: 227
Location: Tamworth, UK

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

no problem, glad I could help Wink
View user's profile Send private message Visit poster's website
mrix
Client


Joined: Dec 04, 2004
Posts: 757

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

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 Back to top

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
Client


Joined: Dec 04, 2004
Posts: 757

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

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 to the forums!
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


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

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

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


Joined: Dec 04, 2004
Posts: 757

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

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


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

@ 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 Visit poster's website
mrix
Client


Joined: Dec 04, 2004
Posts: 757

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

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
View user's profile Send private message Visit poster's website
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

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

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 Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum