PDA

View Full Version : New Posting Features - Add Posting Terms To New Thread Page Via Iframe


angeljs
01-19-2010, 10:00 PM
This mod allows you to have set terms and conditions for all new threads via an iframe.


******PLEASE CLICK INSTALL IF YOU USE THIS******

I'm no programmer and I'm using this only until a more sophisticated mod is available for vBulletin 4. It's my very first one, so please be gentle with me! :)

What this mod does:

Adds a simple iframe to the new thread page so members can see your posting terms and conditions before they create the thread.

What it does not do:

Cannot be set for individual forums...the iframe is universal. Any hints on developing this a bit more will be appreciated.

It does not create the terms page for you...you must have one already in order for it to be included. Just add the link to the code below to show your page.

To install:

Go to your admin panel and find the newthread template in whatever skin you are using:

admincp/Styles & Templates/Style Manager/Edit Templates/New Posting Templates/newthread

Look for:

{vb:raw navbar}

Underneath it add:

<br>
<table border="0" cellpadding="6" align="center" width="86%">
<tbody>
<tr>
<td style="border: 1px solid #557eaa;"><iframe src="http://www.simfansuk.com/terms.html" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" width="100%" height="200"></iframe></td>
</tr>
</tbody>
</table>
<br>


Change the link to your terms page and that's it. The table border colour, #557eaa, can be changed to match your own forums, and of course the height and width of the iframe can be modified, too.

Ok, it's not cool, but I really needed this for my own forums and just decided to share. :)

Edit: The zip file has been updated to include a basic terms & conditions page which you may or may not want to use. Just upload it to your own site and link to it within the iframe.

jarremachine
01-20-2010, 11:13 AM
Simple but practical. Installed no problems. :)

angeljs
01-20-2010, 12:31 PM
Good. I've just updated this to include a basic terms and conditions page :)

Alfa1
01-21-2010, 05:34 PM
User group permissions and setting it for individual forums would be a welcome addition.

angeljs
01-21-2010, 06:56 PM
I know...I don't know php at all or I would love to develop some really cool mods for vBulletin. :)

KevinGupta
01-31-2010, 09:28 PM
I really needed something like this... but maybe without iframe would be really good :D
I have requested that before but no response yet? :(

:P I really wish you knew some coding hehe.. otherwise I wouldn't really have to wait for posting terms just before new thread

angeljs
02-01-2010, 06:34 AM
:P I really wish you knew some coding hehe.. otherwise I wouldn't really have to wait for posting terms just before new thread

Me too :(

TimberFloorAu
02-01-2010, 06:39 AM
Why not just add it in a <textarea> tag, and do away with iframe

TimberFloorAu
02-01-2010, 10:22 PM
I would make a span class, instead of inline . Cleaner code. Good effort Dr. :up:

angeljs
02-02-2010, 08:08 AM
Some great suggestions there. :)

The reason I wanted an iframe is so I could include as much content as I wanted on my external terms page without it taking up so much space on the actual posting page. My terms and conditions are quite verbose.:)

Tony_FPM
02-02-2010, 10:41 AM
Good mod but i also needed only for 1 forum category.

Thanks for so far .

SpaceStar
03-16-2010, 07:10 PM
Super - working fine1

garretbyrne
03-29-2010, 02:01 AM
Well done...

Gn_Snake
10-05-2010, 09:57 AM
But what you have to edit template to insert it in a section above the threads in each new thread instead?

Forum Lover
02-16-2011, 11:00 AM
How do I get the same for blogs too? Tagged. :)

rafiul
02-16-2011, 02:26 PM
For blog- go to - your template> Blog templates>blog_entry_editor> and find-
<p class="description"><vb:if condition="$show['delete']">{vb:rawphrase blog_entry}: <a href="{vb:link entry, {vb:raw bloginfo}}">{vb:raw title}</a></vb:if></p>
</div>

After </div> tag, Add this code. It will work (tested) .