Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
How to add a new table on home page? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: How to add a new table on home page?
#235
jnasta (User)
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Re:How to add a new table on home page? 3 Months ago Karma: 1  
Hi Michelle,

Exactly where on the page you want the new table to be usually determines which file you have to edit to get it there.

Also, when you say the "Home" page, do you mean the "Browse" page where all the top-level categories are listed?

John
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#236
jnasta (User)
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Re:How to add a new table on home page? 3 Months ago Karma: 1  
If you want it on your Add A Site page, try putting it in tables.php (make sure you are editing the one for the right theme) right after:

<!-- Start Form Table -->

For my site I changed it to:

$form_table = "\r\n\t\t<!-- Start Form Table --> <p align=\"center\" class=\"regularText\"><B>All Submitted Links Are Subject To Approval</b></p><p align=\"center\" class=\"regularText\">Please provide a Reciprocal Link by adding the following to your site and indicating the Reciprocal Link URL below.<br />
&lt;a href=\"http://www.YOURSITE.com\"&gt;YOUR SITE NAME&lt;/a&gt;</p>";

Just replace http://www.YOURSITE.com and YOUR SITE NAME.

If anybody knows of any reason not to put it there, please say so.

HTH,
John
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#237
Dewed (User)
Administrator
Posts: 164
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:How to add a new table on home page? 3 Months ago Karma: 6  
technically thats as good as place as any to put it. I've always suggested customizing includes/add.php because to me, that just seems more intuitive, 6 months from now, you could easily find your edits and modify as needed.

Simply, there is more than one right way to do it.. so whatever works for you
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#238
jnasta (User)
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Re:How to add a new table on home page? 3 Months ago Karma: 1  
When I tried to add it to add.php per your previous post the stuff didn't appear on my page.

It's always easy to find your edits if you keep a changelog and/or use advanced find w/ an HTML editing program (I use HomeSite).
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/29 21:41 By jnasta.
  The administrator has disabled public write access.
#239
Dewed (User)
Administrator
Posts: 164
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:How to add a new table on home page? 3 Months ago Karma: 6  
And after re-reading the initial post, I see I missed the mark. Most people seem to want the link back instructions above the ad link form. I must of been coffee deficient that day
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#278
fattymattybrewing (User)
Support Your Local Brewer
Expert Boarder
Posts: 97
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Fatty Matty Brewing Location: Southwestern Wisconsin Birthdate: 1974-11-05
Re:How to add a new table on home page? 2 Months, 3 Weeks ago Karma: 2  
to edit the text on the homepage of your links site, you must edit the HTML portion of the "directory" file. The directory file should be backed up before edits are applied and think of the directory file as an HTML document sandwiched between php code.
 
Report to moderator   Logged Logged  
 
Lifes Too Short To Drink Crappy Beers
fattymattybrewing.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

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