Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke
Author Message
Dreamy
New Member
New Member



Joined: Mar 30, 2006
Posts: 1

PostPosted: Tue Apr 18, 2006 10:13 am Reply with quote

sorry,

my english is very bad.

i cannot start Redirect User Fix 1.0.0 accessory for phpbb.how are we start that standard accesory of phpbb at bbtonuke ?

this addon

Code:



######################
## MOD Title:  Redirect User Fix 1.0.0
## MOD Author: Solo Forever < solarent@excite.com > (N/As) http://foreversilent.net
## MOD Author, Secondary: Mav < mav@universalspider.com > (N/As) N/As
##
## MOD Description:
##         redirect users directly to their message after making a new post, instead of the "Click here to view your message, here for Forum index" message screen.
## MOD Version:      1.0.0
##
## Installation Level:   Easy
## Installation Time:   1 Minutes
## Files To Edit:
##         includes/functions_post.php
##         
## Included Files:
##         no files included but the mod and it's file within it.
######################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
######################
## Author Notes:
##      - We will try our best to give the support if errors should arise.
##      - this MOD can be installed with EasyMOD verion 1.0.13
##
##
######################
## MOD History:
##
##   2005-02-01 - Version 0.1
##
######################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
######################
#
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------------
#
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
$message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
#
#-----[ REPLACE WITH ]----------------------------------------
#
// $meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
// $message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');

if ( $mode != 'editpost' )
{
$user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id'];
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}

if ($error_msg == '' && $mode != 'poll_delete')
{
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
}

if ( $mode == 'newtopic' || $mode == 'reply' )
{
$tracking_topics = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array();
$tracking_forums = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array();

if ( count($tracking_topics) + count($tracking_forums) == 100 && empty($tracking_topics[$topic_id]) )
{
asort($tracking_topics);
unset($tracking_topics[key($tracking_topics)]);
}

$tracking_topics[$topic_id] = time();

setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
redirect(append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id, true);

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Apr 21, 2006 8:27 am Reply with quote

I am <bumping> this to show up higher in the latest posts in hopes of getting you some help.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Pmoney
Hangin' Around



Joined: Jan 18, 2006
Posts: 42

PostPosted: Tue May 02, 2006 8:30 pm Reply with quote

I would like to see this implemented in my Raven Nuke 2.02.02 version. The "click here" page is useless IMHO.
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed May 03, 2006 5:02 pm Reply with quote

Hmmm what exactly is the issue? Does it not work? If it does not work, why not?

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
frisp
Hangin' Around



Joined: Apr 02, 2005
Posts: 29
Location: Penicuik, Scotland

PostPosted: Sat May 06, 2006 6:53 am Reply with quote

Just tested it, although the post still gets added to the forum, after poting the message I get a 404 error, not redirected to the post.

_________________
Regards

[_]frisp 
View user's profile Send private message Visit poster's website
evaders99







PostPosted: Sat May 06, 2006 4:58 pm Reply with quote

Okay, so its not rewriting the correct URL. What is it trying to go to?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©