vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Accordion BBCode (https://vborg.vbsupport.ru/showthread.php?t=76405)

news! 03-24-2005 10:55 PM

I made a modification so users can click the caption instead of the arrow image:

Code:

<div class='panel'><p onClick="expandit(this);"><a href="#">{option}</a></p><script>document.write("<div style=\'display:none;\'>");</script><noscript><div></noscript><br><table class='vbmenu_popup'><tr><td>&nbsp;&nbsp;<td>{param}</td><td>&nbsp;&nbsp;</td></tr></table><br></div></div>
are there any downsides to making this change?

How do I make a default [hide][/hide] that would have the caption: "click to reveal spoiler"?

news! 03-25-2005 03:49 AM

Quote:

Originally Posted by news!
I made a modification so users can click the caption instead of the arrow image:

Code:

<div class='panel'><p onClick="expandit(this);"><a href="#">{option}</a></p><script>document.write("<div style=\'display:none;\'>");</script><noscript><div></noscript><br><table class='vbmenu_popup'><tr><td>&nbsp;&nbsp;<td>{param}</td><td>&nbsp;&nbsp;</td></tr></table><br></div></div>
are there any downsides to making this change?

How do I make a default [hide][/hide] that would have the caption: "click to reveal spoiler"?

Thanks, but I figured this out. (I had to uncheck the Use {option})

OrangeFlea 03-26-2005 11:11 AM

I prefer to use input buttons (HTML), but how does one make it so the same button says "Show" and "Hide" (after the person clicks the button and the spoiler is shown)

news! 03-26-2005 06:28 PM

Some of my users are getting this bug:
"When I click on a spoiler to reveal it, the screen shoots back to the top of the page."

OrangeFlea 03-27-2005 07:34 AM

Quote:

Originally Posted by k40tic
I know it was a line break is the reason i don't care. I never even really changes anything so in reality I never fixed anything. Actually never mind. I want a trophy for coming up with the easiest fix ever. The easy fix MVP trophy. I also want dancing bananas to come to my house and perform for my kids.
:banana: :banana:
Seriously though man this hack makes life easier for me so thanks.

It doesn't work for me for some reason. I still get the Error: expandit is not defined on the java console. I've even updated my java, so I don't know what the problem might be.

Second, how do I get mines to look/act exactly like this: Link

Boofo 03-27-2005 10:15 AM

Quote:

Originally Posted by pimpery
alright thanks for the fix yoyooyyoyoyoyo, i did the fix in the attachments. so redownload if u havent yet.

The attachments still have it the old way. ;)

pimpery 03-27-2005 07:12 PM

Quote:

Originally Posted by Boofo
The attachments still have it the old way. ;)

Ok, sorry for the delay, but I didn't see anyone posted here!
Let me answer all your questions:
1) GAHHH! Why do people use the POUND sign as a link. Where did this stupid ass habit come from?!! POUND is the operator to signify to goto an anchor. Without anything following the pound operator, the link will just take the person to the top of the page.
News!!:
take away that pound crap and just use:
<p onClick="expandit(this);">{option}</p>

2) Boofo: yoyooyoy didn't do anything. My brother was the one who replied to him and thanked him.
Any javascript parser, would not take into account whitespace unless there was a bug in it. A linebreak doesn't matter. yoyoyo's problem was probably that he didnt update his cache on the browser, (i know from experience, 10+ pms for the same stupid thing)

3) OrangeFleas PM:
Quote:

Originally Posted by OrangeFlea
Pimpery! I love your accordion hack, but I was wondering if you knew how this site implemented the button:

http://boards1.wizards.com/member.php?u=310038

See how there's a hide and show button? How do I make mines exactly like that? Same button, same everything!

Thanks.

<-------------------REPLY---------------REPLY
REPLY---------------REPLY------------------->

They are using a different kind of spoiler thing that is way inefficient compared to mine.

Anyways, the way to do that would be for me to do it for ya!
Make sure you have the latest veresion of the Accordion BBCode Hack.

Goto BBCode manager and press edit on the expand bbcode

Find where it says:
<img src='cpstyles/vBulletin_3_Default/cp_expand.gif' border='0' onclick="expandit(this);">

Replace that with:
<input type='button' value='Show' onclick="if(this.value=='Hide'){this.value='Show'; }else{this.value='Hide';};expandit(this);">

news! 03-27-2005 10:26 PM

Thanks, that is great! The pound sign also makes the text a hotlink (i.e. the arrow turns into a pointing finger.

BTW if you want to know where I got the pound sign habit... Dreamweaver, I think I learned all my bad habits from using Dreamweaver. Don't get me wrong, I think it's one of the best at what it does (wyswyg html editor), but... it has made me lazy... Again thanks for this very useful hack and through implementing (and troubleshooting) it I've learned a lot about how vBulletin works (this is my first install... day four).

pimpery 03-28-2005 02:28 AM

Quote:

Originally Posted by news!
Thanks, that is great! The pound sign also makes the text a hotlink (i.e. the arrow turns into a pointing finger.

BTW if you want to know where I got the pound sign habit... Dreamweaver, I think I learned all my bad habits from using Dreamweaver. Don't get me wrong, I think it's one of the best at what it does (wyswyg html editor), but... it has made me lazy... Again thanks for this very useful hack and through implementing (and troubleshooting) it I've learned a lot about how vBulletin works (this is my first install... day four).

no problem news. if you have any further questions feel free to ask!! ^_^

pimpery 04-25-2005 01:11 AM

<img src='cpstyles/vBulletin_3_Default/cp_expand.gif' border='0' onclick="expandit(this);" style="cursor:pointer;">

Use style="cursor:pointer;" instead of <a href> tag to have the pointer be a hand when it goes over the arrow.


All times are GMT. The time now is 10:37 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.01091 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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