|
|
Re:ysva's Tips&Tricks - CB Custom Profile's
|
|
Date: 2006/11/09 16:18
|
By: ysva
|
Status: User
|
|
|
Karma: 19  
|
|
Gold Joomlapolitan  | Posts: 222 |   | |
|
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: | var $htmlBegin = "<div id=\"conteneurmenu\" style=\"height: 10px\">\n<script type=\"text/javascript\">preChargement();</script>
|
Don't forget to:
None.
|
|
The topic has been locked. |
|
|
|
Re:ysva's CB Custom Profile's [Tips and Tricks]
|
|
Date: 2006/11/29 22:21
|
By: chucktrukk
|
Status: User
|
|
|
Karma: 11  
|
|
Junior Joomlapolitan  | Posts: 31 |   | |
|
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: |
<?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>
|
Then create the file mod_cbquicksearch
| Code: |
<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>
|
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
|
|
The topic has been locked. |
|
|
|
Re:ysva's CB Custom Profile's [Tips and Tricks]
|
|
Date: 2006/11/29 22:23
|
By: ysva
|
Status: User
|
|
|
Karma: 19  
|
|
Gold Joomlapolitan  | Posts: 222 |   | |
|
|
Thank you very much Chuck!
|
|
The topic has been locked. |
|
|
|
Re:ysva's CB Custom Profile's [Tips and Tricks]
|
|
Date: 2006/11/29 22:31
|
By: chucktrukk
|
Status: User
|
|
|
Karma: 11  
|
|
Junior Joomlapolitan  | Posts: 31 |   | |
|
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 - http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,13/id,24909/
User Connections and JIM - http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,13/id,24789/
CB Login - http://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
|
|
The topic has been locked. |
|
|
|
Re:ysva's CB Custom Profile's [Tips and Tricks]
|
|
Date: 2006/11/29 23:17
|
By: chucktrukk
|
Status: User
|
|
|
Karma: 11  
|
|
Junior Joomlapolitan  | Posts: 31 |   | |
|
ysva,
You may also want to wrap your links in:
| Code: |
<?php echo sefRelToAbs( 'LINK_HERE' ); ?>
|
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
|
|
The topic has been locked. |
|
|
|
|
Re:ysva's CB Custom Profile's [Tips and Tricks]
|
|
Date: 2006/11/30 00:02
|
By: radio
|
Status:
|
|
|
Karma: 5  
|
|
Expert Joomlapolitan  | Posts: 181 |   | |
|
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
|
|
The topic has been locked. |
|
|