![]() |
ok, so you guys want this mod application (by: Logik), to start a "new thread" in a forum of your choice, after a user has submited the application, correct? Here it tis. :)
In mod.php FIND: PHP Code:
PHP Code:
cheers, -Metro. |
BTW, almost forgot. There is also a quick fix, on to size of the "text box", (where your users would type in why they would like to become a mod), via templates. I have inserted a screenshot to show you what I mean.
Anyway, to accomplish this... In your "mod" template- FIND: Code:
<textarea name="message"></textarea> Code:
<textarea rows="17" cols="87" name="message"></textarea> thanks, Metro. |
getting a prase error on the first line:(
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastpos will have a fiddle about with ,thanx for the info |
Had he given the files to Logik as he requested perhaps things could get off to a good start, but doesn't want to do that. I stand as I stated earlier.
|
Funkie, try sending me your mod.php file, and I'll have a look at it. :)
|
will attach it here for you fella
This is the basic mod.php file.I have removed the extra code:) Thanx for the help |
Quote:
thanks, Metro. |
Funkie, ok try this one.
Now, all you'll need to do is to change the $modforum number to the forum of your choice. PHP Code:
thanks, Metro. |
Sorted fella:)
Many thanx.posts into the right forum just the 1 time now:) Is there any way this can be modded to work outside of the forums folder.ie root so it can be used then for outsiders to apply to become a member. Just a thought please dont flame me.lol Big ups to you all for your work on all the mods/hacks Thanx |
Be more spacific. I havnt made a hack in ages. I might can do this for you.
|
if you used it, click install :)
|
I will click install when its added to my live board:)Still testing it right now.
Quote:
Instructions: ==================== 1). Upload mod.php to your forums root. ************************************************* It works fine if the mod.php is in the forum folder. How can you get it to work say from your homepage,if your homepage is in a diff folder than your forums folder. |
Be more spacific before i post what to do.
|
If i understand you right. Just edit your templates, and find, /forums/, and make that the path of the mod.php. Then in the link, config it too. Like this
PHP Code:
|
Fatal error: Failed opening required './global.php' (include_path='') in /home/xxxxxx/public_html/forums/mod.php on line 9
thats what i get if i try to open the mod.php in another folder from the main forum folder I tryed to change the path to the global.php in the mod.php file but then all i get is a blank page:(:( Sorry for all the hassle guys,but its a wicked hack,and i would luv to get it working from outside the forums folder say in my domains root. IE=http://www.yoursite.com/mod.php and not http://www.yoursite.com/forum/mod.php |
Logik, i don't think that users should be able to enter their username and password. This could easily be abused! What would be better, is using a hidden form field with $bbuserinfo['username'], $bbuserinfo['userid'], $bbuserinfo['email']
So these can't be changed, and there's no way of it being abused :). Great work on the hack, thanks. |
Ok. @frankie. Thats because it requirs global.php. To use the header and all. Explain, why do you want this hack in another location?
|
@n9ne, good idea. I didnt even think of that. But too many people have already downloaded it. If you wouldnt mind, if you did this, post your mod.php. :) thanks.
|
The board i was thinking about using it on,is a private closed board.I was going to use the hack on the main website for peeps to fill out then apply to join the board.
As it would then post all the details in a forum,for the other members to vote on,and alert the admins of the new post. Yes i know about the reg page in vb,and adding the users in moderation and all,but like the idea of the posting into the forum. |
Hmm. Anyone wanna help me here. Im not to sure on how to do this. Because it requires global.php..
|
@Logik,
Thanx for the time in replying fella. Its a nice lill hack,many thanx |
Ok. Anything else. I will help you with it.
|
Ho BTW,
/me clicked install |
If you want it posted into a forum, simply add a query to the submit part of the form, where it inserts into the thread and post tables, and you can set the forumid when entering into the thread table, as there's a forumid field I believe. I don't have time to go into detail, but that's the basic outline and should give you a good enough idea.
|
Quote:
I need to know how to call the global.php from outside the forum. thanx for the input anyway. |
require('forums/global.php'); I believe.
|
Fatal error: Failed opening required './global.php' (include_path='') in /home/xxxx/public_html/mod.php on line 9
|
It says failed opening ./global.php ? it should have the directory of your forums before it.
|
ehhe,yup changed the wrong file.
ok done that now all i get is a blank white page no errors?????????? |
I'm not really sure what's wrong, all I know is that require call is what's used in vB to use global.php so I figured it could be used out of vB. Are you sure you've connected to the database and everything?
|
The hack works fine when the mod.php is in the same folder as the vb files,but when i tyr to use it outside of the vb folder,all i get is a blank page now.
Ho well will uninstall it now,many thanx for all your help,and to logik for the hack. Better luck next time :) |
If it's template driven, it might give a blank page...
|
ok next question then how do i pull the templates into it?????or can i not,
|
Explain what you mean.. I dont understand. Sorry.
|
Blank page.. Hmm. I have no idea why its doing that.. Make sure your connected to the DB and all that.
|
Make sure the require code is after <?. And it SHOULD work.
|
PHP Code:
|
I see the problem.. Ok. The mod.php isnt in the forums folder. ITs outside of it. So therefor you have to do,
PHP Code:
|
I tryed:
require('forums/global.php'); and i get the cant open global again,,,,,so i changed it back to require('welcome/global.php'); and the error goes,but all i get is the blank page:( Iam not gonna take up anymore of your time guy's this fine hack was not made to do what i would like. thanx for all your time spend . |
Are you sure that your forums dir is Forums?
|
All times are GMT. The time now is 08:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|