PDA

View Full Version : Customize registration, all polls, advanced search etc -title and meta descr


netstorm
06-12-2011, 07:22 PM
Hi

How I can customize registration, all polls, advanced search etc - title and meta descr

The problem is that these pages use the same /frame/ template set

Thanks

bobster65
06-12-2011, 08:28 PM
you'll need to modify the specific xxx_content_handler method within the /lib/vivvo/url_handlers/xxx.php file(s) for each of those..

ie, search.

/lib/vivvo/url_handlers/search.php

the method..

function search_content_handler(&$sm)

look for this block..

$template->set_template_file(VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'frame/default.tpl');

change default.tpl to mycustomtemplateforsearch.tpl

then make a copy of the default.tpl and rename it mycustomtemplateforsearch.tpl.

Make your changes to mycustomtemplateforsearch.tpl and test it out.

takes only a few minutes to accomplish

netstorm
06-12-2011, 08:47 PM
That`s a nice way

But can be there some problems in future with updating vivvo?

thanks

bobster65
06-13-2011, 06:04 PM
That`s a nice way

But can be there some problems in future with updating vivvo?

thanks

Best thing to do is keep a change log. That way if you make any changes to core files, you can reapply the file change if necessary.

When vivvo releases patches, then only include the files that have changes made to them... so you'd simply need to take a quick look at your change log and the patch/maintenance to see if any files have been effected. If so, edit those files prior to uploading.

I have sites that are heavily modified (lots of core file edits). With my change log, it makes upgrading a breeze.. without it would be a nightmare lol

netstorm
06-15-2011, 09:32 PM
Thanks

I`ve created log file too))