phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
[dupe FAP] Comments no more working

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Patches  » Smartor Album
::  
Author Message
Tormie



Joined: 06 Dec 2007
Posts: 12

[dupe FAP] Comments no more workingPosted: Sat Dec 08, 2007 2:39 pm    Post subject: [dupe FAP] Comments no more working

Hi, after adding the code to album_showpage.php it's no more possible to add comments Sad to a picture, actually I'm using the mod without these lines of code and obviously it doesn't work without it...
in that file:

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( $show_template == 'album_showpage_body.tpl') {
   $uri = $phpbb_seo->seo_req_uri();
   $phpbb_seo->seo_cond(!$userdata['session_logged_in'] && (strpos($uri, "sid=" ) !== FALSE ));
   $start = (isset($_GET['start'])) ? intval($_GET['start']) : ( (isset($_POST['start'])) ? intval($_POST['start']) : 0 );
   $phpbb_seo->seo_start( $start, $board_config['posts_per_page'] );
   $phpbb_seo->page_url = $phpbb_seo->seo_url['smrtpic'][$pic_id] . $phpbb_seo->seo_delim['smrtpic'] . $pic_id . $phpbb_seo->start . ( (!empty($full_size_param)) ? '-full' : '') . $phpbb_seo->seo_ext['smrtpic'];
   if ( $phpbb_seo->do_redir || ( strpos($uri, $phpbb_seo->page_url) === FALSE ) ) {
      $phpbb_seo->seo_redirect( $phpbb_seo->seo_path['smrt_url'] . $phpbb_seo->page_url );
   }
}
// Mozilla navigation bar
$nav_links['up'] = array(
   'url' => append_sid($phpbb_seo->seo_path['smrt_url'] . $phpbb_seo->seo_static['smrtindex']),
   'title' => $lang['Album'],
);
// www.phpBB-SEO.com SEO TOOLKIT END
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

[dupe FAP] Comments no more workingPosted: Sat Dec 08, 2007 8:32 pm    Post subject: Re: [dupe FAP] Comments no more working

it's only this part of the zero duplicate to cause problem with comments. It will be fixed, but, phpBB3 is for now taking all of our efforts.

You can skip this code, and it will work without the zero dupe on comment, which, since we are at it, I do not recommend to use (server load mostly).
I find it better to use the forum for the comments, since you are sure you'll be able to convert these to phpBB3.

I hope you understand, we'll fix this.

_________________
Back to top
Tormie



Joined: 06 Dec 2007
Posts: 12

[dupe FAP] Comments no more workingPosted: Sat Dec 08, 2007 8:51 pm    Post subject: Re: [dupe FAP] Comments no more working

Well SEO, as I already written elsewhere, it's not a problem for me if it's working or not, but I don't understand why you keep the file on download without write clearly, at least in the install file, that it won't work. I passed half the saturday recoding all the files till finding that the problem was not a typo error made by me but that the mod is not working...

So I simply asked to remove this file till the problem is fixed, or write somewhere that it won't work...

It's impossible to write comments in the forum for a picture in the album, or I would have used the attachments instead Question ...

For Phpbb3 I'm not converting anything for 2 or 3 years, till all the mods that I've installed in the site (mainly the album) will be converted and when the first already modded phpBBs will show off... So actually , as a final user, I'm not interested...
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

[dupe FAP] Comments no more workingPosted: Sun Dec 09, 2007 1:08 pm    Post subject: Re: [dupe FAP] Comments no more working

I understand your concern and I'm sorry if you waisted some time, actually all this is all a matter of free time.
I know a warning would be a good thing, but, every time I start thinking about it, I'm frustrated we did not have time to fix this, and I start looking at it, but, I need a working FAP install to test, and I currently do not have any, so this implies more time spent and etc ...

The good thing is, your post here is a good warning Wink

If you're interested, and since you seem to have some coding skill, we can try to find a quick fix.

Could you tell me what is the url of a comment ? the unrewritten one to be redirected ?

It's just a matter of adding the GET var used to the zero dupe filters.

_________________
Back to top
Tormie



Joined: 06 Dec 2007
Posts: 12

