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  
 
   
"thanks post mod" and "hide bbcode mod"
Goto page Previous  1, 2
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

"thanks post mod" and "hide bbcode mod"Posted: Thu Aug 28, 2008 8:13 am    Post subject: Re: "thanks post mod" and "hide bbcode mod"

I was talking about the thanks link itself. Sorry to ask again, but this will help me a lot to help you out Wink

The hide bbcode source code, or a link to where it's failling would help out to Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Autinhyeu



Joined: 09 Aug 2008
Posts: 36

"thanks post mod" and "hide bbcode mod"Posted: Thu Aug 28, 2008 9:11 am    Post subject: Re: "thanks post mod" and "hide bbcode mod"

Thanks for reply Smile
This is code to combine "Thanks post MOD" and "hide BBcode MOD":

Open: viewtopic.php
Find
Code:
// Check if the topic viewer has posted in a topic
$unhide = false;
if ($user->data['user_id'] != ANONYMOUS)
{
   $sql = "SELECT poster_id, topic_id
      FROM " . POSTS_TABLE . "
      WHERE topic_id = $topic_id
      AND poster_id = " . $user->data['user_id'];

   $result = $db->sql_query($sql);
   $unhide = $db->sql_affectedrows($result) ? true : false;
   $db->sql_freeresult($result);
}


Replace With

Code:
// Check if the topic viewer has posted in a topic
$unhide = false;
$sql = 'SELECT post_thanked
   FROM ' . POSTS_TABLE . '
   WHERE post_id = ' . $post_id;
$result = $db->sql_query($sql);
$post_thanked = $db->sql_fetchfield('post_thanked');
$db->sql_freeresult($result);
if ($user->data['user_id'] != ANONYMOUS)
{
   // If moderator or admin, skip reply check, auto unhide
   if ($auth->acl_get('m_', $forum_id))
   {
      $unhide = true;
   }
   
   else if ($post_thanked > 0)
   {
      $unhide = true;
   }
   else
   {
   $sql = "SELECT poster_id, topic_id
      FROM " . POSTS_TABLE . "
      WHERE topic_id = $topic_id
      AND poster_id = " . $user->data['user_id'];

   $result = $db->sql_query($sql);
   $unhide = $db->sql_affectedrows($result) ? true : false;
   $db->sql_freeresult($result);
   }
}


Thanks again ^^!
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

"thanks post mod" and "hide bbcode mod"Posted: Thu Aug 28, 2008 9:14 am    Post subject: Re: "thanks post mod" and "hide bbcode mod"

dcz wrote:
I was talking about the thanks link itself.


The one you clik on Wink

Can't you post or pm your forum's url ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Autinhyeu



Joined: 09 Aug 2008
Posts: 36

"thanks post mod" and "hide bbcode mod"Posted: Thu Aug 28, 2008 9:27 am    Post subject: Re: "thanks post mod" and "hide bbcode mod"

Sorry, link my forum: http://www.autinhyeu.com
But it is not language english Sad i think you cant understand it (sorry)
you can test at this: http://www.autinhyeu.com/test-phat-t1236.html#p2414
tester account: ID: tester Pass: 123456
with: "Cảm ơn" is "Thanks" ^^!
and content in hide BBcode is: " test SEO MOD"

i hope u can understand ^^!
Thanks you very much.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

"thanks post mod" and "hide bbcode mod"Posted: Mon Sep 01, 2008 7:29 am    Post subject: Re: "thanks post mod" and "hide bbcode mod"

all right, so from what I see here, thanks links ar of this type : -http://www.autinhyeu.com/thanks.php?p=2396&mode=thanks

There is no reason why the zero dupe would make these fail. And as far as I understand your language, clicking on it seems to work.

Your post link seems to have been moved, could you post here a link to where a bbcode hide is in use ?

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Autinhyeu



Joined: 09 Aug 2008
Posts: 36

"thanks post mod" and "hide bbcode mod"Posted: Mon Sep 01, 2008 7:36 am    Post subject: Re: "thanks post mod" and "hide bbcode mod"

thanks ^^!
This is link to test: http://www.autinhyeu.com/test-t1256.html
Thanks again Embarassed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 2 of 2 Goto page Previous  1, 2

Navigation Similar Topics

Jump to: