Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2010, 06:42 PM
cyberchief cyberchief is offline
 
Join Date: Oct 2010
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default TOU, Legal, Etc link in footer navbar

I would love to see a mod to make it easier for newbs like me to add a link in the footer navbar. Specifically, I want to add a "Terms of Use" link that would take the person to a page that just has my "Terms of Use" or "Rules" or whatever. Ideally, the mod would allow the user the ability to "name" the link that would be showin the footer. This would be done in the admincp. As well, a place to type/paste the whole Terms of Use text, or legal verbiage, or whatever the forum owner wants on that page. Maybe allow BBcode as well. And, finally, an enable/disable option.

I have done a ton of searching and have posted in the vb4 forum as well... just haven't seen anything like this. I think this would get quite a few downloads. For my forum users... it is difficult to find the rules (other than on the registration page)
Reply With Quote
  #2  
Old 12-29-2010, 07:03 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cyberchief View Post
I would love to see a mod to make it easier for newbs like me to add a link in the footer navbar. Specifically, I want to add a "Terms of Use" link that would take the person to a page that just has my "Terms of Use" or "Rules" or whatever. Ideally, the mod would allow the user the ability to "name" the link that would be showin the footer. This would be done in the admincp. As well, a place to type/paste the whole Terms of Use text, or legal verbiage, or whatever the forum owner wants on that page. Maybe allow BBcode as well. And, finally, an enable/disable option.

I have done a ton of searching and have posted in the vb4 forum as well... just haven't seen anything like this. I think this would get quite a few downloads. For my forum users... it is difficult to find the rules (other than on the registration page)
You can follow Lynne's article here https://vborg.vbsupport.ru/showthread.php?t=228112 and create your own custom pages, after that edit your settings and include the URL to your Terms of Service/Privacy Policy pages in Settings > Options > Site Name / URL / Contact Details and it will automatically show in your footer.
Reply With Quote
  #3  
Old 12-29-2010, 07:13 PM
cyberchief cyberchief is offline
 
Join Date: Oct 2010
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Superman. Unfortunately for me... I have read it and it makes no sense. What she appears to be doing is creating some sort of "who's online" which is a little off from what I am trying to do. I am not familiar with this coding... so I can't follow what the heck it is doing. If there were a tutorial for creating exactly what I am trying to accomplish... I know I can follow that. But I have no clue how to modify what she was doing for my purposes. Sorry for being a newb.

--------------- Added [DATE]1293659846[/DATE] at [TIME]1293659846[/TIME] ---------------

I have read Lynn's article to the end. And, have to say, I am even more clueless than before. All I am trying to accomplish is for a person to click on the link and bring up a page that has text of the Terms of Use. I don't care if it contains anything else. It would be nice... but as I am not a coder... I am willing to settle for anything. The amount of coding involved, according to the article, is rediculous to just enter the TOU as text. I would think that vBulletin would have this as a standard option.

So... if anyone out there can help the thousands of newbs like me.. would be greatly appreciated.
Reply With Quote
  #4  
Old 12-29-2010, 08:39 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cyberchef, I think you're reading too much into Lynne's article.. it's actually a very easy 2 step process- you can ignore the "Who's online" instructions, they aren't necessary, just a little extra but not needed.

There are only 2 real steps...

Step 1. Make a new php file...
Use a text editor and make a new php file, call is test.php and copy and paste all the code below into the file and save it. Once saved upload it to your forum directory, the same directory where showthread.php, forumdisplay.php and the rest are.
The code:
Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT', 'test');
define('CSRF_PROTECTION', true);  
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('TEST',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits = construct_navbits(array('' => 'Test Page'));
$navbar = render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'My Page Title';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater = vB_Template::create('TEST');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

?>
You're halfway there...

Now go to your Admin CP -> Style Manager
Choose your style and choose to "Add New Template" from the drop down box'...
Give the template the title: TEST
And paste call the code below into it and hit save.
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
    
    {vb:raw header}
    
    {vb:raw navbar}
    
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>
    
    <h2 class="blockhead">Title</h2>
    <div class="blockbody">
      <div class="blockrow">
        Text here. Text here. Text here. Text here. Text here.
      </div>
    </div>
    
    {vb:raw footer}
  </body>
</html>
That's in you're done, you now have a custom page, go to your forum url/test.pho and you'll see it.

Finally you can easily add it to your footer by going to the Admin CP -> Options -> Site Name / URL / Contact Details
In there near the bottom there is already a field, usually empty, for the URL to your Terms of Service.
Reply With Quote
  #5  
Old 12-29-2010, 08:55 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cyberchief View Post
Thanks, Superman. Unfortunately for me... I have read it and it makes no sense. What she appears to be doing is creating some sort of "who's online" which is a little off from what I am trying to do. I am not familiar with this coding... so I can't follow what the heck it is doing. If there were a tutorial for creating exactly what I am trying to accomplish... I know I can follow that. But I have no clue how to modify what she was doing for my purposes. Sorry for being a newb.

--------------- Added [DATE]1293659846[/DATE] at [TIME]1293659846[/TIME] ---------------

I have read Lynn's article to the end. And, have to say, I am even more clueless than before. All I am trying to accomplish is for a person to click on the link and bring up a page that has text of the Terms of Use. I don't care if it contains anything else. It would be nice... but as I am not a coder... I am willing to settle for anything. The amount of coding involved, according to the article, is rediculous to just enter the TOU as text. I would think that vBulletin would have this as a standard option.

So... if anyone out there can help the thousands of newbs like me.. would be greatly appreciated.
Let me back BirdOPrey up, here. Lynne's tutorial is pretty basic. There's only two steps. Both steps just require a copy and paste. You don't do any coding to create the custom page. Then when you're done, you just type up your TOU in the template.
Reply With Quote
  #6  
Old 12-29-2010, 09:09 PM
cyberchief cyberchief is offline
 
Join Date: Oct 2010
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you guys! I am at it now. I REALLY appreciate it!

--------------- Added [DATE]1293664987[/DATE] at [TIME]1293664987[/TIME] ---------------

You guys ROCK!!!! Unreal! So much simpler reading the above rather than reading the other article. No offense to Lynn... obviously I needed it dumbed down. I have everything working perfectly now. Thanks a TON!
Reply With Quote
Reply


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 05:56 AM.


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.03845 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete