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

Turn OFF bookmark feature/functionality (deliberate)

edited July 2007 in Vanilla 1.0 Help
Ok guys. Now, I'm pretty happy, I set up my Board 1 Week ago and it's almost perfect. It certainly is beautiful. Yay CSS, yay Vanilla! That said... If I could turn off bookmarking - my users could have an empty sidebar while browsing posts. Nobody of us uses it anyway. That's what I'm goin' for. Is it possible? Thank you.

Comments

  • Options
    Good question. It will certainly be possible with a bit of hacking but I cant find where. To be honest I'm not really sure that feature has a place in the core..
  • Options
    Well, all the other entries that show up in the sidepanel under 'Options' can be turned off in the 'Roles & Permissions'. Maybe there's a way to add it there. Anybody? That would be so awesome.
  • Options
    I can't help with the solution (sorry) but you have made a very good point there Mini regarding what it's doing in the core. After all, it's not all that useful until you have that extension that allows you to put your bookmarks, discussions, browsing history et all in the side bar.
  • Options
    Alright, so I did a search for 'Bookmark' and all of these files got the word in them: init_vanilla.php, database.php, switch.php, comments.php, People.Class.UserManager.php, Vanilla.Functions.php, Vanilla.Class.DiscussionManager.php, Vanilla.Class.Discussion.php and of course the Language definitions.php. So I looked for the words 'sidepanel' and 'options' mentioned close to 'bookmark' and decided to delete 6 lines of code from the comments.php Now the bookmark option is gone from the sidepanel, while all other options work just like they did before. Funky. Was this a bad thing to do? I obviously removed the bookmark-feature from being displayed under options in the sidepanel. Any objections?
  • Options
    Which 6 lines of code were they? I tried searching for bookmark and it didnt find anything...bloody windows!
  • Options
    $BookmarkText = $Context->GetDefinition($CommentGrid->Discussion->Bookmarked ? "UnbookmarkThisDiscussion" : "BookmarkThisDiscussion"); $Panel->AddListItem($Options, $BookmarkText, "./", "", "id=\"SetBookmark\" onclick=\"SetBookmark('".$Configuration['WEB_ROOT']."ajax/switch.php', ".$CommentGrid->Discussion->Bookmarked.", '".$CommentGrid->Discussion->DiscussionID."', '".$Context->GetDefinition("BookmarkText")."', '".$Context->GetDefinition("UnbookmarkThisDiscussion")."', '".$SessionPostBackKey."'); ".$Context->PassThruVars['SetBookmarkOnClick']."return false;\""); You better stop me soon, I just removed the 'Back to Discussions' Sidepanel-Entry from post.php - since there is the 'Cancel and go back' link anyway. Now my sidepanel feels really clean. Thus fuzzy.
  • Options
    Yeah I dont see any problems with removing that block of code...
  • Options
    Cool. Thanks. now it doesn't feel that bad either. I only have to figure out what happend to bookmarks my members made. My guess is they will be there but they won't be able to 'unbookmark' them.
  • Options
    Pretty much yeah.
This discussion has been closed.