Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
SpaceMonkey
Worker
Worker



Joined: Apr 30, 2005
Posts: 170

PostPosted: Sat Apr 15, 2006 3:40 am Reply with quote

I'm trying to do something else now.. I've had some success, learned some stuff, and become frustrated that I can't do what I want to do now.

Basically I want to make a more obvious "Download this file now" type link in the downloads modules. I've tried creating a new CSS style for links called "alignright"... Aside from the fact that I haven't gotten it to align anything right yet (I've managed to get it to change font size and color, I'm leaving the align right part at the moment) I can't get the darn link to link to the download. Instead it's just linking to the page! This is the code I've been working with:
Code:


        echo "<a href=\"modules.php?name=$module_name&amp;d_op=getit&amp;lid=$lid\">$title</a>"; /* This is the d*** title of the download with the link included */
        echo " | <a href class=alignright\"modules.php?name=$module_name&amp;d_op=getit&amp;lid=$lid\">$title</a>"; /*this is my stupid experiment, my next thought is that I have to find the download link method on the page where it doesn't name the download in order to work out how to do this properly*/
   newdownloadgraphic($datetime, $time);

Now for some reason one of these links to the right one and the other doesn't.. Any ideas?

I'm going to keep working at it...

You can see the place I want to have the link to the download.. It says "I'm working on this"....

WHY WON'T IT WORK!!!... I don't normally shout.. I'm going to bed..
 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Apr 15, 2006 4:15 pm Reply with quote

Your second line isn't valid. You have not formatted the anchor tag appropriately. maybe something like this:

Code:


        echo " | <a href=\"modules.php?name=$module_name&amp;d_op=getit&amp;lid=$lid\" class=\"alignright\">$title</a>";


However, I am really not understanding what you are trying to do with the align right thing. You may need to use a table with td tags to separate things out more or place on a separate line and use a < div > tag to align it to the right.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©