Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorKrak
    • CommentTimeFeb 21st 2008
     # 51
    Great news guys! I made Hidden Text 2!!

    Drum roll please..... now with multiple hidden elements! You can have as many hidden text blurbs as you want! I spent all day figuring it out. Thanks to Mootools what everyone has been asking for is here. I just have a few minor things to iron out and I will upload it. It has not been thoroughly tested, but most of the code is actually the same, I just substituted the current JS with Mootools and we are good to go. So I don't think there should be many bugs, except for all the ones that come along with Mootools.
    •  
      CommentAuthorblizeH
    • CommentTimeFeb 22nd 2008
     # 52
    w00t! Nice one, cheers Krak :-) Any idea when it'll be released?
    •  
      CommentAuthorKrak
    • CommentTimeFeb 22nd 2008
     # 53
    I would imagine either today or this weekend. Just need to iron out one or two things. Mostly I am still trying to get it to work with the Mootools addon. For some reason I can't. Works just fine without it. And there is a little annoying issue with the fact that it adds <br />s after each hidden blurb. Works, just annoys me, and I haven't figured out how to get rid of em yet.
  1.  # 54
    Uploaded version 2.0 of Hidden Text.
    •  
      CommentAuthorKrak
    • CommentTimeFeb 22nd 2008 edited
     # 55
    Here it is Hidden Text 2.0! Now you CAN have as many hidden blurbs within a single post as you want (well, in theory, I have only actually tested up to 5 but I don't see why you couldn't have 210). Thanks to Mootools this is now possible. All of the JS has changed, the code is 98% unchanged so I would not think there to be too many bugs. Also, currently the extension will load its own copy of mootools 1.11 (not a full set - file size @ 30kb). I am having issues getting it to work with the Mootools extension.

    Limitations: none that I currently know of other than the issues that affect the other Mootools addons (incompatibility with Mootools).

    Right now there are two links, unlike version 1. I plan to make the show/hide a toggle like before, I am just having issues figuring it out. Soon as I get it I'll repost (no estimated time frame on that).

    INSTALLATION: If you have NOT had any previous version installed, nothing special is required. If you HAVE had a previous version installed you must delete a few lines in /conf/settings.php. Delete:
    $Configuration['HIDDEN_TEXT_MARKER'] = '(Hidden)';
    $Configuration['HIDDEN_TEXT_SETUP'] = '1';

    Then activate version 2.0, hit refresh, and everything "should" be OK. Let me know how it works out.
    •  
      CommentAuthorblizeH
    • CommentTimeFeb 28th 2008
     # 56
    Wahey! Cheers Krak, going to install this as soon as I get home :)
  2.  # 57
    Uploaded version 2.1 of Hidden Text 2.
    •  
      CommentAuthorKrak
    • CommentTimeMar 2nd 2008
     # 58
    The change from version 2.0 to 2.1 is minor. If you don't want to redownload the entire file you can manually update your default.php. Change the version from 2.0 to 2.1, comment (or delete) out lines 177-179 (old school method). And uncomment lines 183-189 (new school method). So lines 175-191 should now look like this.

    // Old school way of adding Stylesheet and JavaScript to Head Control
    #$Head->AddStyleSheet("extensions/HiddenText/style.css");
    #$Head->AddScript('extensions/HiddenText/moo-hide.js');
    #$Head->AddScript('extensions/HiddenText/hide.js');


    // New school way to add stuff (for mootools)
    if(!function_exists('MT_AddComponent')) {
    $Head->AddScript('extensions/HiddenText/moo-hide.js');
    } else {
    MT_AddComponent('Fx.Slide', 'Window.DomReady', 'Element.Selectors');
    }
    $Head->AddStyleSheet("extensions/HiddenText/style.css");
    $Head->AddScript('extensions/HiddenText/hide.js');
    •  
      CommentAuthorKrak
    • CommentTimeMar 7th 2008
     # 59
    Notice: Apparently HT2 breaks when enabled along side of "Notify". No idea why, or how to fix it at the moment.
    •  
      CommentAuthorblizeH
    • CommentTimeMar 21st 2008
     # 60
    Works an absolute treat now, thank you so much Krak! Just curious what is HT2 though? Also, the 'hidden text' button doesn't actually do anything now, unless I've done something wrong.

    Cheers!
    •  
      CommentAuthorKrak
    • CommentTimeMar 21st 2008
     # 61
    HT2 - Hidden Text 2, didn't feel like typing it all out ;)

    Hidden Text button, hmm, which/where? I could have forgotten/missed it.
    •  
      CommentAuthorblizeH
    • CommentTimeApr 3rd 2008
     # 62
    So sorry for the late reply; I meant the button next to 'big input' to the top right of the comments box.

    Thanks again! Awesome extension and I can't emphasise how useful it is for our forum :)
    •  
      CommentAuthorKrak
    • CommentTimeApr 3rd 2008
     # 63
    Hmm. Works for me on my local box, and on the server. What extensions do you have enabled? Although I don't see why this would happen now, nothing for that particular function has changed.
    •  
      CommentAuthorblizeH
    • CommentTimeApr 4th 2008 edited
     # 64
    Maybe I should re-install it again from scratch, what files/lines of code would I have to remove to do that? Also, whenever you submit a post it comes up with this, regardless of whether or not there's hidden text on the page:

    Notice: Undefined index: HIDDEN_TEXT_MARKER_SHOW in /hsphere/local/home/xxx/zestdesign.net/_msc/php/extensions/HiddenText/default.php on line 168

    Notice: Undefined index: HIDDEN_TEXT_MARKER_HIDE in /hsphere/local/home/xxx/zestdesign.net/_msc/php/extensions/HiddenText/default.php on line 168
    •  
      CommentAuthorKrak
    • CommentTimeApr 4th 2008
     # 65
    Sounds like something got missed in the upgrade. That error is cause its looking for a string in settings.conf that is not there. Which would be:

    $Configuration['HIDDEN_TEXT_MARKER_SHOW'] = '(show text)';
    $Configuration['HIDDEN_TEXT_MARKER_HIDE'] = '(hide text)';

    To do a clean install just disable the extension, then open conf/settings.conf and delete anything that mentions hidden text. Then make sure you have the newest versions of all the files, and enable it again. It will add all the new strings to the conf file. You should be good to go.
    •  
      CommentAuthorblizeH
    • CommentTimeApr 7th 2008
     # 66
    Many thanks once again for your help Krak, here's a problem that's quite specific to our web server I'm sure, but there could be an easy way around it:

    Response: 550 settings.php: Permission denied
    Error: Critical error

    Also, this:

    Command: SITE CHMOD 777 settings.php
    Response: 550 settings.php: Operation not permitted
    •  
      CommentAuthorKrak
    • CommentTimeApr 10th 2008
     # 67
    Sounds like you lost ownership to settings.php?
    •  
      CommentAuthordkodr
    • CommentTimeMay 8th 2008
     # 68
    Why is it that not everything can be hidden? For examble embed videos from Google Video.
    •  
      CommentAuthorKrak
    • CommentTimeMay 8th 2008
     # 69
    This is the first I have heard of this. Im not sure, I'll look into it. Is there anything else you are unable to hide?
    •  
      CommentAuthorKrak
    • CommentTimeMay 8th 2008
     # 70
    Can you embed the videos on a non hidden enabled post? Have you tried it with Hidden Text 2 turned off?

    I can embed the videos (it does toss up a string of code at the end but the video is hidden, and embedded) on my local server. Do you have the required extensions enabled for embedding? As far as I can tell you need jQuery and ExtendedTextFormatter. Then post the link to the video (http://www.youtube.com/watch?v=UGeYgtQZa1o, just like that and it works fine, must be posted as "Text").
    •  
      CommentAuthordkodr
    • CommentTimeMay 8th 2008
     # 71
    First of all, I wasn't talking about hiding links, but embed movies. Second of all, embeding YouTube movies works just fine. Google videos are the ones that aren't being hidden. They just float on top of a comment.

    One more question: is it possible to load the hidden content on demand - after pressing the "show hidden text" link - not loading all of it in the background while the page loads?
    •  
      CommentAuthorKrak
    • CommentTimeMay 8th 2008
     # 72
    Does the embedding work with the hidden text extension disabled?

    I have skimmed through some other posts on embedding and mootools might cause some issues. As far as loading hidden content "on demand" - simply put, no.
  3.  # 73
    Any word on getting HT2 to work with Notify? I need the functionality of both of these extensions.

    Thanks!
    •  
      CommentAuthorKrak
    • CommentTimeMay 29th 2008
     # 74
    Notify uses prototype.js. Thats the problem. Mootools and prototype don't play well. Fix it? Not without a rewrite - either Notify or Hidden Text, which will probably not happen. I have no problems fixing small issues if I can but rewriting it, nah. Sorry.
    • CommentAuthorchris
    • CommentTimeMay 30th 2008 edited
     # 75
    can i get some help with getting this to work with both [hide] and style tags, please?

    //edit, i'm using v1.6.1
    •  
      CommentAuthorKrak
    • CommentTimeMay 30th 2008
     # 76
    what do you mean "style" tags?
    • CommentAuthorchris
    • CommentTimeJun 1st 2008
     # 77
    ah, i see that vanilla stripped the "<hide>" from my previous post, uh oh :D

    so, if it could work for both [hide] and <hide>, that would be great! many thanks in advance :)
    •  
      CommentAuthorKrak
    • CommentTimeJun 2nd 2008
     # 78
    Why do people always ask about using different brackets? Is it really that much of an issue? Would you mind telling me why (I'm curious)?

    Well as it is now HiddenText was (I think, its been a while) written off of bbcode, hence the "[ ]" brackets. I'm sure I'd have to dig in and rewrite it to give you "< >" instead. If there are enough people wanting the other brackets over the current ones I'll recode it. Otherwise, probably not.

    (btw, love your site)
    • CommentAuthorchris
    • CommentTimeJun 5th 2008 edited
     # 79
    well, it's just that we don't use bb code on the forum, so it really is the only thing that uses square brackets. it works fine, it's just me ;)

    i was kind of hoping it would be a simple addition to the script, like "search for \[\hide\] | \<hide\>" or something. it would need to catch both ways now, as it's been in use (using the square brackets) for some time already.

    (thanks, needs tidying up a bit though, no time heh)
    • CommentAuthorblue
    • CommentTimeJul 3rd 2008
     # 80
    Please Update your Translation Strings to the new format:

    $Context->SetDefinition('ExtensionOptions', 'Options');
    $Context->SetDefinition('HiddenTextSettings', 'Change Hidden Text Marker');
    $Context->SetDefinition('HiddenTextMarkerShow', 'Change The Show Hidden Text Marker');
    $Context->SetDefinition('HiddenTextMarkerHide', 'Change The Hide Hidden Text Marker');
    $Context->SetDefinition('HiddenTextSettingsTitle', 'Hidden Text Settings');
    $Context->SetDefinition('HiddenTextSettingsInfoShow', 'Enter the text you wish to appear for the link that will show the hidden text. This link is located at the beginning of the hidden text blurb. Default is (show text)');
    $Context->SetDefinition('HiddenTextSettingsInfoHide', 'Enter the text you wish to appear for the link to hide the hidden text once it has been made visible. This link is at the end of the hidden text blurb. Default is (hide text)');
    $Context->SetDefinition('SettingsInputTextShow', 'Show Hidden Text Marker');
    $Context->SetDefinition('SettingsInputTextHide', 'Hide Hidden Text Marker');
    $Context->SetDefinition('ErrCreateConfig', 'Could not save Hidden Text marker settings to configuration file!');
    $Context->SetDefinition('PERMISSION_HIDDEN_TEXT', 'Can see and use hidden text feature');
    • CommentAuthorblue
    • CommentTimeJul 3rd 2008 edited
     # 81
    oh and "insert hidden text" is not translateable atm, here is a quick hack:

    $Context->SetDefinition('InsertHiddenText', 'Insert hidden text');
    ...
    global $Context;
    ...
    $CommentList .= '<a href="#" onclick="HiddenText(document.getElementById(\'CommentBox\'),\'\'); return false;">'.$Context->GetDefinition("InsertHiddenText").'</a>';
    • CommentAuthorXK
    • CommentTimeSep 19th 2008
     # 82
    I busted something doing beautification....

    The bracket hide] with your text here bracket/hide] works but the comment box hidden text link is busted. Can't find any errors any where. Suggestions as to what got busted in the .css updates?

    Thanks!
    •  
      CommentAuthorKrak
    • CommentTimeSep 24th 2008
     # 83
    Wow, been ages since I've looked at this add-on. It would follow the same CSS for "big input". I don't remember adding any special styling. Its just a standard link with an ID of CommentBoxController?

    The CSS is rather small, if I remember correctly it was just for the hidden text/warning itself. If you can see the button for "big input" you *should* be able to see the hidden text button also. One in the same, one right after the other.
    • CommentAuthorscherem
    • CommentTimeOct 7th 2008
     # 84
    I'm having trouble with mootools deleting my extensions.php file. Since this is the only extension that I use which needs mootools, is there a way to use this extension without being dependent on mootools?
    •  
      CommentAuthorKrak
    • CommentTimeOct 8th 2008
     # 85
    In short, no.

    If you use one of the older versions yes, but it is not the same. The older ones can only have one hidden item per post, and some other restriction which I dont remember, I think. This version relies on mootools to do basically all of its functions.
Add your comments
    Username Password
  • Format comments as