PDA

View Full Version : Random Glossary Term [vBa CMPS module]


RS_Jelle
01 Apr 2006, 17:10
This vBadvanced CMPS module displays a random term of Mindestic GlosPro (http://www.vbulletin.org/forum/showthread.php?t=132632).

I tested it on vBulletin 3.5.4 with vBadvanced CMPS 2.1.0 and vBGlossary Basics 1.1.0.

It adds one query to a vBa page and it's fully phrased and 100% W3C XHTML 1.0 compliant.

http://www.w3.org/Icons/valid-xhtml10

==========================================================================
Installation
==========================================================================
Upload all files from the "upload" directory into your forum directory.
Create a new template called "adv_portal_glossary_random_term" with the following content:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Create a new vBa CMPS PHP file module (AdminCP => vBa CMPS => Add Module => [PHP File]) with the following info:
- Title: Random Term (or choose another one)
- File to Include: glossary_random_term.php
- Identifier: glossaryrandomterm (or choose another one)
- Templates Used: adv_portal_glossary_random_term

==========================================================================
Requirements
==========================================================================
vBulletin 3.5.x or 3.6.x
vBadvanced CMPS
vBGlossary Basics (http://www.vbulletin.org/forum/showthread.php?t=111863) (now called Mindestic GlosPro)

==========================================================================
History
==========================================================================
- 1.0.0: Initial release
- 1.0.1: Fixed a little bug

The question mark graphic is made by Norke (Yannick De Smet) (http://norke.deviantart.com/).

If you use this add-on, please click install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=111900) to say thanks and to receive updates.

SaN-DeeP
01 Apr 2006, 23:31
this is way to quick addon release :)

louis_chypher
20 Apr 2006, 16:22
I had to change the adv_portal_glossary_random_term template to:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


In order to get the path to correctly reflect the locations of My files.

Oh, Thanks!

RS_Jelle
20 Apr 2006, 17:08
Thanks for reporting this issue, I fixed it ;)

dendrob
22 Apr 2006, 22:29
any way to add a block like this to VBDrupal ?

RS_Jelle
26 Apr 2006, 20:43
any way to add a block like this to VBDrupal ?
I'm sorry, but this isn't possible. I'm only using vBadvanced CMPS (and testing a bit with vbPortal), but I don't use vBDrupal.

Neutral Singh
14 May 2006, 16:36
Hi I was trying to add glossary description as well in the module. so i edited the module php file as follows:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now, although the glossary description is also showing up it is also showing some garbage html along with it, how do i remove that garbage... thanks for the module.

Just have a look at top right side at my website: http://www.sikhphilosophy.net

Thanks

jaks
04 Jul 2006, 00:37
I'd love to have the description with the html being parsed aswell but I would need it limited to a certain number of words.:cross-eyed:

RS_Jelle
05 Jul 2006, 10:10
@Neutral Singh: Instead of your extra code, use this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


And to use this function, you need functions.php (put it in the beginning of the if statement):


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



@jaks: Have a look at Neutral Singh's post and this post. Then just put the $glossary_module_description variable where you want it in the template.
To limit the number of characters, add this after the strip_bbcode line:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Change the 20 to the amount of characters you want :)

cookiepants
25 Jul 2006, 09:06
Works perfect for us, thanks! It also helped me learn vBadvanced coding a little bit

:D

Megan
http://www.sewingmamas.com/b/

jaks
08 Nov 2006, 19:59
Thank Neutral Singh and RS_Jelle not me for this.

Modified Module to include description:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add this where you want it to show in your adv_portal_glossary_random_term template:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Enjoy

MDK-Indy
12 Aug 2007, 23:36
Works fine with vBulletin 3.6.7 PL1, vBadvanced CMPS 3.0 RC1 and Mindestic GlosPro 1.2.2


greeting Indy

chick
29 Apr 2008, 22:37
vb 3.6.8 with mindestic gloss.

Maybe a little help.

I managed to get it working on cmps but the.... ? image goes to a blank page /glossary.php?do=viewglossary&term=

though the [glossary] link does go to the correct page, the question mark goes to a blank page. Do I have something that needs changing in the code.

I had to turn it off for now.