vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Add Posting Terms To New Thread Page Via Iframe (https://vborg.vbsupport.ru/showthread.php?t=233617)

angeljs 01-19-2010 10:00 PM

Add Posting Terms To New Thread Page Via Iframe
 
1 Attachment(s)
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.

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

Quote:

Originally Posted by KevinGupta (Post 1971666)
: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) .


All times are GMT. The time now is 04:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete