vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Thread title enhancement (https://vborg.vbsupport.ru/showthread.php?t=138781)

Kungfu 02-07-2007 10:00 PM

Thread title enhancement
 
Thread title enhancement
To use this i recommend uninstalling Thread cosmetics if you have it installed already. Im not really sure what this might do to have them both. Also disable vbplaza if you have not already. It should work ok with vbplaza, but its not a good idea to have it enabled.

To use this you will see under the thread drop down menu Thread Cosmetics, just like the hack below had. You must click Beautify and then update to update the values.

Install takes about 5 minutes


Description:

Thread title enhancement will let you Italicize, Bold, Underline, Color or set a Font to a thread title.

Inspiration / Thanks:

Well i liked how you could do this in vbplaza. Then there was another hack to do this without having to use points. https://vborg.vbsupport.ru/showthread.php?t=131913 , i actually modified that hack and took the portion from vbplaza to make this. Its a little bit better as it will work in any browser that i know of. I thank paul41598 and vbplaza. Only reason i made this was so i could have the colored stuff again without having vbplaza installed due to the exploits. Im not sure if it will ever come back.


Support:

I wont be supporting this hack that much, its basically going to be as is. I may add more features later on.
Version 1.0.2 is probably my last update, if anyone wants to expand on this hack they may.

Changelog:

2.0.0
  • Fixed a bug where if you removed all settings from the title but had a font size on it would not remove the font size.
  • Got rid of all the plugin files, now there is only one file to upload
  • Got rid of most template modifications. Only need to do one now.
  • If you want to upgrade you will basically need to start all over, reverse all template changes. Reinstall the product. Delete all files in the plugins folder. Only file that needs to be uploaded is includes\xml\bitfield_tte.xml. All template modifications have changed as well. You can leave them there if you like but make sure to shut off the auto template modification in the TTE options.
1.0.2
  • Added a font select box, you can add more fonts in settings
  • Added a size select box, you can add more sizes in settings.
  • Added bitfields for permissions. You must set these in the usergroup manager as all are set to no by default.
1.0.1
  • Fixed the underline, so if you do underline it does underline now.
  • Added a color table, you can add your own colors
  • Added font size
1.0.0
  • Make thread title Bold, Italic, Underline, Colored and change font.

Kungfu 02-08-2007 03:21 AM

Changelog:

2.0.0
  • Fixed a bug where if you removed all settings from the title but had a font size on it would not remove the font size.
  • Got rid of all the plugin files, now there is only one file to upload
  • Got rid of most template modifications. Only need to do one now.

OPEN SHOWTHREAD

Find:
-------
Code:

<if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
                </td>
        </tr>


Add Beneath:
-------------
Code:

$beautifyoptions

* If you set the options to not try to automatically do the template modifications you will need to do them manually. To do this please read the install file included in the zip. This should only be used if you have done a lot of hacking to the templates to where its just not working right for you. Otherwise it should work on just about any forum no matter how many modifications you made to the template.



Changelog:

1.0.2
  • Added a font select box, you can add more fonts in settings
  • Added a size select box, you can add more sizes in settings.
  • Added bitfields for permissions. You must set these in the usergroup manager as all are set to no by default.
Re-upload the files in the upload folder.

OPEN SHOWTHREAD

Find:
------
Code:

<script language="javascript">
<!-- Hide from older browsers
function hideAll() {
 document.getElementById('tte_all').style.display='none';
}

function showTTE() {
 document.getElementById('tte_all').style.display='block';
 document.getElementById('tte_all').style.visibility='visible';
}

function SetColor(val) {
 document.getElementById('colorthread').value=val;
}

// -->
</script>

Replace with:
-------------
Code:

<!-- Thread Title Enhancment -->
<if condition="$permissions[ttepermissions] & $vbulletin->bf_ugp[ttepermissions][can_beautify]">
<script language="javascript">
<!-- Hide from older browsers
function hideAll() {
 document.getElementById('tte_all').style.display='none';
}

function showTTE() {
 document.getElementById('tte_all').style.display='block';
 document.getElementById('tte_all').style.visibility='visible';
}


function SetColor(val) {
 document.getElementById('colorthread').value=val;
 document.getElementById('titlepreview').style.color=val;
}

function SetFontPreview(){
var fontselectval = document.getElementById('fonttype').options[document.getElementById('fonttype').selectedIndex].value;
 
document.getElementById('titlepreview').style.fontFamily=fontselectval;
}

function Preview() {
if(document.getElementById('bold').checked == 1){
  document.getElementById('titlepreview').style.fontWeight="bold";
}
else{
  document.getElementById('titlepreview').style.fontWeight="normal";
}


if(document.getElementById('italic').checked == 1){
  document.getElementById('titlepreview').style.fontStyle="italic";
}
else{
  document.getElementById('titlepreview').style.fontStyle="normal";
}

if(document.getElementById('underline').checked == 1){
  document.getElementById('titlepreview').style.textDecoration="underline";
}
else{
  document.getElementById('titlepreview').style.textDecoration="none";
}

}

// -->
</script>
</if>
<!-- / Thread Title Enhancment -->



Find:
-------
Code:

<body onload="$onload hideAll();">
Replace With:
--------------
Code:

<body onload="$onload; <if condition="$vbulletin->bf_ugp['ttepermissions']['can_beautify']">hideAll();</if>">


Find:
-------
Code:

<!-- Thread Title Enhancment -->
        <if condition="$show['adminoptions']">
        <tr>
                <td class="thead">Thread Cosmetics<a name="goto_threadadmin"></a></td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite">

                    <div><label for="tte_do"><input type="radio" name="do" id="tte_do" value="beautifythread" onClick="showTTE();" />Beautify</label></div>

<div id="tte_all">
Color:
                    <div style="padding-left:20px">
                        <input type="text" name="colorthread" value="$thread[tte_titletextcolor]" size="10" style="height: 12px">$colortable
                    </div>

Style:
<div style="padding-left:20px">
<label for="bold">
<input type="checkbox" <if condition="$thread[tte_boldflag] == '1'"> checked="checked"</if> id="bold" name="bold" value="1">Bold</label>
<label for="italic">
<input type="checkbox" <if condition="$thread[tte_italicflag] == '1'"> checked="checked"</if> id="italic" name="italic" value="1">Italicize</label>
<label for="underline">
<input type="checkbox" <if condition="$thread[tte_underlineflag] == '1'"> checked="checked"</if> id="underline" name="underline" value="1">Underline</label>
                    </div>
Font:
                    <div style="padding-left:20px">
                        Type: <input type="text" name="fonttype" value="$thread[tte_titlefonttype]" size="8" style="height: 12px">
 Size: <input type="text" name="fontsize" value="<if condition="$thread[tte_titlefontsize] <> '0'">$thread[tte_titlefontsize]</if>" size="1" style="height: 12px">
                    </div>
</div>

<div><label for="tte_removeall"><input type="radio" name="do" id="tte_removeall" value="removeall"" />Remove All</label></div>

                </td>
                </tr>
        </if>
<!-- / Thread Title Enhancment -->

Replace With:
--------------
Code:

<!-- Thread Title Enhancment -->
        <if condition="$permissions[ttepermissions] & $vbulletin->bf_ugp[ttepermissions][can_beautify]">
        <tr>
                <td class="thead">Thread Cosmetics<a name="goto_threadadmin"></a></td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite">

                    <div><label for="tte_do"><input type="radio" name="do" id="tte_do" value="beautifythread" onClick="showTTE();" />Beautify</label></div>

<div id="tte_all">
Preview:
<div class="alt1" style="margin-left:20px; padding:3px;">
<div id="titlepreview" style="display: inline;
<if condition="$thread[tte_titletextcolor] != ''">color: $thread[tte_titletextcolor];</if>
<if condition="$thread[tte_boldflag] == '1'"> font-weight:bold;</if>
<if condition="$thread[tte_italicflag] == '1'"> font-style:italic;</if>
<if condition="$thread[tte_tte_underlineflag] == '1'"> text-decoration:underline;</if>
<if condition="$thread[tte_titlefonttype] != ''">font-family: $thread[tte_titlefonttype];</if>
<if condition="$thread[tte_titlefontsize] != ''">font-size:: $thread[tte_titlefontsize];</if>
">Preview</div>
</div>

Color:
<div style="margin-left:20px">
                        <input type="text" id="colorthread" name="colorthread" value="$thread[tte_titletextcolor]" size="14" style="height: 12px">
$colortable
</div>




Style:
<div style="margin-left:20px">
<label for="bold">
<input type="checkbox" <if condition="$thread[tte_boldflag] == '1'"> checked="checked"</if> id="bold" name="bold" onclick="Preview();" value="1">Bold</label>
<label for="italic">
<input type="checkbox" <if condition="$thread[tte_italicflag] == '1'"> checked="checked"</if> id="italic" name="italic" onclick="Preview();" value="1">Italicize</label>
<label for="underline">
<input type="checkbox" <if condition="$thread[tte_underlineflag] == '1'"> checked="checked"</if> id="underline" name="underline" onclick="Preview();"  value="1">Underline</label>
                    </div>
Font:
                    <div style="margin-left:20px">
                        Type: $fonttype
 Size: $fontsize
                    </div>
</div>

<div><label for="tte_removeall"><input type="radio" name="do" id="tte_removeall" value="removeall"" />Remove All</label></div>

                </td>
                </tr>
        </if>
<!-- / Thread Title Enhancment -->


1.0.1
  • Fixed the underline, so if you do underline it does underline now.
  • Added a color table, you can add your own colors
  • Added font size
  • to upgrade install the product file again (overwrite).
    Re-upload the files in the upload folder.

    In SHOWTHREAD template
    Find:
    Code:

    function showTTE() {
     document.getElementById('tte_all').style.display='block';
     document.getElementById('tte_all').style.visibility='visible';
    }

    Add below:
    Code:

    function SetColor(val) {
     document.getElementById('colorthread').value=val;
    }

    Find:
    Code:

    <input type="text" name="colorthread" value="$thread[tte_titletextcolor]" size="10" style="height: 12px">
    Add After:
    Code:

    $colortable

    Find:
    Code:

    Font:
                        <div style="padding-left:20px">
                            <input type="text" name="fonttype" value="$thread[tte_titlefonttype]" size="10" style="height: 12px">
                        </div>

    Code:

    Replace:
    Font:
                        <div style="padding-left:20px">
                            Type: <input type="text" name="fonttype" value="$thread[tte_titlefonttype]" size="8" style="height: 12px">
     Size: <input type="text" name="fontsize" value="<if condition="$thread[tte_titlefontsize] <> '0'">$thread[tte_titlefontsize]</if>" size="1" style="height: 12px">
                        </div>

1.0.0
  • Make thread title Bold, Italic, Underline, Colored and change font.

Veer 02-08-2007 06:06 AM

Thanks, Very Nice :)

