Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Nominate XOOPS!

Learn XOOPS Core

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $15.00
Net Balance: $14.11
Left to go: $85.89

Donations
Anonymous ($15)Jul-20

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 4 6 Abuse adslight Android AntiHarvesting AntiSpam API Apple Battlefield billige Blocks Bootstrap Captcha cell chronolabs CHUNG content CĂN demo docek download Dresses evden eve facebook Fat floor for free Gateway Google Guide herre Honeypot HP html5 Human HỘ IP iPhone jQuery Language List log Loss module modules Monster new newbb news NHÀ online PARK Payment phone PHP Prevention profile project Protector publisher Rapid RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smarty Spam stem Studio support tag tags tdmcreate template The Theme themes User userlog web weight xoops Xortify XPayment ZendFramework

New Users

Registering user

# 137619

bhpstr

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2009/7/11 5:01 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?

Top


Mind anchors
deka87
Friend of XOOPS
Friend of XOOPS
Joined:
2007/10/5 13:50
From Russia
Group:
Registered Users
Posts: 1109
(Show More) (Show Less)


#2 Posted on: 2009/7/11 7:09 Re: Profile categories hack
nice.....


should be implement in core IMHO



Top

sarahmx
Quite a regular
Quite a regular
Joined:
2007/10/28 6:06
Group:
Registered Users
Posts: 354
(Show More) (Show Less)


#3 Posted on: 2009/7/12 10:26 Re: Profile categories hack
very nice.

Top


Never let a man who does not believe something can be done, talk to a man that is doing it.
sailjapan
Moderator
Moderator
Joined:
2005/11/16 5:27
From Osaka
Group:
Registered Users
Posts: 1667
(Show More) (Show Less)


#4 Posted on: 2009/7/12 14:05 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

Top


Mind anchors
deka87
Friend of XOOPS
Friend of XOOPS
Joined:
2007/10/5 13:50
From Russia
Group:
Registered Users
Posts: 1109
(Show More) (Show Less)


#5 Posted on: 2009/10/18 6:58 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


Top

deka87
Friend of XOOPS
Friend of XOOPS
Joined:
2007/10/5 13:50
From Russia
Group:
Registered Users
Posts: 1109
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]