OSCLASS
Inhaltsverzeichnis
FAQ
sprache ändern
Code ersetzen in / oc-content / plugins / related_ads / related_ads.php
von
<div class="related_ads"> <h2><strong>Related Ads</strong></h2> <?php if( osc_count_items() == 0) { ?> <p class="empty">No related Ads</p> <?php } else { ?> <table border="0" cellspacing="0"> <tbody>
nach
<div class="related_ads"> <h2><strong><?php _e('3. How can I show related ads with pictures only?', 'related_ads'); ?></strong></h2> <?php if( osc_count_items() == 0) { ?> <p class="empty"><?php _e('2.How does Related Ads plugin work?', 'related_ads'); ?></p> <?php } else { ?> <table border="0" cellspacing="0"> <tbody>
CSS Anpassungen
von
Suche über Inserate mit allen Sprachen
Infos von:
Now there's new versions for "multilanguage search" only:
https://forums.osclass.org/3-5-x/search-problem-oc-3-5-3/msg113711/#msg113711 (5th version).
And "multilanguage search with sorting by relevance":
https://forums.osclass.org/3-5-x/search-problem-oc-3-5-3/msg113778/#msg113778 (10th version).
Add this at the very bottom of your theme functions.php:
Notes: (10th version).
1.- Take care not to leave blank lines after this.
2.- If your theme functions.php doesn't end with ?> skip first line of my code.
10th version (Alerts compatible, Multilanguage on User Alerts), no Sorting by relevance on See By Price, Compatibility with other possible custom JOINS, ignore duplicates, fixed problem with page language changing and other bugs
<?php // add by zovi - version 10 function cust_refined_pattern_search($params) { if (@$params['sPattern'] != '') { $mSearch = Search::newInstance(); $query_elements = (array) json_decode($mSearch->toJson()); $mSearch->addLocale('%'); $mSearch->addGroupBy(DB_TABLE_PREFIX.'t_item.pk_i_id'); if (@$params['sOrder'] != 'i_price') { $mSearch->addJoinTable(count($query_elements['tables_join']), sprintf("(SELECT fk_i_item_id, MATCH(s_title, s_description) AGAINST('%s') AS relevance FROM %st_item_description) des", $params['sPattern'], DB_TABLE_PREFIX), 'des.fk_i_item_id = '.DB_TABLE_PREFIX.'t_item.pk_i_id', 'INNER' ); $mSearch->order("des.relevance DESC, dt_pub_date", "DESC"); } } } osc_add_hook('search_conditions', 'cust_refined_pattern_search'); function cust_alerts_user_dashboard() { if (Params::getParam('page') == "user" && Params::getParam('action') == "alerts") { $webUser = new CWebUser; $aAlerts = Alerts::newInstance()->findByUser( Session::newInstance()->_get('userId'), false ); $user = User::newInstance()->findByPrimaryKey( Session::newInstance()->_get('userId')); foreach($aAlerts as $k => $a) { $array_conditions = (array)json_decode($a['s_search']); $search = new Search(); $search->setJsonAlert($array_conditions); if (osc_version() > 361) $search->notFromUser(Session::newInstance()->_get('userId')); $search->addLocale('%'); $search->addGroupBy(DB_TABLE_PREFIX.'t_item.pk_i_id'); $search->limit(0, 3); $aAlerts[$k]['items'] = $search->doSearch(); } $webUser->_exportVariableToView('alerts', $aAlerts); View::newInstance()->_reset('alerts'); $webUser->_exportVariableToView('user', $user); } } osc_add_hook('before_html', 'cust_alerts_user_dashboard'); ?>
Zara Theme
In der Sprachdatei nach folgendem suchen: ___I want to help OSClass___
Dann je nach Sprache folgendes übersetzen:
Oldtimerersatzteile.ch übernimmt keine Verantwortung für den Inhalt der Inserate.
Oldtimerersatzteile.ch assumes no responsibility for the content of the advertisements.
Oldtimerersatzteile.ch n'assume aucune responsabilité pour le contenu des publicités.
Oldtimerersatzteile.ch non si assume alcuna responsabilità per il contenuto degli annunci pubblicitari.
Und im / oc-content / themes / zara / footer.php (fast zu oberst) folgendes einfügen:
<?php if(zara_current('zc_footer') == 1) { ?> <div id="footer-new"> <!-- add "Oldtimerersatzteile.ch übernimmt keine Verantwortung für den Inhalt der Inserate." by zovi --> <center><?php _e('I want to help OSClass & MB themes by linking to <a href="http://osclass.org/" target="_blank">osclass.org</a> and <a href="http://www.mb-themes.com" target="_blank">MB-Themes.com</a> from my site', 'zara'); ?> </center> <div class="inside"> <div class="bottom-place"> <?php if(osc_is_search_page()) { ?>
Remove Link "Premium osclass themes and plugins"
finde
<?php osc_run_hook('footer') ; ?>
im File / oc-content / themes / zara / footer.php und kommentier es aus (nicht löschen!)
<!-- remove Premiumlink by zovi --> <?php osc_run_hook('foo___remover_by_zovi___ter') ; ?> <!-- remove Premiumlink by zovi <?php if ( zara_is_demo() && osc_is_home_page() ) { ?> <div id="piracy" class="noselect" title="Click to hide this box">This theme is ownership of MB Themes and can be bought only on <a href="https://osclasspoint.com/graphic-themes/general/zara-osclass-theme_i64">OsclassPoint.com</a>. When bought on other site, there is no support and updates provided. Do not support stealers, support developer!</div> <script>$(document).ready(function(){ $('#piracy').click(function(){ $(this).fadeOut(200); }); });</script> <?php } ?> -->
AGBs Terms
Code anpassen in / oc-content / plugins / terms / index.php
if (osc_get_preference('include', 'terms') == '0') { //manual include changed by zovi function terms_manual_include() { $value_sesion = ''; if (Session::newInstance()->_getForm('terms') != '') { $value_sesion = Session::newInstance()->_getForm('terms'); } ?> <div class="row"> <label></label> <input type="checkbox" name="terms_box" id="terms_box" style="display: block; margin-left: auto; margin-right: auto; width: 80px;" <?php if ($value_sesion != '') { echo 'checked="yes"'; } ?> value="1"/> <span style="display: block; margin-left: auto; margin-right: auto; width: 300px;text-align: center;"> <?php printf(__('I agree with these <a target="_blank" href="%s">terms and conditions</a>', 'terms'), osc_get_preference('terms_page', 'terms')); ?> </span> </div> <?php } }
und noch im / themes / zara / item-post.php
<!-- PLUGIN HOOKS --> <div id="post-hooks"> <h2><?php _e('Additional details', 'zara'); ?></h2> <?php ItemForm::plugin_post_item(); ?> </div> </div> <!-- AGB Terms Manual by zovi --> <?php if(function_exists('terms_manual_include')){ terms_manual_include();} ?> <?php if(osc_recaptcha_public_key() <> '') { ?> <div class="box"> <div class="row"> <?php osc_show_recaptcha(); ?>
Stella Theme
Google connect
If you have set up everything and you still has problem that after click on login button, you are redirected back to homepage with no result, place following code into first line of your head.php:
<div style="display:none;"><?php gc_login_button(); ?></div>
eigenes css
eigenes css in css folder von stella erstellen/kopieren und anschliessend im ***head.php*** den Pfad ändern:
von
<?php osc_enqueue_style('style', osc_current_web_theme_url('css/style.css?v=' . date('YmdHis'))); osc_enqueue_style('fancy', osc_current_web_theme_js_url('fancybox/jquery.fancybox.css'));
nach
<?php osc_enqueue_style('style', osc_current_web_theme_url('css/style_zovi.css?v=' . date('YmdHis'))); osc_enqueue_style('fancy', osc_current_web_theme_js_url('fancybox/jquery.fancybox.css'));
Republish Button
Um einen Republish (Wiederveröffentlichen) Button im Menü Expired (Abgelaufen) einzufügen folgendes in / oc-content / themes / stela / user-items.php einfügen:
<?php if(function_exists('republish_link_raw') && republish_link_raw(osc_item_id())) { ?> <a class="republish round2 tr1" href="<?php echo republish_link_raw(osc_item_id()); ?>" rel="nofollow"><?php _e('Republish', 'stela'); ?></a> <?php } ?> achtung nur Quellcode kopieren! <!-- republish by zovi --> <a class="republish round2 tr1" href="<?php echo osc_base_url(true); ?>?page=custom&route=osp-cart-update&product=601x1x<?php echo osc_item_id(); ?>x8760x1" rel="nofollow"><i class="fa fa-refresh"></i> <?php _e('Republish', 'stela'); ?></a> <!-- end by zovi --> </div>
Plugin Osclass-pay
Republish Gebühr einstellen
Um ein Inserat für ein Jahr zu erneuern braucht es eine Gebühr von 0.2617 CHF pro 24h (zeigt nur 0.3 CHF an nach speichern!)
Wird in folgender Seite eingestellt. Adminpanel - Plugins - Osclass Pay Plugin - Item - Pay for Republish
Schprachumschaltung der Kategorien Fehler
Bei mehrsprachigen Osclass Seiten werden die kategorien nicht übersetzt.
Hier die Lösung:
This is a pretty serious Osclass bug that I studied and solved a while ago (but the solution involves changing a core file, so I pulled an official request, no answer so far... :()
You need to backup your oc-includes/osclass/model/Category.php file (just in case) and replace its contents with this:
Now, being a core file, remember that you need to redo this modification every time you upgrade Osclass (unless they solve this once and for all).
Regards
Source https://forums.osclass.org/themes/how-to-translate-osclass-themes/msg125953/#msg125953
Fehler im GUM Theme
Die Seite "payment-pro-user-menu" wird im Useraccount nicht angezeigt
In der Datei /oc-content/themes/gum/class/payments_pro/user/menu.php auf der linie 91 ist ein (') am falschen Ort.
ändere
printf('<li><a class="searchPaginationSelected" href="%s">%d</a>'</li>,
nach
printf('<li><a class="searchPaginationSelected" href="%s">%d</a></li>',
und schon klappts wieder.
Debug einschalten
/** * Copy this code to config.php file * This will log all error notices and warnings to a file called debug.log in oc-content */ define('OSC_DEBUG', true) ; define('OSC_DEBUG_LOG', true) ;
Wörter in Sprachen ändern
Tip:
Es gibt Übersetzungen im Standard Verzeichnis
/oc-content/languages
In den meisten Fällen gibt es sie auch noch in den Themes:
/oc-content/themes/[themenname]/languages/
z.B.:
/oc-content/themes/osclasswizards/languages/
Plugins
- https://github.com/osclass/osclass-plugins
- https://sourceforge.net/directory/os:windows/?q=osclass+plugin
- https://drizzlethemes.com/plugins/
- http://pixadrop.com/product-category/osclass-market/