Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post Problem With Button Called "thanks" 
 
hi!

i want that when the users of my forum, push the "thanks" button the bbcode called "HIDE" appears, i really need this,because i don't want that my forum it Fills with useless posts,


i'm sure that someone can help me.

i'm not good in this of forums but i'm better in design


i'm from argentina ...i don't speak english so good!


goodbye!
 



 
JuanseeeSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
an url of your forum?
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
I think that answer will be http://www.kokforos.com/. Again
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
I think so too... but he got the chance to answer  
 



 
TheSteffenSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
resilence.tk or
resilence.110mb.com

bye!

forum is in spanish
 



 
JuanseeeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
It seems that everyone is interested in this function...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
please ..someone answer!


bye
 



 
JuanseeeSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
So, is this resolved? 'cause I want it too.

I dont want a lot of posts with only thanks words
 




____________
Conoce tu lado salvaje: http://www.eseriestv.com/foro/zona-under/

Download your favorite series, apps, games and more at http://www.eseriestv.com
 
obus3000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
i made this with MG's help

in bbcode.php & vietopic.php

finde & replace

Code: [Download] [Hide] [Select]
            if($userdata['session_logged_in'])
            {
                $sql = "SELECT p.poster_id, p.topic_id
                    FROM " . POSTS_TABLE . " p
                    WHERE p.topic_id = $topic_id
                    AND p.poster_id = " . $userdata['user_id'];
                $resultat = $db->sql_query($sql);
                $show = $db->sql_numrows($resultat) ? true : false;
                if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
                {
                    $show = true;
                }
            }


with

Code: [Download] [Hide] [Select]
            if($userdata['session_logged_in'])
            {
                $sql = "SELECT p.poster_id, p.topic_id
                    FROM " . POSTS_TABLE . " p
                    WHERE p.topic_id = $topic_id
                    AND p.poster_id = " . $userdata['user_id'];
                $resultat = $db->sql_query($sql);
                $show = $db->sql_numrows($resultat) ? true : false;
                $db->sql_freeresult($result);

                $sql = "SELECT *
                    FROM " . THANKS_TABLE . "
                    WHERE topic_id = $topic_id
                    AND user_id = " . $userdata['user_id'];
                $resultat = $db->sql_query($sql);
                $show = ($db->sql_numrows($resultat) || ($show == true) )? true : false;
                $db->sql_freeresult($result);

                if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
                {
                    $show = true;
                }
            }


and in bbcb_mg.php

edit this lang line

$lang['xs_bbc_hide_message_explain']
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
Is not working, I get "parse error" Is something wrong with the code?
 




____________
Conoce tu lado salvaje: http://www.eseriestv.com/foro/zona-under/

Download your favorite series, apps, games and more at http://www.eseriestv.com
 
obus3000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
obus3000 wrote: [View Post]
Is not working, I get "parse error" Is something wrong with the code?


nope, it's working fine

attach your modded file please
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
Hi, thanks for your support Zuker.

Here I send you my files:

Note.- Is a new installation in localhost, so there is no previous modifications.

viewtopic.rar
Description:  
Download
Filename: viewtopic.rar
Filesize: 17.63 KB
Downloaded: 148 Time(s)
bbcode.rar
Description:  
Download
Filename: bbcode.rar
Filesize: 21.14 KB
Downloaded: 152 Time(s)

 




____________
Conoce tu lado salvaje: http://www.eseriestv.com/foro/zona-under/

Download your favorite series, apps, games and more at http://www.eseriestv.com
 
obus3000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
in what file and line are u having the parse error?
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
Zuker wrote: [View Post]
in what file and line are u having the parse error?


I get this error:


Parse error: syntax error, unexpected T_VARIABLE, expecting ';' in C:xampphtdocsmypagincludesbbcode.php on line 3316

 




____________
Conoce tu lado salvaje: http://www.eseriestv.com/foro/zona-under/

Download your favorite series, apps, games and more at http://www.eseriestv.com
 
obus3000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Problem With Button Called "thanks" 
 
find

Code: [Download] [Hide]
  1. for($j=0; $j$item['level']; $j++) 


replace with

Code: [Download] [Hide]
  1. for($j=0; $j<$item['level']; $j++) 


inside bbcode.php
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events