Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Add Posting Terms To New Thread Page Via Iframe Details »»
Add Posting Terms To New Thread Page Via Iframe
Version: 1.01, by angeljs angeljs is offline
Developer Last Online: Jun 2022 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.1 Rating:
Released: 01-19-2010 Last Update: 01-19-2010 Installs: 22
Template Edits
Re-useable Code Translations  
No support by the author.

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:

Code:
{vb:raw navbar}
Underneath it add:

Code:
<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.

Download Now

File Type: zip iframe-terms.zip (83.3 KB, 96 views)

Screenshots

File Type: jpg screenshot.jpg (74.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-20-2010, 11:13 AM
jarremachine jarremachine is offline
 
Join Date: Jan 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple but practical. Installed no problems.
Reply With Quote
  #3  
Old 01-20-2010, 12:31 PM
angeljs's Avatar
angeljs angeljs is offline
 
Join Date: Aug 2005
Location: UK
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good. I've just updated this to include a basic terms and conditions page
Reply With Quote
  #4  
Old 01-21-2010, 05:34 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

User group permissions and setting it for individual forums would be a welcome addition.
Reply With Quote
  #5  
Old 01-21-2010, 06:56 PM
angeljs's Avatar
angeljs angeljs is offline
 
Join Date: Aug 2005
Location: UK
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know...I don't know php at all or I would love to develop some really cool mods for vBulletin.
Reply With Quote
  #6  
Old 01-31-2010, 09:28 PM
KevinGupta KevinGupta is offline
 
Join Date: Dec 2006
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really needed something like this... but maybe without iframe would be really good
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
Reply With Quote
  #7  
Old 02-01-2010, 06:34 AM
angeljs's Avatar
angeljs angeljs is offline
 
Join Date: Aug 2005
Location: UK
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KevinGupta View Post
: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
Reply With Quote
  #8  
Old 02-01-2010, 06:39 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just add it in a <textarea> tag, and do away with iframe
Reply With Quote
  #9  
Old 02-01-2010, 10:22 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would make a span class, instead of inline . Cleaner code. Good effort Dr. :up:
Reply With Quote
  #10  
Old 02-02-2010, 08:08 AM
angeljs's Avatar
angeljs angeljs is offline
 
Join Date: Aug 2005
Location: UK
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10772 seconds
  • Memory Usage 2,317KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete