PDA

View Full Version : designing my body of the script?


razsports
01-20-2006, 12:58 AM
I am trying to figure out how to change the body of my directory, plus get the footer to match the rest of my site.

On the main page I'd like to make the color the search box in red color
and have all the categories from left to right(lineup) with google adsenses
on the right...........

razsports
01-21-2006, 03:43 AM
Hmm.....

David
01-21-2006, 03:49 AM
Sometimes persistence is neccesary. I can at least tell you about the button in a moment.

(The script is free and limited support is free, but it's not always possible to catch every request, though I know you'll find some very satisfied people here)

David
01-21-2006, 03:55 AM
For the button color, take a look in main.css and find .btn

Here is one possible implementation:

Content visible to registered users only.Content visible to registered users only.Have you tried editing the template files yet?

razsports
01-21-2006, 04:02 AM
Yes, I have tried to edit the templates. Problem is trying to get the coding that makes the categories work and all to work with CSS. I am not sure what to touch or not, plus what coding makes what work.

David
01-21-2006, 04:17 AM
The tempates use Smarty, and are pretty much straight html code except where you see tags like this {}. It may take a little experimenting, but you should be able to paste in some of your html into files like header.tpl and footer.tpl

If you want to create an html example of how you want your directory to look, that might be a good starting point.

razsports
01-21-2006, 04:25 AM
okay, let me send you an example of what I been working on...........give me about a half hour.

David
01-21-2006, 04:30 AM
Ok, fine and just PM me if this thread gets buried again.

razsports
01-21-2006, 09:45 PM
anyone else?

This is so frustrating

David
01-21-2006, 11:39 PM
Post that url where you created a demo of what you wanted.
That might allow people to help you. I don't think it is evident what you need.

razsports
01-24-2006, 05:01 AM
David,

Okay, I still trying to figure out how to edit the body of the directory pages. I think I figured out the search box. However, I am not sure what makes the categories work and what goes with what. When I add CSS to the search box that comes out fine, but the categories do not. It's so confusing.

David
01-24-2006, 05:05 AM
If I do something like I did for this person:
{url removed - no longer active}
would that be good enough?

razsports
01-24-2006, 05:13 AM
I am kind of trying to make the directory page like that with of course my header and footer. The search box in Red. Understand how to edit the header and footer was easy. I like the script, but one suggestion down the road would be to write an article on step by step measure on how to edit the body with CSS or HTML.

David
01-24-2006, 05:21 AM
Ok, it looks like you are at least moving forward now.
Anything now that you are still trying to figure out?
(specifics if possible)

razsports
01-24-2006, 05:28 AM
yes,

I am trying to get my categories on my main page to show up like this page:
{removed}

and when you click on a category the subs pages would show up like this page: {removed}

and the result pages would up like this page: {removed}

I am just not sure what coding goes with what........Like where do I place my CSS and/or HTML. Know what I mean?

David
01-24-2006, 05:43 AM
Ok, so the main page it going to be a good bit different than the category pages. We have a thread on this I know. I'll see if I can find it, or maybe someone will be able to help. I'm very sleepy :lol:

razsports
01-24-2006, 05:48 AM
Yes, The category pages and result pages will be different.

I've played around with the coding well weekend.

I just need some help with getting the category main page, subs and results.
The header and footer are fine, as I've said :)

David
01-24-2006, 03:52 PM
That part is going to take some programming-type work with Smarty. I'm not sure if I am personally prepared to give a qualified response. I know there are some people here that could help. Let's hope this happens. :)

razsports
01-24-2006, 04:08 PM
I've seen others on here design their sites with some help. If I can get the body part setup, i'll be fine. I am going to give this a try again today. If nothing comes out of it, I am just going to go use the script from cplinks or SFM. I know SFM has a real nice directory script that is easy to custormize.

David
01-24-2006, 04:24 PM
Content visible to registered users only.

The biggest issue lies in making one page different than the other within the script. Can you show some examples where this has been done in cplinks or SFM?
(because we are writing the 3.0 version of the software now, and it would be great to see how SFM or cplinks customizes from within the script)

This is pretty much the answer:

Just open up one of the template and put this code in here. Using this IF statements allows you to insert code only for the homepage in any of the template files. Just open up one of the template and put this code in here. Using this IF statements allows you to insert code only for the homepage in any of the template files.
<pre>
{if $category.ID eq 0 and not $p}
<h1> This is the first screen! </h1>
{/if}
</pre>

"eq 0" means the category is 0, and "not $p" prevents anything from appearing on the Top Hits and Latest Links pages. "eq 0" means the category is 0, and "not $p" prevents anything from appearing on the Top Hits and Latest Links pages.

If you like, you could also add information that is relevant only to one category by using this code: If you like, you could also add information that is relevant only to one category by using this code:
<pre>
{if $category.ID eq 1 and not $p}
<h1> This is the for Category 1! </h1>
{/if}
</pre>
If you are using mod rewrite, you may need to look and see the number for the category you wish to edit.

razsports
01-24-2006, 04:51 PM
David,

I'll send those links via pm. I like your script, but trying to edit the body is a real pain. As for rewrite mod, do you mean the mod that gets rid of the ? marks and what not in your URL? If yes, isn't there already that option in this verision? I remember clicking on something.

Let me ask you this :)

Within the coding is there options that place the featured links first and then followed by the exchanged links, plus followed finally by the free links?

mike
01-30-2006, 05:26 AM
hey raz,

if you haven't figured this out yet, try to pm Ap0s7le. That is my site you are referring to and he is the one that set it up.

The colors and everything are pulling from my forums CSS