vBulletin Modifications

bbcode to force thanks

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 09-02-2006, 06:58 PM   #1
vB User
Join Date: Aug 2006
Cobra SA is on a distinguished road

Default bbcode to force thanks
Version: 3.6.x
Hack Category: Mini Mods

Hi,

I am trying to add a bbcode that force the user to post thanks to see the content. To be used with Abe1 post thank you hack.

Anyone can point me to some direction? ;)

Thanks




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 09-02-2006, 08:06 PM   #2
vB User
Join Date: Aug 2006
Cobra SA is on a distinguished road

Default

The author has written a plugin to disable attachements view without posting thanks.

You must first be a registered member to view any code.
I thought maybe it could be used for a bbcode....

Last edited by Cobra SA; 09-02-2006 at 08:34 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 12:14 PM   #3
vB User
Join Date: Aug 2006
Cobra SA is on a distinguished road

Default

anyone investigating the matter?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 12:18 PM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

vision script's one does this.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 01:44 PM   #5
vB User
Join Date: Aug 2006
Cobra SA is on a distinguished road

Default

sure but it's not free :p
And Abe1 post thanks hack is just better IMHO




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 01:49 PM   #6
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Yeah i think it's better to. There was a can't view attachment unless thanked so try looking at that code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 03:25 PM   #7
vB User
Join Date: Aug 2006
Cobra SA is on a distinguished road

Default

Quote:
Originally Posted by rogersnm
Yeah i think it's better to. There was a can't view attachment unless thanked so try looking at that code.
That what I posted above (2nd post). But I don't know how to convert it to bbcode.

The problem with it is ALL attachements must me thanked, I'd rather have one where you can choose whether an attachement must be thanked or not to be viewed.

Maybe by adding a condition that would be possible
example
before !$post_thanks_user AND !$post_thanks_off
adding a condition the post message must contain a certain text string such as "MUST-THANKS"

Last edited by Cobra SA; 09-03-2006 at 05:01 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 05:03 PM   #8
vB User
Join Date: Aug 2006
Cobra SA is on a distinguished road

Default

I tried
($this->post['message'] == "MUST-THANKS")
($this->post['message'], 'MUST-THANKS') > 0)
($this->post['message'], "MUST-THANKS") > 0)
(substr_count($this->post['message'], 'MUST-THANKS') >0)
(substr_count($this->post['message'], 'MUST-THANKS') != null)

none worked




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 05:07 PM   #9
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

in bbcode? conditionals don't work in bbcode.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-03-2006, 05:17 PM   #10
vB User
Join Date: Aug 2006
Cobra SA is on a distinguished road

Default

Quote:
Originally Posted by rogersnm
in bbcode? conditionals don't work in bbcode.
well forget about the bbcode :p
I need the code for attachement fixed so that we can choose which attachement must be thanked and which doesn't need to :p

adding an additional condition shouldn't be hard:
if the post message contain a certain text string (example "must-thank")
then thanks is required

then I can do a very simple bbcode that just add "must-thanks" to the post

please help master coders

Last edited by Cobra SA; 09-03-2006 at 05:43 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
force new users to make a post in a certain forum? BigJohnny General vBulletin Support 47 08-05-2006 04:32 AM
bbcode parse nfo files as png tokenyank vBulletin Modification Requests 8 03-15-2005 10:19 PM


All times are GMT -3. The time now is 10:53 AM.


SEO by vBSEO 3.2.0 RC8 ©2008, Crawlability, Inc. (Patent Pending)