The vB Geek

The vB Geek (
-   Geek Article and Review System (
-   -   $threadid not recognized? (

lthanos 05-17-2008 12:03 PM

$threadid not recognized?
I have a code in my showthread templates in my normal forums, where the user can click and send this thread to a friend by email.

This is the code:

PHP Code:

<a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid" rel="nofollow">$vbphrase[email_this_page]</a

Now, I have put this code in the GARS_pb template and the threadid variable isn't recognized, so the link that shows in the forum is like this:

PHP Code:


Some help please?? This has only happened after I upgraded to the newest version of GARS. :(

Morgan 05-17-2008 12:08 PM

Try $threadinfo[threadid] instead of $threadid in your edit.

lthanos 05-17-2008 12:38 PM

I did, it didn't work either. Same result in the link, without the topic number id in the end.

I also tried to insert it in the Gars uerinfo template, so it appears with the user personal information in the block on the right, but with same result.

Morgan 05-17-2008 12:51 PM

Both $threadinfo and $post are globaled in the GARS process_postbit function, so you can try either $threadinfo[threadid] or $post[threadid] but if neither works then check whether it is the GARS_pb template to which you are adding the link, whether the additional link is through some other function, and if so backtrack to see if you need to global a variable.

lthanos 05-17-2008 12:59 PM

Ah, the $post[threadid] worked.

Many thanks for the immediate responses. :)

All times are GMT. The time now is 03:50 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.