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)
-   -   New Threads w/ Sticky Option... (https://vborg.vbsupport.ru/showthread.php?t=42937)

g-force2k2 08-29-2002 10:00 PM

New Threads w/ Sticky Option...
 
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

Vile 08-30-2002 02:53 AM

Nice work, thanks:)

snyx 08-30-2002 03:03 AM

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)

N9ne 08-30-2002 09:48 AM

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

Quote:

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

N9ne 08-30-2002 02:18 PM

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:

Quote:

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($po stusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$i conid','$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($po stusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$i conid','$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

N9ne 09-02-2002 12:38 AM

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

N9ne 09-02-2002 03:09 AM

Well I want it for newreply page aswell, here's the link to Nakkid's Quick reply:

https://vborg.vbsupport.ru/showthrea...threadid=40380

g-force2k2 09-02-2002 03:15 PM

open newthread_openclose template

find:

PHP Code:

<input type="checkbox" name="closeopen" value="yes"> <b>$closeopenstatus This Thread</b><br

under that add:

PHP Code:

<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

N9ne 09-02-2002 03:24 PM

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

Quote:

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

Quote:

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.

K_2 09-20-2002 09:08 PM

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

Quote:

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

K_2 09-23-2002 05:15 PM

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..

N9ne 10-16-2002 06:50 PM

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:

PHP Code:

$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,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


All times are GMT. The time now is 04:43 PM.

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.01346 seconds
  • Memory Usage 1,789KB
  • 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
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete