PDA


View Full Version : Link Variable Quesions - All At Once


drynax
07-05-2008, 10:42 AM
I know many of my questions sound like they are coming from a 1st grader, but I hope someone can answer.

1) In the product description of VBA Links v3.0 Beta 2, it states "Custom field data is now cached so it can be accessed throughout the software without the need for a query to gather the data."

http://www.vbadvanced.com/forum/showthread.php?p=149606#post149606

In simple terms, what exactly does this mean? Can you give a practical example?

2) $vboption[homeurl] is for root of the domain.
$vboption[bburl] is for forum root of the domain.

What is the Link root of the domain? $vboption[linkurl]? Do you have anything for this?

3) When searching through code, I always see $link[name], $link[linkURL], $link[catid], $link[description], etc. Let's say I want to set up a simple array to print out the contents of my links. However, I want to do it as a stand alone mod, just simple code.

I really want to understand the basics of the VBA Link fields. I've searched every thread and there is no example of this.

Can someone help give a simple example of this?


Those are my questions. I know I sound like a first grader, but I want to really understand this.

Brian
07-05-2008, 01:42 PM
1). Just replied in the thread where you asked.

2). You can use $vba_options[links_homeurl] when browsing the links directory, but that variable is not available when browsing vB (no point in calling the vBa Links settings where they're not used).

3). You would need to write a query to pull the data you want and the corresponding while() loop to process each row from the query.

drynax
07-05-2008, 02:32 PM
1). Just replied in the thread where you asked.

2). You can use $vba_options[links_homeurl] when browsing the links directory, but that variable is not available when browsing vB (no point in calling the vBa Links settings where they're not used).

3). You would need to write a query to pull the data you want and the corresponding while() loop to process each row from the query.

-------------------------------

I feel like a 1st grader again for asking this...

Is there a simple example of pulling the Query? Is there a simple example of the while() loop? I've searched everywhere in the Forums and couldn't find an example.

Second,

Is there a way to make $vba_options[links_homeurl] global?

Brian
07-05-2008, 02:39 PM
vB has some documentation on their functions here (http://www.vbulletin.com/docs/html/main/codestandards_sql_query).

drynax
07-05-2008, 03:01 PM
Cool. Thanks! I'll take a look at it now.
---------------
vB has some documentation on their functions here (http://www.vbulletin.com/docs/html/main/codestandards_sql_query).