PDA

View Full Version : [beta] Dropdown instead of temporary buttons


MrNase
08-05-2003, 02:22 PM
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 (http://www.vbulletintemplates.com/mods/attachment.php?attachmentid=2862)

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
Fixed the bug
<option value="javascript:window.open('misc.php?do=buddylist&focus=1','buddylist','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
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 www.sportboard.de/v2/index.phpforumdisplay.php?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 @

<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
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,tool bar=no,scrollbars=yes,resizable=yes,width=180,heig ht=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
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,tool bar=no,scrollbars=yes,resizable=yes,width=180,heig ht=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=ye s,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
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
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:
'box.options' is null or not an objectAlso, 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?