xoops forums

deka87

Friend of XOOPS
Posted on: 2009/7/11 6:01
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#1

Profile categories hack

Hi,

Dantom made a good hack recently regarding the profile activity tabbed look. So I've gone futher and implemented it on the profile categories. Please see the example here.

To make it look like this, follow the steps described hereexcept for the 4th step. When it comes to templates find

<{foreach item=category from=$categories}>
    <{if isset(
$category.fields)}>
        <
div class="profile-list-category" id="profile-category-<{$category.cat_id}>">
            <
table class="outer" cellpadding="4" cellspacing="1">
                <
tr>
                  <
th colspan="2" align="center"><{$category.cat_title}></th>
                </
tr>
                <{foreach 
item=field from=$category.fields}>
                    <
tr>
                        <
td class="head"><{$field.title}></td>
                        <
td class="even"><{$field.value}></td>
                    </
tr>
                <{/foreach}>
            </
table>
        </
div>
    <{/if}>
<{/foreach}>


and replace it with

<div class="tabber"
<{foreach 
item=category from=$categories}>
    <{if isset(
$category.fields)}>
        <
div class="tabbertab" id="profile-category-<{$category.cat_id}>">
    <
h2><{$category.cat_title}></h2>
                     <
table class="outer" cellpadding="4" cellspacing="1">
                <{foreach 
item=field from=$category.fields}>
                    <
tr>
                        <
td class="head"><{$field.title}></td>
                        <
td class="even"><{$field.value}></td>
                    </
tr>
                <{/foreach}>
            </
table>
        </
div>
    <{/if}>
<{/foreach}>
</
div>


and this is gonna be it.

It works for my testing website which is powered by XOOPS 2.3.3, but I still can't get it working on my XOOPS 2.2. Ghia tried to help me here but I can't get it working still. Anybody can help?
Mind anchors

sarahmx

Quite a regular
Posted on: 2009/7/11 8:09
sarahmx
sarahmx (Show more)
Quite a regular
Posts: 372
Since: 2007/10/28
#2

Re: Profile categories hack

nice.....


should be implement in core IMHO

sailjapan

Moderator
Posted on: 2009/7/12 11:26
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#3

Re: Profile categories hack

very nice.
Never let a man who does not believe something can be done, talk to a man that is doing it.

deka87

Friend of XOOPS
Posted on: 2009/7/12 15:05
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#4

Re: Profile categories hack

i also thought about appplying this on the profile edit page cos it looks kinda bulky, but it doesn't use a template and i'm not sure what to do with the include/form.php. it'd be awesome if somebody made something out of it
Mind anchors

deka87

Friend of XOOPS
Posted on: 2009/10/18 7:58
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#5

Re: Profile categories hack

been a while since i last looked into it. so i want to refresh the topic.

so the question is where should i start from to tab the edit profile page by categories? thanks