The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Hi there,
does anyone has a clue if it is hard to hack that? Referring to http://161.58.84.213/forum/showthrea...threadid=19592 I would like to show a default icon only for the first Message in a topic, so that there's no "empty icon" on forumdisplay-view Thanks for any hint, -Tom Show Your Support
|
Comments |
#2
|
||||
|
||||
There is an option in general settings:
Quote:
|
#3
|
|||
|
|||
Yes, I know, but then it shows on every message
I want it only for the first Message in a topic cu, -Tom |
#4
|
|||
|
|||
Does anyone has at least an idea if this could be done at all and has a kind of model if so how?
thx, -Tom |
#5
|
|||
|
|||
ThomasP please show me an example of this and perhaps i can look into getting it working, therefore making my first hack for vB ! Please post a screenshot or a link to your board where this is a problem!
Thanks, Tic Tac |
#6
|
|||
|
|||
Hi
thanks for the answer, Tic Tac! Are you fluent in php? I still am more into perl, but willing to learn... Here is the screen: This is how it looks like if the poster doesn't chose an icon (1st three posts, 4th post with icon). I don't like that empty cells... Now if I chose to include a default icon in the CP, vB does include the default icon in every post - even in threads. -> I want a default icon only for the first post of a thread if the user doesn't chose one. Btw: I saw a lot of people posting this thx, -Tom |
#7
|
|||
|
|||
hmm... it can be done... im just trying to think of something that happens ONLY when the first post is posted in the forum.... if i could figure that out, i could most likely write this hack. no im not all that good with php, but if i get in there and look around i am sure i can get what your wanting! if you could think of anything right off that would help me, please let me know... also if you could refer me to files in which it may be in, that would be great too! i just need to know how to "check" and see if it is the first post in the forum and if it is then display "X-icon". Other Questions follow...
1. Do you want the same icon to be shown whether they choose an icon or not? 2. Do you want this icon to be shown on ALL pages that have a display of threads (i.e. say forum1 has 75 posts and they only display 25 on each page... do you want "X-icon" to appear on every page or just the first one?) Please answer thes questions to the best of your ability to further help me through this situation! Thanks, Tic Tac |
#8
|
|||
|
|||
Hi Tic Tac,
sorry, I have no idea where this is don... Hmm, no if someone choses an icon that's fine, just if a user forgets to chose one, there should be the default posting icon, that would be great. Best would be if the icon would show in the "forumdisplay" pages, so that the effect as seen on the screenshot wouldn't appear anymore... Thanks, -Tom |
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
Eh? Just turn the option on and remove the code from showthread.php that puts in the default icon. You will then get the icon on all the posts on the forumdisplay listing but not when viewing threads. In other words remove this from showthread.php
Code:
if ($showdeficon) { $post[icon]='<img src="{imagesfolder}/icons/icon1.gif" border="0" alt="">'; } |
#11
|
||||
|
||||
oh.
Good idea. vbmoderators, you need an embarassed icon/smilie |
#12
|
||||
|
||||
When you turn this option on, it doesn't put the default icon in the subscribed messages section of the usercp.
|
#13
|
||||
|
||||
A way to do this would be:
1. Turn off the option "Show Default Icon". 2. Go into PHPMyAdmin and change the default for the iconid field in the thread table. The default is ID 1. Or you could use this query through telnet: Code:
SQL-query: ALTER TABLE thread CHANGE iconid iconid SMALLINT (5) UNSIGNED DEFAULT '1' not null |
#14
|
|||
|
|||
Thanks a bunch freddie,
works peferct! *jumpingaroundintheroom* cu, -Tom |
#15
|
||||
|
||||
Wouldn't that cause default icons in all posts of the thread, which was the original problem?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|