PDA

View Full Version : how to import block from vba cmps to vba dynamics ?


MonkY
07-05-2008, 01:08 PM
Hi !

Can somebody please help me import blocks from vBadvanced CMPS to vBadvanced Dynamics ? I have no clue how to do that. For example, i like the way CMPS is showing the avatar in User CP (or Welcome back block), and wanted to copy it into Dynamics.

Also, can somebody tell me how in the world can i set my Dynamics to be the homepage for my portal ?

Thank you in advance !

Later Edit: I found how ! It's as easy as a pie. Just needed to download module from CMPS and upload it into Dynamics. Great (but i thought there could be some way to simply copy between them directly from vB Control Panel).
Now i only need to know how to make Dynamics my home page :) Thx again !

MonkY
07-05-2008, 01:29 PM
Hmm... this download/upload method doesn't seem to be perfect. For example, when i imported the Welcome back module into Dynamics, i have some extra <BR> spaces or something. Also, the Recent Threads module, doesn't look at all as the one in CMPS.

What am i doing wrong ? Please help. Thx.

Our Sponsors
 

Brian
07-05-2008, 01:41 PM
Can you link me to the page where you're seeing the problems with the CMPS modules so I can get a better idea of the problem, and see your setup so I can suggest the best way to make it your homepage?

MonkY
07-05-2008, 02:02 PM
Can you link me to the page where you're seeing the problems with the CMPS modules so I can get a better idea of the problem, and see your setup so I can suggest the best way to make it your homepage?

Hello Brian. Unfortunatelly, i am testing the website now on my localhost, but i managed to make some screenshots. Here they are:

http://www.monky.ro/temp/2008-07-05_205457a.png
http://www.monky.ro/temp/2008-07-05_205520a.png

As you can see, there is something wrong, as the Recent Posts look really ugly on Dynamics, and on Welcome back there is some space instead of "Welcome Back".

I really don't understand why isn't there any way to copy all my modules from CPMS to Dynamics without issues. I thought after buying that i will get a better CPMS :)
Maybe i was wrong...

P.S. Meanwhile i also tried to download/upload the Site Navigation module. After uploading it into Dynamics, it simply crashed the whole website. Removing it took it back to normal.
I am now even scared to try importing other modules from CPMS into Dynamics... :mad:

Later Edit: I setup Dynamics as my homepage by reinstalling it in the root directory, with vBulletin in /forums. Seems to be ok... now only if the modules wouldn't be the same as in vBadvanced CPMS...

Our Sponsors
 

Brian
07-08-2008, 04:58 PM
Looks like the problem with the Welcome Block module is that the phrase are not being pulled. A new plugin should be able to take care of that though.

Product: vBa Dynamics
Hook Location: init_startup
Title: CMPS Phrases on Dynamics Pages (or your choice)
Plugin PHP Code:
if (VBA_SCRIPT == 'dynamics')
{
$phrasegroups[] = 'adv_portal';
}

As for the site navigation module, why not just use the Quick Navigation one that comes with Dynamics? It's the same thing except with options to display default vBa Dynamics links.

xopek
10-28-2009, 02:14 PM
Hi Brian,

I having very similar issues... Added the plugin as you suggested and it solved part of the issue... Language is there but some other bit are missing.

I think i've tracked it down to 'what' but I cannot figure out 'why'.

So, I imported 'welcomeblock.module' from cmps to dynamics (actually tried downloading and using the backup from the distro). But once uploaded the new module doesn't have any module options in admin...

cmps-> edit module -> welcome block
we have Main Options, Module Wrapper Template Options, Usergroup Permissions, Welcome Block Options

vba dynamics -> edit module -> welcome block
we have Main Options, Module Wrapper Template Options, Usergroup Permissions... but no 'Welcome Block Options'

Hence when php file tries to refer to $mod_options - there's no data...

Any idea why this might be and how to fix it?

I'm using cmps 3.2.1 and dynamics 1.2.0

thanks!

Brian
10-29-2009, 09:54 AM
As long as you imported the original welcomeblock.module file (from the 'Extras (do not upload)' folder of the CMPS package) then the settings should have been included. I'd recommend deleting your current welcome block module and try importing again.

xopek
10-29-2009, 04:22 PM
As long as you imported the original welcomeblock.module file (from the 'Extras (do not upload)' folder of the CMPS package) then the settings should have been included. I'd recommend deleting your current welcome block module and try importing again.

Hi Brian,

A bit more findings on this... I've deleted and re-imported but this made no changes, still no options available for the block.. But then I've tried it in the *main* instance on dynamics.. and it worked perfect!

So it seems to be working ok if imported into the main instance, but if you have multiple instances installed then it doesn't seem to be working there!

I've tried:

1. install in the main instance (where it works) then installing into the secondary instance - no luck
2. deleting from the main instance and installing only into the secondary one - still not working...

Any suggestions?

Denis

Brian
10-30-2009, 12:36 PM
Ahhh, I see what's going on there. Looks like there's a small bug that's associating the settings with your primary Dynamics instance. If you'll look in your forum/admincp/vba_dyna_admin_modules.php file for this line:
'adv_dyna_modules_$module[identifier]',

Replace with this:
'" . ADV_DYNA_PREFIX . "_modules_$module[identifier]',

Then that should take care of the issue and process the settings correctly if you re-upload the Welcome Block module.

xopek
10-30-2009, 01:04 PM
Fantastic! That has indeed solved the problem. Thank you very much Brian, I knew you'd crack it in a second. :)