vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Separate Sticky and Normal Threads (https://vborg.vbsupport.ru/showthread.php?t=110795)

dilbert 05-11-2006 11:14 PM

Terrific!
Simple to install, I went for product-Separate_2.xml.

rantrave 05-12-2006 05:43 AM

Beautiful.

Snake 05-13-2006 03:24 PM

Lovely! Thanks man.

One thing though, I've having a little problem here... Take a look.

https://vborg.vbsupport.ru/

Mr.T 05-13-2006 09:17 PM

So, once again.

I've installed it and it works perfect.
I' got only one problem with an other style. In this style the user that wrote the sticky-post is not black like at the normal post.

In the picture you see what I mean if you don't understand my bad english ;-)

I hope someone can help me to change the color into black.

T

Dr.Viggy 05-15-2006 01:37 AM

*installed

AndyP 05-15-2006 05:47 AM

Nice and simple, but just what is needed. Thanks. I installed number 2.

It would be good if you could put the differences between the two hacks in your thread header though.

AndyP 05-16-2006 12:53 AM

I notice that there was an update today. What's been changed/added?

frances318 05-16-2006 05:01 AM

thanks

Snake 05-16-2006 07:37 AM

Quote:

Originally Posted by Lil Ripsta
Lovely! Thanks man.

One thing though, I've having a little problem here... Take a look.

http://img53.imageshack.us/img53/7820/untitled3nt1.gif

Could it be that bug that I have reported a few days ago?

Grover 05-16-2006 01:44 PM

Quote:

Originally Posted by Noonster
On my site I used my own code it makes it so it shows words on the lines that seperate to make it look nicer...

Code here
Code:

1. Create Phrases:

Type: Global
Varname: delim_sticky
Text: Sticky Threads

Type: Global
Varname: delim_normal
Text: Normal Threads

2. Find this in FORUMDISPLAY:

<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky

and replace with this:

<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
<tr>
<td class="thead" width="100%" colspan=7><strong>$vbphrase[delim_sticky]</strong></td>
</tr>

$threadbits_sticky
<if condition="$threadbits">
<tr>
<td class="thead" width="100%" colspan=7><strong>$vbphrase[delim_normal]</strong></td>
</tr>
</if>

Screenshot
https://vborg.vbsupport.ru/

Maybe you could intregate that into your hack so others can enjoy it as a plugin?? I was going to just post the code up in the other section as dont know how to create a plugin however you can use it if you wish :D

Daz

Hi Daz,

Thanks for your code: I like it very much that you can use words on the lines. I have another question regarding splitting threads in the threadoverview :

I use sticky threads also for displaying ads on my forum. They are normal sticky threads, and have an advertisement as content. What I would like to know is this : how can I split those advertisements-threads from the regular sticky threads into a separate area, just like you did with sticky threads and regular threads in your picture?

I would like to achieve something like this:

-----------------------------------------------------------------------
Sticky Threads
[ ] [ ] Sticky: Spamming On This Board !!!
-------- Noonster
-----------------------------------------------------------------------
Advertisement Threads
[ ] [ ] Advertisement: New Madonna Single Out Now
-------- Advertisement
[ ] [ ] Advertisement: New Madonna Album Out Now
-------- Advertisement
-----------------------------------------------------------------------
Normal Threads
[ ] [ ] Update: New Style Created
-------- Noonster
-----------------------------------------------------------------------

Is this possible to achieve? Preferable with a Plugin.


Grover 05-16-2006 02:08 PM

Quote:

Originally Posted by Paul M
Very nice.

I added an extra plugin to turn off the sticky thread prefix (in forum display) if this is activated. :)

Exactly! I was just thinking of the fact that the prefix 'Sticky:' is no longer needed when you use this visual split. Then I saw your posting : thanks!

Gooses 05-17-2006 05:21 AM

Good job! I will be installing this soon.

Daracon 05-17-2006 07:18 AM

Thanks for the great plugin!

*me click install*

nytxn 05-17-2006 01:33 PM

I'm at work so I don't have a lot of time to get into details, but we installed this the other night and nothing happened.

We're running 3.5.0 though so I don't know if that migh have something to do with it.

Snort_2005 05-17-2006 08:52 PM

Yea.. the seperate sticky and normal threads is working perfectly on my forum and I don't know what was changed to result in an update. Can you please let us know?

funinthesun 05-17-2006 10:45 PM

What has changed in the update?

Snake 05-18-2006 09:08 PM

Probably... nothing?

alshehi 05-20-2006 02:52 PM

thank you so much

phkk 05-20-2006 07:58 PM

Quote:

