Results 1 to 5 of 5

Thread: 403 forbidden error - post an ad button solution

  1. #1
    Thread Starter
    anandgiri's Avatar
    Join Date
    May 2014
    Location
    India
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    403 forbidden error - post an ad button solution

    for all non .com tlds .. we get error while pressing post an ad button .. so i have tried a different method to tackle it

    in header. php

    replace the line with
    <a href="<?php echo CP_ADD_NEW_URL; ?>" class="obtn btn_orange"><?php _e( 'Post an Ad', APP_TD ); ?></a>

    to

    <?php if ( $user_ID ) { ?>
    <!-- to anyone logged in -->
    <a href="siteurl/add-new/" class="obtn btn_orange"><?php _e( 'Post an Ad', APP_TD ); ?></a>

    <?php } else { ?>
    <!-- to anyone not logged in -->
    <a href="siteurl/login/" class="obtn btn_orange"><?php _e( 'Post an Ad', APP_TD ); ?></a>
    <?php } ?>

    with permalinks on replace siteurl with your site name
    and it will work properly.. no mod_security.. nothing

    cheers

  2. #2
    Veteran sonnycool's Avatar
    Join Date
    Mar 2009
    Location
    Malaysia
    Posts
    308
    Thanks
    32
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  4. #4
    Thread Starter
    anandgiri's Avatar
    Join Date
    May 2014
    Location
    India
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Jomark 403 (Forbidden) Error when Submitting/Editing resumes
    By danroseman in forum Report JobRoller Bugs
    Replies: 1
    Last Post: January 7th, 2014, 11:28 AM
  2. [SOLVED] Post an Ad, login redirection, error 403 forbidden
    By legibusmaximus in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: December 23rd, 2013, 09:49 AM
  3. HTTP Error 403 Forbidden - Saving General Settings
    By gbishop in forum Report ClassiPress Bugs
    Replies: 15
    Last Post: December 17th, 2012, 07:08 PM
  4. An Error Has Occurred post ad button
    By krreddy in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 26th, 2012, 03:32 AM
  5. Please Help! Post An Ad button yields error
    By phaedrus in forum Report ClassiPress Bugs
    Replies: 26
    Last Post: January 11th, 2012, 04:30 PM