vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - Photobucket Image Uploader (https://vborg.vbsupport.ru/showthread.php?t=166286)

Dannyloski 04-12-2008 07:49 PM

ArnyVee, yeah if you havent assigned any Usergroups the permission to view the Hack, then it will not display it. If you want to test the Hack, then enter "6" in the "Allowed Usergroups" Setting as that's the Usergroup ID for Administrators and then check if it works. If it does, then you can go ahead and enter the rest of the Usergroup IDs who you want to make the Hack visible to. To get the Usergroup IDs go to Admin CP > Usergroups > Usergroup Manager > And you will see the Usergroup IDs under the "Controls" Column (they are in the Drop Down Menu).

ArnyVee 04-12-2008 08:19 PM

Thanks Dannyloski!

It works...and I went ahead and clicked 'installed'. :)

Dannyloski 04-13-2008 01:46 PM

^ Glad to hear that :up: ... Thanks for clicking installed!

hsv z clubbie 04-14-2008 10:05 AM

Excellent work, our members love it...marked as installed !!!

Dannyloski 04-14-2008 04:27 PM

^ That is awesome news to hear :up:

Code Monkey 04-15-2008 02:40 AM

In your javascript you should use vBulletin's fetch_object() function instead of document.getElementById() to take advantage of vBulletin's browser compatibility features.

Code Monkey 04-15-2008 03:09 AM

Also if you want to use href= in the links to get the link effects then you can use href="javascript:{}" instead of href="#". The latter is what causes it to jump to the top of the page when you click it. This way eliminates that problem. Technically you can add a js function to the href as well, such as href="javascript:{view();}". Though it is even better to just forget the whole href bit and just use css and use the onclick on the text container.

Dannyloski 04-15-2008 07:19 PM

^ Thanks for the tips ... I edited the "href" attribute on the Modification, to make it not jump to the top of the Page. I dont understand how to implement the fetch_object() function instead of document.getElementById() function, so I left it as is - seems to work perfectly so if its not broke, why fix it, lol.

Megatr0n 04-15-2008 07:38 PM

Compatible with 3.7?

Code Monkey 04-15-2008 09:03 PM

Quote:

Originally Posted by Dannyloski (Post 1491484)
^ Thanks for the tips ... I edited the "href" attribute on the Modification, to make it not jump to the top of the Page. I dont understand how to implement the fetch_object() function instead of document.getElementById() function, so I left it as is - seems to work perfectly so if its not broke, why fix it, lol.

It may not work with older browsers though.

Just replace

PHP Code:

function hide() {
document.getElementById('hidelink').className "hidden";
document.getElementById('viewlink').className "viewable";
document.getElementById('photobucket').className "hidden";
return 
false;


with

PHP Code:

function hide() {
fetch_object('hidelink').className "hidden";
fetch_object('viewlink').className "viewable";
fetch_object('photobucket').className "hidden";
return 
false;


This way your code will always use vBulletin's latest compatibility features.


All times are GMT. The time now is 12:58 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.01359 seconds
  • Memory Usage 1,751KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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