Go Back   DevHunters.com l Webmaster Forum - Web Advertising - Web Design - SEO Forums > Webmaster / Coding / Web Design Discussion > Scripts, Mods, and Templates > phpLinkBid

phpLinkBid You can discuss phpLinkBid scripts and misc. in this thread.

Have A Look At Some Of Our Webmaster Related Sponsors!


Script Directory


Advertise Here


Market Leverage


Free Templates

3D Guide-Characters
3D Guide-characters


Advertise Here

Reply
 
LinkBack Thread Tools Display Modes
Old 07-22-2008, 11:27 PM   #1 (permalink)
New Hunter
 

Join Date: Jul 2008
Posts: 7
iTrader: 0 / 0%
Hunter Bux: 0
Tekime is on a distinguished road
Post phpLinkBid META Descriptions MOD

Since there is this great forum here now and many don't have the time to visit our official forums regularly, I wanted to share a simple but great little MOD I added today for phplb.

This is a nice simple MOD that will set META descriptions for categories and links pages. It will add one small SQL query for category pages.

Category descriptions are used for category pages.

Link descriptions are used for link pages.

At the end of `/inc/footer.php` directly before the closing PHP tag ?>, add:
PHP Code:
/** START phpLinkBid META Descriptions MOD **/
if((!empty($this_view)) && ($this_view == 'cat'))
{
    
$sql 'SELECT cat_description FROM ' TBL_CATEGORIES ' WHERE category_id = ' $this_category;
    if((
$rs $db->execute($sql)) && (!$rs->EOF))
    {
        
$tpl->assign('meta_description'getSummary($rs->fields['cat_description'],250));
    }
}
elseif((!empty(
$this_view)) && ($this_view == 'link'))
{
    
$tpl->assign('meta_description''{link_description}');
}
/** END phpLinkBid META Descriptions MOD **/ 
That's it! Nice and simple. This will be included in a future version with improvements like ability to set META tags in admin.

Note: This MOD limits the META description to the first 250 characters of the category description. Modify the line that reads getSummary($rs->fields['cat_description'], 250)to increase/decrease this #.
__________________
phpLinkBid Directory Script
Scriptalicious SEO Scripts
Tekime is offline   Reply With Quote
Reply

Bookmarks

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
Forum Jump


All times are GMT -5. The time now is 10:49 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios