View Single Post
  #944  
Old 03-29-2005, 11:33 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those wanting to take advantage of the "addlink script accepts optional url=, name=, description= parameters to allow scripted new link creation" that AndrewD has kindly added .. I've found the following code to work with IE 6 ..

Code:
javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('http://www.yoururl.com/local_links.php?action=addlink&url='+escape(location.href)+'&name='+document.title+'&description='+escape(Q),'AddToLinks','menubar=1,location=1,resizable=1,scrollbars=1,status=1,toolbar=1'));btw.focus();
(Be warned .. it looks like vB adds some spaces into the above code for some reason .. please cleck that you have no spaces before saying it doesn't work! )

Instructions for use ..

1/ Create a favorite within IE6 using any URL
2/ Right click this new favorite within the "Favorites" drop down and click "Properties"
3/ Within the "Web Document" tab replace the current URL with the code above remembering to change the "yoururl.com" part of the URL for the correct path to your local_links.php file
4/ Within the "General" tab replace the name to something like "Add URL to Link Database"
5/ Click OK, at which point it will ask if you really want to do it .. click YES
6/ Finally click "Tools" on your menu bar, click "Pop-up Blocker" and click "Turn off Pop-up Blocker". This will stop IE complaining that the site is trying to open a new window when you click "Add URL to Link Database" from your "Favorites" menu

To add a link to your Links Database you can now do the following ..

1/ Goto URL using IE6
2/ Highlight some text you'd like as the description for this link
3/ Pick "Add URL to Link Database" from your favorites list
4/ A new page will open pre-filling the Name, URL and Description of your link
5/ Finalise the completion of this page as normal

Finished!

AndrewD .. your more than welcome to use the above in the instructions.txt if you'd like .. or do some of your own if you think I've not explained it very well ..
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01684 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete