View Full Version : Organize sub cats into columns?
Ohiosweetheart
01-25-2007, 09:23 AM
Is there a way, or is it possibly in the works, to be able to organize the sub cats on the main directory page, into columns?
See my screenie.
http://i17.photobucket.com/albums/b91/babydoll2u/screenshots/Image3.jpg
There's a hack at vb.org that puts sub forums on the vB forumhome into columns, as shown above.
I'm really hoping that this would be something that you would consider implementing into the links directory?
Thank you!
HenrikHansen
01-25-2007, 09:31 AM
Ha ha, I just installed this hack one hour ago and was looking for the same solution. Would really increase the value of the links package
Ohiosweetheart
01-26-2007, 08:41 PM
It absolutely would, you're right. I hope that there's a work-around for this?
KW802
01-27-2007, 12:42 AM
If Brian or somebody else doesn't come forward first, I'll play around Sunday to see what I can come up with; I've got plans for Saturday so Sunday will be the first time I have free.
Ohiosweetheart
01-31-2007, 06:43 AM
Thank you Kevin. I'm looking forward to seeing what you come up with.
KW802
01-31-2007, 01:00 PM
Peggy, thanks for the reminder bump. ;)
I knew there was something else I was supposed to be working on. :p
Ohiosweetheart
01-31-2007, 04:40 PM
so... get to work! :)
Ohiosweetheart
02-02-2007, 10:57 AM
here's another reminder bump! :)
not being pushy or anything....
Ohiosweetheart
02-06-2007, 12:23 PM
Is anyone going to work on this? Or at least tell me it's not possible?
Please?
Ohiosweetheart
02-19-2007, 10:31 PM
ummm... I know there's a new product out that's getting all of the attention now, however - is my request even being considered??
Any answer will do, lol - yes, no, maybe, gotohell... anything :)
Brian
02-19-2007, 11:53 PM
I've added that to my to-do list for the next time we release a bigger update. Once I start working on that and see what the exact code changes are then I can post them here for you, but I can't make any promises as to when that might be.
Ohiosweetheart
02-20-2007, 12:43 AM
Well that answer was disappointing, but thank you for at least answering Brian. :)
Lionel
02-27-2007, 11:37 PM
Peggy, thanks for the reminder bump. ;)
I knew there was something else I was supposed to be working on. :p
LOL! you chickened out on that one.:p
Ohiosweetheart
02-28-2007, 06:15 AM
LOL! you chickened out on that one.:pI hope not :(
Lionel
02-28-2007, 02:14 PM
I saw a new option in the latest links (from yesterday) about columns. I thought Brian did it, but nothing is happening. I will do it myself as I am desperate for that too. I will post my results in the hack section and will notify you when I do (between today and tomorrow)
Ohiosweetheart
02-28-2007, 02:19 PM
Wonderful! I'll be patiently (not) waiting :D
Brian
02-28-2007, 02:46 PM
Lionel - Did you try changing the "Show Sub-Categories" option to something like 2 or 3?
Peggy - This was added in v2.0.1. ;)
Lionel
02-28-2007, 02:47 PM
I did, thinking it was the purpose, but they all show in one column
http://www.haitiwebs.com/forums/haitisearch/index.php
I also reinstalled all templates
Lionel
02-28-2007, 02:57 PM
Maybe you forgot to include the new templates? I see the code to do so in the php, but not in templates
Ohiosweetheart
02-28-2007, 03:01 PM
Lionel - Did you try changing the "Show Sub-Categories" option to something like 2 or 3?
Peggy - This was added in v2.0.1. ;)
What was added? I have found no way at all to be able to arrange my subcats like I'm talking about.
My subcategories show up fine. I want to be able to line them up into 2 columns. See my screenshot from my original post, below.
http://i17.photobucket.com/albums/b91/babydoll2u/screenshots/Image3.jpg
Ohiosweetheart
02-28-2007, 03:03 PM
**is getting excited**
Brian
02-28-2007, 04:25 PM
After you've upgraded to 2.0.1, go to:
Admin CP => vBa Links => Category Options => Display Smaller Sub-Category Columns
Change that to the number of columns you'd like to display. A setting of 1 should still show them in the old fashion. Anything else should split them into that number of columns and display them the same as in your screen shot.
I just double checked things on my localhost and it seems to be working fine. If for some reason this isn't working for anybody though please submit a support ticket and I'll take a look at things for you.
Lionel
02-28-2007, 06:11 PM
Brian, thanks for the support. One last question and I am out of your hair for today ;)
I altered the "adv_links_categorybit_level1" template by enclosing the title in a table in order to reproduce my former look and it is even better.
What would be the conditional to display the tborder only for top level?
click on main yellow catego to see what I mean
http://www.haitiwebs.com/forums/haitisearch/
Brian
02-28-2007, 06:19 PM
If I'm understanding you correctly, <if condition="$cats['level'] == X"> would be the conditional.
Lionel
02-28-2007, 06:24 PM
perfect! Thank you sir.
Ohiosweetheart
02-28-2007, 08:18 PM
After you've upgraded to 2.0.1, go to:
Admin CP => vBa Links => Category Options => Display Smaller Sub-Category Columns
Change that to the number of columns you'd like to display. A setting of 1 should still show them in the old fashion. Anything else should split them into that number of columns and display them the same as in your screen shot.
I just double checked things on my localhost and it seems to be working fine. If for some reason this isn't working for anybody though please submit a support ticket and I'll take a look at things for you.
BAA HAA... sorry Brian, I didn't know there was a 2.0.1 LOL... I'm getting ready to upgrade. PLEEEEAAAAAAAASE work.
I'll love ya forever if it does.
:D
Eagle Graphix
02-28-2007, 09:26 PM
So how do we fix the sub cats? Mine are not lining up right.
View them here www.eaglegraphix.com/links
Ohiosweetheart
03-01-2007, 09:15 AM
ahha - the code to wrap is too short, causing the text to drop down. In some cases the entire subcat name is dropping down below its icon.
Can you fix this Brian, please?
Otherwise, this is just what I wanted!!
Brian
03-01-2007, 12:43 PM
Eagle & Peggy - My apologies for that. It looks like the new code didn't get tested properly under conditions where the sub-cats would be displayed in the level 1 categorybit template. If you'll replace the contents of your 'adv_links_categorybit_level1' template with this then it should take care of the problem.
</tbody>
<tbody>
<tr>
<td colspan="2" class="alt1" align="$stylevar[left]">
<table border="0" cellpadding="0" cellspacing="0" align="$stylevar[left]" width="100%">
<tr>
<td><img alt="" border="0" src="$stylevar[imgdir_statusicon]/forum_$onoff.gif" /></td>
<td><img alt="" src="$vboptions[bburl]/$vboptions[cleargifurl]" width="9" /></td>
<td width="100%"><b><a href="browselinks.php?$session[sessionurl]c=$cats[catid]">$cats[title]</a></b>
<if condition="$vba_options['links_showcatowner'] AND $cats['catuserid']">
<div class="smallfont">(<a href="member.php?$session[sessionurl]u=$cats[catuserid]" rel="nofollow">$cats[username]</a>)</div>
</if>
<div class="smallfont">$cats[description]</div>
<if condition="$show['subscribe_options']">
<div class="smallfont">
[<a href="misc.php?$session[sessionurl]do=unsubscribe&type=dir&c=$cats[catid]&return=subscriptions">$vbphrase[unsubscribe_from_this_category]</a>]
</div>
</if>
$subcatbits
</td>
</tr>
</table>
</td>
<td class="alt2" nowrap="nowrap">
<if condition="$cats['lastlinkid']">
<span class="smallfont"><b><a href="showlink.php?$session[sessionurl]do=showdetails&l=$cats[lastlinkid]">$cats[lastlinktitle]</a></b><br />
$vbphrase[by]
<if condition="$cats['lastlinkuserid']">
<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$cats[lastlinkuserid]" rel="nofollow">$cats[lastlinkusername]</a>
<else />
$vbphrase[guest]
</if>
</span><div class="smallfont" align="right">$cats[lastupdateddate] <span class="time">$cats[lastupdatedtime]</span> <a href="showlink.php?$session[sessionurl]do=showdetails&l=$cats[lastlinkid]"><img alt="" border="0" src="$stylevar[imgdir_button]/lastpost.gif" /></a></div>
<else />
<div align="center">$vbphrase[never]</div>
</if>
</td>
<if condition="$vba_options['links_allowreplies']">
<td class="alt1" nowrap="nowrap">
<if condition="$cats['lastpostdateline']">
<span class="smallfont">
<if condition="!$show['dateonly']">
<strong><a href="showlink.php?$session[sessionurl]do=showdetails&l=$cats[lastpostlinkid]&p=$cats[lastpostid]#post$cats[lastpostid]">$cats[lastpostlinktitle]</a></strong><br />
<if condition="$cats['lastpostuserid']">
<phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$cats[lastpostuserid]" 2="$cats[lastpostusername]" rel="nofollow">$vbphrase[by_x]</phrase>
<else />
$vbphrase[guest]
</if>
<br />
</if>
$cats[lastpostdate] <span class="time">$cats[lastposttime]</span></span>
<a href="showlink.php?$session[sessionurl]do=showdetails&l=$cats[lastpostlinkid]&p=$cats[lastpostid]#post$cats[lastpostid]"><img border="0" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" /></a>
<else />
<span class="smallfont">$vbphrase[never]</span>
</if>
</td>
</if>
<td align="center" class="<if condition="$vba_options['links_allowreplies']">alt2<else />alt1</if>"><span class="smallfont">$cats[linkcount]</span></td>
<if condition="$vba_options['links_allowreplies']">
<td align="center" class="alt1"><span class="smallfont">$cats[postcount]</span></td>
</if>
<if condition="$show['modcolumn']">
<td align="center" class="alt2">$cats[moderator]</td>
</if>
</tr>
Ohiosweetheart
03-01-2007, 02:20 PM
Ok, giving it a go
Ohiosweetheart
03-01-2007, 02:29 PM
This works wonderfully! Only problem being, is that now the forum and subforum gifs are not showing - only red x's. Did you happen to remove them from the code?
Brian
03-01-2007, 04:15 PM
It figures that these little problems are always discovered after a new release. :(
Admin CP => vBa Links Directory => Category Options => Show On/Off Indicators
I'm assuming you have that option turned off, right? Turning it on will show the on/off images for the categories. There *shouldn't* be anything displayed when that option is turned off, but apparently I accidentally removed the <if condition> that controlled these at some point. I've went ahead and applied the fix to the files in the download package here, so if you want to leave that option off to disable the images just download the files from here again, upload the forum/admincp/vbalinks_install.php file, go to it in your browser, and select the option to reinstall your templates. That will add the proper <if conditions>, as well as fixing the problem with the smaller sub-category positioning in level 2 categories. Also be sure to revert your adv_links_categorybit_level1, adv_links_categorybit_level2, and adv_links_categorybit_subcat templates afterwards if you have modified either of those.
Ohiosweetheart
03-01-2007, 06:17 PM
Thanks Brian. You poor guy, you have a thankless job. And I appreciate your efforts so much.
Actually, I've always had that option turned on, as I designed the icons specifically to go with the directory and my skin. So I don't know how it switched to off.
At any rate, all is well now.
Wanna take a look?
http://www.top-vb.com/links/
Now THAT, my friend, looks AWESOME :D
Brian
03-01-2007, 07:32 PM
Lookin' good. :D
Ohiosweetheart
03-01-2007, 07:52 PM
YES, it is. This is exactly what I wanted - thank you for making it happen :)
Eagle Graphix
03-01-2007, 07:59 PM
Worked like a charm Brian. Thanks for the fix.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.