vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Kind of posts (https://vborg.vbsupport.ru/showthread.php?t=63230)

VBDev 03-30-2004 10:00 PM

Kind of posts
 
Released on : http://www.vbulletindev.net

Complete description of the hack : http://www.vbulletindev.net/forums/h...hack&hackid=46


Demo :
http://www.vbulletindev.net/forums/f...splay.php?f=27


With this hack, you manage in your admincp a complete icon's system for threads in wanted forums. You can activate the option, if it's turned on, when you create a new thread (or edit), you can select an icon which will appear nex to the thread's title in forumdisplay (and search.php)

You can use it to show whick ind of thread it is, humour, info, photos ... by creating icons you want.

Moreover of this, it adds a box in forumdisplay where you can choose according to which kind of icons you want to show threads. If you choose a category, only threads with this icon will be shown

Edit for Boofo : I can now look at your hack ;)

Bad Bunny 03-31-2004 03:03 PM

Quote:

Originally Posted by VBDev
Released on : http://www.vbulletindev.net

Complete description of the hack : http://www.vbulletindev.net/forums/h...hack&hackid=46



With this hack, you manage in your admincp a complete icon's system for threads in wanted forums. You can activate the option, if it's turned on, when you create a new thread (or edit), you can select an icon which will appear nex to the thread's title in forumdisplay (and search.php)

You can use it to show whick ind of thread it is, humour, info, photos ... by creating icons you want.

Moreover of this, it adds a box in forumdisplay where you can choose according to which kind of icons you want to show threads. If you choose a category, only threads with this icon will be shown

Edit for Boofo : I can now look at your hack ;)

Wow. This sounds pretty good. So where exactly does one set what kind of icons are shown? Let's say there is a forum for graphics and photos. Someone attaches a car photo, and uses the car icon I have theoretically provided. In that forum there is a dropdown menu for users to see only car photos?

VBDev 03-31-2004 03:13 PM

You set which forums can have specific icon in the admincp (a bloc was added fot this)

You can activate the option in only 1 or 2 .. or 10 forums
Each forum has its specific icons :)

Boofo 03-31-2004 03:17 PM

Can you make it so the icon would come BEFORE the thread title?

And thanks. I'll be looking forward to the hack we discussed. ;)

VBDev 03-31-2004 03:18 PM

to do it boofo, in the threadbit template, just add the modification before and not after as written in the txt

lasto 03-31-2004 03:18 PM

excellant vbdev i just enquired about this as well on your board

top one

yeah icon before post plz :) be even better

Bad Bunny 03-31-2004 03:19 PM

Quote:

Originally Posted by VBDev
You set which forums can have specific icon in the admincp (a bloc was added fot this)

You can activate the option in only 1 or 2 .. or 10 forums
Each forum has its specific icons :)

I guess I'll just have to install it on my computer to test it out.

lasto 03-31-2004 04:03 PM

nice hack added and works :)

Boofo 03-31-2004 04:17 PM

Now, who wants to help me make some icons for this? ;)

lasto 03-31-2004 04:28 PM

hmm slight problem

i selected one problem and added 6 gifs for testing

everything fine

now i selected another forum - ticked it and added gifs

they dont show up - does this only work for one section only ?

cause if not then they only show in the first one u ticked

VBDev 03-31-2004 04:55 PM

It works fine with multi forums, go and see on vbulletindev.net, installed in 'Hacks Request' and 'Demande de hacks'

Bad Bunny 03-31-2004 05:27 PM

Quote:

Originally Posted by VBDev
It works fine with multi forums, go and see on vbulletindev.net, installed in 'Hacks Request' and 'Demande de hacks'

Ah, that's pretty cool, except that there are no icons in the Hack Request forum...

VBDev 03-31-2004 05:55 PM

I don"t understand, nobody see them
I'm the only one, I don't understand, there is no condition in templates nor in files ...

I don't understand, I look for it

Gizmo 03-31-2004 06:15 PM

Lol, I agree, nobody see them except you :p

VBDev 03-31-2004 07:47 PM

If you have already installed this hack, find :


