<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Main page customization + open link in new window (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Main page customization + open link in new window
#1458
Alex (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Main page customization + open link in new window 1 Year, 5 Months ago Karma: 0  
Hi

First of all I would like to say thank you for this great script. It is not the most user friendly but it's the best I found in terms of what it does. I must say I had zero knowledge in PHP when I started playing with it but I managed to get along up to a point...

I have three little problems I can not solve for now (many to come I guess as I progress with it )
1. on the main page ( http://www.cumpotsa.ro ) I want to add a banner that is also a link to the main page.
I did it using Html because I found really difficult to work with html in a php script. The problem is , as you can see on the site, that when I hoover over the image a grey thing appears (I think it's related to the style of the page )
The banner is there by adding the following line in header.php right before everything:

<a href="http://www.cumpotsa.ro" target="_top"> <img src="http://www.cumpotsa.ro/themes/alex/banner2.gif" align="center" width="446" height="105" border="0"> </a>
<p> &nbsp </p>

Why align centre is in fact left is another mystery for me but I can live with that

2. When I click on a site link in Categories or in What's popular , New etc. it opens in the same page (leaving my site). Only on the Featured Sites it opens in new window. Can I change that?

3.On the Most Popular Search terms the list seams like it's not going to stop. I would like to limit it to the first 10 or 20 popular terms and not to show all of them. I know I can reset it from the admin panel but it's not quite what I had in mind.

Another intresting thing : when I open my site with firefox it looks different than with chrome or IE ; with the last two there is a big space between name of the site and the search box.

If anybody can help me with this issues I would appreciate it but I guess that as it will probably be as usual a job for Dewed - let's all hope he doesn't get bored
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/09/08 12:31 By Alex.
  The administrator has disabled public write access.
#1459
Alex (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Main page customization + open link in new window 1 Year, 5 Months ago Karma: 0  
Problem No.2 solved.
Solution was already on the forum : http://www.dew-code.com/component/option,com_fireboard/Itemid,28/func,view/id,1423/catid,12/

I made a change only on the second line suggested , changing the first results in an error...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1460
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Main page customization + open link in new window 1 Year, 5 Months ago Karma: 9  
# 3

Popular search terms should already be limited to the top 25 terms, to reduce it further, edit
/include/results.php Near line 299. locate
Code:

while($x<25){
You can reduce "25" by 5s, to limit the number of search terms, 20, 15, 10
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1461
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Main page customization + open link in new window 1 Year, 5 Months ago Karma: 9  
Suggest changing this ...

Code:

<a href="http://cumpotsa.ro" target="_top"> <img src="http://cumpotsa.ro/themes/alex/banner2.gif" align="center" width="446" height="105" border="0"> </a> <p> &nbsp </p>
to this
Code:

<div class="logo"> <a href="http://cumpotsa.ro" target="_top"> <img src="http://cumpotsa.ro/themes/alex/banner2.gif" align="center" width="446" height="105" border="0"> </a> </div>
Then you can add to the style.css file to get it how you want. .. You'll need to add 2 new classes, one to handle positioning, and one to handle hover over the image link
Code:

.logo { margin-bottom: 30px; } .logo a:hover { text-decoration: none; }
You could of course add more adjustments, but that should get you started. I am by no means a CSS wizard, so I often test with a program called "Top Style Lite 3" More recent versions of Top Style are available, but the free demo.. is almost too crippled to use, but you may still find it helpful http://www.topstyle4.com/ .
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1462
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Main page customization + open link in new window 1 Year, 5 Months ago Karma: 9  
PS align="center" in an IMG tag does not align the image to the center of the page.

It affects how text to the right of the image will be aligned vertically with the image, hope that makes sense.

You could wrap your HTML with <center> </center>

or use text-align:center; in your new logo class of the style sheet
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1463
Alex (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Main page customization + open link in new window 1 Year, 5 Months ago Karma: 0  
Thanks for your answers.
For the search results I managed to change to 15 results only.

For the part with the banner I did as you suggested (changes both in header.php and style.css)but it didn't fix the problem.
The hovering grey thing is the same as the one you get when you are over a category. I guess the way the page is generated makes the php script stronger than the html...lame explanation
I will try to translate my html code in php style with $html.= and see if it works...or give up the link and leave only the banner.

Anyway you really deserve keeping some of your original ads in the site but I must tell you that after I hit my first million visitors we might have to renegotiate
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008