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)
-   -   Mini Mods - Custom Footer Link (https://vborg.vbsupport.ru/showthread.php?t=250093)

borbole 09-06-2010 10:00 PM

Custom Footer Link
 
1 Attachment(s)
This is a small hack that it will allow you to add a custom link in the footer. You can enable and disable it at the Acp-Options-Forums Home Page Options, where you can also enter the name and url of your custom link.

P.s. I know that this can be easily done by changing the footer template. But some users are not comfortable with editing the templates manually. And for that group of users this mod is meant. It can be used by the advanced webmasters as well who would like to do this from the comfort of their Acp rather than editing templates manually.

Merjawy 09-07-2010 12:16 PM

Not to mention having to repeat it after every upgrade.. I like it

Thanks .. will give it a spin

josantos 09-13-2010 02:40 PM

thanks !

borbole 09-16-2010 07:32 AM

Youa re welcome guys. Glad you like it :)

sulasno 09-16-2010 10:24 AM

have tagged but not yet installed pending 4.0.7

edit

installed and working;

this is one mod that should be incorporated into future versions of vBulletin

caciocode 07-11-2011 05:24 PM

Where do you to change the settings for this?

TheLastSuperman 07-11-2011 05:34 PM

Quote:

Originally Posted by caciocode (Post 2219387)
Where do you to change the settings for this?

AdminCP > Settings > Options > Forums Home Page Options

New setting areas will be at the bottom ;).

Mr_Running 07-11-2011 07:33 PM

Okay this would be perfect if we had additional link options say 3 or 5 :)

BrightStar 03-26-2012 12:38 PM

Great little mod. Is it possible to add more than one link in the footer?

Thanks

Spacelabs 03-31-2012 03:19 AM

Hi will this work on the new VB 4.1.11 Thanks

ptceuro 04-04-2012 12:30 AM

I really like it.

Robert8 04-04-2012 02:28 AM

I like it!!! Many thanks, dude!!!

Nirjonadda 05-28-2012 08:10 PM

How i can Custom Footer Link open in a new window an is visible to the administrator and registered users ?

borbole 05-28-2012 08:16 PM

Quote:

Originally Posted by Nirjonadda (Post 2334026)
How i can Custom Footer Link open in a new window an is visible to the administrator and registered users ?

To open it in a new window find this code:

HTML Code:

<li><a href="'. $vbulletin->options['footerurl'] .'">'. $vbulletin->options['linkname'] .'</a></li>';
And change it to:

HTML Code:

<li><a href="'. $vbulletin->options['footerurl'] .'" target="_blank" >'. $vbulletin->options['linkname'] .'</a></li>';
About the second part of your question, would you like to hide it from guests? Or show it only to admins and the registered group and to no one else?

Nirjonadda 05-28-2012 08:21 PM

Edited Plugin Footer Link working done ! Hide it from guests.

borbole 05-28-2012 08:34 PM

Quote:

Originally Posted by Nirjonadda (Post 2334031)
Edited Plugin Footer Link working done ! Hide it from guests.

Find this code:

PHP Code:

if ($vbulletin->options['footer_link_enable']){ 

And replace it with:

PHP Code:

if ($vbulletin->options['footer_link_enable'] AND $vbulletin->userinfo['userid']){ 



All times are GMT. The time now is 05:20 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.01219 seconds
  • Memory Usage 1,747KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (3)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