Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 8 9 Next > End >>
Re:ysva's Tips&Tricks - CB Custom Profile's
Date: 2006/11/09 16:18 By: ysva Status: User  
Karma: 17  
Gold Joomlapolitan

Posts: 222
graphgraph
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=\"height10px\">\n<script type=\"text/javascript\">preChargement();</script>




Don't forget to:
None.
Click here to see the profile of this user The administrator has disabled public write access.

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
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

Re:ysva's CB Custom Profile's [Tips and Tricks]
Date: 2006/11/29 22:23 By: ysva Status: User  
Karma: 17  
Gold Joomlapolitan

Posts: 222
graphgraph
Thank you very much Chuck!
Click here to see the profile of this user The administrator has disabled public write access.

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
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

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
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

Re:ysva's CB Custom Profile's [Tips and Tricks]
Date: 2006/11/30 00:02 By: radio Status: CB Doc subscriber  
Karma: 5  
Expert Joomlapolitan

Posts: 181
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 8 9 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login