Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Seo Links And Adsmanager Bugs, [solved]
zaxavar
post Jun 24 2012, 04:35 PM
Post #1


Newbie
*

Group: Validating
Posts: 18
Joined: 24-June 12
Member No.: 1,241



As you wrote in your manual:

In file /components/com_adsmanager/views/details/view.html.php

I found code

Код
//
        // Process the content plugins.
        //
        $dispatcher =& JDispatcher::getInstance();
        JPluginHelper::importPlugin('adsmanagercontent');


and replaced it with


Код
//
        // Process the content plugins.
        //
        $dispatcher =& JDispatcher::getInstance();
        /*SEO Links content plugin*/
        if (JPluginHelper::importPlugin('content','seolinks',true)) {
              $seorow = new StdClass();
              $seorow->text = $content->ad_text;
              $seorow->id = 0;
              $dispatcher->trigger('onContentBeforeDisplay', array('com_adsmanager', &$seorow, array()));
              $content->ad_text = $seorow->text;
        }
        JPluginHelper::importPlugin('adsmanagercontent');



Don't work...

Then I replaced it with code

Код
//
        // Process the content plugins.
        //
        $dispatcher =& JDispatcher::getInstance();
        /*SEO Links content plugin*/
        if (JPluginHelper::importPlugin('k2','seolinks',true)) {
              $seorow = new StdClass();
              $seorow->text = $content->ad_text;
              $seorow->id = 0;
              $dispatcher->trigger('onK2AfterDisplay', array(&$seorow, array()));
              $content->ad_text = $seorow->text;
        }
        JPluginHelper::importPlugin('adsmanagercontent');



Don't work...

Also I found, If display errors enabled, on every adsmanager page error:

Warning: Parameter 3 to plgContentSeolinks::onContentBeforeDisplay() expected to be a reference, value given in /var/www/vipyalta/data/www/vipyalta.ru/libraries/joomla/event/event.php on line 71


This post has been edited by Web Design Seo: Jul 9 2012, 09:03 AM


--------------------
Free windows software on www.bestwinsoft.com
Go to the top of the page
 
+Quote Post
Web Design Seo
post Jun 25 2012, 06:00 AM
Post #2


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



Hello, zaxavar. This is a Warning, not a error. Php stop work only when something like "fatal error" is present.

Please, read text in product page:
Цитат
Latest version of Seo Links Pro have guides how to work in about 10 joomla components! We can't guarantee that guides will work for every version of these components and we will update plugin every time when new version of component is released. Plugin is developed to work with content and K2. Integration with all other components is provided "As guide".


Free support and guarantee are only for content and K2. If you found error, post them here and we will fix them for free, all other is not possible - 10 components x about 10 versions each... we cant support all of them and every version.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
zaxavar
post Jun 25 2012, 12:54 PM
Post #3


Newbie
*

Group: Validating
Posts: 18
Joined: 24-June 12
Member No.: 1,241



blink.gif

I created absolutely clean site with adsmanager on local server (MAMP) - everything work fine.
Than I create absolutely clean site on my server - links in adsmanager don't work...

This post has been edited by zaxavar: Jun 25 2012, 12:55 PM


--------------------
Free windows software on www.bestwinsoft.com
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post Jun 25 2012, 01:03 PM
Post #4


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



Try to replace the following line:

$dispatcher->trigger('onContentBeforeDisplay', array('com_adsmanager', &$seorow, array()));

with:

$seoparams = new JRegistry();
$dispatcher->trigger('onContentBeforeDisplay', array('com_adsmanager', &$seorow, &$seoparams));

If you are using Joomla 1.5, use $seoparams = new JParameter(''); instead of $seoparams = new JRegistry();
Go to the top of the page
 
+Quote Post
Web Design Seo
post Jun 25 2012, 01:05 PM
Post #5


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



We cant test on your local server. Problem does not exist on our server based on Linux and php 5.2. I see your review in JED, seems that i forgot to edit there.

So, description is edited. Any other suggestion?


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
zaxavar
post Jun 25 2012, 01:18 PM
Post #6


Newbie
*

Group: Validating
Posts: 18
Joined: 24-June 12
Member No.: 1,241



QUOTE (Ivan Stamenov @ Jun 25 2012, 02:03 PM) *
Try to replace the following line:

$dispatcher->trigger('onContentBeforeDisplay', array('com_adsmanager', &$seorow, array()));

with:

$seoparams = new JRegistry();
$dispatcher->trigger('onContentBeforeDisplay', array('com_adsmanager', &$seorow, &$seoparams));

If you are using Joomla 1.5, use $seoparams = new JParameter(''); instead of $seoparams = new JRegistry();



Yes, this work. Big thanks.


--------------------
Free windows software on www.bestwinsoft.com
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Pinned: Seo Links For Wordpress, Plugin For Automatic Linking In Wp
automatic linking for Wordpress
20 Ivan Stamenov 584,408 20th May 2026 - 02:04 PM
Last post by: Web Design Seo
No new Pinned: Seo Links за Wordpress, плъгин за Seo оптимизация за Wp
плъгин за автоматично линкване за уърдпрес
9 Web Design Seo 514,605 12th October 2020 - 10:00 AM
Last post by: Web Design Seo
No new Pinned: Seo Links Pro For Joomla
guide, description and functions of Seo Links Pro
38 Web Design Seo 396,726 8th April 2019 - 10:22 AM
Last post by: Web Design Seo
No New Posts Pinned: Seo конференция 2015
3 Web Design Seo 288,650 23rd May 2017 - 07:45 AM
Last post by: Web Design Seo
No New Posts Seo Links Pro Now Work With Virtuemart, Sobi2 And Zoo
Seo Links Pro in Virtuemart, Sobi2 and Zoo
1 Web Design Seo 355,947 16th August 2016 - 03:25 PM
Last post by: Web Design Seo
No new Pinned: Seo Links Pro за Джумла
нова професионална версия на сео линкс за Joomla!
31 Web Design Seo 366,330 2nd April 2016 - 07:45 PM
Last post by: servlet
No New Posts Pinned: Seo пакети за бизнес клиенти: Google работи за Вас
SEO пакети за абонамент на големи клиенти
0 Web Design Seo 204,719 4th January 2016 - 08:33 AM
Last post by: Web Design Seo
No New Posts Pinned: Android Tv Box
Андроид ТВ бокс устройства, какво е това
0 Web Design Seo 421,637 21st December 2015 - 09:52 AM
Last post by: Web Design Seo
No New Posts Seo Conference 2015, Bulgaria
2 Web Design Seo 207,423 3rd September 2015 - 01:21 PM
Last post by: Web Design Seo
No New Posts Seo Links In Kunena 3.x.x?
fixed, working
2 zaxavar 207,731 30th June 2015 - 12:14 PM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 2nd June 2026 - 03:41 AM