"thanks post mod" and "hide bbcode mod"

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Postby dcz » Thu Aug 28, 2008 8:13 am

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

The hide bbcode source code, or a link to where it's failling would help out to ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Postby Autinhyeu » Thu Aug 28, 2008 9:11 am

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

Open: viewtopic.php
Find
Code: Select all
// 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: Select all
// 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 ^^!
Autinhyeu
PR0
PR0
 
Posts: 85
Joined: Sat Aug 09, 2008 8:33 am

Postby dcz » Thu Aug 28, 2008 9:14 am

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


The one you clik on ;)

Can't you post or pm your forum's url ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Autinhyeu » Thu Aug 28, 2008 9:27 am

Sorry, link my forum: http://www.autinhyeu.com
But it is not language english :( 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.
Autinhyeu
PR0
PR0
 
Posts: 85
Joined: Sat Aug 09, 2008 8:33 am

Postby dcz » Mon Sep 01, 2008 7:29 am

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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Autinhyeu » Mon Sep 01, 2008 7:36 am

thanks ^^!
This is link to test: http://www.autinhyeu.com/test-t1256.html
Thanks again :oops:
Autinhyeu
PR0
PR0
 
Posts: 85
Joined: Sat Aug 09, 2008 8:33 am

me too

Postby NguyTieuNhan » Thu Jan 08, 2009 5:22 am

Autinhyeu wrote:Oh, sorry...
i have test again, and result is not work.
when i turn off zero dupe -> it work.
when i turn on zero dupe and turn off option strict mode -> not work
i want it work when turn on all ^^!
Thanks you very much :wink:


I have same, help me plz!
IO installed adv phpbb3 mod rewriteV0-4-6, phpBB3 no dupeV0-4-4,phpBB3-SEO-Zero-dupe_V0.4.6
NguyTieuNhan
 
Posts: 13
Joined: Mon Nov 24, 2008 2:42 am

Postby NguyTieuNhan » Sat Jan 24, 2009 4:01 am

help me plz
NguyTieuNhan
 
Posts: 13
Joined: Mon Nov 24, 2008 2:42 am

Re: me too

Postby SeO » Sat Jan 24, 2009 10:04 am

NguyTieuNhan wrote:IO installed adv phpbb3 mod rewriteV0-4-6, phpBB3 no dupeV0-4-4,phpBB3-SEO-Zero-dupe_V0.4.6


First, update these to the latest version ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Previous

Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Baidu [Spider] and 7 guests


 
cron