Osclass forums
Support forums => Themes => Twitter => Topic started 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)
-
@aledia
Do you have user-custom.php file in your theme folder?
But I could not identify what is your exact problem :'(
-
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.
-
@aledia
Yes, because you miss some files in twiter theme.
Create here file user-custom.php with content:
<?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:
<?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 ;)
-
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.
-
@aledia
It is not about plugin, but theme ;)