PDA

View Full Version : Cyb - Sticky-Closed-Poll Prefixes


Valter
05-05-2006, 10:00 PM
As written by the author...
This hack is discontinued.

All features are merged into "Cyb - Thread Listing Make-Up".

For all future updates and support please visit this thread:
https://vborg.vbsupport.ru/showthread.php?t=142296

Don't foget to click install to get updates.


Cybernetec
Mar 17. 2007.
-- vBorg Staff


=======
Release of this hack for vB v3.6:
https://vborg.vbsupport.ru/showthread.php?t=122992
=======


Info:
This hack will give you ability to:
-Customize/disable Sticky-threads prefix
-Customize/disable Poll-threads prefix
-Add and customize/disable Closed-threads prefix


Defaults:
Prefix = "Sticky:", Color = red
Prefix = "Closed:", Color = Green
Prefix = "Poll:", Color = magenta

You can use different HTML tags to customize prefixes. You can add pictures, change colors, bold style, italic, strike,... etc. It's very easy to set it up. You'll like this hack ;)


Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options go to: AdminCP > vBulletin Options > Cyb - Sticky-Closed-Poll Prefixes


Versions:
v1.0 - May 06. 2006.
- First Release

v1.5 - May 07. 2006.
- Added: Poll Thread Prefix Options
- Fixed known bugs
- IMPORTANT: because of new functions I changed hack name and id. This means that it's recommended to uninstall old version before installing new one.

v1.6 - May 09. 2006.
- Small bug fixed

v1.7 - Jun 18. 2006.
- Added options to show/hide prefixes
- Codes improved (it's recommended to upgrade because of this)
- There are no any known bugs


Click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=114933) to get support for this hack.


Cybernetec

Valter
05-06-2006, 06:36 PM
Reserved.

PennylessZ28
05-06-2006, 06:52 PM
I really like this, I just installed it. Suprised no one thought of this before. Excellent work brother.

PennylessZ28
05-06-2006, 06:54 PM
Shoulda added a prefix for "Poll" too ;)

Atakan KOC
05-06-2006, 07:01 PM
Nice.....

Ntfu2
05-06-2006, 07:54 PM
Good job,

on a side not whats with everyone all of sudden releasing all these hacks that change the color of stickies and stuff?

Freesteyelz
05-06-2006, 11:10 PM
For one thing, they are functional. :)

Stop
05-07-2006, 08:30 AM
Installed and works fine.
Can you make it also to color Normal Threads ???

PS. I feel like I sent this post before but can't find it. Any idea Admins ?

Valter
05-07-2006, 09:36 AM
Installed and works fine.
Can you make it also to color Normal Threads ???

PS. I feel like I sent this post before but can't find it. Any idea Admins ?
You posted it here:
https://vborg.vbsupport.ru/showthread.php?t=114815

These are two different hacks. One is to format thread titles and another for prefixes. :)

klaush
05-07-2006, 09:46 AM
Good stuff! Thanks!

Valter
05-07-2006, 10:47 AM
v1.5 - May 07. 2006.
- Added: Poll Thread Prefix Options
- Fixed known bugs
- Important functionality changes
- IMPORTANT: because of new functions I changed hack name and id. This means that it's recommended to uninstall old version before installing new one.

View new attachments!

Upgrade instructions: Import XML as product, allow overwrite.

Cybernetec

PennylessZ28
05-07-2006, 05:36 PM
You're the man! ;)

Snake
05-07-2006, 05:52 PM
Well done on this! :)

XFSImperial
05-08-2006, 01:59 AM
Excellent :D

Nachtfalke
05-08-2006, 03:37 AM
Nice one. Should be vb standard from my point of View. Worksd like a charm!

projectego
05-08-2006, 07:26 AM
Very cool plugin, great work. ;)

MotoUp
05-08-2006, 06:19 PM
Great hack. Thanks!

One question though. When you have a poll that is stickied, it doesn't put a space between them.

Here's what I mean.

It shows Sticky:Poll: instead of Sticky: Poll:

I would like to put a space in there, is there anyway I can do that?
Looks like everything else is fine though.

Valter
05-09-2006, 05:52 AM
One question though. When you have a poll that is stickied, it doesn't put a space between them.
Fixed in v1.6

To upgrade just import XML as product and allow overwrite.

MotoUp
05-09-2006, 12:45 PM
Thanks for the quick fix. I know it was stupid, but it just bugged me. :)

Smiry Kin's
05-09-2006, 04:08 PM
ermm my forum has


Closed: Closed: test!

how i get rid of the last one??

Smiry Kin's
05-09-2006, 05:32 PM
Please any help people?

Valter
05-09-2006, 07:45 PM
Hi Smiry Kin's,

Please copy content of your threadbit template to txt file and attach it here.

Smiry Kin's
06-01-2006, 10:43 PM
here:

<tr>
<td class="alt1" id="td_status_$thread[realthreadid]">
$thread[openclose_editable]
<img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_status_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
</td>
<if condition="$show['threadicons']">
<td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
</if>

<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">

$thread[title_editable]
<div>
<span style="float:$stylevar[right]">
<if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$thread[hiddencount]">$vbphrase[x_moderated_posts]</phrase>" /> </if>
<if condition="$show['paperclip']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /> </if>
<if condition="$show['subscribed']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /> </if>
<if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
</span>
<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
$thread[movedprefix]
$thread[typeprefix]
$thread[moderatedprefix]
<if condition="$show['gotonewpost']">
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
<if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
</div>

<div class="smallfont">
<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
</if>
</div>

<if condition="$show['unsubscribe']">
<div class="smallfont">
<a href="newreply.php?$session[sessionurl]do=newreply&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[reply]</a> |
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[unsubscribe]</a>
</div>
</if>

</td>

<if condition="$show['threadmoved']">
<td class="alt2" align="center">-</td>
<else />
<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
<div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
$thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
<phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</td>
</if>

<if condition="$show['notificationtype']">
<td class="alt1"><div class="smallfont">
<label for="sub$subscribethread[$threadid]">$thread[notification]</label>
</div></td>
<td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
<else />
<td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
<td class="alt2" align="center">$thread[views]</td>

<if condition="$show['forumlink']">
<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
</if>
</if>

<if condition="$show['inlinemod']">
<td class="alt1">
<input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
</td>
</if>
</tr>

Valter
06-02-2006, 05:43 AM
hmmm your threadbit template is OK.

Maybe you have installed my "Cyb - Title Look By Thread Type" hack which also adds "Closed" prefix for closed threads?

Smiry Kin's
06-06-2006, 01:09 PM
hmmm your threadbit template is OK.

Maybe you have installed my "Cyb - Title Look By Thread Type" hack which also adds "Closed" prefix for closed threads?
nope its a fresh install of vbulletin.... =-/

Smiry Kin's
06-17-2006, 01:12 AM
nope its a fresh install of vbulletin.... =-/
any help please?

Valter
06-17-2006, 06:43 AM
I really don't know what it can be.

If you wish you can make temporary admin account for me and send me details via PM so I can check your board.

Smiry Kin's
06-17-2006, 01:07 PM
I really don't know what it can be.

If you wish you can make temporary admin account for me and send me details via PM so I can check your board.
pm sent mate

Valter
06-17-2006, 01:51 PM
pm sent mate
Need some more permissions to solve the problem. Check PM.

noj75
06-17-2006, 02:52 PM
Thanks very much.

Clicked install.

Valter
06-17-2006, 03:04 PM
Smiry Kin's,

Problem solved.

It was exactly what i said here;
https://vborg.vbsupport.ru/showpost.php?p=995806&postcount=24

I just deleted "Closed Thread Prefix" in "Cyb - Sticky-Closed-Poll Prefixes" hack options.

You can delete temp admin account now. ;)

Smiry Kin's
06-17-2006, 03:09 PM
Need some more permissions to solve the problem. Check PM.sorted re-try :)

Smiry Kin's
06-17-2006, 06:07 PM
hmmm your threadbit template is OK.

Maybe you have installed my "Cyb - Title Look By Thread Type" hack which also adds "Closed" prefix for closed threads?
Dude that wasnt it :S...

now it just say Closed: etc

but the closed: prefix doesnt change colour, you deleted the wrong thing..

Valter
06-17-2006, 06:39 PM
OK, I now disabled second "Closed" in "Cyb - Title Look By Thread Type" hack.

If you for any reason want it back just enable "Cyb - Title Look By Thread Type - S-R" plugin. ;)

Smiry Kin's
06-17-2006, 07:14 PM
OK, I now disabled second "Closed" in "Cyb - Title Look By Thread Type" hack.

If you for any reason want it back just enable "Cyb - Title Look By Thread Type - S-R" plugin. ;)
erm what did ya do cos i already fixed it?? i just removed the prase Closed: lol n its perfect now..

Valter
06-18-2006, 02:35 PM
erm what did ya do
Check PMs.

And here is a new version!

v1.7 - Jun 18. 2006.
- Added options to show/hide prefixes
- Codes improved (it's recommended to upgrade because of this)
- There are no any known bugs

To upgrade just import .XML as product.

ZombieAndy
06-22-2006, 09:45 AM
why not just find the phrases for closed, sticky and poll and edit them manually?

save you installing a useless plug in :p

Valter
06-22-2006, 02:10 PM
why not just find the phrases for closed, sticky and poll and edit them manually?

save you installing a useless plug in :p
YOU are useless :p

Here you can easily add some tags around text, replace text with image, disable prefixes, make/back changes in just a few seconds... etc. This also adds prefix for closed threads which you can't do through phrases.

Good luck with losing your time when searching/editing phrases. http://img220.imageshack.us/img220/4006/baeh1lp.gif

edeline
06-25-2006, 08:03 PM
niceeee..aahhhhh :)

rrr
07-27-2006, 11:33 PM
Is there a way to limit which forums this applies to?

I'd like to use it just for one specific section of my forum (classifieds section) so members who mark their thread closed will have the thread prefix change to "SOLD" instead of "closed"

Valter
08-04-2006, 08:29 AM
vB 3.6 version:
https://vborg.vbsupport.ru/showthread.php?t=122992

Valter
03-17-2007, 10:30 AM
This hack is discontinued.

All features are merged into "Cyb - Thread Listing Make-Up".

For all future updates and support please visit this thread:
https://vborg.vbsupport.ru/showthread.php?t=142296

Don't foget to click install to get updates.


Cybernetec
Mar 17. 2007.