[dupe FAP] Comments no more workingPosted: Sun Dec 09, 2007 4:09 pm    Post subject: Re: [dupe FAP] Comments no more working

What I know is that the problem is in the code of the file album_showpage.php
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

[dupe FAP] Comments no more workingPosted: Sun Dec 09, 2007 5:15 pm    Post subject: Re: [dupe FAP] Comments no more working

Could you paste here the url of the guilty link ? Usually, you can copy the url with a right click on the link.

_________________
Back to top
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

[dupe FAP] Comments no more workingPosted: Sun Dec 09, 2007 7:41 pm    Post subject: Re: [dupe FAP] Comments no more working

My apologise for not releasing this publicly. I had found a quick 'fix' that works for my album. After making the comment, the confirmation URL will not be SEO'd and the redircting link will not be SEO'd either, but the zero dupe takes care of this after being redirected. Smile

In album_showpage.php comment line:
//$phpbb_seo->seo_redirect( $phpbb_seo->seo_path['smrt_url'] . $phpbb_seo->page_url );

Peter77 wrote:

album_showpage.php is the culprit with:

Okay I commented this line:
Code:
//$phpbb_seo->seo_redirect( $phpbb_seo->seo_path['smrt_url'] . $phpbb_seo->page_url );


And I am able to comment although album_showpage.php is not 100% SEO'd but it does redirect to it's SEO URL when I am redirected back to the commented picture.


Also, please note this fix to Personal Albums not opening.
Back to top
Tormie



Joined: 06 Dec 2007
Posts: 12

[dupe FAP] Comments no more workingPosted: Mon Dec 10, 2007 7:28 pm    Post subject: Re: [dupe FAP] Comments no more working

Thank you but...

Commenting that line is exactly the same as not installing the whole mod at all... Not only is not SEO'd but it simply doesn't work at all.

If I've a link with the format -http://...album_showpage.php?pic_id=xxx
after commenting that line I go that exact url without rewriting anything, so I've two page with the same content as it was before.

On my portal I've two blocks with the most recent and the random pictures from the album, that is, I think the most common situation where this NO DUPE mod should have a sense in the smartor's album (apart old links). that's why I tried to install this mod
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

[dupe FAP] Comments no more workingPosted: Mon Dec 10, 2007 8:28 pm    Post subject: Re: [dupe FAP] Comments no more working

Not working for a link is not exactly the same as not working at all.

Anyway, try replacing :

Code:
   if ( $phpbb_seo->do_redir || ( strpos($uri, $phpbb_seo->page_url) === FALSE ) ) {


with :

Code:
   if ( ($phpbb_seo->do_redir || ( strpos($uri, $phpbb_seo->page_url) === FALSE )) && !isset($_POST['comment']) && !isset($_POST['rating']) ) {


in album_shopage.php (zero dupe code change).

_________________
Back to top
Tormie



Joined: 06 Dec 2007
Posts: 12

[dupe FAP] Comments no more workingPosted: Mon Dec 10, 2007 9:04 pm    Post subject: Re: [dupe FAP] Comments no more working

Yep, problem solved ! (thumbs up)

Thank you ! Wink
.
.
.
.
.
.


Last edited by Tormie on Tue Dec 11, 2007 12:53 am; edited 3 times in total
Back to top
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

[dupe FAP] Comments no more workingPosted: Mon Dec 10, 2007 11:19 pm    Post subject: Re: [dupe FAP] Comments no more working

Well how about that. Much better... glad you brought it up then. Laughing

Glad your problem was resolved. Smile
Back to top
Tormie



Joined: 06 Dec 2007
Posts: 12

[dupe FAP] Comments no more workingPosted: Tue Dec 11, 2007 12:51 am    Post subject: Re: [dupe FAP] Comments no more working

oh, sorry for the link, didn't want to steal anything (rofl)
Back to top
coyote
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2007
Posts: 72

[dupe FAP] Comments no more workingPosted: Tue Dec 11, 2007 8:16 am    Post subject: Re: [dupe FAP] Comments no more working

Oops...


Yeah I'm interested in this too actually
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Patches  » Smartor Album
Page 1 of 1

Navigation Similar Topics

Jump to: