#1 (permalink)  
Old 09-05-2004, 06:24 PM
Registered User
 
Join Date: Sep 2002
Location: UK
Posts: 89
markbrooks
Default Detail header mod

I have created a mod to insert link keywords and classification tags into your detail pages. The classification is ported from the links main category.

First open /themes/default/header.html

within the header insert

<meta name="keywords" content="<%keywords%>">
<meta name="classification" content="<%classification%>">

Once done save this file as /themes/default/detail_header.html

Next

Open detail.php and look around line 26 in 3.2

Code:
Content visible to License Owner only.
Straight after add this

Code:
Content visible to License Owner only.
Lastly and around line 166

Code:
Content visible to License Owner only.

Last edited by markbrooks; 09-05-2004 at 06:39 PM.
  #2 (permalink)  
Old 09-07-2004, 08:24 PM
bestfx's Avatar
Registered User
 
Join Date: Dec 2003
Posts: 28
bestfx
Default Slight addition...

Thanks for the great mod... I simply added a description in the header...

Open a copy of /themes/default/header.html
Save this copy as /themes/default/detail_header.html

Edit your new detail_header.html to include the following lines within the <head></head> section:

Code:
Content visible to License Owner only.
Open detail.php and look around line 26 in 3.2

Code:
Content visible to License Owner only.
(Make sure you get all of those commas inserted in the $query = "select title, keywords, category_id... line above!

Next at around line 166

Code:
Content visible to License Owner only.
The 150 in the $short_desc line above sets the number of characters in the description field... change it to your desired length.
  #3 (permalink)  
Old 11-20-2004, 03:13 PM
Registered User
 
Join Date: Jul 2002
Location: California
Posts: 57
AllenNance is on a distinguished road
Default

[quote=bestfx]Thanks for the great mod... I simply added a description in the header...


Does this work on 3.2?

Allen
  #4 (permalink)  
Old 11-20-2004, 04:56 PM
bestfx's Avatar
Registered User
 
Join Date: Dec 2003
Posts: 28
bestfx
Default Yes it works on 3.2

Yes, it works well in 3.2.
__________________
Code:
             \||/
             |  @___oo
     /\  /\  /(__,,,,|    Wayne Becker
    ) /^\)^\/  _)         (Full Time Obstinate Bugger)
    )   /^\/   _)         Honolulu HI 96816
    )   _ /  / _)
/\  )/\/ ||  | )_)
<  >      |(,,) )__)
||      /    \)___)\
| \____(      )___) )__
\_______(_______;;;__;;;
  #5 (permalink)  
Old 11-24-2004, 10:27 PM
Registered User
 
Join Date: Jul 2002
Location: California
Posts: 57
AllenNance is on a distinguished road
Default

well I thought I was following the directions very closely,

getting this above the header

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/gearshop/public_html/shop/lib/template.lib.php(61) : eval()'d code on line 1


If i install the code for only the classification and keywords, it works, if i attempt to do the revised code with short_description then It fails with this.

Files in the raw attached

any ideas?

allen

Last edited by AllenNance; 12-02-2004 at 06:34 PM. Reason: updating
  #6 (permalink)  
Old 11-24-2004, 11:05 PM
bestfx's Avatar
Registered User
 
Join Date: Dec 2003
Posts: 28
bestfx
Smile Check your code...

Cut and paste is the best way to make these changes. If you want, post your pages as text attachment and I will look at them.
__________________
Code:
             \||/
             |  @___oo
     /\  /\  /(__,,,,|    Wayne Becker
    ) /^\)^\/  _)         (Full Time Obstinate Bugger)
    )   /^\/   _)         Honolulu HI 96816
    )   _ /  / _)
/\  )/\/ ||  | )_)
<  >      |(,,) )__)
||      /    \)___)\
| \____(      )___) )__
\_______(_______;;;__;;;
  #7 (permalink)  
Old 11-26-2004, 12:36 PM
Registered User
 
Join Date: Jul 2002
Location: California
Posts: 57
AllenNance is on a distinguished road
Default still have problems...

"Cut and paste is the best way to make these changes. If you want, post your pages as text attachment and I will look at them."

I thought I did cut and paste, but something went wrong.. here are the two unmodified files....

Thank you for your assistance..

Allen
Attached Files
File Type: txt detail_php.txt.txt (4.6 KB, 10 views)
File Type: txt detail_header.txt (4.3 KB, 11 views)

Last edited by AllenNance; 12-02-2004 at 06:35 PM. Reason: bump
  #8 (permalink)  
Old 12-05-2004, 03:46 AM
bestfx's Avatar
Registered User
 
Join Date: Dec 2003
Posts: 28
bestfx
Default Show me da files...

We learn by doing... show me the files that you have altered... not the files you want me to alter... that ain't happenin'... I'll look at your work and try to help you.
__________________
Code:
             \||/
             |  @___oo
     /\  /\  /(__,,,,|    Wayne Becker
    ) /^\)^\/  _)         (Full Time Obstinate Bugger)
    )   /^\/   _)         Honolulu HI 96816
    )   _ /  / _)
/\  )/\/ ||  | )_)
<  >      |(,,) )__)
||      /    \)___)\
| \____(      )___) )__
\_______(_______;;;__;;;
  #9 (permalink)  
Old 12-05-2004, 11:06 AM
Registered User
 
Join Date: Jul 2002
Location: California
Posts: 57
AllenNance is on a distinguished road
Default

Code:
Content visible to License Owner only.
Sorry about that, I miss read/interpetated your instructions...

ok the files are attached here.

the file, gooddetailphp.txt is the mod by Mark. It seems to work fine.

File detailphp.txt is the expanded mod and it's shows an error at the very top of the page like it's above the detail_header file.

Wayne, I like obstinance, makes us dummys work harder

Thanks for taking some time to assist.

Allen
Attached Files
File Type: txt detail_header.txt (4.7 KB, 14 views)
File Type: txt detailphp.txt (5.7 KB, 10 views)
File Type: txt gooddetailphp.txt (5.0 KB, 14 views)
Closed Thread

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the Category Header and the Detail Display? sissy v5.x 2 05-12-2004 11:18 PM
what does it mean ? lewisw v5.x 10 08-29-2003 03:05 AM
Using a file in the category header field esm v3.2 2 08-05-2003 03:16 AM
Getting lots of header errors shalida v5.x 3 06-24-2003 08:30 PM
Customize header template in V3.1 ? Frank71 Templates 5 06-05-2003 05:02 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 01:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate