Skip to Content Skip to Menu

PlugIn twice for a duplicated componet

  • maceved23
  • maceved23
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #32565 by maceved23
PlugIn twice for a duplicated componet was created by maceved23
Hi all.

I have a question regarding a plugIn duplication. But this is not the common question that I see here where people ask if there is a way to duplicate a plug in and abble or disable some features of the pluIn.

This time I have duplicate the component adsmanager 2.15 the last version. My first chalenge was to duplicate the componet but I really understand now how to do it. (if someone need some help just email me). Now I install the plugIn for the original adsmanager 2.15 it works just fine.
Then I start the change of the same files of the original pluIn and point it to the duplication of the adsmanager 2.15 the installation was Ok but when I want to see the TAN in my community builder profile I can't see the TAB.

I'm sure there is a small error and I'm also sure that what I'm doing is possible.

I upload the zip hre so you could see it and please tell me where is my error.

All the code lines where I find variables that the original adsmanager 2.15 uses were changes by adsmanager22 with "22"

Please help me I think this is an issue who can help lot of people.

Regards

Mario

Attachment cbplugin_adsmanager22.zip not found

Attachments:

Please Log in or Create an account to join the conversation.

  • p9939068
  • p9939068
  • OFFLINE
  • Posts: 186
  • Thanks: 0
  • Karma: 117
17 years 7 months ago #32591 by p9939068
Replied by p9939068 on topic Re:PlugIn twice for a duplicated componet
i didnt check download the zip file, but off the top of my head, here are a few things you can check.

- in the plugin's .xml file, make sure the names of the 2 classes of the 2 plugins are different (the class is a parameter inside the "tab" tag)
- in the plugin's main php file, make sure the name of the object class is reflected correctly.

If it's the first issue, you will need to uninstall and reinstall using the correct file.

You should also note that it is possible to output 2 separate tabs with a single plugin. Check the cb core plugin for examples.


Mike Feng
Creator of SIMGallery, SIMAnswers, and ParaInvite
www.simbunch.com
twitter.com/simbunch

Please Log in or Create an account to join the conversation.

17 years 7 months ago #32605 by KurtSteiner
Replied by KurtSteiner on topic Re:PlugIn twice for a duplicated componet
Hello Mario,

don't you think it would be easier to install another ads component as the second part?

sunny regards from Germany

BERND (Kurt Steiner)

Please Log in or Create an account to join the conversation.

  • maceved23
  • maceved23
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #32617 by maceved23
Replied by maceved23 on topic Re:PlugIn twice for a duplicated componet
HI,
First of all thanks for your help.

p9939068 I'm now looking the possible solution you give me and make the changes for the code.:S

Krystofiak I understand your solution but I explain I need for this web page more than 5 times the same ADS component but doing different things, this is why I make all that work to arrive to this point.

If someone have another comment regarding this issue please help me.

Mario

Please Log in or Create an account to join the conversation.

  • maceved23
  • maceved23
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #32649 by maceved23
Replied by maceved23 on topic Re:PlugIn twice for a duplicated componet
Hi,
p9939068

I need some help 'cause I don´t arrive to understand the changes you tell me to do I try to change the file plugin's .xml folowing your instructions and don't arrive to have a result.

HELP me please

Mario

Please Log in or Create an account to join the conversation.

  • p9939068
  • p9939068
  • OFFLINE
  • Posts: 186
  • Thanks: 0
  • Karma: 117
17 years 7 months ago #32651 by p9939068
Replied by p9939068 on topic Re:PlugIn twice for a duplicated componet
look at your plugin's .xml file again. There is a <tab> tag right? inside this tag is a parameter called "class" (for example "getadmanagertab")

Now take a look at your plugin's main php file. It should start with something like:
[code:1]
class getadmanagertab extends cbTabHandler {
function getadmanagertab() {
$this->cbTabHandler();
}
[/code:1]

On your second plugin, your xml <tag> tag should have another class name, for example "getadmanageriitab". And the second plugin'g main php file should start with something like:
[code:1]
class getadmanagertabii extends cbTabHandler {
function getadmanagertabii() {
$this->cbTabHandler();
}
[/code:1]


Mike Feng
Creator of SIMGallery, SIMAnswers, and ParaInvite
www.simbunch.com
twitter.com/simbunch

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum