The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Posticons exlusive to forums. NO STYLE editing!!! Details »» | |||||||||||||||||||||||||||
Posticons exlusive to forums. NO STYLE editing!!!
Developer Last Online: Jul 2005
This has been done before, but I've yet to see it released here. I was desperate to have this for my forums which has a lot of posticons.
This hack allows you to make posticons useable in only forums you specify. I'm no PHP expert, and I find it amazing how I pulled this off (Had a little help from someone to get it working correctly.), so you won't be able to set the settings through admincp yet. Instead, you have to manually do some changse in your MySQL database for each posticon. Step 1 MySQL First, you'll have to go to the icon table in your MySQL database. Create a field called iconforums in the table. Then edit each posticon (phpMyAdmin you'll have to click on the BROWSE tab in the table to edit the fields.), add the forumids to the iconforums field, seperating each forumid with only a comma. Step 2 Now you'll have to edit your includes/functions_newpost.php. FIND Code:
SELECT iconid, iconpath, title Code:
SELECT iconid, iconpath, title, iconforums FIND Code:
while ($icon = $DB_site->fetch_array($icons)) { Code:
$forumid = $foruminfo[forumid]; $forums = explode(',',$icon[iconforums]); if (in_array($forumid,$forums)) { Code:
eval('$posticonbits .= "' . fetch_template('posticonbit') . '";'); Code:
} Show Your Support
|
Comments |
#2
|
|||
|
|||
Sorry stupid Q but do you have a screenie of this one please.
|
#3
|
|||
|
|||
you know when u create a thread or post?
u have the icons u can use for that thread or post this makes it so some icons will only show up in certain forums and hence can only be used in those forums i have the perfect use for this, a coding forum where there are icons based on what code your thread is about i find people using those icons in off topic :/ thanks |
#4
|
||||
|
||||
Is it possible to do this per style instead of using replacements (which is what I'm currently doing)?
|
#5
|
|||
|
|||
perhaps, i have the wrong format for iconforums?
nothing is showing up perhaps its this line? PHP Code:
PHP Code:
ps, heres the code as u can see its exactly as ur instructions say... PHP Code:
|
#6
|
|||
|
|||
screen shot?
|
#7
|
|||
|
|||
Sorry Jenta, but I'm not really a PHP/MySQL person, so I went into phpMyAdmin and did it all by hand instead of using a query. I don't know if it's the problem, but maybe it's the CREATE part because the icon table already exists?
|
#8
|
||||
|
||||
Not bad yes, but could you put instruction in a .txt file, please
You have no image has to be proposed with this hack also ? |
#9
|
|||
|
|||
Quote:
its only to show the rows and what is in each PHP Code:
can you look at yours and see if its the same? |
#10
|
|||
|
|||
argh, no automerge double post
anyways.... for those wanting an image, heres one straight from this forum these are post icons this hack lets u set which forum each post icon will appear in its the same as setting an icon category that only certain usergroups can use but its forum bases instead of usergroup based here's a scenario that might help some understand lets say you run a decorating forum with different forums one forum is for gardens and stuff you have post icons like - rakes and wheelbarrows then you have another forum about kitchens you have icons like - cups and refrigerators then u have a forum where people talk about everyday life - off topic u dont want the cups, refrigirators, rakes or wheelbarrrow appearing there opps, just say he added some icons nm |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|