Current location: Hot Scripts Forums » Programming Languages » PHP » some script hacking required (Plz oh Plz)


some script hacking required (Plz oh Plz)

Reply
  #1 (permalink)  
Old 01-10-04, 11:06 PM
Calarus Calarus is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb some script hacking required (Plz oh Plz)

OK I am using a script that greatly resembles the link scripts in CMS's like post-nuke etc and I was just hoping I could find someone that might help me mod it just a bit. I downloaded it from x-dev.de You can look at how I have it installed at http://ax-n.net/link/

and if you goto the link above, the one main thing I am trying to fix is how the categories are laid out. When I add categories they all go down into a vertical line like:

title
desc.

title
desc.

and I would really like it to be laid out 2 to a row like

title title
desc. desc.

title title
desc. desc.

I think this is where the code that needs to be fixed is at. in the index.php, but I am not sure how to add it..

#================================================= =====================#
# html-table filled with the cats & desc's
#================================================= =====================#
?>
<p>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="95%">
<tr valign="middle" align="center">
<td>
<table border="0" cellspacing="3" cellpadding="3" align="center" id="index_main_table" width='95%'>
<tr>
<td align="center">
<?
// read db
$result = MYSQL_QUERY("SELECT * FROM $table_cat ORDER BY '$catorder' ");

//get overall count
$res = MYSQL_QUERY("SELECT * FROM $table_linkdata");
$anzahl = MYSQL_NUM_ROWS($res);

//output
echo "<h4>$listname</h4>\n";
echo "[ ".OVERALL_LINKS_IN_DB." $anzahl | <a href='http://ax-n.net/link/add.php'>".ADD_NEW_LINK."</a> | <a href='http://ax-n.net/link/admin.php'>Admin</a> ]\n";

//cat-output in table
while ($row = MYSQL_FETCH_ROW($result))
{
// count all links in an unique cat
$resc = MYSQL_QUERY("SELECT * FROM $table_linkdata WHERE cat = $row[0]");
$anzcat = MYSQL_NUM_ROWS($resc);
// generate output-tables
echo "<p>\n<tr>\n";
// when not empty show link
if($anzcat != 0) {
echo "<td id='index_cat'>\n<a href='http://ax-n.net/link/view.php?cat=$row[0]'><font size='2'><b>$row[1]</b></a> ($anzcat)</font>\n</td>\n";
} else {
// if empty hide link
echo "<td id='index_cat'>\n<font size='2'><b>$row[1]</b> ($anzcat)</font>\n</td>\n"; }
echo "</tr>\n<td id='index_desc'>\n".ARROW_FOR_CAT_DESC." $row[2]\n</td>\n";
echo "</tr>\n";
}



Thanks for everyone who even looks at this post!
Reply With Quote
  #2 (permalink)  
Old 01-11-04, 01:00 AM
Infinite_Hackers's Avatar
Infinite_Hackers Infinite_Hackers is offline
Coding Addict
 
Join Date: Dec 2003
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Hey, look at this post.


i used it for my download module
Reply With Quote
  #3 (permalink)  
Old 01-11-04, 01:32 AM
Calarus Calarus is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
hmm thanks that helped, but i couldnt seem to get it to mix well with my script here...suppose i shall keep trying =)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lyrics script required xenon Script Requests 7 11-17-04 04:30 PM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
login script required lochie Script Requests 2 03-06-04 07:44 PM
Very specific contacting script required. Simon Script Requests 1 11-17-03 12:25 AM
PHP script required Mickey Job Offers & Assistance 8 09-07-03 03:00 PM


All times are GMT -5. The time now is 08:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.