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 02-22-2007, 05:16 AM
trana's Avatar
trana trana is offline
Senior Member
 
Join Date: Sep 2005
Posts: 225
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default After submit reply, redirect user to forumdisplay instead of post?

I was wondering if anyone can suggest a way to direct a user to the forumdisplay page after they submit a reply to a thread. For example, a user creates a reply, hits submit, and they end up on the forumdisplay page instead of the postbit.

Any ideas?

Thanks again!
Reply With Quote
  #2  
Old 02-22-2007, 10:50 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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

Havent tried this, but you should be able to create a new hook in newreply_post_complete with something like this as the code:

PHP Code:
$vbulletin->url 'forumdisplay.php?' $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]"
Reply With Quote
  #3  
Old 02-22-2007, 02:42 PM
trana's Avatar
trana trana is offline
Senior Member
 
Join Date: Sep 2005
Posts: 225
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Is there a way to do it only for specified forum?
Reply With Quote
  #4  
Old 02-23-2007, 09:14 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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

sure, just wrap it in an if:

if($foruminfo[forumid]==X)
{
... code here...
{
Reply With Quote
  #5  
Old 02-25-2007, 08:10 PM
trana's Avatar
trana trana is offline
Senior Member
 
Join Date: Sep 2005
Posts: 225
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

You are saying doing something like this?

Quote:
if($foruminfo[forumid]==63)
{
$vbulletin->url = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]";
{
within my newreply_post_complete will cause the submit reply button to push you back to the forumdisplay? It doesn't seem to work properly, I just end up viewing the post as usual.

Any ideas?

Thanks.
Reply With Quote
  #6  
Old 02-28-2007, 07:18 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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:

PHP Code:
if($foruminfo[forumid]=='63')
{
$vbulletin->url 'forumdisplay.php?' $vbulletin->session->vars['sessionurl'] . "f=$foruminfo[forumid]"

Reply With Quote
  #7  
Old 03-01-2007, 02:02 AM
trana's Avatar
trana trana is offline
Senior Member
 
Join Date: Sep 2005
Posts: 225
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

That worked, thanks!
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
User ratings in reply moved? BowlingBoards.com Geek Article and Review System 1 03-11-2009 11:19 PM
Post answer as another user? MotMann Geek Article and Review System 3 04-09-2008 03:24 AM
First Post Default user info of vb romeo2010 Geek Article and Review System 5 03-19-2008 03:45 AM
Custom fields in reply post for blog attroll Geek Article and Review System 3 01-11-2007 10:37 AM
Post Reply Not Working absolutepunk Geek Article and Review System 2 08-11-2006 09:18 PM


All times are GMT. The time now is 08:47 PM.


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