Atakan KOC 02-08-2007 07:50 AM

Nice. Installed


https://vborg.vbsupport.ru/external/2007/02/22.jpg

PennylessZ28 02-08-2007 04:26 PM

I first I thought this was like some of the others, but this is far better. Excellent idea.

parrot5 02-08-2007 11:58 PM

I can't get it working either. Do I need to rebuild forum cache (or similar) after installation? I see the Beautify enhancements in the Thread Tool. All the messages are fine too. But I don't see the effects added.

Kungfu 02-09-2007 01:04 AM

Quote:

Originally Posted by parrot5 (Post 1177955)
I can't get it working either. Do I need to rebuild forum cache (or similar) after installation? I see the Beautify enhancements in the Thread Tool. All the messages are fine too. But I don't see the effects added.

im sorry i left out 1 template mod. The one that makes it like that. Ill add it to the product and re-upload it as well. Thats what happens when you upload it before you get any sleep.

In Threadbit
Find:
Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
Replace with:
Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if><if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

Kungfu 02-09-2007 01:10 AM

Quote:

Originally Posted by FunaGuy (Post 1177623)
Its not working :(

Help me in this
<body onload="$onload; vbImageResize(); hideAll();">

I am also using image resize mod

All this should do is hide the options. This is basically do to how the plugin is setup so you have to click the beautify radio button and then update to save the settings. So if the options are hidden you should be ok.

Just do the last template mod i forgot to add and it should work.

Shazz 02-09-2007 01:41 AM

Creative idea!
Ill bookmark could look nice in some ways

parrot5 02-09-2007 01:53 AM

Quote:

Originally Posted by Kungfu (Post 1177984)
im sorry i left out 1 template mod. The one that makes it like that. Ill add it to the product and re-upload it as well. Thats what happens when you upload it before you get any sleep.

After that bit of modifying, your mod works perfectly. I have been searching for months for a mod like this! Thanks a bunch!!

For the ease of use for my crew though, I might modify it so that the colours can be chosen instead of typed in... but I understand that your method gives the most flexibility.

Kungfu 02-09-2007 02:49 AM

Quote:

Originally Posted by parrot5 (Post 1178020)
After that bit of modifying, your mod works perfectly. I have been searching for months for a mod like this! Thanks a bunch!!

For the ease of use for my crew though, I might modify it so that the colours can be chosen instead of typed in... but I understand that your method gives the most flexibility.

yea, i was thinking of this as well. Put in a color wheel basically. You choose the color from a little popup thingy. I had to get this out as fast as possible for my forums as its used by my mods in the my forums. Ill look into getting something like that just so its easier.


I worked on the color table thing a little bit. I decided to do something sort of like the VB editor. I didnt know how to just create the button so im doing this from scratch. Its just a table with rows. You can add your own colors and it goes up to 5 columns then starts a new one as shown in the screenshots. hopefully ill get it so it does pop down like the color font on the vb editor.

xenon58 02-09-2007 06:51 AM

its a great idea. one thing i wanted to ask, if its possible at all, once you are done with color table can you please add an option to change the size of the font, next to the name of the font? i think it would be more useful to users to be able to change the size of the font. thnx

parrot5 02-09-2007 01:41 PM

Quote:

Originally Posted by Kungfu (Post 1178045)
yea, i was thinking of this as well. Put in a color wheel basically. You choose the color from a little popup thingy. I had to get this out as fast as possible for my forums as its used by my mods in the my forums. Ill look into getting something like that just so its easier.


I worked on the color table thing a little bit. I decided to do something sort of like the VB editor. I didnt know how to just create the button so im doing this from scratch. Its just a table with rows. You can add your own colors and it goes up to 5 columns then starts a new one as shown in the screenshots. hopefully ill get it so it does pop down like the color font on the vb editor.

Hey this is a lot more usable for my crew!! Brilliant! Will you release the code for it (or later after you finish it) ?

Kungfu 02-09-2007 03:33 PM

Quote:

Originally Posted by xenon58 (Post 1178147)
its a great idea. one thing i wanted to ask, if its possible at all, once you are done with color table can you please add an option to change the size of the font, next to the name of the font? i think it would be more useful to users to be able to change the size of the font. thnx

Yea, i can do that. shouldnt be a big problem.


Quote:

Originally Posted by parrot5 (Post 1178380)
Hey this is a lot more usable for my crew!! Brilliant! Will you release the code for it (or later after you finish it) ?

Yea, its usable now, just not pretty :p

parrot5 02-09-2007 10:12 PM

I get a database error whenever I try going into any forum after upgrading it. Here's the error log:
Quote:

Invalid SQL:

SELECT post.pagetext AS preview,post.thankscache,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount




,thread.tte_boldflag, thread.tte_italicflag, thread.tte_underlineflag, thread.tte_titletextcolor, thread.tte_titlefonttype, thread.tte_titlefontsize, firstpostid
FROM vb_thread AS thread



LEFT JOIN vb_post AS post ON(post.postid = thread.firstpostid)



WHERE thread.threadid IN (0,4297,4294,4198,4022,3768,3565,3917,3777,3765,36 65,2919,3796)
ORDER BY sticky DESC, lastpost DESC;

MySQL 错误 (edit: Error) : Unknown column 'thread.tte_titlefontsize' in 'field list'
错误号 (edit: Error number) : 1054
The words in brackets are the translation for the Chinese characters on the left. I disabled the plugin in a hurry and the site is back to normal.

Kungfu 02-09-2007 10:47 PM

You reuploaded the product file? You may have to uninstall it and try to reinstall it again. It sucks that theres no way to check if a column already exists or not.

parrot5 02-09-2007 11:30 PM

Quote:

Originally Posted by Kungfu (Post 1178779)
You reuploaded the product file? You may have to uninstall it and try to reinstall it again. It sucks that theres no way to check if a column already exists or not.

Uninstallation:
Quote:

数据库错误在 vBulletin 3.6.4:

Invalid SQL:
ALTER TABLE vb_thread DROP COLUMN tte_titlefontsize;

MySQL 错误 : Can't DROP 'tte_titlefontsize'; check that column/key exists
错误号 : 1091
日期 : Friday, February 9th 2007 @ 05:30:45 PM
脚本 : (*forum path*)/admincp/plugin.php?do=productkill
来源 : (*forum path*)/admincp/plugin.php?do=productdelete&productid=TTE&s=
After this error, the mod is still on the product list.

Kungfu 02-09-2007 11:43 PM

Quote:

Originally Posted by parrot5 (Post 1178795)
Uninstallation:

After this error, the mod is still on the product list.

ok i think i found a way to fix this to check. So im going to try it and see if it works. If you want to do it manually you can go to the query area under maintenance. And put in

ALTER TABLE vb_thread.thread ADD COLUMN tte_titlefontsize INT UNSIGNED NOT NULL DEFAULT ''")

parrot5 02-10-2007 12:13 AM

Quote:

Originally Posted by Kungfu (Post 1178801)
ok i think i found a way to fix this to check. So im going to try it and see if it works. If you want to do it manually you can go to the query area under maintenance. And put in

ALTER TABLE vb_thread.thread ADD COLUMN tte_titlefontsize INT UNSIGNED NOT NULL DEFAULT ''")

Yes the tte_titlefontsize column never got added. Not even after I install it from scratch. Very strange :confused: I still cannot get it go work.

Kungfu 02-10-2007 01:43 AM

Quote:

Originally Posted by parrot5 (Post 1178813)
Yes the tte_titlefontsize column never got added. Not even after I install it from scratch. Very strange :confused: I still cannot get it go work.

Ok i think i got a workaround for it. Please download that product xml file in attachments and see if that works for you.

parrot5 02-10-2007 01:49 AM

Error on install:

Quote:

Invalid SQL:
ALTER TABLE vb_thread ADD COLUMN tte_titlefontsize INT UNSIGNED NOT NULL DEFAULT '';

MySQL 错误 : Invalid default value for 'tte_titlefontsize'
错误号 : 1067
Looks like it's because of this syntax error that the column never got added for the previous versions as well?

I tried changing '' to '11' and the site loads normally. I can change the colors and size. However when try to remove all of enhancements, the size won't revert back to 11. I was already happy with 1.0 version and I think I'm going back to 1.0 at least for now :) Do you mind providing 1.0 again?

Kungfu 02-10-2007 02:17 AM

Quote:

Originally Posted by parrot5 (Post 1178854)
Error on install:


Looks like it's because of this syntax error that the column never got added for the previous versions as well?

I tried changing '' to '11' and the site loads normally. I can change the colors and size. However when try to remove all of enhancements, the size won't revert back to 11. I was already happy with 1.0 version and I think I'm going back to 1.0 at least for now :) Do you mind providing 1.0 again?

Sorry that should be 0. And it you leave the field blank or set it to 0 it will just go to 0. If the size is 0 it wont resize the font. Its only if you put in 1 or more. And it goes by pixels.

xenon58 02-10-2007 09:04 AM

hi, thanks for taking and including my suggestion, i do appreciate it. i've just checked on a new version and unfortunately i've found few bugs that id like to point your attention to.

1. i wanted to know about the color table that is created, when a user choses a color, why it doesn't get entered into the color text box as a color of choice? i had to manually write the name of the color in order to change the color of the letters. i think it would be great to have user select the color form the table, click on it, and name of the color gets entered into that box, so the users knows which color those letters will be.

2. on the font box, do you think having a drop-down box like in the editor with the name of the fonts installed would be possible to do? i just think that it would be more useful as an option to users just to choose the font type, and a size from already available fonts, rather then write down a name of a font that doesnt exists and ask stupid questions like "why it didnt change the font"

3. when i've selected to remove all the changes i've made, unfortunately only color change was removed, but bold, underline and font-size are still there and unchanged. so the removal procedure didnt work as planned.

thank you again for creating this great addon. its a great idea indeed. i do appreciate your time and efforts spent on this. im sure its going to be one helluva mod, once its done ;)

Kungfu 02-10-2007 02:59 PM

Quote:

Originally Posted by xenon58 (Post 1179010)
hi, thanks for taking and including my suggestion, i do appreciate it. i've just checked on a new version and unfortunately i've found few bugs that id like to point your attention to.

1. i wanted to know about the color table that is created, when a user choses a color, why it doesn't get entered into the color text box as a color of choice? i had to manually write the name of the color in order to change the color of the letters. i think it would be great to have user select the color form the table, click on it, and name of the color gets entered into that box, so the users knows which color those letters will be.

2. on the font box, do you think having a drop-down box like in the editor with the name of the fonts installed would be possible to do? i just think that it would be more useful as an option to users just to choose the font type, and a size from already available fonts, rather then write down a name of a font that doesnt exists and ask stupid questions like "why it didnt change the font"

3. when i've selected to remove all the changes i've made, unfortunately only color change was removed, but bold, underline and font-size are still there and unchanged. so the removal procedure didnt work as planned.

thank you again for creating this great addon. its a great idea indeed. i do appreciate your time and efforts spent on this. im sure its going to be one helluva mod, once its done ;)

It uses a hex color. If you were to type gray or grey i cant remember which one in IE it doesnt work. Using the hex code should always work and i recommend using that instead of just a color as they dont always work.
I suppose i could add an option like HexColor:RealColorName in the options so when you click on it, it shows the real color name or something.

For fonts i could have a setting in options to add more

for size i would have to treat a bit different since its pixels not pts like the bbcode.

but ill look into it.

Kungfu 02-13-2007 05:54 PM

I added the font select box instead now. Just need to add the size in a select box. Instead of saying a color i just added a preview box instead.

The preview box only works if you click on the a color from the table. Ill probably add an option to make the box read only so whatever you put in the colortable is the only colors you can choose from.

I started to make it show up as an actual color, but it started to get complicated quite fast so instead i just made a preview area so you can see what color it is and font etc..

pollon 02-14-2007 06:41 AM

hi!
thank you for this hack. i would like to know if i can set the usergroups that can use this hack.

Kungfu 02-15-2007 04:57 AM

Ok, fixed the issues from before when upgrading. It should not give you errors anymore. I tested this on another board and it worked ok for me. There are quite of bit of changes so i suggest just replacing everything in the SHOWTHREAD template.

Added permissions to usergroup manager, so you must set permissions here for people to use it.

Good thing about this hack is it shouldnt use anymore SQL queries then what you currently have now. It just adds onto or uses existing queries that VB makes.

This will probably be the final update, so if anyone wants to take this project and further develop it they can.

apiasto 02-15-2007 05:32 AM

nice mod , thnx

parrot5 02-16-2007 12:06 AM

You're the man! Thanks for improving on the mod. My crew loves you.

xenon58 02-16-2007 05:18 AM

thnx for an update bud, really appreciated. unfortunately when installing, got this error

PHP Code:

Parse errorparse errorunexpected T_ENCAPSED_AND_WHITESPACEexpecting T_STRING or T_VARIABLE or T_NUM_STRING in ***\includes\adminfunctions_template.php(3596) : eval()'d code on line 28 

this error showed up when i was doing the last step of an install, which was
PHP Code:

OPEN Threadbit

Find
:
--------

<
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"style="font-weight:bold"</if>>$thread[threadtitle]</a>


Replace With:
--------------

<
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if><if  condition="$show['gotonewpost']"style="font-weight:bold"</if>>$thread[threadtitle]</a

do you know what gives by any chance?

thnx again for all the time and help.

Kungfu 02-17-2007 12:13 AM

Quote:

Originally Posted by xenon58 (Post 1183653)
thnx for an update bud, really appreciated. unfortunately when installing, got this error

PHP Code:

Parse errorparse errorunexpected T_ENCAPSED_AND_WHITESPACEexpecting T_STRING or T_VARIABLE or T_NUM_STRING in ***\includes\adminfunctions_template.php(3596) : eval()'d code on line 28 

this error showed up when i was doing the last step of an install, which was
PHP Code:

OPEN Threadbit

Find
:
--------

<
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"style="font-weight:bold"</if>>$thread[threadtitle]</a>


Replace With:
--------------

<
a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if><if  condition="$show['gotonewpost']"style="font-weight:bold"</if>>$thread[threadtitle]</a

do you know what gives by any chance?

thnx again for all the time and help.



try
Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread[titlestyle]">style="$thread[titlestyle]"</if><if  condition="$show[gotonewpost]"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

xenon58 02-17-2007 03:37 AM

thnx for your suggestion bud, i did, and unfortunately its still a no go for me :(
eventhough it didnt show an error as it did last time, this time its a bit different
look at the attached image and you will see what i'm talking about

http://img412.imageshack.us/img412/2148/screentt2.jpg

the test thread name was sdfgdfgdfgdsf, and everything before that
showed up after i've tryed that code you've showed me in above post
to bypass that parser error that i had before.

also, after a complete install i took a scrrenshot of my thread_tools options
and unfortunately i dont have those beautify options there as you have it :(

http://img126.imageshack.us/img126/9008/toolspn7.jpg

dont pay attention to funny chars, those are translated frases, and look funny
when i change default language. white space above the button, also not a part
of an error i'm trying to fix here, so dont pay attention to that as well ;)

hope youll be able to see what i'm talking about and have some tips on how to fix this

thnx again for all the time and help bud, i really do appreciate it.

Kungfu 02-17-2007 05:47 PM

You need to set permissions from the usergroup manager. Probably not why the option is not showing up. But theres some template problem that you are having. Try to revert back to what you had before. Basically all i added to that line was another if statement.

<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>

but im not sure if your board doesnt like the single quotes or not as thats why it was giving you the error before. But it seems like you are missing something.

this should be your orginal

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

If its not you will need to add
<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>
manually in there. Either before the <if condition... or after the </if>

xenon58 02-18-2007 07:04 AM

thnx again for your reply. i've added the statement and saved the changes, all went ok, i think. the reason i cant say for sure, cause i still cant use this mod. i've zipped a screenshot of my usergroup manager > admin group. i've looked everywhere, but unfortunately i couldn't find a place where to turn on the mod. if you can, please take a look and let me know what am i missing. thnx again for all the time and help.

Kungfu 02-18-2007 07:33 AM

make sure the xml file is uploaded also try to re build your bitfield.

http://www.yoursite.com/forum/adminc...buildbitfields

should be something like that. It will rebuild them. Try that and see if it shows up after that.
Its just one option called TTE Permissions

xenon58 02-18-2007 08:41 AM

thnx for a quick respond. i did just that, and got a message that bitfields were rebuild and all is well, however, installing/uninstalling/reuploading/reinstalling xml file didnt do anything, i still dont have the option where to turn this mod on, anywhere :( i swear i looked everywhere. i wonder if its only me having all these problems. i was able to test previous versions ok, but have no idea whats up with all this. im sorry for causing a headache for you bud, and i do appreciate your help. maybe you can paste me a line where i can turn the option on for admins and registrered and where to paste this into xml file? i dont know what else could help. hope you do ;) thnx again for all the time and efforts.

pollon 03-26-2007 02:31 PM

I've got almost the same problem of Xenon.
I've installed this hack, rebuilt the bitfield, set the usergroup permission and modified the code in the threadbit template inserting this code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

I even tried with this one:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if><if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

but it doesn't works.

I do have the TTE menu in vbulletin options and I have enabled this mod. After modifying the thread i get the message "your thread is now Beautified" and get redirected to the thread. but nothing changes. this mod has none effect on the treads.

I'm on 3.6.5. what can I do?

khris7199 04-18-2007 11:47 PM

Quote:

Originally Posted by pollon (Post 1212746)
I've got almost the same problem of Xenon.
I've installed this hack, rebuilt the bitfield, set the usergroup permission and modified the code in the threadbit template inserting this code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

I even tried with this one:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if><if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

but it doesn't works.

I do have the TTE menu in vbulletin options and I have enabled this mod. After modifying the thread i get the message "your thread is now Beautified" and get redirected to the thread. but nothing changes. this mod has none effect on the treads.

I'm on 3.6.5. what can I do?


Having same problem. And have attempted all the above also.

I can go through all the steps with the beautify and when it refreshes the page it shows the orginal nothing new.

Really want this mod. It looks great.

Bojangles 04-19-2007 02:08 AM

I am also having the same problem as the last couple of posters. Looking forward to a solution, because this mod looks like it rocks :)

tsh4life 04-19-2007 02:43 AM

yea, same problem. thanks for the mod tho it looks promising :cool:

EDIT: Nevermind i looked in thread tools and it showed up for me..thanks

edit again: well i actually went to "beautify" and it didn't do anything to the thread title


All times are GMT. The time now is 06:24 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.01573 seconds
  • Memory Usage 1,978KB
  • 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
  • (17)bbcode_code_printable
  • (4)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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