Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-25T05:02:51-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16485 2011-12-25T05:02:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58762#p58762 <![CDATA[Re: finding the redirect to code in my theme]]>
Code:
<input type="hidden" name="redirect_to" value="http://jelanikhalfani.com/wp-admin/" />


If you deactivate all other plugins and leave just s2Member, do you still have that line there?

If you change the theme to the default TwentyEleven, do you still have that line there?

Statistics: Posted by Cristián Lávaque — December 25th, 2011, 5:02 am


]]>
2011-12-22T17:37:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58565#p58565 <![CDATA[Re: finding the redirect to code in my theme]]>

Statistics: Posted by Raam Dev — December 22nd, 2011, 5:37 pm


]]>
2011-12-22T14:01:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58528#p58528 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 2:01 pm


]]>
2011-12-22T13:44:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58527#p58527 <![CDATA[Re: finding the redirect to code in my theme]]>
Login to the WordPress Dashboard
Click of Settings on the menu on the left hand side.
Click on Permanlinks under Settings.
Remember which setting it is set on now. (If you are using a custom structure, copy or save the custom structure somewhere.)
Select Default
Click on Save Changes
Change it back to the setting it was on before you selected Default. (Put the custom structure back if you had one.)
Click Save Changes
This will reset the permalinks and many times this will fix the issue.

Statistics: Posted by Philly — December 22nd, 2011, 1:44 pm


]]>
2011-12-22T13:43:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58526#p58526 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 1:43 pm


]]>
2011-12-22T13:16:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58524#p58524 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 1:16 pm


]]>
2011-12-22T13:11:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58523#p58523 <![CDATA[Re: finding the redirect to code in my theme]]>
I just looked again and its redirecting to /wp-login.php again

have you made any changes in the last half hour?

also have you looked at your .htaacess file?

Statistics: Posted by Philly — December 22nd, 2011, 1:11 pm


]]>
2011-12-22T12:56:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58521#p58521 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 12:56 pm


]]>
2011-12-22T10:49:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58510#p58510 <![CDATA[Re: finding the redirect to code in my theme]]>
http://wordpress.org/extend/plugins/wordpress-seo/

then in your wp admin screen your have an seo section under optimize

go to edit files in that section, you should now see your .htaccess file

hopefully the reason for the redirects is in there

Statistics: Posted by Philly — December 22nd, 2011, 10:49 am


]]>
2011-12-22T10:40:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58509#p58509 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 10:40 am


]]>
2011-12-22T10:34:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58508#p58508 <![CDATA[Re: finding the redirect to code in my theme]]>
You have a problem were your server is redirecting all urls to wp-login.php

Do you have access to your .htaccess file?

Statistics: Posted by Philly — December 22nd, 2011, 10:34 am


]]>
2011-12-22T10:13:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58506#p58506 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 10:13 am


]]>
2011-12-22T10:07:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58505#p58505 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by Philly — December 22nd, 2011, 10:07 am


]]>
2011-12-22T10:05:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58504#p58504 <![CDATA[Re: finding the redirect to code in my theme]]> wouldn't that defeat the purpose of trying to get s2 member to work...?...
and the page template is the default template..for the log in welcome page

Statistics: Posted by dwaynecla — December 22nd, 2011, 10:05 am


]]>
2011-12-22T09:56:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58500#p58500 <![CDATA[Re: finding the redirect to code in my theme]]>
have you tried disabling your plugins and then seeing if it works?

Also what template did you use to create /log-in-welcome-page/ under page attributes?

Statistics: Posted by Philly — December 22nd, 2011, 9:56 am


]]>
2011-12-22T09:21:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58495#p58495 <![CDATA[Re: finding the redirect to code in my theme]]> http://jelanikhalfani.com
user: membertest
Pw: winner60

Statistics: Posted by dwaynecla — December 22nd, 2011, 9:21 am


]]>
2011-12-22T09:11:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58494#p58494 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by Philly — December 22nd, 2011, 9:11 am


]]>
2011-12-22T08:59:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58492#p58492 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 8:59 am


]]>
2011-12-22T08:54:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58490#p58490 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by Philly — December 22nd, 2011, 8:54 am


]]>
2011-12-22T08:51:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58489#p58489 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 8:51 am


]]>
2011-12-22T08:38:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58485#p58485 <![CDATA[Re: finding the redirect to code in my theme]]>
under
s2member > general options > member profile modifications

Have you selected "yes(redirect............)"

that should then redirect to the page you selected under
s2member > general options > login welcome page

Statistics: Posted by Philly — December 22nd, 2011, 8:38 am


]]>
2011-12-22T08:07:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58484#p58484 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by dwaynecla — December 22nd, 2011, 8:07 am


]]>
2011-12-22T07:54:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58483#p58483 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by Philly — December 22nd, 2011, 7:54 am


]]>
2011-12-22T07:36:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58482#p58482 <![CDATA[Re: finding the redirect to code in my theme]]> the following is what I see under theme functions...sorry to paste the entire code...what do I add to it and where??

