vBulletin Modifications

need lil' bit help with php code, wrote some myself

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 05-23-2005, 03:49 PM   #1
Junior Member
Join Date: May 2005
yannick is on a distinguished road

Default need lil' bit help with php code, wrote some myself

You must first be a registered member to view any code.

I can't get it working... I have paxtrax's script (with the fastsnap script included) and modified it.

-- fastsnap script: http://vbhackers.com/forum/showthread.php?t=316

I only want to evaluate the statement and include the html if true. I thought I could add this if-statement in the lockdown_showthread template and if it is true include some html text -- else don't.

Also would it be handfull if someone knows the variable for the $username
No clue what's the vB variable for the $username that is watching the topic.
Because at the moment I defined it as $username =yannick;


You must first be a registered member to view any code.
This is the html code that has to be included when true (this is lockdown_showthread).

thanx in advance

yannick



P.S. Three days ago I didn't understand a word php, I'm very new to it. And all above code is looked up on google and modified with common sense. So I really did try!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-23-2005, 04:14 PM   #2
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Well, I don't have much time now, but I'll correct your PHP code.

You must first be a registered member to view any code.
I wasn't sure about your conditional, so maybe you can specify exactly when to show the question?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-23-2005, 04:19 PM   #3
Junior Member
Join Date: May 2005
yannick is on a distinguished road

Default

Quote:
Originally Posted by Deaths
Well, I don't have much time now, but I'll correct your PHP code.

You must first be a registered member to view any code.
I wasn't sure about your conditional, so maybe you can specify exactly when to show the question?


I'm making a forum for the exams where every user can post "questions they had on their exam". And also reply on questions posted by other users.

Of course I don't want people who are lazy... and don't post any question. So I thought, I might build in a ratio system.

Count the threads started by the user (=question he did send in)
Count number of posts he made.

if(questions*3 > posts)
He may view the question (this is when the html is included) else he has to send in new questions


if you don't understand my english, leave a message and i'll try to clear myself

thanx in advance




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
php tcl eggdrop - repost DeadGaze General vBulletin Support 14 03-25-2006 06:20 AM
PHP Vulnerabilities in <= 4.3.9 and <= 5.0.2 Junior Announcements 0 05-11-2005 05:19 AM
Argh! PHP Code not working! Ryan Ashbrook General vBulletin Support 1 08-05-2004 02:37 PM
Mysql / php code help w/ query and totals Hyper General vBulletin Support 6 07-11-2004 11:48 PM


All times are GMT -3. The time now is 04:45 AM.


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