Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Separate Sticky and Normal Threads Details »»
Separate Sticky and Normal Threads
Version: 1.0.3, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 03-18-2006 Last Update: 05-23-2006 Installs: 822
Uses Plugins
 
No support by the author.


install



Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-Separate.xml' from your computer then press 'Import'


Separate Sticky and Normal Threads Setting

Go to your admin cp, then:
vBulletin Options -> Forum Display Options (forumdisplay) ->
Separate Sticky and Normal Threads (Yes/No)

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 .


Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #152  
Old 05-25-2006, 07:04 AM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #153  
Old 05-26-2006, 07:48 AM
Djamil Djamil is offline
 
Join Date: Mar 2006
Location: Germany
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #154  
Old 05-26-2006, 06:29 PM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Djamil, this should work fine
Reply With Quote
  #155  
Old 05-28-2006, 02:33 AM
ramone_johnny ramone_johnny is offline
 
Join Date: May 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #156  
Old 05-29-2006, 02:34 PM
TheProphet TheProphet is offline
 
Join Date: Apr 2004
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
<span style="color: red;">Sticky Threads</span>
Reply With Quote
  #157  
Old 05-30-2006, 03:07 PM
RemiAlone RemiAlone is offline
 
Join Date: Apr 2006
Location: Holland
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx for the update!
Reply With Quote
  #158  
Old 05-30-2006, 03:46 PM
Djamil Djamil is offline
 
Join Date: Mar 2006
Location: Germany
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #159  
Old 06-03-2006, 06:26 AM
FunaGuy's Avatar
FunaGuy FunaGuy is offline
 
Join Date: Dec 2005
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Install
Reply With Quote
  #160  
Old 06-06-2006, 11:28 PM
rylord rylord is offline
 
Join Date: Nov 2004
Location: Richmond, KY
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works great.

Thanks!!
Reply With Quote
  #161  
Old 06-07-2006, 06:45 PM
T?RKMEN T?RKMEN is offline
 
Join Date: Jan 2005
Location: Turkey
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 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.05278 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete