Advertisement:

Author Topic: SEO Wiz : Free SEO Plugin for Osclass  (Read 19086 times)

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #60 on: February 18, 2016, 06:29:57 am »

i wanted the plugin to automatically save the title and description for google and only edit it, when it is need. so i have modify it for my own purpose

if you want it too, replace the following two functions in your index.php from SEO Wiz like this code...


Code: [Select]

   if( !function_exists( 'seo_posted_item' ) ) {
        function seo_posted_item($item)  {


            $itemID = $item['pk_i_id'];
            $itemTitle = Params::getParam( 'seo_item_meta_title' );
            $itemDescription = Params::getParam( 'seo_item_meta_description' );
           
            if (!empty($itemTitle)) {
                $item_meta_title = $itemTitle;   
            } else {
                $item_meta_title =  osc_highlight(osc_item_title(osc_current_user_locale()), 60);
            }
           
            if (!empty($itemDescription)) {
                $item_meta_description = $itemDescription;       
            } else {
                $item_meta_description = osc_highlight(osc_item_description(osc_current_user_locale()), 160);
            }


            $item_meta_title_format = json_encode(Params::getParam( 'seo_item_meta_title_format' ));
            $item_meta_keywords = Params::getParam( 'seo_item_meta_keywords' );
           
            $conn = DBConnectionClass::newInstance() ;
            $c_db = $conn->getOsclassDb() ;
            $comm = new DBCommandClass( $c_db ) ;
         
            $values = array(
                'fk_i_item_id' => $itemID,
                'seo_item_meta_title'    => $item_meta_title,
                'seo_item_meta_title_format'    => $item_meta_title_format,
                'seo_item_meta_description'    => $item_meta_description,
                'seo_item_meta_keywords'    => $item_meta_keywords,
            ) ;
            $comm->insert( SEO_PLUGIN_ITEM_META_TABLE, $values ) ;
        }
    }
   
   if( !function_exists( 'seo_edited_item' ) ) {
        function seo_edited_item( $item ) {


            $itemID = $item['pk_i_id'];
            $itemTitle = Params::getParam( 'seo_item_meta_title' );
            $itemDescription = Params::getParam( 'seo_item_meta_description' );
           
            if (!empty($itemTitle)) {
                $item_meta_title = $itemTitle;   
            } else {
                $item_meta_title =  osc_highlight(osc_item_title(osc_current_user_locale()), 60);
            }
           
            if (!empty($itemDescription)) {
                $item_meta_description = $itemDescription;       
            } else {
                $item_meta_description = osc_highlight(osc_item_description(osc_current_user_locale()), 160);
            }


            $item_meta_title_format = json_encode(Params::getParam( 'seo_item_meta_title_format' ));
            $item_meta_keywords = Params::getParam( 'seo_item_meta_keywords' );           
         
            $conn = DBConnectionClass::newInstance() ;
            $c_db = $conn->getOsclassDb() ;
            $comm = new DBCommandClass( $c_db ) ;


            $values = array(
                'fk_i_item_id' => $itemID,
                'seo_item_meta_title'    => $item_meta_title,
                'seo_item_meta_title_format'    => $item_meta_title_format,
                'seo_item_meta_description'    => $item_meta_description,
                'seo_item_meta_keywords'    => $item_meta_keywords,
            ) ;
            $run = $comm->replace( SEO_PLUGIN_ITEM_META_TABLE, $values ) ;
         if($run == false){
            $comm->insert( SEO_PLUGIN_ITEM_META_TABLE, $values ) ;
         }
        }
    }


the only thing i don't figured out yet, is to automatically save the meta title format


maybe it is useful for someone
« Last Edit: February 18, 2016, 06:34:56 am by Liath »

Osclass Wizards

  • Sr. Member
  • ****
  • Posts: 252
  • We love Osclass
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #61 on: February 19, 2016, 01:33:41 pm »

i wanted the plugin to automatically save the title and description for google and only edit it, when it is need. so i have modify it for my own purpose

if you want it too, replace the following two functions in your index.php from SEO Wiz like this code...


