The secure CMS.

Welcome to Geeklog
Thursday, September 09 2010 @ 03:23 AM EDT


 Forum Index > Support > Plugin Help New Topic Post Reply
 Forum topic title
 |  Printable Version
Pushkar
 September 17 2009 03:21 AM (Read 2320 times)  
Forum Regular Poster
Regular Poster

Status: offline

Registered: 04/14/09
Posts: 70

Hi! Please help me, how to make a topic name to display as title of page?

Now in any of my forum topics the titles is a name of forum

Thanks


 
Profile Email Website PM
Quote
Dirk
 September 17 2009 03:27 AM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12713

Are you using the latest version of the Forum plugin (2.7.2)? This has been built in for a while now.

bye, Dirk


 
Profile Email Website PM
Quote
Pushkar
 September 17 2009 03:45 AM  
Forum Regular Poster
Regular Poster

Status: offline

Registered: 04/14/09
Posts: 70

Quote by: Dirk

Are you using the latest version of the Forum plugin (2.7.2)? This has been built in for a while now.

bye, Dirk



my forum version is 2.7.1

i need to update it?

If so then I did not find the manual "How to update from version 2.7.1 to 2.7.2"

Thank you


 
Profile Email Website PM
Quote
Dirk
 September 17 2009 04:03 AM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12713

2.7.2 was a security update, so you should update ASAP anyway.

Just to confirm: You want things to work like they do here on geeklog.net? I thought this was already built in by now. If that's not the case, I can look up the required modifications.

bye, Dirk


 
Profile Email Website PM
Quote
Pushkar
 September 17 2009 06:37 AM  
Forum Regular Poster
Regular Poster

Status: offline

Registered: 04/14/09
Posts: 70

i'm sorry, my forum version is 2.7.2. i mean when displaying for that topic for example http://5mv.ru/forum/viewtopic.php?showtopic=14 (it's called "?????? ????? ????????? Schwinn Gremlin) that title of page will showing like "?????? ????? ????????? Schwinn Gremlin"

in the storytext.thtml it is {story_title}

another example: the name of that topic is "Forum topic title" and title too

How do I make it work on my forum?

sorry for my English Embarassed


 
Profile Email Website PM
Quote
cordiste
 September 17 2009 09:03 AM  
Forum Full Member
Full Member

Status: offline

Registered: 01/14/05
Posts: 772

Hello Pushkar,

Seems to be ok, your forum topic name is display as the title of page;

Anyway you've got a nice theme.

::Ben


Support and French community | http://geeklog.fr
 
Profile Email Website PM
Quote
Pushkar
 September 17 2009 09:17 AM  
Forum Regular Poster
Regular Poster

Status: offline

Registered: 04/14/09
Posts: 70

Quote by: cordiste

Hello Pushkar,

Seems to be ok, your forum topic name is display as the title of page;

Anyway you've got a nice theme.

::Ben



no, Cordiste. Still titles of topics is name and slogan of site Banging your head


 
Profile Email Website PM
Quote
cordiste
 September 17 2009 09:34 AM  
Forum Full Member
Full Member

Status: offline

Registered: 01/14/05
Posts: 772

ok you are right.

portalparts forum only display site name and slogan too. Dirk how do you set this function on geeklog.net?

::Ben


Support and French community | http://geeklog.fr
 
Profile Email Website PM
Quote
Dirk
 September 17 2009 15:34 PM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12713

Okay, I had to download a fresh copy of the Forum to see what's wrong. Looks like a bug / oversight ...

In viewtopic.php, search for the first occurence of gf_siteHeader():

PHP Formatted Code
    // Display Common headers
    gf_siteHeader();
    //Check is anonymous users can access

That should read
PHP Formatted Code
    gf_siteHeader($subject);

I think that's everything that's required.

bye, Dirk


 
Profile Email Website PM
Quote
Pushkar
 September 17 2009 16:02 PM  
Forum Regular Poster
Regular Poster

Status: offline

Registered: 04/14/09
Posts: 70

Quote by: Dirk

Okay, I had to download a fresh copy of the Forum to see what's wrong. Looks like a bug / oversight ...

In viewtopic.php, search for the first occurence of gf_siteHeader():

PHP Formatted Code
    // Display Common headers
    gf_siteHeader();
    //Check is anonymous users can access

That should read
PHP Formatted Code
    gf_siteHeader($subject);

I think that's everything that's required.

bye, Dirk



i make it but in the title still displaying site name and slogan Crying or Very sad


 
Profile Email Website PM
Quote
cordiste
 September 17 2009 16:11 PM  
Forum Full Member
Full Member

Status: offline

Registered: 01/14/05
Posts: 772

Something is missing. There is no use of parameter $subject in gf_siteHeader function

PHP Formatted Code

function gf_siteHeader() {
    global $CONF_FORUM;

    // Display Common headers
    if (!isset($CONF_FORUM['showblocks'])) $CONF_FORUM['showblocks'] = 'leftblocks';
    if (!isset($CONF_FORUM['usermenu'])) $CONF_FORUM['usermenu'] = 'blockmenu';

    if ($CONF_FORUM['showblocks'] == 'noblocks' OR $CONF_FORUM['showblocks'] == 'rightblocks') {
        echo COM_siteHeader('none');
    } elseif ($CONF_FORUM['showblocks'] == 'leftblocks' OR $CONF_FORUM['showblocks'] == 'allblocks' ) {
        if ($CONF_FORUM['usermenu'] == 'blockmenu') {
            echo COM_siteHeader( array('custom_showBlocks',$CONF_FORUM['leftblocks']) );
        } else {
            echo COM_siteHeader('menu');
        }
    } else {
        echo COM_siteHeader();
    }
}


::Ben


Support and French community | http://geeklog.fr
 
Profile Email Website PM
Quote
Dirk
 September 17 2009 16:18 PM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12713

Hmm, but that must be it. The only two differences between the file in the 2.7.2 archive and the one running here on geeklog.net are these:

PHP Formatted Code
dirk@prospero:Downloads> diff -b -B -w viewtopic.php viewtopic-patched.php
79c79
<     gf_siteHeader();
---
>     gf_siteHeader($subject);
291c291
<         $showtopicpid = $showtopics;
---
>         $showtopicpid = $showtopic;

The second difference is something else entirely - not sure that piece of code is even used.

Anyone else have more luck?

bye, Dirk


 
Profile Email Website PM
Quote
cordiste
 September 17 2009 16:24 PM  
Forum Full Member
Full Member

Status: offline

Registered: 01/14/05
Posts: 772

Ok it is working with this code

PHP Formatted Code

function gf_siteHeader($subject = '',$headercode='') {
    global $CONF_FORUM;

    // Display Common headers
    if (!isset($CONF_FORUM['showblocks'])) $CONF_FORUM['showblocks'] = 'leftblocks';
    if (!isset($CONF_FORUM['usermenu'])) $CONF_FORUM['usermenu'] = 'blockmenu';

    if ($CONF_FORUM['showblocks'] == 'noblocks' OR $CONF_FORUM['showblocks'] == 'rightblocks') {
        echo COM_siteHeader('none', $subject,$headercode);
    } elseif ($CONF_FORUM['showblocks'] == 'leftblocks' OR $CONF_FORUM['showblocks'] == 'allblocks' ) {
        if ($CONF_FORUM['usermenu'] == 'blockmenu') {
            echo COM_siteHeader( array('forum_showBlocks',$CONF_FORUM['leftblocks']), $subject,$headercode );
        } else {
            echo COM_siteHeader('menu', $subject,$headercode);
        }
    } else {
        echo COM_siteHeader('menu', $subject,$headercode);
    }
}

::Ben


Support and French community | http://geeklog.fr
 
Profile Email Website PM
Quote
Dirk
 September 17 2009 16:24 PM  
Forum Admin
Admin

Status: offline

Registered: 01/12/02
Posts: 12713

Quote by: cordiste

Something is missing. There is no use of parameter $subject in gf_siteHeader function


Thanks, Ben. Here's our version:

PHP Formatted Code
function gf_siteHeader($subject = '') {
    global $CONF_FORUM;

    // Display Common headers
    if (!isset($CONF_FORUM['showblocks'])) $CONF_FORUM['showblocks'] = 'leftblocks';
    if (!isset($CONF_FORUM['usermenu'])) $CONF_FORUM['usermenu'] = 'blockmenu';

    if ($CONF_FORUM['showblocks'] == 'noblocks' OR $CONF_FORUM['showblocks'] == 'rightblocks') {
        echo COM_siteHeader('none', $subject);
    } elseif ($CONF_FORUM['showblocks'] == 'leftblocks' OR $CONF_FORUM['showblocks'] == 'allblocks' ) {
        if ($CONF_FORUM['usermenu'] == 'blockmenu') {
            echo COM_siteHeader( array('custom_showBlocks',$CONF_FORUM['leftblocks']), $subject );
        } else {
            echo COM_siteHeader('menu', $subject);
        }
    } else {
        echo COM_siteHeader('menu', $subject);
    }
}

Hope it works now ...

bye, Dirk


 
Profile Email Website PM
Quote
cordiste
 September 17 2009 16:25 PM  
Forum Full Member
Full Member

Status: offline

Registered: 01/14/05
Posts: 772

Chest-Slam Celebration

::Ben


Support and French community | http://geeklog.fr
 
Profile Email Website PM
Quote
Pushkar
 September 18 2009 04:27 AM  
Forum Regular Poster
Regular Poster

Status: offline

Registered: 04/14/09
Posts: 70

Very Happy Thanks, Ben! Your code is working, but when i used it, the left blocks doesn't displayed.

Thanks, Dirk! Your code is succesfully works! Big Celebration


 
Profile Email Website PM
Quote
Content generated in: 3.45 seconds
New Topic Post Reply



 All times are EDT. The time is now 03:23 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content