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)

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 09:31 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.01977 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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