Originally Posted by Noonster
On my site I used my own code it makes it so it shows words on the lines that seperate to make it look nicer...

Code here
Code:

1. Create Phrases:

Type: Global
Varname: delim_sticky
Text: Sticky Threads

Type: Global
Varname: delim_normal
Text: Normal Threads

2. Find this in FORUMDISPLAY:

<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky

and replace with this:

<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
<tr>
<td class="thead" width="100%" colspan=7><strong>$vbphrase[delim_sticky]</strong></td>
</tr>

$threadbits_sticky
<if condition="$threadbits">
<tr>
<td class="thead" width="100%" colspan=7><strong>$vbphrase[delim_normal]</strong></td>
</tr>
</if>

Screenshot
http://images12.fotki.com/v197/photo.../sticky-vi.jpg

Maybe you could intregate that into your hack so others can enjoy it as a plugin?? I was going to just post the code up in the other section as dont know how to create a plugin however you can use it if you wish :D

Daz




NICE NICE NICE NICE

bonzer 05-21-2006 06:14 AM

Great installed thanks ;)

Gooses 05-23-2006 06:36 AM

What does the second XML do? Anything different?
(I have installed the first one now: :banana:)

Snake 05-23-2006 11:07 AM

Well it just displays both phrases "Sticky Threads" & "Forum Threads" in forumdisplay.php.

Take a look here - www.bonethugsforums.com.

beduino 05-23-2006 02:43 PM

tks do share your work!
clean, direct, useful and simple to install!
my best regards,
beduino:D

UncoderMom 05-24-2006 01:57 AM

Quote:

Originally Posted by Moya
Did you do hard refresh? ctrl + F5


WOW, learn sumfin new everyday! Thanks!

This Mod is a must in the next release ;)

Atakan KOC 05-24-2006 04:09 PM

Quote:

Originally Posted by Lil Ripsta
Could it be that bug that I have reported a few days ago?

Not Bug.

Open Style Template "FORUMDISPLAY_Separate"
PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>">$vbphrase[delim_normal]</td></tr

Replace

PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">8<else />7</if>">$vbphrase[delim_normal]</td></tr

AND

Open Style Template "FORUMDISPLAY_Separate_top"

PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>"><strong>$vbphrase[delim_sticky]</strong></td></tr

replace

PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">8<else />7</if>"><strong>$vbphrase[delim_sticky]</strong></td></tr


Atakan KOC 05-24-2006 04:40 PM

1.0.0 Initial Version.
1.0.1 Separate 2 Added.
1.0.2 Mini Fix Problem.
1.0.3 Separate 1 & Separate 2 COMBINED .

Djamil 05-24-2006 06:06 PM

Selam,

there's a minor typo in the XML at row 6.

Is:

Code:

<version>1.30</version>
Should be according to version info in the thread:

Code:

<version>1.0.3</version>
Thanks for this hack by the way, I am testing testing it an dtend to keep it ;-)

Djamil

Atakan KOC 05-24-2006 06:43 PM

Quote:

Originally Posted by Djamil
Selam,

there's a minor typo in the XML at row 6.

Is:

Code:

<version>1.30</version>
Should be according to version info in the thread:

Code:

<version>1.0.3</version>
Thanks for this hack by the way, I am testing testing it an dtend to keep it ;-)

Djamil

Fixed

Snake 05-24-2006 06:47 PM

Quote:

Originally Posted by Atakan KOC
Not Bug.

Open Style Template "FORUMDISPLAY_Separate"
PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>">$vbphrase[delim_normal]</td></tr

Replace

PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">8<else />7</if>">$vbphrase[delim_normal]</td></tr

AND

Open Style Template "FORUMDISPLAY_Separate_top"

PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>"><strong>$vbphrase[delim_sticky]</strong></td></tr

replace

PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">8<else />7</if>"><strong>$vbphrase[delim_sticky]</strong></td></tr


Thanks for the bug fix, sir! :)

webgroup 05-25-2006 05:23 AM

thanks, very good plugin!

sensimilla 05-25-2006 07:04 AM

No matter settings in admincp sticky post looks the same ? what am I doing wrong ? TIA

edit: ok I had to run the plugin accelerator first ;)

and again, how to reduce the thickness of the separating bar ?

Djamil 05-26-2006 07:48 AM

I did thin it like this:

In file "product-separate.xml"

FIND

