Check today's New Posts or your PMs

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet
 Digg this topic · Save to del.icio.us · Slashdot It · Post to Technorati · Post to Furl · Submit to Reddit · Share on Facebook · Fark It · Googlize This Post · Add to ma.gnolia · Tag to Wink · Add to MyWeb · Add to Netscape
Reply to this topicStart new topic
Dynamic meta tags outside of topics
admin
post Feb 10 2008, 08:57 AM
Post #1


Administrator
***

Group: Root Admin
Posts: 5,130
Joined: 25-January 07
Member No.: 1



With CommunitySEO 1.2.0, when viewing topic pages the keywords and description meta tags can be dynamically set (if configured to do so in the Admin CP). However, you can use the same functionality in other sections of your site, such as in your Gallery or Blog (or in any other third party modification you have installed!).

In order to do so you just have to edit the appropriate files and pass the appropriate data. We cannot account for every modification out there (though if you find one and make this change for a third-party component or modification, by all means feel free to share your changes for others by replying to this FAQ), however below you will find an example for your IP.Gallery system, if installed. This should help you understand how to set dynamic meta tags for various areas of your site using CSEO.

We would want to set the dynamic meta tags for Gallery image view pages using the image caption and image description fields. To do this we'll need to edit /sources/components_public/gallery/img_view.php.

In this file find

CODE
        if( ! $this->data['id'] )
        {
             $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'img_not_found' ) );
        }


This code in the file comes right after pulling the image data from the database (it is checking if the image was found).

Immediately afterwards we can add

CODE
        $this->ipsclass->seo->sort_metaTags( $this->data['description'], $this->data['caption'] );


What we are doing here is calling the "sort_metaTags" method of CommunitySEO and passing the description and title to it.

CommunitySEO will remove punctation and HTML tags, and set the keywords and descriptions based on the data passed to it.

You can do the same thing from any page you wish to by simply passing the description and title for CSEO to inspect. Starting in 1.2.0, the changes to /sources/action_public/topics.php will do this for topic view pages for you.
Go to the top of the page
 
+Quote Post
admin
post Sep 2 2008, 05:37 AM
Post #2


Administrator
***

Group: Root Admin
Posts: 5,130
Joined: 25-January 07
Member No.: 1



For Invision Download Manager

In sources/components_public/downloads/display.php find

CODE
        $this->ipsclass->DB->cache_add_query( 'get_monster_file', array( 'file_id'        => $file_id    ), 'sql_idm_queries'    );
        $this->ipsclass->DB->cache_exec_query();

        $file = $this->ipsclass->DB->fetch_row();


add afterwards

CODE
$this->ipsclass->seo->sort_metaTags( $file['file_desc'], $file['file_name'] );
Go to the top of the page
 
+Quote Post
MadBox
post Nov 19 2008, 11:34 PM
Post #3


Advanced Member
***

Group: Customers
Posts: 70
Joined: 27-February 08
Member No.: 834



and for base forum like http://communityseo.com/forums/IPB-SEO-FAQ...Tricks-f14.html
i have so many forums and put 1 to 1 is realy pain in the ass


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Collapse

> Links to this thread

Page Date Hits
IPB SEO FAQs, Tips & Tricks - CommunitySEO 10th February 2008 - 02:56 PM 1
communityseo dynamic meta - Google Search 4th April 2008 - 03:59 AM 1
communityseo - Live Search 8th May 2008 - 09:13 AM 1
Dynamic Meta Tags IPB - Ïîèñê â Google 12th May 2008 - 12:35 PM 1
communityseo - Live Search 12th June 2008 - 10:28 PM 4
IPB SEO FAQs, Tips & Tricks - CommunitySEO 1st August 2008 - 11:15 AM 1
IPB SEO FAQs, Tips & Tricks - CommunitySEO 18th July 2008 - 02:06 PM 1
how to make dynamic meta tags - Google Search 23rd July 2008 - 03:09 AM 1
communityseo - Live Search 8th October 2008 - 10:08 AM 3
dynamic web gallery with meta search - Google-sökning 5th November 2008 - 02:39 AM 1
php code for dynamic meta tags - Google Search 7th November 2008 - 07:04 PM 1
ipb dynamic meta tags - Google Search 9th November 2008 - 05:26 PM 1
dynamic news date for meta tags - Google Search 10th November 2008 - 07:25 AM 1
dynamic metatag titles seo - Google Search 10th November 2008 - 08:49 AM 1
php dynamic date meta tag - Google Search 10th November 2008 - 11:56 AM 1
dynamic meta tags 2008 - Google Search 10th November 2008 - 12:28 PM 1
How we can make dynamic meta - Google Search 11th November 2008 - 02:09 AM 1
using meta tag for passing information - Google Search 19th November 2008 - 05:00 AM 1
dynamic last modified date for meta tag - Google Search 20th November 2008 - 12:59 AM 1
dynamic php title meta tag code - Google Search 20th November 2008 - 07:44 AM 1


RSS Lo-Fi Version Time is now: 6th January 2009 - 04:18 PM