no Metatags on some pages - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here.

Reply
 
Thread Tools Display Modes
Old 03-02-2007   #1
Ioannis Freris
 
Join Date: Sep 2006
Posts: 72
Ioannis Freris is on a distinguished road
Default no Metatags on some pages

How can i add metatags on pages like Suggest Category, suggest link, or in all news pages ...
Ioannis Freris is offline   Reply With Quote
Old 03-02-2007   #2
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

Hello Ioannis!

Try to do the following:

[ Open your suggest-category.php, suggest-link.php, news.php ]
[ Add such code ]

PHP Code:
$description 'your meta description';
$keywords 'your meta keywords';

$gDirSmarty->assign('description'$description);
$gDirSmarty->assign('keywords'$keywords); 
[ Save changes ]

I hope it will work In any case please post the result.
Sergey Ten is offline   Reply With Quote
Old 03-02-2007   #3
Ioannis Freris
 
Join Date: Sep 2006
Posts: 72
Ioannis Freris is on a distinguished road
Default

I get

Fatal error: Call to a member function assign() on a non-object in public_html/suggest-link.php on line 20

line 20 is $gDirSmarty->assign('description', $description);
Ioannis Freris is offline   Reply With Quote
Old 03-04-2007   #4
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

Hello Ioannis!

Which version do you use?

Try to use such code :

PHP Code:
$description 'your meta description';
$keywords 'your meta keywords';

$gDirSmarty->assign_by_ref('description'$description);
$gDirSmarty->assign_by_ref('keywords'$keywords); 
Sergey Ten is offline   Reply With Quote
Old 03-04-2007   #5
Mominur Rahman
 
Join Date: Apr 2006
Posts: 64
Mominur Rahman
Exclamation

Quote:
Originally Posted by Sergey Ten
Hello Ioannis!

Which version do you use?

Try to use such code :

PHP Code:
$description 'your meta description';
$keywords 'your meta keywords';

$gDirSmarty->assign_by_ref('description'$description);
$gDirSmarty->assign_by_ref('keywords'$keywords); 
This worked but can I add different meta description and keyword for different news. I want this feature because I will use esyndicat as a article directory rather only link directory.
Mominur Rahman is offline   Reply With Quote
Reply

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


All times are GMT. The time now is 11:55 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources