vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News (https://vborg.vbsupport.ru/showthread.php?t=53269)

proxyMX 07-12-2003 05:50 AM

what id like to see is how to implement a listbox instead of radios

Talisman 07-12-2003 06:04 AM

Yes, me too!

Erwin, one of these day you're going to feel really ambitious. When that happens, please tell us what coded bits we need to collect from different places so we can set up drop down boxes to display a selection of items that already exist elsewhere.

I'd like to have a drop down box for these things already...

1 - A forum list for people to select the existing forum they want on the moderator application form.

2 - Which country they represent when they register for a tournament (that drop down selection already exists in the country flag hack - but I can't figure out what to use/or how).

3 - Which registered member a person wants to nominate for an award (or something).

4 - Which time zone a player lives in to schedule competition times or a live chat session.

There's more...... but you get the idea. ;)

Oh, one more thing -- how do I make this so the submitted form is emailed or PM'd to multiple addresses/members?

Talisman 07-12-2003 04:51 PM

Hi again,

I don't know if this will help or further confuse anyone trying to customize your own form, but I've got an example of a custom moderator app I made using this hack. You can look at a screenshot of the displays and look at how I customized Erwin's php file and templates.

This is really a combination of two hacks. I expanded on the content found in Lesane's Moderator Application + Rating Hack, but I didn't want the ACP rating system he used and didn't need special database tables. So, basically, I used Erwin's "form" hack to create the same thing. Then we post the form (as a new thread) to a private staff-only forum for review. This lets us post comments in the same thread and then set up a poll to rate the moderator candidate (1 through 5) the way Lesane did in the ACP.

The main thing here is you can see how it looks on the screen, then check the php file and the templates to see how I got it to look that way.

The attached zip contains the php file and templates I'm using, and I'll post a couple of screenshots, to follow.

Please Note - I left the graphics we use in the screenshots to show how you can do this, too, but please don't use them -- I don't own those and they are not public domain graphics. You can make your own if you have that talent, or just get a "person/cartoon with a mirror" and a "person/cartoon with a magnifying glass" image from some clipart library to make something like this for your forum.

Talisman 07-12-2003 04:53 PM

VCup Moderator Application Form (top portion)

Talisman 07-12-2003 04:54 PM

VCup Moderator Application Form (bottom portion)

Talisman 07-12-2003 04:55 PM

VCup Moderator Application Form (Thanks/Confirmation)

Talisman 07-12-2003 04:56 PM

VCup Moderator Application Form (Forum Post)

retsell 07-12-2003 08:59 PM

Quote:

Today at 07:01 AM Erwin said this in Post #158
It's an undefined function error - the gettemplate function could not be found. Makes no sense.

Also, there is no point reposting the whole PHP file out like that for unlicensed users to copy and use. They can't see [php] tag code, but you reposted the whole file in normal text. What was the point of that?

Anyway, like I said, reinstall the hack following the instructions exactly.


I appoligize for posting it, I assumed that it would hide all the code. The reason I posted it was because in other forums (like gentoo) people always ask for it to verify that there were no mistakes.

Anyhow, I've tried removing the templates and the form file and redoing all of them, but still no luck.

What I did find is that if you are not logged in you get this message:

Fatal error: Call to undefined function: show_nopermission() in /home2/cms/public_html/forums/form1.php on line 23

but if I am logged in as administrator:

Fatal error: Call to undefined function: gettemplate() in /home2/cms/public_html/forums/form1.php on line 214

This help any?

I can post screen shots of anything that might help someone find the problem.

Erwin 07-13-2003 12:12 AM

Great job Talisman! :)

I will not be developing any of my vB2 hacks since vB3 is out, and I'm running vB3 on my private forums already.

@ restsell - I still don't get why you are getting the function errors. It makes no sense to me - the only explanation is that the form file is not able to call your forum global.php or functions.php and not getting the functions.

retsell 07-13-2003 03:29 PM

Quote:

Today at 02:12 AM Erwin said this in Post #169
Great job Talisman! :)

I will not be developing any of my vB2 hacks since vB3 is out, and I'm running vB3 on my private forums already.

@ restsell - I still don't get why you are getting the function errors. It makes no sense to me - the only explanation is that the form file is not able to call your forum global.php or functions.php and not getting the functions.


Any reson why? permissions?

Is anyone using this with beta 4? could that be the problem?


All times are GMT. The time now is 07:39 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
  • Page Generation 0.01173 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete