Gossamer Forum
Home : Products : Links 2.0 : Customization :

Sponsor Links or Featured Links

Quote Reply
Sponsor Links or Featured Links
How can have like a recommended link that it at the top of each category?
Quote Reply
Re: [LordStryfe] Sponsor Links or Featured Links In reply to
Priority Logo Mod, leaving off the logo part. It is attached to this thread:

http://www.gossamer-threads.com/...i?post=231125#231125

The changes you need would be to leave off this,

Graphic => [14, 'alpha', 40, 75, 0, '', ''],
Gwidth => [15, 'alpha', 5, 5, 0, '', ''],
Gheight => [16, 'alpha', 5, 5, 0, '', ''],

...but keep this,

Priority => [14, 'alpha', 0, 5, 1, 'No', 'No|Yes']

Keep the numbers in sequence!
Make no changes to your link.html

You will then need to add a new field with a default of 'No' to your links.db file, by adding a pipe delimiter and the word 'No' (|No) to the end of every line. Next go through and put a 'Yes' in that field for whichever links you want to be on top.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Sponsor Links or Featured Links In reply to
CGI ERROR ========================================== Error Message : fatal error: syntax error at /home/wstw/public_html/cgi-bin/admin/links.def line 38, near "Priority" syntax error at /home/wstw/public_html/cgi-bin/admin/links.def line 86, near "Priority" Compilation failed in require at admin.cgi line 55. Script Location : admin.cgi Perl Version : 5.008001 Form Variables ------------------------------------------- Environment Variables ------------------------------------------- AUTH_TYPE : Basic DOCUMENT_ROOT : /home/wstw/public_html GATEWAY_INTERFACE : CGI/1.1 HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* HTTP_ACCEPT_ENCODING: gzip, deflate HTTP_ACCEPT_LANGUAGE: en-us HTTP_CONNECTION : Keep-Alive HTTP_COOKIE : lastactivity=1117727572; lastvisit=1117681385; iBMemberID=76-1075606060; iBPassWord=43a526218eaddf002b7d24e62366bc13; skin=Default; lang=en; fPrefs=13%3A30%3ATOPIC_LAST_DATE%3AZ-A%3A0; webmailrelogin=no; webmailsession=IO62xXYq22hK1gdgsuJeHvhbZslcoIj7LfQbk9gw5cZZRjFhzs6kWlLGLnRrmNK_; SQMSESSID=8686e5d793d9ca76894b8320c9411032; PHPSESSID=6ad044b634d7d7dfa6a2724260ce0b0a; cprelogin=no; SMFCookie10=a%3A3%3A%7Bi%3A0%3Bs%3A1%3A%221%22%3Bi%3A1%3Bs%3A32%3A%222b6289937af4c707428af0a6d9f2ccf6%22%3Bi%3A2%3Bi%3A1306958394%3B%7D; PHPSESSID=96f61ebee34edb72cf491f2bf0900eab HTTP_HOST : www.wespreadtheword.net HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) PATH : /usr/local/bin:/usr/bin:/bin QUERY_STRING : REMOTE_ADDR : 67.104.175.195 REMOTE_PORT : 61157 REMOTE_USER : wstw REQUEST_METHOD : GET REQUEST_URI : /cgi-bin/admin/admin.cgi SCRIPT_FILENAME : /home/wstw/public_html/cgi-bin/admin/admin.cgi SCRIPT_NAME : /cgi-bin/admin/admin.cgi SERVER_ADDR : 64.91.253.215 SERVER_ADMIN : webmaster@wespreadtheword.net SERVER_NAME : www.wespreadtheword.net SERVER_PORT : 80 SERVER_PROTOCOL : HTTP/1.1 SERVER_SOFTWARE : Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Quote Reply
Re: [LordStryfe] Sponsor Links or Featured Links In reply to
Put a comma at the end of the line of whatever was above where you added the new line in links.def

Whatever => [13, 'alpha', 0, 5, 1, 'No', 'No|Yes'],
Priority => [14, 'alpha', 0, 5, 1, 'No', 'No|Yes']


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Sponsor Links or Featured Links In reply to
and possible look this mod

thanks
- - - - - - - - - -- - - - - -
DirectoryNautica-Italia
http://www.nauticalink.it