|
12-13-2004, 02:35 PM | #1 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
Site Map Code
Hi,
I have been looking at the thread on the site map code by Charter as I am very new to PHP I'm not sure where word wraps are appearing in the code on the forum, would it be possible for someone to email me a copy of the code as it should be? Gerald ged DOT bee AT virgin DOT net Thanks |
12-13-2004, 07:42 PM | #2 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
I'm thinking that you may actually not have a problem with word wrapping, due to the most recent upgrade of vBulletin, this forum's software. It now creates scrollable text boxes for code so that word wrapping probably isn't a problem. I'd be happy to verify that for you though if you can post a link to the thread you're referring to.
|
12-14-2004, 07:54 AM | #3 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
|
12-14-2004, 01:42 PM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Just highlight the code, and then copy-paste into a text editor to save.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
12-14-2004, 02:51 PM | #5 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
Thanks,
It runs on for me but I get the following errors Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/warmbell/public_html/site-map.php on line 27 Sitemap Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/warmbell/public_html/site-map.php on line 29 any ideas? |
12-14-2004, 03:01 PM | #6 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Make sure define('PHPDIG_DB_PREFIX','prefix'); matches what is in the PhpDig connect.php file.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
12-14-2004, 03:26 PM | #7 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
Thanks again,
Working okay now, I won't have to do a seperate sitemap anymore, just one thing is it possible for the text shown (page title?) to be more than about 23 characters as the page titles are truncated such as The duck pond at ... Membership Applic... Home Page of Anim... Thanks for a terrific program Gerald |
12-14-2004, 03:49 PM | #8 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Replace:
PHP Code:
PHP Code:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
12-15-2004, 03:30 PM | #9 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
As it is working okay for me now I have just one more question, how would I insert it into an html page so that it would look like it was part of the site? I would like it to look like the site search page is at the moment http://www.animals-in-distress.net/site_search.htm
Gerald |
12-15-2004, 06:55 PM | #10 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Are you asking how to add a phpdig search to another web page? If so, have a look at post #8 in this thread.
|
12-16-2004, 01:42 AM | #11 |
Green Mole
Join Date: Sep 2004
Posts: 19
|
No, I want to add a site map based on the database the code is working okay but I'm not sure how to take my site template and then call the site map php code to display in the middle of the page. I know I'll have to remove the <html><body> and </body></html> tags from charters code but I'm so new I'm foxed as to what to do next.
Gerald |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sleep in the code | davids211082 | How-to Forum | 2 | 05-19-2005 12:22 AM |
Php code in results | 1001studio | How-to Forum | 7 | 12-03-2004 10:42 PM |
Affiliate code | JPSSAU | How-to Forum | 1 | 06-19-2004 06:51 AM |
Code Requests | Charter | Feedback & News | 0 | 02-29-2004 12:45 AM |
Documented code | alivin70 | Mod Submissions | 1 | 10-06-2003 03:34 PM |