vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - vB_Cement (https://vborg.vbsupport.ru/showthread.php?t=148940)

gtsch 06-04-2007 10:00 PM

vB_Cement
 
This is a mod based on a PHPBB mod.

It allows you to 'weigh' threads, give them precedence over others. If you have a lot of stickies, this is very useful. Through edit thread you can set the weight. This has two simple plugins and one template mod to install.

The way it works is simple. By default, all threads are weighted at 0, anything above that will take precedence over the rest that don't have a higher weight.

This is my first modification that I've made, so any feedback is appreciated.

This is compatible with VB 3.6.4 and 3.6.5, it has not been tested on any other versions at this point. It is very simple, so I don't see any issues with other versions being likely.


If you use it, please click INSTALL.:up:

SBlueman 06-05-2007 05:21 AM

Installed and working like a charm!

JD45 06-05-2007 06:27 AM

Interesting, thank you :up:

bugriders 06-05-2007 11:39 AM

Nice hack! Thanks!

It 's working but it seems that my mods can not see the option. Only admin...? How can I change that.

FleaBag 06-05-2007 11:52 AM

This will be really very useful! Thank you!

tei727 06-05-2007 12:02 PM

works great on 3.67. seems like it should be the other way around thought. the bigger numbers on bottom.

dope15gd 06-05-2007 01:48 PM

I'll be keeping my eye on this

rjmjr69 06-05-2007 05:43 PM

I'll be watching this one as well

gtsch 06-05-2007 09:18 PM

Quote:

Originally Posted by bugriders (Post 1261698)
Nice hack! Thanks!

It 's working but it seems that my mods can not see the option. Only admin...? How can I change that.

Should be able to be seen by anyone who has permissions to go to the edit thread page, there's no conditional in the template regarding who can see it.

FreshFroot 06-05-2007 09:50 PM

thanks and nice hack mate!

Koroku 06-05-2007 10:54 PM

Very interesting hack... looking forward to using it :)

nymyth 06-06-2007 12:51 AM

so the thread starter, mod and admins can weigh the thread, how can we make it so only mods and admins have the ability to weigh a thread

Hornstar 06-06-2007 02:13 AM

so is 100 max? or is it on a 1-10 scale?

sounds useful, but wont it confuse members it some threads are below others, even when they are newer?

gtsch 06-06-2007 02:24 AM

Quote:

Originally Posted by nymyth (Post 1262185)
so the thread starter, mod and admins can weigh the thread, how can we make it so only mods and admins have the ability to weigh a thread

Only admins and mods who can go to the editthread page can use this, no normal members.

Quote:

Originally Posted by hornstar1337 (Post 1262221)
so is 100 max? or is it on a 1-10 scale?

sounds useful, but wont it confuse members it some threads are below others, even when they are newer?

The max is pretty dang high, I think I set the SQL field for up to ten figures, doesn't really matter as long as you know what you want to set each thread at.

As far as the second question, that's why you would use discretion with this hack. Only weigh threads that need it, and use it on stickies as you want them ordered, regardless of most recent post.

projectego 06-06-2007 08:34 PM

Sounds interesting... thanks very much! ;)

4x4 Mecca 06-06-2007 09:14 PM

So what does weight do? Keep them at top longer even if other threads are replied to? So if I weighted it say 5, it would stay above threads that have a rating of 1... but when would it start moving down?

SBlueman 06-06-2007 11:29 PM

It would start moving down when you either changed the weight or gave another thread a higher weight.

o0Hubba0o 06-07-2007 12:22 AM

Quote:

Originally Posted by hornstar1337 (Post 1262221)
so is 100 max? or is it on a 1-10 scale?

sounds useful, but wont it confuse members it some threads are below others, even when they are newer?

There was another hack like this somewhere, it's best use is for stickies. For example you can have a sticky that has the forums rules stay at the top all the time instead of getting buried by others. Or you may have a FAQ for a something specific, you have it remain at the top so users can see it first instead of getting buried and not getting seen.

I'll probably putting this in real soon too. Though I think the "weight" concept is kind of funny. It should work like forum order, 0 would be first, then 1, then 2 etc, but that's how the other one worked so maybe it's best to leave it different?

gtsch 06-07-2007 03:26 AM

I would say that the best use would be for stickies and not regular threads. However if you have several threads that you'd like to stay towards the top without having to be stuck, you could use this as well. It's definitely not something for all threads.

gsipromotions 07-25-2007 10:21 PM

This was the perfect mod for my business and works like a charm.

Much appreciated

Censtudios 07-26-2007 01:20 PM

so basically the more their weight, the more on top of the threadlistings they are?

gtsch 07-27-2007 09:02 PM

yes

El Burro 08-01-2007 01:52 PM

Hi I've installed this but can't see where to enter the weighting.

I'm assuming I can edit old Stickies and reorder them?


Thanks
El Burro

Costa del Sol Forums
Costa del Sol Foro

gtsch 08-07-2007 02:16 AM

You enter it in the edit thread screen, you have to have done the template edit for this to work.

agilent 08-17-2007 04:34 AM

I am concerned about abuse of this feature by registered members if they figure out how to use it. Is there anyway I can only let the weight be adjustable by admin?

Hawaiian-TV 11-28-2007 07:24 PM

Quote:

Originally Posted by gtsch (Post 1311587)
You enter it in the edit thread screen, you have to have done the template edit for this to work.

I've logged in as an Admin and still I don't see any text box or place where I can type in sticky weight. The database elements were added by the mod but it just doesn't show up. I'm using vBulletin version 3.6.8 with the security hack number 2 (latest).

What do I have to do to make this work?

Thanks!

dartho 11-28-2007 08:36 PM

this will work well in my news forum - (which is displayed in my VBAdvanced page). Stickies aren't recognised by VBA so I've not previously been abl;e to order news items other than by creation date - thanks :up:

SBlueman 11-28-2007 11:51 PM

This works well with the News Slideshow modification if you want to arrange the order in which the stories appear on the slideshow as well. This is what I did to use it that way:

Quote:

Open the "mod_fpslideshow.php" file. Search for "sticky" (only one instance in the entire file) and replace with "threadweight".

Old line of code:
Quote:

$getnews = $db->query_read("SELECT threadid from ".TABLE_PREFIX."thread WHERE attach !='0' AND forumid in($forumid) ORDER by sticky DESC, threadid DESC LIMIT $limit");
New line of code:
Quote:

$getnews = $db->query_read("SELECT threadid from ".TABLE_PREFIX."thread WHERE attach !='0' AND forumid in($forumid) ORDER by threadweight DESC, threadid DESC LIMIT $limit");
Now use the vb_Cement modification to arrange your sticky news items in the forum you are pulling the news from. Enjoy!

montsa007 03-01-2008 05:20 AM

This one is useful for my forum
Mouse click > Install :p

gsipromotions 01-02-2010 11:23 AM

I love this mod but need to know if it works in vB4
It looks simple for a coder to modify but still beyond my understanding.

Scalemotorcars 01-31-2011 06:22 PM

Finally FFSS is working like it should. Thank you for this hack...

Dimoks 09-18-2011 06:36 AM

I want display weigh public. Is it possible?

letsjoy 11-09-2011 11:50 AM

gtsch, we need it for vb 4.x
thanks :)

DPruett2333 09-26-2012 02:29 PM

Yeah, I could desperately use a fix for 4.2


All times are GMT. The time now is 05:19 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.01266 seconds
  • Memory Usage 1,778KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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