<?php
// Instantiate the class
require_once(TEMPLATEPATH . '/admin/clshelpfields.php');
require_once(TEMPLATEPATH . '/admin/clscustomfields.php');
require_once(TEMPLATEPATH . '/admin/clsblogfields.php');
require_once(TEMPLATEPATH . '/admin/clsmemcustomfields.php');
require_once(TEMPLATEPATH . '/admin/clslpcustomfields.php');
require_once(TEMPLATEPATH . '/admin/clsseocustomfields.php');
if ( class_exists('myHelpFields') ) {
$myHelpFields_var = new myHelpFields();
}

if ( class_exists('myCustomFields') ) {
$myCustomFields_var = new myCustomFields();
}

if ( class_exists('myBlogFields') ) {
$myBlogFields_var = new myBlogFields();
}

if ( class_exists('myLpCustomFields') ) {
$myLpCustomFields_var = new myLpCustomFields();
}

if ( class_exists('myMemCustomFields') ) {
$myMemCustomFields_var = new myMemCustomFields();
}

// Instantiate the class
if ( class_exists('mySeoCustomFields') ) {
$mySeoCustomFields_var = new mySeoCustomFields();
}


/* Admin Sidebar Panel */
// integrates duplicate post plugin w/o installing it
require_once(TEMPLATEPATH . '/admin/duplicate-post.php');
/**
* Defines the necessary constants and includes the necessary files.
*/

// Define Directory Constants
define('OPTPRESS_LIB', TEMPLATEPATH . '/lib');
define('OPTPRESS_ADMIN', OPTPRESS_LIB . '/admin');
define('OPTPRESS_CLASSES', OPTPRESS_LIB . '/classes');
define('OPTPRESS_FUNCTIONS', OPTPRESS_LIB . '/functions');
define('OPTPRESS_INCLUDES', OPTPRESS_LIB . '/includes');
define('OPTPRESS_ADMIN_CSS', get_template_directory_uri() . '/lib/admin/css' );
define('OPTPRESS_ADMIN_JS', get_template_directory_uri() . '/lib/admin/js' );
define('OPTPRESS_JS', get_template_directory_uri() . '/lib/scripts' );
require_once(OPTPRESS_LIB . '/classes/Seo.php');

// Define Folder Constants
define('OPTPRESS_SCRIPTS_FOLDER', get_bloginfo('template_url') . '/lib/scripts');

// Load Theme Options
require_once(OPTPRESS_ADMIN . '/admin-options.php');

// Load Admin Interface
require_once(OPTPRESS_ADMIN . '/admin-interface.php');

// Load Admin Scripts and Css
require_once(OPTPRESS_ADMIN . '/admin-scripts.php');

// Load TinyMCE Plugin
require_once(OPTPRESS_ADMIN . '/tinymce/tinymce.php');

// Load wp-pagenavi
require_once(OPTPRESS_INCLUDES . '/wp-pagenavi.php');

// Load Options from the Database
require_once(OPTPRESS_INCLUDES . "/var.php");

// Load Theme Functions
require_once(OPTPRESS_FUNCTIONS . '/theme-functions.php');

// Load Custom Shortcodes
require_once(OPTPRESS_FUNCTIONS . '/shortcode.php');

// Redirect To Theme Options Page on Activation
if ($_GET['activated']){
wp_redirect(admin_url("admin.php?page=$page_handle&upgraded=true"));
}

function time_ago( $type = 'comment' ) {
$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
return human_time_diff($d('U'), current_time('timestamp')) . " " . __('ago');
}

// force a line break in wordpress
$init = array();
function nice_mce_options($init) {
$init['remove_linebreaks'] = false;
$init['apply_source_formatting'] = true;
return $init;
}
apply_filters( 'tiny_mce_before_init', 'nice_mce_options' );
apply_filters( 'teeny_mce_before_init', 'nice_mce_options' );


function getImages($dir)
{
global $imagetypes;

# array to hold return value
$retval = array();

# add trailing slash if missing
if(substr($dir, -1) != "/") $dir .= "/";

# full server path to directory
$fulldir = "{$_SERVER['DOCUMENT_ROOT']}/$dir";

$d = @dir($fulldir) or die("getImages: Failed opening directory $dir for reading");
while(false !== ($entry = $d->read())) {
# skip hidden files
if($entry[0] == ".") continue;

# check for image files
if(in_array(mime_content_type("$fulldir$entry"), $imagetypes)) {
$retval[] = array(
"file" => "/$dir$entry",
"size" => getimagesize("$fulldir$entry")
);
}
}
$d->close();

return $retval;
}

