vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [beta] Dropdown instead of temporary buttons (https://vborg.vbsupport.ru/showthread.php?t=88353)

MrNase 08-05-2003 02:22 PM

[beta] Dropdown instead of temporary buttons
 
1 Attachment(s)
it's not beta anylonger ;)
updated 09/25/2003

notes: my first :)
description: this mod. replaces the 5 temporary buttons with a dropdown menu :)
demo: attached ;)
download: here

Bad Bunny 08-05-2003 09:25 PM

If I'm not mistaken, you are supposed to put it in a file and attatch it. Seems like a nice mod though, thanks.

assassingod 08-05-2003 10:26 PM

Nice mod, but as Bad Bunny said you're meant to document it.

imported_Hiall 08-05-2003 11:28 PM

1 Attachment(s)
Fixed the bug
<option value="javascript:window.open('misc.php?do=buddylist&focus=1','budd ylist','statu sbar=no,menubar=no,tool bar=no,scrollbars=yes,resizable=yes,width=180,heig ht=300');return false;">Open Buddy List</option>

should be

<option value="window.open('misc.php?do=buddylist&focus=1' ,'buddylist','statusbar=no,men ubar=no,tool bar=no,scrollbars=yes,resizable=yes,width=180,heig ht=300');return false;">Open Buddy List</option>

Also put it in a txt for easy download, i hope Mrnase you don't mind.

SaintDog 08-06-2003 03:21 AM

Yes, please edit your post and attach the intructions as referenced.

MrNase 08-06-2003 10:19 AM

done :)

thx for you help, next time i'll attach it right from the start ;)

imported_Hiall 08-06-2003 07:35 PM

nice hack btw i'v been making gfx buttons for them, no need now ;)

MrNase 08-08-2003 12:49 PM

i think the most people removed them already...

could someone please change that title? It's not beta anymore ;)

DeeperImage 08-11-2003 04:24 PM

Very nice. Installed. :)

Tony G 08-12-2003 03:55 AM

Neat idea. :)

DeeperImage 08-12-2003 11:45 AM

Only thing i noticed is that the OPEN BUDDIES LIST does not work for me and SIMPLE SEARCH. everything else does. Any suggestions/ideas? thanks

mymilkexpired 08-12-2003 02:53 PM

I fixed the problem with the simple search. The code has listed "java script" when it should be "javascript" there is a typo , the extra space needs to be removed.

However i cannot get the buddylist to work...

I tried making some changes to the buddylist code and couldnt make anything happen, so i just made the value "#" for the time being so that it doesnt generate a missing page error. Hopefully someone knows java better than I and can point out the problem :)

MrNase 08-13-2003 03:41 AM

uhm, it's was working for me?!
The Buddylist had problems but Hiall fixed them...

I don't know why but vB3 adds a space between java and script :(

mymilkexpired 08-14-2003 10:54 AM

Quote:

Originally Posted by MrNase
uhm, it's was working for me?!
The Buddylist had problems but Hiall fixed them...

I don't know why but vB3 adds a space between java and script :(

Paste the line of code you are using for the buddylist menu option. When i choose that option it appends the "link" to the url already listed in the menu bar... i think thats part of the problem.

MrNase 08-14-2003 02:58 PM

yeah, got it :)

This one worx when you have an url like www.sportboard.de/v2 but not when you have an url like www.sportboard.de/v2/index.php because in this case (as mymilkrotted) figured out the scripts tries to open http://www.sportboard.de/v2/index.ph...hp?do=markread :(

To fix this you should redownload the instruction above and add the Board URL with a trailing slash ('/') BEVORE:
login.php?do=logout
misc.php?do=buddylist
search.php?do=getnew
forumdisplay.php?do=markread

like:
http://www.sportboard.de/v2/login.php?do=logout
http://www.sportboard.de/v2/misc.php?...
...

Another fix:
edit your code and delete the space between java and script @
Quote:

<option value="java script:simplesearch();">Simple Search</option>
(vb3 seems to make it autom.)

I'll update the instructions now :)

kendo 08-17-2003 04:36 PM

Quote:

