PDA

View Full Version : Links don't display


Tex
02-14-2006, 05:48 PM
My links do not display after you drill down in the categories. It stops right afte the featured links header...and stops...e.g. doesn't display the footer.

http://www.linktotexas.com

David
02-14-2006, 07:02 PM
My first thought is that link.tpl is missing or not being included.

Tex
02-14-2006, 07:05 PM
Thanks David,

It actually is stoping at

Content visible to registered users only.

so the next line that calls those links arn't working..

Content visible to registered users only.

Any Ideas??

David
02-14-2006, 07:20 PM
Well, one method would be to try changing the template files to default and make sure that works. Then basically have to go through the code and figure out what is causing the issue. Believe it or not, I am not an expert in Smarty, but if you are unable to trace it, maybe we can find someone who can. :)

bigdog
02-14-2006, 07:50 PM
Try the smarty debugger to see if that will help you.

To access the debugger, make the following changes:

Content visible to registered users only.


Content visible to registered users only.

I am trying to learn everything that I can. This is what I came up with when I was looking at the smarty documentation. See if you can find some clues.

Good luck,

Bill :D

Tex
02-14-2006, 08:48 PM
Thanks Bill,

I'm not quite sure I know what I'm looking at in the debugger, but I've come to the conclusion that link.tpl will not include.

All other files seem to include fine, but for some reason it will not pull in link.tpl.

I went back to default install and same thing.

:?

bigdog
02-14-2006, 09:09 PM
Hey Tex,

Try this code to see if you have any links.

Content visible to registered users only.

I am wondering if you are actually pulling data from the database. If you are getting output, it is my impression that your templates are working.

See if the code gives you any clues.

Bill

Optimit
02-14-2006, 10:04 PM
Can you post all of the code from main.tpl, or send it to me. I would be happy to take a look at it.

Tex
02-14-2006, 10:41 PM
Thanks again Bill,

Here is a screen shot, it just shot the code back out at me.... :shock:

Content visible to registered users only.

Tex
02-14-2006, 10:43 PM
Optimit here is the code in my main.tpl

Content visible to registered users only.

Thanks

bigdog
02-14-2006, 10:55 PM
Content visible to registered users only.

Tex,

When I inserted the code that I gave you, all I got was a count of the links. So I am not sure how you got all of that output. When you used the debugger did it show that links were being sent to the template?

Maybe Optimit has some ideas,

Bill

Tex
02-14-2006, 11:02 PM
Sorry Bill, I just posted all the code you had in the main.tpl...not the index.php :oops:

I do have links and on the index page I'm getting

Active Links - 22 | Categories - 221

sent back at the bottom.

Optimit
02-14-2006, 11:20 PM
I just used your main.tpl on a different directory, and it worked fine. SO, it is not the main.tpl code. Wierd that even the footer is missing. Doesn't seem like a db issue either. The footer is a imple Include, so it should show up regardless of db problem.

My Suggestion is similar to David's. Make backup copy of your templates folder, then try replacing a couple of the tpl files with originals. I would start with links.tpl, as it could be the problem.

bigdog
02-15-2006, 04:16 AM
Tex,

I checked over your template code and I noticed that you have some extra code that is not in the original version of PHPLD 2.0. This code might be interfering with the process. Try removing the quoted text below and see if that will solve the link problem.

Bill :?:

Content visible to registered users only.

Content visible to registered users only.

Content visible to registered users only.

Tex
02-16-2006, 10:39 PM
I deleted everything and started over and everything is starting to click now.
Thanks for the help and assistance in evaluating the problem guys.

:D

Optimit
02-16-2006, 10:48 PM
sorry we couldnt help more. Odd problem

Tex
02-16-2006, 11:17 PM
OK NEVERMIND got the same issue now..but I think I pinpointed it.


Everything was cool until I edited link.tpl...

all I did was edit the <table> tag by adding additional attributes...as soon as I uploaded it, it stopped working...same error...so I made it back undid the edit and uploaded and still nothing...I deleted that file online, and uploaded a new one I extracted from the zip file and uploaded it and I'm still getting this error...

Why would links stop displaying just because I edited a simple table tag. Obviously this file is causing some issues.

:x

Optimit
02-16-2006, 11:52 PM
Well, I think it depends on what attributes you added. link.tpl is a somewhat delicate file.It is used as an include into an already formatted space, so changing some things, especially things like dimensions or table sizes would give you problems.