View Full Version : 2-column tableless XHTML/CSS template for phpLD
vkaryl
10-19-2005, 08:04 PM
Download the {non working url removed} and set up using the included READMEFIRST! file.
Released under Creative Commons License; no support is offered, but if you get really stuck email me and I'll see what I can do to help. The link to ByteHaven WebWorks must remain in the footer, and in the CSS file comments.
jminscoe
10-19-2005, 08:44 PM
How hard would it be to convert to 3 column my site is at http://www.jodee.biz/directory but its not coming out right doing it the way I tried.
vkaryl
10-19-2005, 09:11 PM
Well, not that difficult if you're good with the .tpl (xhtml) files and css, otherwise fairly impossible maybe.
I actually have a 3 column I adapted from one of Claire Campbell's setups, here's a {not working and removed} of it, right now I'm moving servers on this domain, so it's not up where it can be accessed online.
Note, please: I am NOT releasing this template! This one is copyrighted to me and this particular domain. If it's something like you were looking for, I would be willing to send you the relevant CSS info, but that's all.
jminscoe
10-19-2005, 09:15 PM
Yes that is what I am looking for as I can redo the colors to blue I am slowly learning and I like the tableless outlook
vkaryl
10-19-2005, 09:43 PM
Okay, email me at vkaryl *at* bytehaven *dot* com, and I'll pull the relevant stuff and send it along.
kickass
10-21-2005, 05:02 PM
Did you remember to post your template on the wiki?
oh, and Jodee, if you're still struggling with this (geez, it's been a couple few weeks now, hasn't it?) the offer still stands. It can be done in a couple days max.
vkaryl
10-21-2005, 08:49 PM
Um. No.... guess I'd better!
This is just what im looking for. Im going to try it out later :)
gustotelmy
11-23-2005, 09:46 AM
great design i used only part of it if thats ok!!
it solved my resizing problem! now the page can be resized and the directory resizes with it!!! :shock: :D
great stuff....
one problem i have though is this:
Active Links - Categories -
they dont show anything.... :cry: :oops: do you know what might be wrong...i didnt know what to do with the link.tpl...
(sorry didnt mean to double post i think this is the right thread...)
vkaryl
11-24-2005, 12:33 AM
Hi gustotelmy -
Sure, this forum's fine. I need a little more info from you though, and also to tell you that until Friday, I'm sort of buried (Thanksgiving Day tomorrow in the states....)
Did you upload link.tpl AND linkpage.tpl to your server? If so, then I need to see your main.tpl in its entirety. You can simply attach it to an email to me at vkaryl*at*bytehaven*dot*com. I'll look it over and try to post back early Friday (well, early for me, don't at all know where you are!)
And yes, it's fine to use only part. The template is anyone's to do with as they wish as long as he adheres to the CC license listed with it.
lipscitz
11-24-2005, 03:54 AM
Looking for a place to just say thanks. To the community as a whole but to vkaryl in particular. {non working url removed}. I can write web pages and I can find my way around a stylesheet but I know almost enough PHP to be dangerous and I know nothing about the templating system Smarty.
I am transitioning my website over from Zope and this app has been a godsend for me. Everything fired up and worked out of the box, I was able to integrate look and feel very quickly thanks to vkaryl. I have some work to do obviously but I am miles ahead of where I thought i would be after a day and a half on the thing.
You guys rock.
Just a quick caveat ... I can't get my records to show correctly on 'Top Hits' and 'Latest Links'. I get a good number when I turn it on on the individual links pages .. but a 0 otherwise. No big thing though, I will keep looking .. I code therefore I am ;-)..
Thanks guys
vkaryl
11-24-2005, 04:14 AM
After the holiday's out of the way, I'm going to be looking over the whole template again; seems to be a few little wonky gremlins I didn't find when testing on my servers for whatever reason. Those are only some of the perils when trying to untable layout code and make valid XHTML/CSS etc. But tabled layout code is so 90s.... *sigh*
I'll see if I can come up with a fix-it for you in the next few days, along with smoothing out a few of the other little rocky spots. And your site looks really great! Edgy - perfect for your uses!
gustotelmy
11-24-2005, 05:35 AM
Content visible to registered users only.
hey thanks a lot vkaryl you are great,
i did upload both tpl to the server... thanks for offereing to look at my script i will send it to you this week... although i think its something simple to do with adding a tag or link somewhere to link to the database for the
Active Links - Categories -
code... i will try more in the meanwhile thanks again you guys are great...
vkaryl
11-24-2005, 05:46 AM
Sounds good, I'll be looking for your email....
gustotelmy
11-24-2005, 08:01 AM
i see the following in main.tpl, is it ok?:
<div id="numbers">
{l}Active Links{/l} - {$stats[0]}
{l}Categories{/l} - {$stats[3]}
</div>
-------------------------------------------------------
I am not sure if calling $stats[0] and $stats[3] is working....
also the script does not respond to changes in admin panel for column#... i was not able to find where to add this or get it to work... :oops:
lipscitz
11-24-2005, 09:51 AM
gustotelmy - I had to make an addition in index.php to get the active links and categories working. I found the answer in this post ...
http://www.phplinkdirectory.com/forum/viewtopic.php?t=470&highlight=categories++stats
in index.php look for
Content visible to registered users only.
right above that put
Content visible to registered users only.
That should do it I think.
hth
kickass
11-24-2005, 11:45 PM
Content visible to registered users only.
This will not work with a tableless layout because it was designed to add table columns to the DEFAULT template- if you use a template where there is no table defined- well, you can't add a column to a nonexistent table.
The way you change the number of columns in the tableless layout is to do it through the css file, by making the category list wider in ems (only works in ems, not in any other type of measurement.) Be careful changing widths though, since css is more fluid than those rigid table layouts so that devices other than traditional computers can access the information, even if it doesn't look quite the same.
gustotelmy
12-05-2005, 02:56 AM
thank you for the information however it doesnt show still
i am not sure what is wrong... i guess the template or main.tpl has something i need to refer to that was missed...
This is a great little template. It's exactly what I was looking for! Thank you vkaryl for allowing use of it.
Two questions:
1. I added adsense code to leftcol.tpl, right where the webhosting ad was in the original template. The script doesn't show. I have no idea why.
2. In my suggest category link mod, the form show on the far right, next to the header bar. Any thoughts on how to correct?
site is {not working and removed}
I've just installed this so the site is still in the construction phase.
Not a huge code guy, but can plod along at a snails pace.
Thanks for any help.
Ok...regarding the post above, I submitted a different banner and it came up correct. I will then assume that google just cannot find the code on the page for some reason. Anyone know why?
Ok...got the google thing worked out.
I had to install {literal}{/literal} tags around the ad. Don't ask me why or what it does....I kiped it from another site! :D
vkaryl
12-09-2005, 02:11 AM
Sorry I'm running a little late here! I had "client from hell" problems again today.... I just hope the so and so PAYS me the rest of what he OWES me!
Yes, anything which relies on js (such as adsense or the js click counter at the bottom of main.tpl) must be enclosed by the literal tagset. And if you want your site to validate, you have to make sure to use the CDATA bits as well (already there in the click tracker - just copy n paste around your adsense js in the same relationship as in the click tracker script).
Now, your other problem, I wil look at it and try to get back to you in the next couple of days. I'm just a "little" buried right now....
Thanks for the kind words....
[Edit: I realize now you're talking about an actual mod to code from someone else when you say the suggest category mod. I've not used it so you may need to start with the person who wrote the mod. If they don't have any thoughts, then post back - I'd probably have to have your whole phpLD install in order to troubleshoot it....]
Thank you. I'll see if they have an answer. That mod was working on the old layout before I installed this template, so just wondered if you had an idea.
I've been looking to find where the script calls for header.png so I can replace it with my own logo, but cannot locate the .tpl file to change it. I had assumed it was header.tpl, but it's not calling for it in there anywhere that I can see.
vkaryl
12-09-2005, 05:23 AM
Hi FB - the call for the header.png is in main.css, in #header....
Thanks...it's been driving me nuts...I've never seen a call for a file out of a css file before, so I never thought to look. :wink:
Content visible to registered users only.
It appears that this is a Firefox/IE issue as it looks fine in IE and not in Firefox.
I also understand now that mods and template mods are almost incompatible as one doesn't have the other in mind in their creation. A conundrum! :wink:
djhomeless
03-03-2006, 02:34 PM
I have a question regarding this template. The raw output still produces a great deal of tables. Does the template not control the output of individual links?
ie when going to a cat page, each link is inside a unique table, which I find terribly inefficient.
Though I'm not sure if that is because of the template, or the core.
Geoffrey
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.