PHP Code:

    $threads $DB_site->query("
        SELECT 
$votequery $previewfield
            thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
            lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach
            " 
iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed") . "
            " 
iif(!$deljoin", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, type_post 

and replace with :

PHP Code:

    $threads $DB_site->query("
        SELECT 
$votequery $previewfield
            thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid, type_post,
            lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach
            " 
iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed") . "
            " 
iif(!$deljoin", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, 

It should now be OK, try it here :


http://www.vbulletindev.net/forums/f...splay.php?f=27

lasto 03-31-2004 08:04 PM

VBdev not sure wot the above code in your post is for but your hack works fine

ive been messing with it and everything is spot on once i suzzed it :)

Bad Bunny 04-01-2004 12:20 AM

Quote:

Originally Posted by lasto
VBdev not sure wot the above code in your post is for but your hack works fine

ive been messing with it and everything is spot on once i suzzed it :)

Looks good now. Groooooovy! Hmmmm.....Some kind of dropdown menu like the ones already in vb would be extra extra groovy as an alternative to the basic dropdown thingy.

ap0c 04-01-2004 12:33 AM

very nice work on this

VBDev 04-01-2004 04:33 AM

Quote:

Originally Posted by Bad Bunny
Looks good now. Groooooovy! Hmmmm.....Some kind of dropdown menu like the ones already in vb would be extra extra groovy as an alternative to the basic dropdown thingy.

Which mean ? You mean to say that the dropdown box on the forumdisplay doesn't look like other vB dropdown list ?

gmarik 04-01-2004 04:42 PM

Looks promissing...

Bad Bunny 04-01-2004 06:58 PM

Quote:

Originally Posted by VBDev
Which mean ? You mean to say that the dropdown box on the forumdisplay doesn't look like other vB dropdown list ?

no, it sure doesn't. Scroll up to Quick Links or Thread Tools, or even Forum Tools. You'll see that your combo box, while it works, is not in the style of vb3's fancy dropdowns.

lasto 04-02-2004 02:49 PM

Quote:

Originally Posted by Bad Bunny
no, it sure doesn't. Scroll up to Quick Links or Thread Tools, or even Forum Tools. You'll see that your combo box, while it works, is not in the style of vb3's fancy dropdowns.


regardless if the combo box is in style of vb3 who cares - the hack does what it says so well done VBdev

[high]* lasto clicks install[/high]

Bad Bunny 04-06-2004 05:17 PM

Quote:

Originally Posted by lasto
regardless if the combo box is in style of vb3 who cares - the hack does what it says so well done VBdev

[high]* lasto clicks install[/high]

My oh my. Bit touchy, aren't we? I was merely offering a suggestion so that it wouldn't look tacky. I never said the hack doesn't work. When I install and modify the template so it fits better into vb3, I'll share it (so it will save others some work).

Bad Bunny 04-12-2004 07:18 PM

Quote:

Originally Posted by Bad Bunny
My oh my. Bit touchy, aren't we? I was merely offering a suggestion so that it wouldn't look tacky. I never said the hack doesn't work. When I install and modify the template so it fits better into vb3, I'll share it (so it will save others some work).

I went to install this, and found
Quote:

et ajoutez au dessus :

------------------------------------------------------------------------------------------------
// Grog6 TYPE DE SUJETS
No idea what that means...

lasto 04-12-2004 08:14 PM

above m8

add the code above

assassingod 04-21-2004 07:58 PM

Grog, I installed this hack and everytime I make a new thread it duplicates it. Any suggestions? (3.0.1)

HakkieDEV 07-16-2004 04:55 PM

Quote:

Originally Posted by assassingod
Grog, I installed this hack and everytime I make a new thread it duplicates it. Any suggestions? (3.0.1)

I *think* you've placed some of the code in functions_newpost.php beneath/above the code you had to search (while it states in the install file that you have to replace).

spence2 07-27-2004 05:35 AM

Installed perfectly (vB3.03) ... great hack ... thank you for sharing your work!

Pimpboard 11-22-2004 08:24 AM

Why not just create a set of post icons to do this?

red_baron2000 01-09-2005 05:56 PM

why posting a frenchy coded hack while 100% are using english can't understand.! thanks tho.

Linux 06-26-2005 02:37 PM

Thanks for this nice hack

But ! :( I need a help to make choosing "Kind of posts" is a must. so if the user did not chose any provided kind he will get an error just like if he has forgotten writing a title in the subject field.

Thanks inadvance for the very kind person who will help me to make it work just like the way I want :)


All times are GMT. The time now is 06:59 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.01174 seconds
  • Memory Usage 1,810KB
  • 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_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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