// membership page options
function my_custom_login_page() {
require(OPTPRESS_INCLUDES . "/var.php");
echo '<style type="text/css">
html{background:#'.$membershippagebgcolor.';}
body{background:#'.$membershippagebgcolor.';}
h1 a { background-image:url('.$membershippagelogourl.') !important;height:123px; }
</style>';
}

add_action('login_head', 'my_custom_login_page');

// Setup Navigation Bar For Members area

//dd_action('init', 'register_custom_menus');

//function register_custom_menu() {
//register_nav_menu('custom_menu', __('Membership Menu'));
//}

add_action( 'init', 'register_my_menus' );

function register_my_menus() {
if ( function_exists( 'register_nav_menus' ) ) {
register_nav_menus(
array(
'custom_menu' => __( 'Membership Menu' ),
'blog_menu' => __( 'Blog Menus' ),
'sales_menu' => __( 'Sales Menu' ),
'squeeze_menu' => __( 'Squeeze Page Menu' )
)
);
}
}



// Function that output's the contents of the dashboard widget
function optimizepress_widget_function() {
echo '<div class="rss-widget">';
wp_widget_rss_output( 'http://www.facebook.com/feeds/page.php?format=atom10&id=158684170823047', array('items' => 4, 'show_author' => 1, 'show_date' => 1, 'show_summary' => 1) );
echo "</div>";
}

// Function that beeng used in the action hook
function add_optimizepress_widgets() {
wp_add_dashboard_widget('optimizepress_widget', 'OptimizePress Updates', 'optimizepress_widget_function');
}

// Register the new optimizepress widget into the 'wp_dashboard_setup' action
add_action('wp_dashboard_setup', 'add_optimizepress_widgets' );

// Pagination
function i_pagination($pages = '', $range = 2)
{
$showitems = ($range * 2)+1;

global $paged;
if(empty($paged)) $paged = 1;

if($pages == '')
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}

if(1 != $pages)
{
echo "<div class='pagination'>";
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>&laquo;</a>";
if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo;</a>";

for ($i=1; $i <= $pages; $i++)
{
if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
{
echo ($paged == $i)? "<span class='current'>".$i."</span>":"<a href='".get_pagenum_link($i)."' class='inactive' >".$i."</a>";
}
}

if ($paged < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($paged + 1)."'>&rsaquo;</a>";
if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>&raquo;</a>";
echo "</div>\n";
}
}

function optimizepress_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li id="comment-<?php comment_ID(); ?>">


<div class="launchcommentspic"><?php
echo get_avatar( $comment, 75 );
?><br>
<span style="color:#636363;"><?php comment_author_link(); ?></span><br>
<?php
$postcustom = get_post_custom($post->ID); ?>
<?php echo ($postcustom['_launchpage_disabledatewpcomments']) ? '' : time_ago(); ?>
</div>

<div style="float:left;" class="commentswidth">
<?php if ($comment->comment_approved == '0') : ?>
<p>Your comment is awaiting approval</p>
<?php endif; ?>
<?php comment_text(); ?>


</div>
<div style="clear:both;"></div>

<?php
}

function optimizepressautop($pee, $br = 1) {

if ( trim($pee) === '' )
return '';
$pee = $pee . "\n"; // just to make things a little easier, pad the end
$pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
// Space things out a little
$allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';
$pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
$pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
$pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines
if ( strpos($pee, '<object') !== false ) {
$pee = preg_replace('|\s*<param([^>]*)>\s*|', "<param$1>", $pee); // no pee inside object/embed
$pee = preg_replace('|\s*</embed>\s*|', '</embed>', $pee);
}
$pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
// make paragraphs, including one at the end
$pees = preg_split('/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY);
$pee = '';
foreach ( $pees as $tinkle )
$pee .= '<p>' . trim($tinkle, "\n") . "</p>\n";
$pee = preg_replace('|<p>\s*</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace
$pee = preg_replace('!<p>([^<]+)</(div|address|form)>!', "<p>$1</p></$2>", $pee);
$pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee); // don't pee all over a tag
$pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists
$pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee);
$pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee);
$pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee);
$pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee);
if ($br) {
$pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', create_function('$matches', 'return str_replace("\n", "<WPPreserveNewline />", $matches[0]);'), $pee);
$pee = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $pee); // optionally make line breaks
$pee = str_replace('<WPPreserveNewline />', "\n", $pee);
}
$pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*<br />!', "$1", $pee);
$pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $pee);
if (strpos($pee, '<pre') !== false)
$pee = preg_replace_callback('!(<pre[^>]*>)(.*?)</pre>!is', 'clean_pre', $pee );
$pee = preg_replace( "|\n</p>$|", '</p>', $pee );

return $pee;
}

function field_func($atts) {
global $post;
$name = $atts['name'];
if (empty($name)) return;

return get_post_meta($post->ID, $name, true);
}

add_shortcode('field', 'field_func');

// Load Old Custom Shortcodes
require_once(OPTPRESS_FUNCTIONS . '/shortcode_old.php');


add_filter('widget_text', 'do_shortcode');

// Load JQuery Files From Google

if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"), false, '1.3.2');
wp_enqueue_script('jquery');
}

function excerpt($num)
{
$limit = $num+1;
$excerpt = explode(' ', get_the_excerpt().' ', $limit);
array_pop($excerpt);
$excerpt = implode(" ",$excerpt)."…";
echo $excerpt;
}

?>

Statistics: Posted by dwaynecla — December 22nd, 2011, 7:36 am


]]>
2011-12-22T07:33:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16485&p=58481#p58481 <![CDATA[Re: finding the redirect to code in my theme]]> Statistics: Posted by Philly — December 22nd, 2011, 7:33 am


]]>