ysva's CB Custom Profile's [Tips and Tricks]

17 years 5 months ago #24287 by ysva
Trick 8

Template Cleanup 2

About:
Future adjustments. Removing annoying whitespace.


Needed:
None


Hacked files:
/components/com_comprofiler/plugin/user/plug_cbmenu/cb.menu.php


This is what you need to do:
change line 338 to:
[code:1] var $htmlBegin = "<div id=\"conteneurmenu\" style=\"height: 10px\">\n<script type=\"text/javascript\">preChargement();</script>[/code:1]


Don't forget to:
None.

Please Log in to join the conversation.

17 years 4 months ago #25838 by chucktrukk
Replied by chucktrukk on topic Re:ysva's CB Custom Profile's [Tips and Tricks]
ysva,

I just started making modules and they are pretty easy. All you need to do is create 2 files

1. the install file
[code:1]
<?xml version="1.0" ?>
<mosinstall type="module">
<name>YOUR MODuLE NAME</name>
<creationDate>CREATION DATE</creationDate>
<author>AUTHOR</author>
<copyright>This template is released under the GNU/GPL License</copyright>
<authorEmail>AUTHORS EMAIL</authorEmail>
<authorUrl>AUTHORS WEBSITE</authorUrl>
<version>1.0</version>
<description>DESCRIPTION</description>
<files>
<filename module="mod_MODULENAME">MODULE FILE such as mod_cbquicksearch.php</filename>
</files>
</mosinstall>
[/code:1]

Then create the file mod_cbquicksearch
[code:1]
<tr>
<td>
<form name="adminForm" method="post" action="index.php?option=com_comprofiler&task=usersList&listid=2&Itemid=1&action=search" >
<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="moduletable">
<tr>
<th valign="top">Search member...</th>
</tr>
<tr>
<td>
<input type="text" name="search" class="inputbox" size="15" maxlength="100" value="Search member..."
onblur="if(this.value=='') this.value='Typ Search member...';"
onfocus="if(this.value=='Search member...') this.value='';"/>
<input type="image" src="components/com_comprofiler/images/search.gif" alt="Search member!" align="top" style="border: 0px;" />
</td>
</table>
</form>
</td>
</tr>
[/code:1]

Save and zip as mod_cbquicksearch.php

You may want to remove the outside <tr><td> and the <th>Quick Search as the module can output the module as you wish.

Chuck

Please Log in to join the conversation.

17 years 4 months ago #25839 by ysva
Thank you very much Chuck!

Please Log in to join the conversation.

17 years 4 months ago #25840 by chucktrukk
Replied by chucktrukk on topic Re:ysva's CB Custom Profile's [Tips and Tricks]
Now that was quick!

I am working on modularizing a lot of CB. I am looking into making 2 or 3 modules specifically.

1. UserProfileXTD
2. UsersListXTD
3. RegisterFormXTD

The output of these modules will be easy to modify for anyone who knows HTML. They will be similar to by other modules (which are very beta)

You can view my other modules here:
Module for Nant's Gallery -
www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,13/id,24909/

User Connections and JIM -
www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,13/id,24789/

CB Login -
www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,13/id,24788/

these modules are buggy but give an idea of how I the output is easy to modify.

Chuck

Post edited by: chucktrukk, at: 2006/11/29 22:32

Please Log in to join the conversation.

17 years 4 months ago #25842 by chucktrukk
Replied by chucktrukk on topic Re:ysva's CB Custom Profile's [Tips and Tricks]
ysva,

You may also want to wrap your links in:

[code:1]
<?php echo sefRelToAbs( 'LINK_HERE' ); ?>
[/code:1]

example:
<?php echo sefRelToAbs( 'index.php?option=com_comprofiler&task=userProfile&tab=getprofilegallerytab' ); ?>

This will allow your links use use Joomla's API and will be converted to SEF URLs or not depending on the users Joomla conversion.

Chuck

Please Log in to join the conversation.

17 years 4 months ago #25844 by radio
good stuff chucktrukk ;), Perhaps you could help me out? Do you know how i could hack the core comprofiler_html.php file code and add a right and left posistion to the main area of the cb profile page? Currently only the middle area has, left & right posistions I really need this to continue into the main area to get my profiles to look how i want.

Post edited by: radio, at: 2006/11/30 00:04

Interested in improving Joomla as a social networking platform? If yes join joomlaplazza.com

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.233 seconds

Facebook Twitter LinkedIn