Code: [Select]

   if( !function_exists( 'seo_posted_item' ) ) {
        function seo_posted_item($item)  {


            $itemID = $item['pk_i_id'];
            $itemTitle = Params::getParam( 'seo_item_meta_title' );
            $itemDescription = Params::getParam( 'seo_item_meta_description' );
           
            if (!empty($itemTitle)) {
                $item_meta_title = $itemTitle;   
            } else {
                $item_meta_title =  osc_highlight(osc_item_title(osc_current_user_locale()), 60);
            }
           
            if (!empty($itemDescription)) {
                $item_meta_description = $itemDescription;       
            } else {
                $item_meta_description = osc_highlight(osc_item_description(osc_current_user_locale()), 160);
            }


            $item_meta_title_format = json_encode(Params::getParam( 'seo_item_meta_title_format' ));
            $item_meta_keywords = Params::getParam( 'seo_item_meta_keywords' );
           
            $conn = DBConnectionClass::newInstance() ;
            $c_db = $conn->getOsclassDb() ;
            $comm = new DBCommandClass( $c_db ) ;
         
            $values = array(
                'fk_i_item_id' => $itemID,
                'seo_item_meta_title'    => $item_meta_title,
                'seo_item_meta_title_format'    => $item_meta_title_format,
                'seo_item_meta_description'    => $item_meta_description,
                'seo_item_meta_keywords'    => $item_meta_keywords,
            ) ;
            $comm->insert( SEO_PLUGIN_ITEM_META_TABLE, $values ) ;
        }
    }
   
   if( !function_exists( 'seo_edited_item' ) ) {
        function seo_edited_item( $item ) {


            $itemID = $item['pk_i_id'];
            $itemTitle = Params::getParam( 'seo_item_meta_title' );
            $itemDescription = Params::getParam( 'seo_item_meta_description' );
           
            if (!empty($itemTitle)) {
                $item_meta_title = $itemTitle;   
            } else {
                $item_meta_title =  osc_highlight(osc_item_title(osc_current_user_locale()), 60);
            }
           
            if (!empty($itemDescription)) {
                $item_meta_description = $itemDescription;       
            } else {
                $item_meta_description = osc_highlight(osc_item_description(osc_current_user_locale()), 160);
            }


            $item_meta_title_format = json_encode(Params::getParam( 'seo_item_meta_title_format' ));
            $item_meta_keywords = Params::getParam( 'seo_item_meta_keywords' );           
         
            $conn = DBConnectionClass::newInstance() ;
            $c_db = $conn->getOsclassDb() ;
            $comm = new DBCommandClass( $c_db ) ;


            $values = array(
                'fk_i_item_id' => $itemID,
                'seo_item_meta_title'    => $item_meta_title,
                'seo_item_meta_title_format'    => $item_meta_title_format,
                'seo_item_meta_description'    => $item_meta_description,
                'seo_item_meta_keywords'    => $item_meta_keywords,
            ) ;
            $run = $comm->replace( SEO_PLUGIN_ITEM_META_TABLE, $values ) ;
         if($run == false){
            $comm->insert( SEO_PLUGIN_ITEM_META_TABLE, $values ) ;
         }
        }
    }


the only thing i don't figured out yet, is to automatically save the meta title format


maybe it is useful for someone
Nice, we are thinking the same that this feature should be available for users. Maybe we shall include in future updates.

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #62 on: February 19, 2016, 05:04:10 pm »
Would be glad if you assume that. And if it is possible, please integrate the automatic storage of the title format too


and thanks for this free plugin, you've done good job :)
« Last Edit: February 19, 2016, 05:14:45 pm by Liath »

fosg2000

  • Jr. Member
  • **
  • Posts: 82
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #63 on: May 18, 2016, 04:53:41 pm »
Houston... we have aproblem !

installed, but when click to configure got an empty page (see picture)


thanks

ianhaney

  • Full Member
  • ***
  • Posts: 197
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #64 on: May 18, 2016, 05:57:16 pm »
Hi

Sorry to jump in but am using this SEO plugin and works all ok, the fields are in the actual listing page, if you go to listings->manage listings->click edit on a listing and will see the fields there such as meta title, meta description and meta keywords

Hope that helps

fosg2000

  • Jr. Member
  • **
  • Posts: 82
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #65 on: May 18, 2016, 06:34:41 pm »
oh i see it

but i have to do it manually to every new listing or this plug do it for me ?

ianhaney

  • Full Member
  • ***
  • Posts: 197
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #66 on: May 18, 2016, 06:45:58 pm »
Yeah have to do it manually, don't think the plugin can do itself

I'll email the developers now and ask them and post a update

Aficionado

  • Guest
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #67 on: December 11, 2016, 12:59:51 pm »
I'm checking this after a long time. Has anyone found a way to automatically have proper titles with this, including locations, areas,cities (without editing each and every ad) ?

Also how about automatically show the Categories metas (as configured in Osclass admin) ?

Otherwise this is only for Static Pages and Home. Or am i missing something ?

Thanks


Never mind, i figured out the code needed myself.
« Last Edit: December 12, 2016, 07:26:32 pm by Aficionado »

Resta

  • Sr. Member
  • ****
  • Posts: 339
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #68 on: January 25, 2018, 07:59:22 am »
Hi Aficionado,

Can you please share how to automate? Does each individual listing need to be edited with specific titles, description and keywords?

Also, from so far what I know (if one does not edit each individual listing manually to update meta title and keyword) what is shows by default in the pages fro titles, meta description, keywords - seems exactly same as what they are by default, other than adding a seperator in between like * or |  - after configuring this separator and then configuring the home page title, description, keywords and then configuring the pages, when I pull in specific ad pages I see what was shown in the default bender theme except for the * in between titles.

TIA

Aficionado

  • Guest
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #69 on: January 25, 2018, 01:41:15 pm »
Hi Aficionado,

Can you please share how to automate? Does each individual listing need to be edited with specific titles, description and keywords?


Hi,

I'm afraid i can't.

We had someone to write a lot of code to make it automated and make it also work as we wanted with our setup (multiple countries etc etc).

Aficionado

  • Guest
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #70 on: March 05, 2018, 03:57:17 pm »
i want seo plugin for my seo site

here is link

Nice try to spam dude, reported.

« Last Edit: March 05, 2018, 04:11:39 pm by Aficionado »

tito

  • issues
  • Sr. Member
  • *
  • Posts: 397
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #71 on: March 05, 2018, 05:14:19 pm »
Spam is removed, but all other question are unanswered..... 8)

Aficionado

  • Guest
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #72 on: March 05, 2018, 08:31:34 pm »
Spam is removed, but all other question are unanswered..... 8)

Who did you expect to answer, Osclass Wizards, Osclass Team, me ?

 :o

rainilson

  • Newbie
  • *
  • Posts: 37
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #73 on: June 29, 2018, 06:25:54 am »
how do not to appear on the page, where we create ads?

Aficionado

  • Guest
Re: SEO Wiz : Free SEO Plugin for Osclass
« Reply #74 on: June 29, 2018, 01:01:47 pm »
how do not to appear on the page, where we create ads?

Only the admin sees that. No users sees them.