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.
Discussion Tags
Discussion Tags
0
Comments
How difficult would it be to adapt?
http://www.investorsbull.com/extension.php?PostBackAction=DiscussionTags
Any thoughts?
.ContentInfo { text-align:right; }
FYI, the way I do this (after FireBug add-on is installed, which you can get at www.getfirebug.com):
- Open page with problem.
- Hit F12 to open FireBug
- Click INSPECT button
- Move cursor over offending CSS problem
- Click once -> CSS appears on right with full inheritance
- Scroll down the items and see what could be causing the problem..
- You can EVEN test LIVE this by temporarily editing the CSS on the right (just click in label/tag))
This add-on is the best thing since sliced bread... (with cheese!)
Anyway, that said... vanilla.css is pretty complex. Always make a backup, always test on different browsers.
Good luck.
.ContentInfo {
text-align:right;
}
is needed for the phrase "Bottom of Page" in the discussions (i think).
.ContentInfo.Top.BlogsTitle { text-align:left; }
Scratch... see that was already suggested... Did you try it?
Not easy
"The Phrase 'All Discussion Tags' is aligned to the right ..."
I think I've hacked this into place without breaking anything. ;-)
In the DiscussionTags default.php file I added the following after line 233:
$Head->AddStyleSheet('extensions/DiscussionTags/style.css');
It now looks something like this:
if ($Context->SelfUrl == 'extension.php' AND ForceIncomingString('PostBackAction','') == 'DiscussionTags') { $Head->AddStyleSheet('extensions/DiscussionTags/style.css'); $Context->PageTitle = 'Discussion Tags';
This forces the DiscussionTags style.css file to be called on the page in question (as an aside: I think its okay to move the earlier identical reference to this position, rather than creating a second reference — but I'll leave that for you to decide). At any rate, we do this because the style.css file was being called on the Discussions page, but not the DiscussionTags page (now it's called on both).
Further down the default.php file (right towards the end), there are some "echo '...blah...';" writes.
I changed mine to look like this (the first line is just for reference):
$min = 0; echo '<div class="ContentInfo"><h1>All Discussion Tags</h1></div>';
And even further down, I replaced the remaining writes with:
echo '<div id="BackToDiscuss"><a href="index.php">« Back to Discussion view</a></div>';
Then in the style.css file, I added:
/* Fixer-Upper */ #ExtensionPage .ContentInfo h1 { text-align: left !important; padding: 20px 10px 20px 0; } #BackToDiscuss { padding-top: 10px; }
It'd probably be an idea to use the exact same classes/ids used by Vanilla. Also, we could reduce the number of divs being utilised pretty easily. I would have looked into it ... (but am lazy). #BackToDiscuss was off the top of my head and is probably not ideal ... However, I'm just arguing semantics here. It works just fine.
I also fixed up the sidebar from peeking through the Soulscape theme margins, but that was a no-brainer (convert to unordered list).
So, I think that's everything I did. You get the general idea, anyway.
Currently there are only 10 tags used in the forum, will it slowdown more if more tags get used?
As dan39 suggested, we've got lots of tags on our own install and we aren't seeing 15-20 second load times. We did have general slowness issues on a shared hosting account earlier this year but moving to a dedicated server addressed most of that.
I am interested in ideas like the ones above that speed up the database calls, though. little_peet, if you post your code here I can have the developer who helps (I don't code the extensions myself) me look at it.
I get this error when clicking on the "view all tags" link:
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
The "DiscussionTags" class referenced by "DiscussionTags" does not appear to exist.
Affected Elements
ObjectFactory.NewObject();
For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/docs
Am using MAMP on OSX for local development. I have changed some of the default language definitions in my own /conf/language.php file if that means anything (new to Vanilla), but I guess it should not make any difference...