vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Add to Favorites (https://vborg.vbsupport.ru/showthread.php?t=120773)

oninuva 07-08-2006 10:00 PM

Add to Favorites
 
Add to Favorite

What this does: This hack will add your site to the users favorites.

1. First go to your navbar template and look for

Code:

<if condition="$show['member']">
                        <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
                </if>

Below it add

Code:

<a href="javascript:window.external.AddFavorite('http://Change to your URL,'Favourite Title')">
Add this page to your favourites</a>

If you used this please click install.

https://vborg.vbsupport.ru/

mashour.net 07-09-2006 08:46 PM

I/she/you tried to add it to you not he goes to the housedress ..

They thanked you for you ..

Rich 07-09-2006 10:54 PM

Quote:

Originally Posted by mashour.net
I/she/you tried to add it to you not he goes to the housedress ..

They thanked you for you ..

What is that supposed to say?

oninuva 07-10-2006 02:15 AM

Hmm i think he means

Quote:

Thank you for this hack
it matchs great with my dress ... erm i mean forum :) Thanks!

pspcrazy 07-10-2006 03:07 AM

What if the user as already added it? Will it ask every single time?

oninuva 07-10-2006 12:36 PM

Quote:

Originally Posted by pspcrazy
What if the user as already added it? Will it ask every single time?

what do you mean?

Snake 07-10-2006 05:43 PM

Is this going to work on Firefox and IE?

Shazz 07-10-2006 06:48 PM

Quote:

Originally Posted by Dark Blade
Is this going to work on Firefox and IE?

Works with both.
Its just a button you click on and it adds it.
________
strain index

Allen 07-11-2006 05:22 AM

Quote:

Originally Posted by oninuva
what do you mean?

I suppose he meant a condition. I was thinking about this myself.

Basically, so far the code for favourites will be displayed independently apart from whether user adds it to fovourites or not.

It would be great if this Hack could know if the user added forums to favourites or not and so:
- if she/he didn't - it will show up
- if she/he did - it won't show up or will be replaced with sth.

The problem is, how can we know the user has already have our forums in favourites.

P.S. 'Add as a Home Page' would also be great :D
P.S.2. Will add this Hack as soon as I'll get some things done with my forums :)

oninuva 07-12-2006 01:01 PM

@ Allen P.S i already have one here

https://vborg.vbsupport.ru/showthread.php?t=120767


All times are GMT. The time now is 05:38 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.01159 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete