Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Help with 2 ext + logo please

edited September 2006 in Vanilla 1.0 Help
hi I need some help with 3 things: 1) What's the best way/code to add a logo like this site does: http://www.younggogetter.com/forums 2) I installed the Notify 0.2 extension and receiving this error (I searched the forums, and a solution was posted, but it didn't work).... "Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/.katsumi/truce/www.dropbuy.com.au/forums/extensions/Notify/default.php on line 224" 3) I also installed the Quick Tags extension. But the buttons are being displayed as standard buttons (see http://www.dropbuy.com.au/forums) rather than what is displayed on these forums: http://www.younggogetter.com/forums 3.1) Also, how do I set the comments to automatically post as html format (so the quicktags extension will actually work)? Any help would be greatly appreciated. thanks nathan

Comments

  • Options
    It would seem you have the logo there now? Do you still need help with that? I'll take a look at the other two questions, but I am not sure how much I can help with those.
  • Options
    Yep still need help with the logo... currently it's just aligned to the left, but I want to position it down a little more (should I use absolute or relative?) I tried absolute positioning, but then that makes the whole header smaller and the logo overlaps the sidebar. But then with relative, there's still that gap.
  • Options
    If you want the logo position down a bit you could just add a top margin selector { margin-top: 10px; } Change 'selector' for the selector and '10px' for the value of which it needs to be lowered by.
  • Options
    OK, I've got it working now except for the: 1) Notify 0.2 extension problems (I'm using PHP 5 if that makes a diff) 2) How can I auto-parse urls using the HTML formatter extension?
  • Options
    bump
  • Options
    ithcyithcy New
    edited September 2006
    for #2, you can try this:
    go into extensions/HtmlFormatter/default.php and look around line 79. somewhere around there it says: return $sReturn;

    just before that line, add this bit of code: $needle = "/((?<!['|\"])(?:http|ftp|https|telnet):\/\/" . "[\w\.\;\%\_\/\=\?\-\,\~\!\@\#\$\&\+\'\:\(\)]*)" . "(\[)?(?(2)([^\]]+))(?(2)\])/xis"; $sReturn = preg_replace_callback($needle, create_function('$matches', 'if (!empty($matches[3])) { return "<a href=\'$matches[1]\'>$matches[3]</a>"; } else { return "<a href=\'$matches[1]\'>$matches[1]</a>"; }'), $sReturn);

    (i haven't fully tested it, but i'm pretty sure it'll work)
This discussion has been closed.