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 11-26-2008, 10:07 PM
h2ojunkie h2ojunkie is offline
Junior Member
 
Join Date: Oct 2006
Posts: 25
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder 
Default Need help with sessions

I've been going through everything on my site and making sure all mods/plugins are passing session information.

GARS for the most part has sessions covered, however the modules don't have session information in the display links and I found some templates with missing session information.

I'm posting the places I found missing session information here along to help with future updates to GARS and for anyone else that wants to ensure sessions work across the system.

No guarantees I won't miss something, but what I do find I'll post here.

Thanks.

Last edited by h2ojunkie; 11-27-2008 at 01:44 AM.. Reason: change of purpose
Reply With Quote
  #2  
Old 11-26-2008, 10:18 PM
h2ojunkie h2ojunkie is offline
Junior Member
 
Join Date: Oct 2006
Posts: 25
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder 
Default

Some of the mod php files are missing session info.

Here are the files I found so far:
/geek/gars/mods/

author_top.php
categories.php
featured.php
marked.php
toc.php

Basically, i searched all .php files in geek/gars/display for any <a href= links and added {$vbulletin->session->vars[sessionurl]}

This one is a little different
geek/gars/includes/gars_class_list.php
Find:
PHP Code:
$thread['synopsis'] .= "... <a href=\"showthread.php?t=$thread[threadid]\" title=\"" $this->vbphrase['GARS_read_more'] . "\"><img src=\"$stylevar[imgdir_misc]/gmore.gif\" alt=\"" $this->vbphrase['GARS_read_more'] . "\" border=\"0\" /></a>"
Replace:
PHP Code:
$thread['synopsis'] .= "... <a href=\"showthread.php?{$this->vb->session->vars['sessionurl']}t=$thread[threadid]\" title=\"" $this->vbphrase['GARS_read_more'] . "\"><img src=\"$stylevar[imgdir_misc]/gmore.gif\" alt=\"" $this->vbphrase['GARS_read_more'] . "\" border=\"0\" /></a>"

Last edited by h2ojunkie; 11-27-2008 at 02:25 AM..
Reply With Quote
  #3  
Old 11-27-2008, 01:13 AM
h2ojunkie h2ojunkie is offline
Junior Member
 
Join Date: Oct 2006
Posts: 25
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder 
Default

Also, in order to add session information to the drop down box for filters, you need to edit the GARS_mod_fiter template


Find:
Code:
document.location='$vboptions[bburl]/forumdisplay.php?f=$forumid&filter[' + id + ']=' + e;
Replace:
Code:
document.location=("forumdisplay.php?"+SESSIONURL+"f=$forumid&filter["+id+"]="+ e);
Find:
Code:
document.location='$vboptions[bburl]/forumdisplay.php?f=$forumid';
Replace:
Code:
document.location=("forumdisplay.php?"+SESSIONURL+"f=$forumid");
Reply With Quote
  #4  
Old 11-27-2008, 01:42 AM
h2ojunkie h2ojunkie is offline
Junior Member
 
Join Date: Oct 2006
Posts: 25
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder 
Default

Also found $session[sessionurl] missing from <a links in a the following templates:

GARS_navigation
GARS_pb
GARS_preview_pb
GARS_simple_pb
Reply With Quote
  #5  
Old 11-27-2008, 02:29 AM
h2ojunkie h2ojunkie is offline
Junior Member
 
Join Date: Oct 2006
Posts: 25
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder 
Default

And a phrase defined in a template

edit template GARS_threadbit
Find:
Code:
1="member.php?find=lastposter&amp;t=$thread[threadid]"
Replace:
Code:
1="member.php?$session[sessionurl]find=lastposter&amp;t=$thread[threadid]"
Reply With Quote
  #6  
Old 11-28-2008, 04:15 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

Thanks, added to the to-do list for the next version.
__________________
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
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


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


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