View Full Version : New Threads w/ Sticky Option...
g-force2k2
08-29-2002, 10:00 PM
As requested by The Rock
Its a more simplistic hack (yes small i know >_O)
but all it does is when a user (who has permissions to manage threads) is creating a thread they can be opted to sticky the thread... simple as that :P
To Do?
// +++++++++++++++++++++
File Modifications (4)
Template Modifications (1)
Templates to Add (1)
Well make good use of this feature ;) regards... if you like it i'd be greatful if you clicked install... Enjoy...
g-force2k2
g-force2k2
08-30-2002, 02:05 AM
Yeah just a screenshot of the new newthread template look... Enjoy... not much different just a checkbox :p
g-force2k2
Goldknight
08-30-2002, 02:23 AM
Its work flawless =D
small but useful hack
/me install
hehe, nice little hack
but I would rather keep the code off and do it the manual way :p
Sweet Cheeks
08-30-2002, 06:00 AM
Awesome! :rambo:
Dean C
08-30-2002, 08:22 AM
thanks g-force ! :D (very useful)
yay people like my request, thanks g-force, can it be made so you can make sticky with quick reply and newreply?
FFMania
08-30-2002, 10:01 AM
Wow.....cool hack! :D
g-force2k2
08-30-2002, 12:42 PM
Originally posted by Tha Rock
yay people like my request, thanks g-force, can it be made so you can make sticky with quick reply and newreply?
You can only stick a thread :p but if you'd like i will make an addition that include it in the reply part ;) regards...
g-force2k2
Yeah I mean an option so you can make the thread sticky whily using newreply or quick reply ;)
Could there be two separate instructions for integrating it with Quick Reply from FireFly and Quick Reply from Nakkid? [as I have a test board using Nakkid's and my main board using FireFly's]
I wish I knew PHP :( I'm such an annoyance to hackers here with all my requests, with my 50 hacks installed ;)
I've tried learning PHP but just found it too hard, maybe in a few years when my brain can handle it all :D
Dean C
08-30-2002, 03:08 PM
doesn't work :(
get an error about a unmatching column count in this bit:
find: (3)
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastposter,dateline,iconid, visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$forumid','1','0','".addslashes($postusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$iconid','$visible','$attachcount')");
replace with:
// +++++++ New Thread Sticky Option +++++++
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastposter,dateline,iconid, visible,attach,sticky) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$forumid','1','0','".addslashes($postusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$iconid','$visible','$attachcount','$stickynow' )");
// +++++++ New Thread Sticky Option +++++++
- Mist
Goldknight
08-30-2002, 04:04 PM
Hm? Can you pls post your codes that you got error? I mean the codes that you try to replace.
Dean C
08-30-2002, 05:42 PM
well im running this hack on a massive board... i dont want to fo re-installing unless its bug free cuz we had almost 20 emails complaining about it...
- mist
g-force2k2
08-30-2002, 06:18 PM
Mist did you try doing the changes manually or did you replace the code? regards...
g-force2k2
Dean C
08-30-2002, 09:32 PM
i did it manually.... looked in the file...
g-force2k2
08-30-2002, 09:33 PM
give me the exact coding you entered and i'll fix it if needed... regards...
g-force2k2
Hows the production on integrating this with Nakkid's quick reply hack?
g-force2k2
09-02-2002, 01:33 AM
I have never looked at Nakkid's quick reply hack... linkage please? regards...
g-force2k2
Well I want it for newreply page aswell, here's the link to Nakkid's Quick reply:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=40380
g-force2k2
09-02-2002, 03:15 PM
open newthread_openclose template
find:
<input type="checkbox" name="closeopen" value="yes"> <b>$closeopenstatus This Thread</b><br>
under that add:
<input type="checkbox" name="dosticky" value="yes">
<b>Sticky this Thread?</b><br>
regards...
Edit:: actually there has to be changes to the newreply.php i will get back to you on this one...
g-force2k2
Yeah newreply.php has to be edited, also, is it possible to add a checkbox in on the proper newreply page too? [shouldn't require additional coding as quick reply and newreply use the same file :confused:]
g-force2k2
09-02-2002, 03:35 PM
yeah thats why the newreply.php has to be edited... and yeah it requires some additional coding... but i'll get to that :p regards...
g-force2k2
Austin Dea
09-02-2002, 03:41 PM
Why is this a .php file o_O?
Good hack idea though (Tha Rock) and good hacking g-force ;).
g-force2k2
09-02-2002, 03:46 PM
Originally posted by Austin Dea
Why is this a .php file o_O?
thanks Austin Dea... anyways i use .php files just because i just got used to it:p ever since my first hack all my files are in .php format O_o guess just they way i do things :p regards...
g-force2k2
Austin Dea
09-02-2002, 05:33 PM
I thought it was an installer like vBStats, etc =P.
g-force2k2
09-02-2002, 05:38 PM
Originally posted by Austin Dea
I thought it was an installer like vBStats, etc =P.
don't worry Austin Dea you're not the first person ;) (or the tenth person either for that matter xD) regards man... yeah i will have to start making installers again... i like making them for my hacks that require lots of templates and queries :) regards...
g-force2k2
Austin Dea
09-02-2002, 05:43 PM
Oh I know, that's what made me wonder why it was an installer ;). No worries =P.
Hey guys/gals..
VERY New forum owner here... I know that this is not the proper place to post this, but could someone give me a few tips on what to actually edit the php files with or is notepad what everyone uses?? I am having a really hard time installing any hack and need some serious help.. if anyone wants to pm me or email please feel free.
Thanks
Cyberhouse
09-23-2002, 11:59 AM
Works great :banana: Very nice hack ;)
g-force2k2
09-23-2002, 03:56 PM
Originally posted by K_2
Hey guys/gals..
VERY New forum owner here... I know that this is not the proper place to post this, but could someone give me a few tips on what to actually edit the php files with or is notepad what everyone uses?? I am having a really hard time installing any hack and need some serious help.. if anyone wants to pm me or email please feel free.
Thanks
np K_2 ;) i personally use word pad and just fine the line of coding... if you need any further assistance feel free to drop me a line ;) regards...
g-force2k2
yea I figured it out after I posted. :) Being so new to this and trying to get my forum setup to my liking is gonna take some massive time.. I appreciate everyones help..
Works perfectly on 2.2.8.
Yes I requested the hack but i just got round to installing it ;)
yzztik
01-05-2003, 07:03 AM
Anyone install this on 2.2.9? I cant find this piece of code:
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastposter,dateline,iconid, visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$forumid','1','0','".addslashes($postusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$iconid','$visible','$attachcount')");
XtReMaTriX
01-18-2003, 07:36 AM
very nice... just installed... *click install*
bexie
12-02-2003, 04:29 PM
Quick question before I go destroy my boards (which I tend to do ;))
Is it workin' in 2.3.2? Hope so, this is very useful hack
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.