Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BartAfterDark

Pages: 1 ... 26 27 28 29 [30] 31 32
436
Mods & Plugins (Releases & Support) / Redirect phpbb mod
« on: September 05, 2005, 01:38:50 AM »
All credits to thoul http://darkmods.sourceforge.net
##############################################################
# Title: Redirect Outside phpBB After Log In/Out
# Author: Thoul  thoul@users.sourceforge.net  http://darkmods.sourceforge.net
# Description: Guide that allows redirecting outside phpBB for log in or out.
# Version: 1.1.1
# Installation Level: Easy
# Installation Time: 3 Minutes
# Files To Edit: login.php
# Included Files: n/a
##############################################################
# Author's Notes:
# This file is intended to be a guide to redirecting users to files outside of the
# phpBB directories when they log in or log out on a case-by-case basis (that is to
# say, so that you can have some log ins/outs redirect like this and have some
# not). This file deals only with login.php, logging in, and logging out, but
# similar ideas can also be applied to redirecting outside of the phpBB
# directories in other files.
#
# If you are redirecting users to pages outside of your phpBB directories (aka
# folders), be sure to read the file function_change.txt also. It contains other
# modifications and instructions that you will need to read.
#
# Once all these modifications have been applied, you can use log in forms to
# redirect users outside the phpBB directories by adding two hidden form inputs
# like these:
# <input type="hidden" name="outside" value="1" />
# <input type="hidden" name="redirect" value="index.htm" />
# You can also create log in links like this one:
# <a href="login.php?redirect=/index.html&outside=1">Log In</a>
# And you can create log out links like this one:
# <a href="login.php?logout=true&redirect=/index.phtml&outside=1">Log Out</a>
#
#
# Thanks to RyanThaDude29 for developing some of the concepts presented in the mod
# on the FetchAll forums. :)
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
forum/login.php

#
#-----[ FIND ]------------------------------------------
#

               
Code: [Select]
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

Code: [Select]
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( $session_id )
{
$url = ( !empty($_REQUEST['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars(addslashes($_REQUEST['redirect']))) : 'index.' . $phpEx;

$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

      
Code: [Select]
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

Code: [Select]
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if (!empty($_REQUEST['redirect']) )
{
$url = htmlspecialchars(addslashes($_REQUEST['redirect']));
$url = str_replace('&amp;', '&', $url);
$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------


#
#-----[ FIND ]------------------------------------------
#
Code: [Select]
$s_hidden_fields = '<input type="hidden" name="redirect" value="' . $forward_page . '" />';

#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( isset($_REQUEST['outside']) )
{
$outside = ( !empty($_REQUEST['outside']) ) ? true: false;
$s_hidden_fields .= '<input type="hidden" name="outside" value="' . $outside . '" />';
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

Open 4images/includes/sessions.php
#
#-----[ FIND ]------------------------------------------
Code: [Select]
$url_logout        = $url_app."login.php?logout=true";
#
#-----[REPLACE WITH]------------------------------------------
Code: [Select]
$url_logout        = $url_app."login.php?logout=true&redirect=../index.php&outside=1";note you will have to edit ../index.php so it points to the site you want.

#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

437
Discussion & Troubleshooting / Re: editing and deleting comments as admin
« on: September 04, 2005, 01:53:51 PM »
well.
My url looks like this:
Code: [Select]
/index.php?goto=comments.php%3Faction%3Deditcomment%26amp%3Bcomment_id%3D977So i'm pretty sure that isn't the problem.
And I use 1.7.1

438
Discussion & Troubleshooting / Re: editing and deleting comments as admin
« on: September 04, 2005, 12:02:26 AM »
could be that cookies doesn't get saved the right way

439
Discussion & Troubleshooting / show randome image on error.html
« on: August 31, 2005, 12:56:42 PM »
hey.
How come the random imange doesn't work on error.html file. It wont show up at all.

 - lars

440
Mods & Plugins (Releases & Support) / Re: [Mod] bbcode Smileys
« on: August 24, 2005, 07:19:35 PM »
how could we make this without the stupid input type="button"
I want it like it is here on the forum ;)

441
sorry my bad.
was missing some starting/closing tags  :oops: Dunno why they don't show up on the other site with the exact same design.

smiling  :D

442
these tags are showing after I reinstalled 4images (1.7.1)

{if categories}
{if iptc_info}
{endif comment_user_ip}
They didn't show up like that before.
Did 1.7.1 change some of that code since I see them now (I used 1.7.1 before also, but that was an updated version of 1.7)

 - lars

443
What do you need changed?

444
and you are sure you added the templete corectly.
ie.
If you have a template called gold then you need to have the files in this folder /templates/gold

445
hmm..
Not it looks like this

Free image hosting by 0daymeme.com
Isn't there a way to change the with. So they are closer to each other?

446
holy jesus christ  :D
why didn't I look into that file hhe :P
Thank you mate

447
Templates & Styles (Requests & Discussions) / Problem with new images
« on: August 10, 2005, 07:48:47 PM »
How can I get my design to look like this:


At the moment it looks like this :cry::


I now I have to edit the index.php file. But don't know what I exactly should do :/
Hope someone can help me out a little

448
ohh yea my bad he ;D Thanks.

One last question, how come I can't change the bold font for the user who posted the news. The headline did have <b></b> but not the  $image_row['user_name'] :oops:

449
Quote

How can I edit the text colors in the tag that is using {news}


These classes are located in index.php and news.php file.

uhm. I found the code. But what should I change exatly? :oops:

450
How can I edit the text colors in the tag that is using {news}
I tried editing news_bit.html (works for the Archives) But news_show.html doesn't do anything. What am I doing wrong?

Pages: 1 ... 26 27 28 29 [30] 31 32