The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2008, 12:03 PM
lthanos lthanos is offline
Member
 
Join Date: Feb 2008
Posts: 47
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default $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:
http://www.mysite.mmm/sendmessage.php?do=sendtofriend&t= 
Some help please?? This has only happened after I upgraded to the newest version of GARS.
Reply With Quote
  #2  
Old 05-17-2008, 12:08 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Try $threadinfo[threadid] instead of $threadid in your edit.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 05-17-2008, 12:38 PM
lthanos lthanos is offline
Member
 
Join Date: Feb 2008
Posts: 47
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

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.
Reply With Quote
  #4  
Old 05-17-2008, 12:51 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 05-17-2008, 12:59 PM
lthanos lthanos is offline
Member
 
Join Date: Feb 2008
Posts: 47
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

Ah, the $post[threadid] worked.

Many thanks for the immediate responses.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Column 'threadid' in field list is ambiguous Phrost Geek Article and Review System 2 02-15-2007 04:30 PM


All times are GMT. The time now is 10:37 PM.


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