Theme Modification of Osclass Themes - new options and custom functions

Atlash

New member
XNullUser
Joined
Aug 22, 2025
Messages
7
Reaction score
0
Points
1
Location
Bg
NullCash
11
I noticed that there are only topics here about ready-made themes and plugins, but I haven't noticed anyone interested in modifications within themes.
So, this is a great opportunity for all those who want to introduce new options into themes by modifying the source code.
Please share your experiences and examples here, by modifying the code it is possible to adapt each theme to your needs.
:)
 

Atlash

New member
XNullUser
Joined
Aug 22, 2025
Messages
7
Reaction score
0
Points
1
Location
Bg
NullCash
11
so what do you propose for the modifications
Hi,
For example, I would like to open a discussion for some errors or bugs that users encounter that occur during new updates or when want to implementing individual custom third parties features without using plugins.

I recently had a problem with the Google recapcha code that conflicted with other plugins, so I had to adapt the code:

PHP:
<?php if(osc_recaptcha_public_key() <> '') { ?>
<?php osc_show_recaptcha(); ?>
<?php } else { ?>
<div style="float:left;clear:both;width:100%;margin:0px 0 15px 0;">
<?php osc_run_hook("anr_captcha_form_field"); ?>
</div>
<?php } ?>

With:

PHP:
<?php osc_show_recaptcha('register'); ?>

Also, I wanted to have an additional widget on certain pages and a sidebar with a weather forecast or currency converter etc :

PHP:
$api_id = '4565471e206d1f547675'; // API ID
$url = 'https://api.convert.info/'.$api_id.'/convert/eur/usd/10';
$content = file_get_contents($url);
if (empty($content))
{
    die('Error geting data');
}
$data = json_decode($content, true);
// print_r($data);

if ($data['status'] == 'ok')
{
    echo "10 EUR = " . $data['result']['value'] . " USD";
}
else
{
    echo "Error: " . $data['code'] . " - " . $data['msg'];
}

Thanks for joining.
 

canismano

Member
XNullUser
Joined
Nov 16, 2024
Messages
113
Reaction score
22
Points
18
Location
id
NullCash
161
Hi,
For example, I would like to open a discussion for some errors or bugs that users encounter that occur during new updates or when want to implementing individual custom third parties features without using plugins.

I recently had a problem with the Google recapcha code that conflicted with other plugins, so I had to adapt the code:

PHP:
<?php if(osc_recaptcha_public_key() <> '') { ?>
<?php osc_show_recaptcha(); ?>
<?php } else { ?>
<div style="float:left;clear:both;width:100%;margin:0px 0 15px 0;">
<?php osc_run_hook("anr_captcha_form_field"); ?>
</div>
<?php } ?>

With:

PHP:
<?php osc_show_recaptcha('register'); ?>

Also, I wanted to have an additional widget on certain pages and a sidebar with a weather forecast or currency converter etc :

PHP:
$api_id = '4565471e206d1f547675'; // API ID
$url = 'https://api.convert.info/'.$api_id.'/convert/eur/usd/10';
$content = file_get_contents($url);
if (empty($content))
{
    die('Error geting data');
}
$data = json_decode($content, true);
// print_r($data);

if ($data['status'] == 'ok')
{
    echo "10 EUR = " . $data['result']['value'] . " USD";
}
else
{
    echo "Error: " . $data['code'] . " - " . $data['msg'];
}

Thanks for joining.


What theme are you using? Does this apply to all themes, thanks bro
Post automatically merged:

if you want to know, I also helped someone to customize something theme, you can see on this link


does this need to be combined in this topic ?
 
Last edited:

Atlash

New member
XNullUser
Joined
Aug 22, 2025
Messages
7
Reaction score
0
Points
1
Location
Bg
NullCash
11
Hey canismano, I'm glad you replied, it's good to know that there is someone who understands the theme architecture.
Of course, I have nothing against it, we could merge this topic, considering the title the "Modification of Osclass Themes". I think it will be easier for others to find what they need by keyword.

I am currently using the Patricia theme because it has potential and best suits my needs.
My opinion is that it is very important to follow every change log when updating themes, and that way avoid future conflicts.

Thanks for Advice
 
Top