OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

VehicleManager component support

Go to bottom Favoured: 0

New CBtab plugin

compring (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
New CBtab plugin 11 Years, 5 Months ago
Karma: 0  
Hi all,

I'm trying to add a new Community Builder tab in order to show rents info in addition of "my vehicles" shown by myvehicles plugin. I made a plugin myvehicles-like, changing XML info, and tab class and task management in php file's switch. Install was ok, tab is showing but there are no info inside. From now on i will name my new plugin myrents plugin, in order to simplify my explanation.

In myrents.php I deleted all switch cases and I only manage rent_history_vehicle task, in myvehicles.php i commented that case.

Making some tests, I noticed following the code trace that any echo put before vehiclemanager.php require is shown. After this, nothing appears.

I have seen inside vehiclemanager.php code for adding comprofiler params (tab=getmyvehiclestab&is_show_data=1) . I think problem in here. My home page is CB My Profile, so I need tabs filled although I didn'tarrived from task. Adding 1 tab (myvehicles) problem desappears switching by $option, but I have no var to switch if inside a option, there are 2 cases more.

I also have seen in vehiclemanager.html.php the function showTabs, what I suposed it has tab fill responsibility, but it has only commented code.

I'm very lost in that proccess and I will appreciate any help
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8367
graph
User Offline Click here to see the profile of this user
Re:New CBtab plugin 11 Years, 5 Months ago
Karma: 102  
Hello,

Sorry, please let do step by step.

First plugin for Community builder "My vehicles" for you work ?

when you create next plugin, first check some thing happened for it ? Do you show some data ? Please try show any thing (any test data) for your task. You need see vehiclemanager.php call or not. Ordinary we use require_once - so it may not call.

If all call, you simply need check TASK variable and correct layout for that task

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»