vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBGlossary (https://vborg.vbsupport.ru/showthread.php?t=34385)

Snake~eyes 02-06-2002 12:22 AM

Great! I am going to install this next when I have time.

Great job!

nextup user submission :D

TWTCommish 02-06-2002 12:24 AM

I've already started thinking about that. It'll be pretty easy. :) Just a matter of getting around to it.

Snake~eyes 02-06-2002 12:50 AM

Very cool!
I wish there was some way to repay you! :)

TWTCommish 02-06-2002 12:52 AM

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. :)

haas 02-06-2002 06:14 AM

Great!! The last modification is just what i was looking for!

Thanks TWTCommish

LuBi 02-07-2002 11:22 AM

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..

TWTCommish 02-07-2002 12:39 PM

Yeah, I could modify it to do that. Any one else second that emotion? :)

KevinG 02-07-2002 12:42 PM

Quote:

Originally posted by TWTCommish
Yeah, I could modify it to do that. Any one else second that emotion? :)
I second that emotion :stupid:

SaintDog 02-07-2002 05:57 PM

Go for it, it would be cool

Lucky 02-07-2002 07:47 PM

Would be great.

LuBi 02-08-2002 05:38 AM

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!

TWTCommish 02-08-2002 11:53 AM

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.

SaintDog 02-08-2002 03:06 PM

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!

LuBi 02-08-2002 07:35 PM

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..

TWTCommish 02-08-2002 07:56 PM

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. :)

LuBi 02-08-2002 08:08 PM

Code he knows, he wrote one of the biggest & best scripts one here.. it's the java he doesn't really do.. :D

TWTCommish 02-08-2002 08:12 PM

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. :)

SaintDog 02-09-2002 08:56 PM

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. :)

fsfl2k 02-10-2002 04:16 AM

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:

?&ltr=

after the php and it loads at the letter "A" so something shows when first going to the glossary.

Anthony

X-Fan 02-10-2002 01:40 PM

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.

TWTCommish 02-10-2002 03:37 PM

Sorry about that, I forgot to use addslashes() there, I think. I've attached an updated admin_glossary.php file. :)

nafae 02-10-2002 08:23 PM

this hack is amazing and I love you.

TWTCommish 02-10-2002 08:49 PM

I love you too, man.

X-Fan 02-11-2002 01:25 AM

Quote:

Originally posted by TWTCommish
Sorry about that, I forgot to use addslashes() there, I think. I've attached an updated admin_glossary.php file. :)
Beautiful! Thanks for the excellent support, TWT!

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)?

TWTCommish 02-11-2002 02:02 AM

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?

X-Fan 02-11-2002 02:07 AM

Quote:

Originally posted by TWTCommish
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.
Well that's cool, because I don't use random terms on my board.

Quote:

Originally posted by TWTCommish
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?
Yep, like a "See also..." function that you could edit through the admin where you could add x number of related terms to an existing glossary entry by entering the name and having the system automatically generate a link when viewing the entry to the related terms.

That would be sweet! :)

xug 02-12-2002 01:58 AM

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.

TWTCommish 02-12-2002 02:01 AM

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.

xug 02-12-2002 02:06 AM

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.

TWTCommish 02-12-2002 02:17 AM

I understand what you mean -- but I don't know what to say. It spaces my lines out flawlessly. Anyone else having this problem?

TWTCommish 02-12-2002 02:26 AM

Ok, nevermind, I got it fixed. Attached is an updated glossary.php file -- if anyone reading this wants vB Code support, use this one.

xug 02-12-2002 02:26 AM

And as for your hack I haven't changed anything else than the file name and the filename in the templates.

xug 02-12-2002 02:29 AM

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 !

xug 02-12-2002 02:34 AM

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.

TWTCommish 02-12-2002 02:37 AM

To do that open the glossarybit template and change this:

Code:

$color
to either this:

Code:

{firstaltcolor}
Or this:

Code:

{secondaltcolor}

xug 02-12-2002 02:57 AM

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

TWTCommish 02-12-2002 02:58 AM

Yes, isn't that what you wanted? The same color for entry 2, 3, 4, etc.

xug 02-12-2002 03:02 AM

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.

TWTCommish 02-12-2002 03:04 AM

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.

xug 02-12-2002 03:08 AM

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
  • Page Generation 0.01670 seconds
  • Memory Usage 1,821KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete