![]() |
Great! I am going to install this next when I have time.
Great job! nextup user submission :D |
I've already started thinking about that. It'll be pretty easy. :) Just a matter of getting around to it.
|
Very cool!
I wish there was some way to repay you! :) |
Hey, if you say you like it, use it, and click on the "Install" button, you've done more than I could possibly ask. People liking it and using it is PLENTY of reward, I assure you. :)
|
Great!! The last modification is just what i was looking for!
Thanks TWTCommish |
Would it be possible for you to design something or another template so when users first go to the glossary it doesn't display "Sorry, there are no matching glossary terms available." Maybe we could like have the template so we can enter our own first message. Or like when they haven't or don;t click a letter..
|
Yeah, I could modify it to do that. Any one else second that emotion? :)
|
Quote:
|
Go for it, it would be cool
|
Would be great.
|
First off this seems to be slowing down nethread.php quite a bit. I have an error which maybe be the reason for the slow down:
Line: 316 Char: 75 Error: Undetermind string constant Code: 0 Now besides that error When you click the term it like refreshes the page, takesm e to the top of it or something but nothing happens. My line 316 looks like: </table><br><center><font face="verdana,arial,helvetica" size="1" ><b>Random Term: <a href="#" onclick="alert('Basic Performance Upgrades (with or without multiple + indicators) When I look at it in my view source it seems to be splitting after the word Upgrades. I guess there is a space somewhere in the code I put in a template or *.php file? Thanks! |
Yeah, I think you'd have to show me what specific code you're using and such. I was pretty sure I'd taken all parsing problems like that out of the equation. You're getting a JS error. As for newthread.php -- it's only adding one query, so it shouldn't be slowing it down much.
|
Seems to be working fine for me, I just installed 2.2.2 last night and installed this hack right after and it is working perfectly, I did not get any of the above errors. Maybe you accidentaly added some extra coding without noticing it and that is the cause for this problem.
Though, it is working great on my vB 2.2.2. Thanks for a great hack TWT! |
I probably have to go over the code again, It's just after I installed it my friend looked at it and he's a really good coder and he couldn't figure it out.. so I figured lemme throw it up on here.. I'll try it again..
|
Well, a coder, even a good one, may not understand vBulletin code (and while my code is not vBulletin code, it uses the same customs and functions for the most part)...to really understand what's going on they'd probably have to look at some of the inner-workings of it first. I assure you it works fine and makes sense, though. :)
|
Code he knows, he wrote one of the biggest & best scripts one here.. it's the java he doesn't really do.. :D
|
I'm confused...I'm not saying he doesn't "know code," but knowing code doesn't mean you know someone else's functions very well. Also, there's no Java in vBulletin, or in my hack. Theres a tiny bit of JavaScript, though (it's actually very, very different from Java, despite the name)...but there's hardly any of it at all. Are you saying that he doesn't know anything about JavaScript?
BTW: which script did he write? I'm sort of curious. :) |
I will take a guess.....TubeDogg?
I am just judging from your avatar, I have seen it somewhere other than here I believe, it may have been at PixelJuction. :) |
It's working on my site fine.
I had it installed before upgrading to 2.2.2 and it was working just fine. Upgraded to 2.2.2 and still no problems. :D You can see it working here And for the "sorry no matches" message ... I just added PHP Code:
Anthony |
What a fantastic hack, TWT! I run a site dedicated to Marvel Comics' X-Men, and with 30 years of history to them there's a lot of terms and acronyms that often need explaining. Now, with this glossary hack, that'll be a breeze! Thanks!
One thing, though, and that is I get an SQL error whenever I try and edit a glossary entry. Database error in vBulletin Control Panel 2.2.2: Invalid SQL: UPDATE glossary SET text = 'Adamantium', description = 'An artificially created alloy of iron that is the most impervious substance known on Earth, with the exception of the unknown Adamantium-Vibranium alloy of which Captain America's shield is composed.' WHERE glossaryid = '1' mysql error: You have an error in your SQL syntax near 's shield is composed.' WHERE glossaryid = '1'' at line 1 mysql error number: 1064 Add and delete work fine, so I've just been deleting an entry I need to edit and re-adding it. |
Sorry about that, I forgot to use addslashes() there, I think. I've attached an updated admin_glossary.php file. :)
|
this hack is amazing and I love you.
|
I love you too, man.
|
Quote:
I'm curious, though, if you can use HTML code/vB Code in the descriptions? I'm asking because I'd like to know if this system could be adapted to post the X-Men character biographics that myself and my site's staff compile. And is there a way that you can link one glossary entry to another (or several others)? |
I'm curious, though, if you can use HTML code/vB Code in the descriptions.
Yes, you can use HTML...all HTML will be stripped from the Random Term JavaScript display, though. No, right now it doesn't parse for vB Code, but if you want, I could upload a modified glossary.php file and have it do so. It's a VERY minor change, really. And is there a way that you can link one glossary entry to another (or several others)? Well, sort of. You can display only a specific term. Like this (I forgot to add error-checking for it, though, I think): http://www.movieforums.net/glossary.php?glossaryid=48 So, in that sense, you can link to a term directly. I dunno what you mean about several, though. You mean have "related terms" or something? |
Quote:
Quote:
That would be sweet! :) |
Dear TWTCommish,
When I have a text with line breaks and enter it as a new record the line breaks are gone and everything is placed line after line without breaks. Could you make something in your hack that line breaks will be accepted. Its a hugh job to put by hand the <br> codes in. |
There must be something else going on, because line breaks DO work for me. Are you referring to the random term JS alert, though? If that's the case, then yes, line breaks are removed. But not on the actual glossary listings.
|
Sorry I'm a little duno ;)
When I have a text and add that to the list it will not project the text as I had copied, all lines are after each other without the <br> codes. When I go into that data to edit it and put myself the <br> codes in everything looks fine, but to do that is a hugh job. |
I understand what you mean -- but I don't know what to say. It spaces my lines out flawlessly. Anyone else having this problem?
|
Ok, nevermind, I got it fixed. Attached is an updated glossary.php file -- if anyone reading this wants vB Code support, use this one.
|
And as for your hack I haven't changed anything else than the file name and the filename in the templates.
|
Cool ! This update works for me.
Thank you so much for the very fast responces and action. It's not only a great hack, but your a great guy too ! |
What do I need to do to change the background color ?
so that entry 1 is the same background as entry 3 and that entry 2 is the same background as entry 4 etc. etc. Mabye this is already mentioned in this thread but I can't find it. |
To do that open the glossarybit template and change this:
Code:
$color Code:
{firstaltcolor} Code:
{secondaltcolor} |
If I change that code to a color code the entire page background color on my list all page will be the same for each and every entry
|
Yes, isn't that what you wanted? The same color for entry 2, 3, 4, etc.
|
just as on your list, that you see a darker gray background for entry 1 and a lighter gray for entry 2 and than the darker gray background for 3 and the lighter gray for entry 4 etc etc.
|
It already does that without any changes. :) It uses your firstaltcolor and secondaltcolor variables (the ones you use for the background of your posts) to alternate colors.
|
Not on my board, maybe I installed something wrong or forgot a template!
Which template does this? My glossarybit looks like this : (is this one ok?) <tr bgcolor="$color"> <td width="20%" valign="top"><b><normalfont>$text</normalfont></b></td> <td width="80%" valign="top"><normalfont>$description</normalfont></td> </tr> |
All times are GMT. The time now is 04:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|