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)

TWTCommish 02-12-2002 03:11 AM

Yes, that looks right. Did you give your first/second alt colors the SAME value, though?

xug 02-12-2002 03:18 AM

Haha, yep they are they same and I do not what to change any about that, so what can I do to solve this in your code or do you know a trick that I can put a line between each and every entry.

TWTCommish 02-12-2002 03:23 AM

Well, I'd recommend changing one of your post alt colors -- it's better that way anyway. If you really don't want to do that, then you'll want to open glossary.php and replace {firstaltcolor} and {secondaltcolor} with the RGB values of the colors you want...like #FFFFFF for white and #E9E9E9 for light gray.

xug 02-12-2002 03:42 AM

Cool, I got it !

Again many thanks.

Lucky 02-12-2002 04:21 AM

That is what your glossarybit should look like.

Have you altered anything in the original file?

TWTCommish 02-12-2002 04:25 AM

Don't worry, Lucky: he says he's got it now. :) Thanks anyway, though.

squawell 02-13-2002 02:39 PM

i got this error

Warning: extract() expects first argument to be an array in squawell/forums/vbb220/newthread.php on line 441

what's wrong??

TWTCommish 02-13-2002 02:43 PM

I think that means you don't have any glossary terms entered. It expects at least one. If anyone's interested, I can make a small modification to error-check the sucka'. :)

squawell 02-13-2002 02:56 PM

Quote:

Originally posted by TWTCommish
I think that means you don't have any glossary terms entered. It expects at least one. If anyone's interested, I can make a small modification to error-check the sucka'. :)
ok~~now it just like u say!!

i don't add any item so i got that error!!

now it works:D:D:D

if u did a error-check template that will be great!!

TWTCommish 02-13-2002 03:07 PM

Ok, simple:

in newthread.php AND newreply.php. replace this...

PHP Code:

  $rand_term $DB_site->query_first("SELECT text AS term_text, description AS term_description FROM glossary ORDER BY RAND()");
  
extract($rand_term);
  
$term_description str_replace("'""\\'"htmlspecialchars(strip_tags($term_description))); 

...with this...
PHP Code:

  $rand_term $DB_site->query("SELECT text AS term_text, description AS term_description FROM glossary ORDER BY RAND() LIMIT 1");
    if (
$DB_site->num_rows($rand_term)) { 
      
extract($DB_site->fetch_array($rand_term));
      
$term_description str_replace("'""\\'"htmlspecialchars(strip_tags($term_description)));
    } 



All times are GMT. The time now is 01:09 PM.

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.01245 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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