![]() |
Parse error: parse error, expecting `']''
in showthread.php i got this error............anybody any idea? It works great, just this issue. |
FIXED!
No, i'm not just bumping this great hack :D |
Quote:
|
g-force22 see attach file that is my problem...
i download ur new install file... and another problem i already install ""cumston prefix"" this hack after i installed urs and it cannt work...so can u fix that?? |
How do I make it so that threads that are stuck in the forum don't have this other sticky please?
|
Quote:
You fixed my forumdisplay problem, but it still does not work in showthread. It does not show the links where I can make the thread answered. I sent you a PM, please let me know if you need me to send showthread.php. Many Thanks! Tim |
yeah sorry im didn't realize you were having an issue with the showthread.php file i sent you the fixed file... let me know what happens.. (hopefully i attached the file) sorry about the misunderstanding... regards...
g-force2k2 |
It didn't attach unfortunately. :D
Could you be so kind to resend? Thank you. :) |
Looks like good stuff, I'll install it tomorrow morning as I'm too tired right now... :p
|
OK I installed it, but none of the stuff shows. In the query I put forumid '6,7'. (Without quotes) Should I have put '6 , 7'?
|
I wonder how Tim could place images before the postinginfo, how did you do this Tim (or someone else)?
The images don't show up here in showthread either. |
@ Nuclion:
Had the same problem. I just copied the helpbutton template directly in the showthread template. Now it does show up! Regards, Hp |
Thx a very fine hack.
Run fantastical on my 2.3.0g ;) Gru? CS |
I'm having some trouble getting those sql queries to work. I get a syntax error message for each:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Can't find the code
Code:
<td width="100%"><smallfont color="#EEEEFF" class="thtcolor"><b>Thread</b></smallfont></td> Code:
<td width="100%"><smallfont color="#EEEEFF"><b>$timezone</b></smallfont></td> |
Quote:
kind of glad people bumped this thread up,installed and working fine |
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,9,'Help Forum','HELPforum','1','The forumid of the forum that you want the Forum Help Option to avialable in. (to make available for multiple forums simply seperate each forumid with a comma!)','','15')
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,9,'User Question Answered','HELPdone','<i>[Answered]</i> ','The name of the prefix for thread where the user has been helped!','','16') INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,9,'User Question Unanswered','HELPundone','<i>[Un-Answered]</i> ','The name of the prefix for the thread where the user is awaiting help!','','17') INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,9,'Help Thread Status','HELPopen','0','Close that particular thread once help is provided?','yesno','18') ALTER TABLE thread ADD helpoption smallint(6) NOT NULL DEFAULT '0' got this error when i queried the above Error SQL-query : INSERT INTO setting( settingid, settinggroupid, title, varname, value, description, optioncode, displayorder ) VALUES ( NULL , 9, 'Help Forum', 'HELPforum', '1', 'The forumid of the forum that you want the Forum Help Option to avialable in. (to make available for multiple forums simply seperate each forumid with a comma!)', '', '15' ) INSERT INTO setting( settingid, settinggroupid, title, varname, value, description, optioncode, displayorder ) VALUES ( NULL , 9, 'User Question Answered', 'HELPdone', '<i>[Answered]</i> ', 'The name of the prefix for thread where the user has been helped!', '', '16' ) INSERT INTO setting( settingid, settinggroupid, title, varname, value, description, optioncode, displayorder ) VALUES ( NULL , 9, 'User Question Unanswered', 'HELPundone', '<i>[Un-Answered]</i> ', 'The name of the prefix for the thread where the user is awaiting help!', '', '17' ) INSERT INTO setting( settingid, settinggroupid, title, varname, value, description, optioncode, displayorder ) VALUES ( NULL , 9, 'Help Thread Status', 'HELPopen', '0', 'Close that particular thread once help is provided?', 'yesno', '18' ) ALTER TABLE thread ADD helpoption smallint( 6 ) NOT NULL DEFAULT '0' MySQL said: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO setting( settingid, settinggroupid, title, varname |
installed somehow......but i dont find any options there :(
|
Hmm... try creating it in your /admin/setting.php file. Run it in your browser and do the following steps:
Forum Display Options > click [add setting] Title: Help Forum Variable Name: HELPforum Value 16 Description: The forumid of the forum that you want the Forum Help Option to avialable in. (to make available for multiple forums simply separate each forumid with a comma!) Code to generate option: Display Order: 15 ---------------------------------------------------------------------- Forum Display Options > click [add setting] Title: User Question Answered Variable Name: HELPdone Value: [Answered] Description: The name of the prefix for thread where the user has been helped! (You may use HTML.) Code to generate option: Display Order: 16 --------------------------------------------------------------------- Forum Display Options > click [add setting] Title: User Question Unanswered Variable Name: HELPundone Value: [Un-Answered] Description: The name of the prefix for the thread where the user is awaiting help! (You may use HTML.) Code to generate option: Display Order: 17 ----------------------------------------------------------------------------- Forum Display Options > click [add setting] Title: Help Thread Status Variable Name: HELPopen Value: 0 Description: Close that particular thread once help is provided? Code to generate option: yesno Display Order: 18 ----------------------------------------------------------- That should do it for you. They'll be in the vBulletin Options page. |
wowowo really it worked now on the test forum....but a question if i need to intall on my orginal forum can i follow the same procudure or run mysql queries manually ?
|
I would do whatever steps you did on the test forum since it worked. If it works once, it should work twice.
|
Quote:
|
How do you run a query?
|
i love this hack but i was wondering if any one could help me out on telling me wat i need to do so i can add more options to it like a drop down menu and more selection instead of the "answered" and "unanswered" ones like "repeated question" , "More Help" something like that
|
any plans for a vb3 version of this?
|
Me! make sure that you did not block out the line afterwards.
PHP Code:
Wolfman I will work on a port to vb3. Cheers, g-force2k2 |
$helpoption = iif($foruminfo[forumid] == $HELPforum,'0','');
shouldn't this be $helpoption = iif($foruminfo[forumid] == $HELPforum,'0','1'); to set if the thread is specified? anyway i can't make it to work... it doesn't show up... i'll have a look later |
the vars
$HELPforum $HELPundone $HELPdone (which come from the db table setting) aren't available in forumdisplay.php that's why the prefix isn't shown.... the rest works how can we make them available? |
ok you have to go to the control panel and save your vbulletin options :)
that way the new setting is loaded :) |
one last thing:
Note: If you want to add an image (button) instead of the word link simply replace '[ Thread Helped ]' with: <a href='{imagesfolder}/image_name_here.gif' border='0' alt='Thread has been helped!'> Replace 'image_name_here' with the image file name and place the image in your images folder! the "<a href" needs to be an "<img" tag <img src="{imagesfolder}/image_name_here.gif" border="0" alt="Thread has been helped!"> |
Quote:
Hi g-force2k2, I was currious if you were still thinking about porting this to VB3? I am working to move my community over, and I really liked having this hack in VB2 in my help forum, and I would like to use it in VB3 because I think it is that good of a hack :-) Thanks! -JGM |
Quote:
And can you replace the text by icons? |
Quote:
|
All times are GMT. The time now is 05:54 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:
|