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?
#222
kayasgranny (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
How to add a new table on home page? 6 Months ago Karma: 0  
Howdy y'all and thank you in advance for any assistance you can give me.

I would like to add an extra table to my home page with a few instructions on how to post a link ie: my link must be posted first and a few other requirements that I have.

I have looked at the tables.php page and just can't figure out what to do or on what page to add the extra text.

I do have a link to a page with my link information and the requirements but experience shows that very few people bother to follow the links.

I hope that someone can lend a hand on this otherwise wonderful links program.

Thank you, Michelle
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#223
Dewed (User)
Administrator
Posts: 220
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? 6 Months ago Karma: 7  
Probbaly best to put this right on the Add site page, right above the form they would fill out.


Edit /include/add.php (make a backup copy just in case)

Locate near line #311

Code:

if(!isset($submit_add) || isset($error)){ $htmlsrc = "<form method=\"post\" action=\"./directory?" . session_name();
Change that to ...
Code:

if(!isset($submit_add) || isset($error)){ $htmlsrc .= "<p>Custom HTML can go here. Remember to \"escape\" any quotes in it</p>"; $htmlsrc .= "<p>A link back is required prior to submitting your site.<br /> Please add the following to your site and indicate that page's URL below.<br /> &lt;a href=http://www.mysite.com&gt;My Site&lt;/&gt; </p>"; $htmlsrc .= "<form method=\"post\" action=\"./directory?" . session_name();
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/22 11:16 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#227
kayasgranny (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:How to add a new table on home page? 5 Months, 4 Weeks ago Karma: 0  
Thank you so much for the quick reply.

I belong to a small business group... QFLEA and will recommend your program to the other members.

It has been so easy to set up and get running.

Thanks again.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#228
fattymattybrewing (User)
Support Your Local Brewer
Expert Boarder
Posts: 105
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? 5 Months, 3 Weeks ago Karma: 3  
kayasgranny wrote:
QUOTE:
I would like to add an extra table to my home page ...just can't figure out what to do or on what page to add the extra text...I do have a link to a page...but experience shows that very few people bother to follow the links.


If you want to add content to the main homepage of your dew-new phplinks site, you can apply the changes to the "directory" file.

You have a few places within the main directory homepage...(1)after the header/top navigation bar and before the main link categories or (2)after the main link categories and before the bottom navigation bar.

(1)if you want to add "your link text" after the header/top navigation bar and before the main link categories look for this code in the "directory" file and add "your link text" in the indicated place:

Code:

<? include("themes/$theme/header.php"); include("themes/$theme/navbar.top.php"); ?> </td> </tr> ADD YOUR LINK TEXT HTML HERE <tr> <td> <? if ($showbanners == "1"){ include("include/banners.php"); } ?>
(2)If you want to add "your link text" after the main link categories and before the bottom navigation bar, look for this code in the "directory" file and add "your link text" in the indicated place:
Code:

ADD YOUR LINK TEXT HTML HERE include("themes/$theme/navbar.bottom.php");
Hopefully this helps....be warned however, make a copy/backup of your original "directory" file before you apply changes and remember these are instructions to add text to the main links site homepage.
 
Report to moderator   Logged Logged  
 
Lifes Too Short To Drink Crappy Beers
fattymattybrewing.com
  The administrator has disabled public write access.
#232
jnasta (User)
Senior Boarder
Posts: 70
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? 5 Months, 3 Weeks ago Karma: 1  
I tried putting some code in my add.php in that spot but nothing showed up on my Add A Site page
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#234
kayasgranny (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:How to add a new table on home page? 5 Months, 3 Weeks ago Karma: 0  
Thanks so much.

I got the text on my add.php page but still can't get it on my home page. I will keep at it.

Michelle
 
Report to moderator   Logged Logged  
  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