Code:

                <template name="FORUMDISPLAY_Separate2" templatetype="template" date="1148491155" username="gizli" version="3.5.4"><![CDATA[<tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>">&nbsp;</td></tr>]]></template>
REPLACE with:

Code:

                <template name="FORUMDISPLAY_Separate2" templatetype="template" date="1148491155" username="gizli" version="3.5.4"><![CDATA[<tr><td class="thead" style="height: 5px; padding: 0; font-size: 0" colspan="<if condition="$show['threadicons']">7<else />6</if>">&nbsp;</td></tr>]]></template>
If you don't like the thickness of the border, change "height: 5px" to whatever you may find appropriate.

After the change, import the product (overwrite old product if necessary) and have fun.

It only changes the thickness for style 1 since it doesn't make sense to me to do this for separators with text in them ;)

Djamil

sensimilla 05-26-2006 06:29 PM

Thanks Djamil, this should work fine ;)

ramone_johnny 05-28-2006 02:33 AM

Guys Im trying to implement this feature and am receiving the following error.

XML Error: Reserved XML Name at Line 1

What have I done wrong?
Code:

  <?xml version="1.0" encoding="ISO-8859-1" ?>
- <product productid="1908" active="1">
  <title>Separate Sticky and Normal Threads</title>
  <description>Separate Sticky and Normal Threads</description>
  <version>1.20</version>
  <apm_releasedate>1142722800</apm_releasedate>
  <apm_author>Atakan KOC</apm_author>
  <apm_relatedurl>https://vborg.vbsupport.ru/showthread.php?t=110795</apm_relatedurl>
  <apm_extrainfo />
  <apm_extraedit />
  <codes />
- <templates>
- <template name="FORUMDISPLAY_Separate" templatetype="template" date="1142791272" username="Reminder" version="3.5.4">
- <![CDATA[ <tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>">$vbphrase[delim_normal]</td></tr>
  ]]>
  </template>
- <template name="FORUMDISPLAY_Separate_top" templatetype="template" date="1142791233" username="Reminder" version="3.5.4">
- <![CDATA[ <tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>"><strong>$vbphrase[delim_sticky]</strong></td></tr>
  ]]>
  </template>
  </templates>
- <plugins>
- <plugin active="1">
  <title>Separate Sticky and Normal Threads</title>
  <hookname>forumdisplay_complete</hookname>
- <phpcode>
- <![CDATA[
if ($vbulletin->options['gosterx1'])
{
eval('$bolx1 = "' . fetch_template('FORUMDISPLAY_Separate_top') . '";');
eval('$bolx2 = "' . fetch_template('FORUMDISPLAY_Separate') . '";');

$threadbits_sticky = "$bolx1".$threadbits_sticky."$bolx2";
}

  ]]>
  </phpcode>
  </plugin>
  </plugins>
- <phrases>
- <phrasetype name="GLOBAL" fieldname="global">
- <phrase name="delim_normal">
- <![CDATA[ Normal Threads
  ]]>
  </phrase>
- <phrase name="delim_sticky">
- <![CDATA[ Sticky Threads
  ]]>
  </phrase>
  </phrasetype>
- <phrasetype name="vBulletin Settings" fieldname="vbsettings">
- <phrase name="setting_gosterx1_desc">
- <![CDATA[ If separate want; yes choose
  ]]>
  </phrase>
- <phrase name="setting_gosterx1_title">
- <![CDATA[ Separate Sticky and Normal Threads
  ]]>
  </phrase>
  </phrasetype>
  </phrases>
- <options>
- <settinggroup name="forumdisplay" displayorder="420">
- <setting varname="gosterx1" displayorder="240">
  <datatype>boolean</datatype>
  <optioncode>yesno</optioncode>
  <defaultvalue>1</defaultvalue>
  </setting>
  </settinggroup>
  </options>
  </product>


TheProphet 05-29-2006 02:34 PM

If you want a color in style2 change vbphrase "$vbphrase[delim_sticky]" into

Code:

<span style="color: red;">Sticky Threads</span>

RemiAlone 05-30-2006 03:07 PM

Thx for the update! :)

Djamil 05-30-2006 03:46 PM

Quote:

Originally Posted by TheProphet
If you want a color in style2 change vbphrase "$vbphrase[delim_sticky]" into

Code:

<span style="color: red;">Sticky Threads</span>

There is no need to change the XML file for this and break with phrasing of this mod. You can use HTML in the phrases themselves which seems more sensible to me.

Djamil

FunaGuy 06-03-2006 06:26 AM

Install

rylord 06-06-2006 11:28 PM

Installed and works great.

Thanks!!

T?RKMEN 06-07-2006 06:45 PM

Thanks :)


All times are GMT. The time now is 04:56 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.01503 seconds
  • Memory Usage 1,866KB
  • 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
  • (11)bbcode_code_printable
  • (8)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete