Osclass forums

Support forums => Themes => Twitter => Topic started by: aledia on August 06, 2014, 05:20:44 pm

Title: Problem with my twitter theme on payment pages
Post by: aledia on August 06, 2014, 05:20:44 pm
I have found through the forums that there is a problem with the payment plugin and themes. It seems that the plugin is fond of Bender. I found where someone gave the right code to fix the Modern theme.
Does anyone have the code for the Twitter theme? please give detail instructions. I don't want to break it again. the exact pages affected are: Listings Payment Status and Buy Credit for Payments.
The pathways of the pages are: mydomain.com//index.php?page=custom&route=payment-user-menu and mydomain.com/index.php?page=custom&route=payment-user-pack

I hope this info can help you find the right code for me. I don't know much but it seems that just adding the footer and header may not work so well because the body is different too.

I am willing to pay a nominal fee to get the code. (nominal=$10 USD or less)
Title: Re: Problem with my twitter theme on payment pages
Post by: frosticek on August 07, 2014, 12:48:09 am
@aledia
Do you have user-custom.php file in your theme folder?
But I could not identify what is your exact problem  :'(
Title: Re: Problem with my twitter theme on payment pages
Post by: aledia on August 07, 2014, 02:05:54 am
There is not a file named user_custom.php in my Twitter theme.

The exact problem is that those two pages are bender themed and the rest are my Twitter theme.
Title: Re: Problem with my twitter theme on payment pages
Post by: frosticek on August 07, 2014, 10:36:00 am
@aledia
Yes, because you miss some files in twiter theme.

Create here file user-custom.php with content:
Code: [Select]
<?php
    
/*
     *      OSCLass Ă˘â‚¬â€ś software for creating and publishing online classified
     *                           advertising platforms
     *
     *                        Copyright (C) 2010 OSCLASS
     *
     *       This program is free software: you can redistribute it and/or
     *     modify it under the terms of the GNU Affero General Public License
     *     as published by the Free Software Foundation, either version 3 of
     *            the License, or (at your option) any later version.
     *
     *     This program is distributed in the hope that it will be useful, but
     *         WITHOUT ANY WARRANTY; without even the implied warranty of
     *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *             GNU Affero General Public License for more details.
     *
     *      You should have received a copy of the GNU Affero General Public
     * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php echo str_replace('_''-'osc_current_user_locale()); ?>">
<head>
  <?php osc_current_web_theme_path('head.php') ; ?>
  <meta name="robots" content="noindex, nofollow" />
  <meta name="googlebot" content="noindex, nofollow" />
</head>
<body>
  <?php osc_current_web_theme_path('header.php') ; ?>
  <div class="content user_account">
    <h1>
      <span><?php _e('User account manager''tatiana') ; ?></span>
    </h1>
    <div id="sidebar">
      <?php echo osc_private_user_menu() ; ?>
    </div>

    <div id="main" class="ad_list">
      <?php osc_render_file(); ?>
    </div>
  </div>

  <?php osc_current_web_theme_path('footer.php') ; ?>
</body>
</html>

Now check if there exist file custom.php, if not, create it with content:
Code: [Select]
<?php
    
/*
     *      OSCLass – software for creating and publishing online classified
     *                           advertising platforms
     *
     *                        Copyright (C) 2010 OSCLASS
     *
     *       This program is free software: you can redistribute it and/or
     *     modify it under the terms of the GNU Affero General Public License
     *     as published by the Free Software Foundation, either version 3 of
     *            the License, or (at your option) any later version.
     *
     *     This program is distributed in the hope that it will be useful, but
     *         WITHOUT ANY WARRANTY; without even the implied warranty of
     *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *             GNU Affero General Public License for more details.
     *
     *      You should have received a copy of the GNU Affero General Public
     * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php echo str_replace('_''-'osc_current_user_locale()); ?>">
    <head>
        <?php osc_current_web_theme_path('head.php') ; ?>
        <meta name="robots" content="noindex, nofollow" />
        <meta name="googlebot" content="noindex, nofollow" />
    </head>
    <body>
        <?php osc_current_web_theme_path('header.php') ; ?>
        <?php osc_render_file(); ?>
        <?php osc_current_web_theme_path('footer.php') ; ?>
    </body>
</html>

Hope you got it ;)
Title: Re: Problem with my twitter theme on payment pages
Post by: aledia on August 07, 2014, 02:03:05 pm
Thank you so much. Now I wish that someone smarter than me would simply include it in the plugin. Hoping that it does the trick. Uploading right now.
Title: Re: Problem with my twitter theme on payment pages
Post by: frosticek on August 07, 2014, 02:36:50 pm
@aledia
It is not about plugin, but theme ;)