Originally Posted by mymilkrotted
Paste the line of code you are using for the buddylist menu option. When i choose that option it appends the "link" to the url already listed in the menu bar... i think thats part of the problem.

To get the buddylist menu option to work, replace this:

<option value="window.open('misc.php?do=buddylist&focus=1' ,'buddylist','statusbar=no,menubar=no,tool bar=no,scrollbars=yes,resizable=yes,width=180,heig ht=300');return false;">Open Buddy List</option>

With this:

<option value="misc.php?do=buddylist&focus=1','buddylist', 'statusbar=no,menubar=no,toolbar=no,scrollbars=yes ,resizable=yes,width=180,height=300');return false;">Open Buddy List</option>

I did not need to add the url of the board anywhere in the navbar template edit. (Using beta 5)

Hamish

mymilkexpired 08-18-2003 11:21 AM

Quote:

Originally Posted by hamish
To get the buddylist menu option to work, replace this:

<option value="window.open('misc.php?do=buddylist&focus=1' ,'buddylist','statusbar=no,menubar=no,tool bar=no,scrollbars=yes,resizable=yes,width=180,heig ht=300');return false;">Open Buddy List</option>

With this:

<option value="misc.php?do=buddylist&focus=1','buddylist', 'statusbar=no,menubar=no,toolbar=no,scrollbars=yes ,resizable=yes,width=180,height=300');return false;">Open Buddy List</option>

I did not need to add the url of the board anywhere in the navbar template edit. (Using beta 5)

Hamish

The only problem with doing that, is that it will open the link in the current window. This forces you to have to go back a page to continue where you were at. There has to be a way to correct this problem so that the buddylist will open correclty in a new window.

orb 08-23-2003 11:34 AM

ive gotten this a little further although the code isnt perfect but it seems to be working but the page goes to full screen

in header include

place this above the code asked in the instructions

<SCRIPT LANGUAGE="JavaScript">

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=y es,resizable=yes");
}
</SCRIPT>

then for the buddy list option use this

<option value="javascript:Start('misc.php?do=buddylist&focus=1','buddylist' ,'statusbar=n o,menubar=no,tool bar=no,scrollbars=yes,resizable=yes,width=180,heig ht=300')">Open Buddy List</option>

hopfully someone can work with this more and fix it faster than i can

imported_ronman 08-26-2003 04:23 AM

Excellent, just applied it to my board, and it works perfectly.

Thanks for a great, VERY useful mod!

MrNase 08-26-2003 02:59 PM

oh, could someone please attach the fixed file?

I deleted it while updating the first post :(

Zachery 08-26-2003 03:44 PM

:\ i could really use this :\

you could redo the mod and reattach the file...

orb 08-27-2003 06:14 PM

1 Attachment(s)
i think this is the fixed file the buddy list window size is fixed also

MrNase 08-28-2003 09:49 PM

thx, the download is linked and available :)

Faranth? You can download it now :)

adwhitworth 09-04-2003 06:04 PM

1 Attachment(s)
It still didn't work totally for me but I've altered it and it works perfectly. Just needs the paths altering.

Iezugod 09-06-2003 05:00 AM

Very nice, thanks!

crazy420 09-17-2003 05:39 PM

thanks alot going to give it at trry

Rebel2k2 09-20-2003 05:58 AM

Great mod! Took a little while to figure out that my wordpad was set to wordwrap which caused some problems, but after that it's really snazzy! :)

Jean147 09-23-2003 10:05 AM

installed. :)

MrNase 09-25-2003 12:21 PM

thanks for your feedback :)
the first post is edited now and the download is linking to adwhitworth's version.

I'd be really pleased if a mod could rename the topic title to '[release] Dropdown instead of temporary buttons ' :)
thank you.

KeithMcL 11-14-2003 07:51 AM

Does anyone have this working with vB3 B 6? I keep getting a js error when choosing an item from the dropdown. The error is:
Code:

'box.options' is null or not an object
Also, what if a member has js turned off? Would it be easy to add a submit button beside the dropdown that would make it work when js is off?


All times are GMT. The time now is 04:45 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.01211 seconds
  • Memory Usage 1,775KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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