Status
Not open for further replies.

xorex

Customer
Hi . thanks for hack update, i have one issue after update. Image for threadbit now have conflict with another hack which used $thread[threadtitle] for replace. I tried replace in file /dbtech/ajaxthreads/hooks/threadbit_display.php


HTML:
	// Append the image
	$thread['threadtitle'] = '<img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ' . $thread['threadtitle'];

to

HTML:
	// Append the image
	$thread['threadtitle']</a> = '<img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ' . $thread['threadtitle']</a>;

but after i have white screen because i think it wrong syntax
HTML:
$thread['threadtitle']</a>

how right replace for this

thanks !
 
HTML:
$thread['threadtitle'] = '</a><img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ' . $thread['threadtitle'] . '</a>';
 
0_o omg very quick response :eek:

but not working ((

finaly template have two $thread[threadtitle]

(Default)

HTML:
<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

and (another hack)

HTML:
name="$thread[threadtitle]" onclick="return false;">

I wish that he had replace only the standard code

HTML:
$thread[threadtitle]</a>

and ignore the second code for another hack like this

HTML:
name="$thread[threadtitle]"

---------- Post added at 17:46 ---------- Previous post was at 17:41 ----------

another hack
 
We won't be able to make them compatible in that case, sorry :(

You can disable the threadbit_display plugin for this mod to prevent it from conflicting :)
 
if place image after thread title
like this ?

HTML:
	$thread['threadtitle']</a> = $thread['threadtitle']</a> . '<img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ';

but this again wrong syntax :)
 
HTML:
$thread['threadtitle'] = $thread['threadtitle'] . '</a><img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ';
 
HTML:
$thread['threadtitle'] = $thread['threadtitle'] . '</a><img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ';

thanks but this construction again serching all
$thread['threadtitle']
but I needed to search was for the first occurrence
$thread['threadtitle']</a>
because second
name="$thread[threadtitle]"
of another hack :confused:
 
Last edited:
Whats the other hack thats conflicting xorex?

this hack

---------- Post added at 19:32 ---------- Previous post was at 19:22 ----------

Ok i fixed it :)

In threadbit template

find:

HTML:
<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

replace by:
HTML:
<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>
$template_hook[threadbit_ajaxthreads_image]
$thread[threadtitle]</a>

in file /dbtech/ajaxthreads/hooks/threadbit_display.php

find:

HTML:
	// Append the image
	$thread['threadtitle'] = '<img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ' . $thread['threadtitle'];

replace by:


HTML:
	// Append the image
	$template_hook[threadbit_ajaxthreads_image] = '<img src="' . $vbulletin->options['bburl'] . '/dbtech/ajaxthreads/images/ajaxenabled.png" alt="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" title="' . $vbphrase['dbtech_ajaxthreads_ajax_update_enabled'] . '" border="0" /> ';
 
Last edited:
Status
Not open for further replies.

Legacy AJAX Threads

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
574
Customer rating
0.00 star(s) 0 ratings
Back
Top