Pagina 1 din 2

nush cum

Scris: 23-Oct-2007, 11:27:52
de GrafsS
deci
cum fac ca autunci cand fac un post sa nu m-ai apara aia cu "Revine la forum sau la topic"
am vazut asta pe forumul de la freakz
cum as putea sa fac asa ceva?

Scris: 23-Oct-2007, 13:00:10
de Aliniuz

Scris: 23-Oct-2007, 19:33:04
de GrafsS
asta e ptr phpbb2 ?
ca acolo zice c e phpbb3

:)

Scris: 23-Oct-2007, 21:53:39
de NetraKID

Scris: 23-Oct-2007, 22:38:56
de GrafsS
ms
:)

Scris: 23-Oct-2007, 23:16:35
de GrafsS
srry de double post
dar mi-e nu imi reuseste
va rog imi face careva klumea
ma chinui dar nimic
va rog

Scris: 23-Oct-2007, 23:19:50
de axn
Pai ce nu merge ? Primesti vre-o eroare ? Daca da, ce eroare ?
GrafsS scrie:va rog imi face careva klumea
Nu, nu cred ca va face nimeni in locul tau.

Scris: 23-Oct-2007, 23:23:12
de GrafsS
poi nu da nici o eroare dar...nu pot sa selectez alea ca sunt aranjate nashpa rau de tot

Cod: Selectaţi tot

##############################################################
## MOD Title: Attachement IE Fix for Instant Post Redirect
## MOD Author: eviL3 <evil> (Igor Wiedler) http://phpbbmodders.net
## MOD Description: It's an addon
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: posting.php,
##                viewtopic.php
##
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This problem was found by Marshalrusty, and he was kind enough
## to share it. This is a fix for IE not redirecting correctly when
## having the attachement MOD installed.
##
## Only install this MOD if you have the attachment MOD installed.
##
##############################################################
## MOD History:
##
##   2006-11-15 - Version 1.0.0
##      - Initial version
##
##   2006-11-15 - Version 1.0.1
##      - Small stuff :P
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
			redirect(append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id", true) . '#' . $post_id);
#
#-----[ REPLACE WITH ]------------------------------------------
#
			$redirect		= "viewtopic.$phpEx?" . POST_POST_URL . '=' . $post_id;
			$post_append	= ( strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'], 'MSIE') !== false ) ? '&ie' : "#$post_id";
			redirect( append_sid( $redirect, true ) . $post_append );
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
	message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( isset( $HTTP_GET_VARS['ie'] ) )
{ 
	redirect(append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id", true) . '#' . $post_id);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
sh ca aci s vad bine :)

Scris: 23-Oct-2007, 23:29:27
de GrafsS
da eroarea

Cod: Selectaţi tot

Parse error: syntax error, unexpected T_STRING in /home/grafss/public_html/forum/viewtopic.php on line 172

Scris: 23-Oct-2007, 23:40:10
de axn
Inseamna ca in viewtopic.php la linia 172 ai un punct si virgula (;) in plus, etc.
Sau cred ca mai degraba se refera la apostrof ('), poate e in conflict cu altul. De exemplu la un echo 'Marry's book'; da eroare. Trebuie pus echo 'Marry\'s book'; , pentru a anula conflictul.

Uita-te sa vezi ce ai acolo.