PDA

View Full Version : Administrative and Maintenance Tools - [AJAX] vB Forum Titles AJAX Editor 1.0.1


Deceptor
12-23-2008, 10:00 PM
vB Forum Titles AJAX Editor

This is a simple modification that will allow forum administrators to quickly edit forum titles, including categories. This works on both forum home and forum display pages, and operates just like ajax thread title editing, simply double click on the forum cell and the editor will pop up allowing you to change the title.


Note
Please be aware that on some skins this may not be functional, I've done my best to ensure that compatability with all styles is possible, but there may still be a problem or two for those with heavily changed styles. Should you believe this is occuring to you, let me know below and I'll do my best to help.


Change Log

Version 1.0.1
- Fixed unicode character issues, such as ??, etc..


Screenshots below, enjoy :)

KevinL
12-24-2008, 04:49 AM
Now this couls be very useful!

Thanks.

SteamyLightning
12-24-2008, 05:32 AM
Could you set an option for mandatory password verification? It would be useful to prevent accidental editing of forum titles.

Forum Lover
12-24-2008, 05:47 AM
Wonder it goes for thread titles too. :) Tagged.

Deceptor
12-24-2008, 05:51 AM
Forum Lover - Thread titles already have AJAX edits, that is standard vBulletin functionality.

SteamyLightning - I'll see what I can do, I have enabled the ability to use the Esc/Escape key so that if it's accidently triggered Esc will ignore any changes and get out of the edit phrase.

Stoebi
12-24-2008, 07:09 AM
Wonderful, thank you very much.

It is possible to integrate the AJAX feature for forum discription also, please?

Regards,

Stoebi

Deceptor
12-24-2008, 07:12 AM
Stoebi - I have considered it, the only issue is really the editor is init'd when the forum cell is double clicked, which can be anywhere, so how to tell between description/forum title would be a little odd, I'd probably have to make it so you directly double clicked the forum description text to make that editor pop-up. I guess that isn't so bad :)

I'll try push that into an update.

Stoebi
12-24-2008, 07:14 AM
Great, very good idea. :)

BTW:
Merry Christmas :)

Deceptor
12-24-2008, 07:19 AM
Merry Christmas to you too :)

Forum Lover
12-24-2008, 09:42 AM
Forum Lover - Thread titles already have AJAX edits, that is standard vBulletin functionality.


Now blow me down!! :P Just remembered that. :) Installed.

Allan
12-24-2008, 09:59 AM
hoooo, wonderful, congrat for you hack :)

arauf
12-24-2008, 11:29 AM
<font color="Red">Installed*</font>

lazydesis
12-24-2008, 12:09 PM
will be waiting for thread description ajax controls :D and then install it

thank this is a great release

Deceptor
12-24-2008, 12:44 PM
You mean forum description, right? :)

Indyaboard
12-24-2008, 02:10 PM
Now, this is a great hack! <3

wolfe
12-24-2008, 03:24 PM
very nice m8 great release :P

dvbusuario
12-24-2008, 05:49 PM
Install in vBulletin 3.7.0 Gold!!

Thx.

lazydesis
12-24-2008, 07:35 PM
You mean forum description, right? :)

sorry my bad .. yes forum description

KURTZ
12-25-2008, 11:22 AM
excellent!

ARB4HOSTING.COM
12-25-2008, 04:22 PM
Thanks Alot >> But It Does Not Work With Arabic Names

jammiedodger546
12-25-2008, 04:57 PM
Installed, can't wait for the Forum Desc. ajax thing though :)

Deceptor
12-25-2008, 11:44 PM
Thanks Alot >> But It Does Not Work With Arabic Names
Do the normal AJAX thread edits (default vB functionality) work with AJAX on your language?

raviteja542
12-26-2008, 04:15 AM
xcellent hack...i really like this

ARB4HOSTING.COM
12-26-2008, 12:49 PM
Do the normal AJAX thread edits (default vB functionality) work with AJAX on your language?
Yes,of course

Deceptor
12-26-2008, 03:54 PM
Can you give me some example text that you used that didn't work, and the charset of your forums language? :)

Thanks.

Deceptor
12-26-2008, 04:14 PM
Version 1.0.1 released, this fixes a small bug concerning unicode issues :)

KURTZ
12-26-2008, 08:15 PM
deceptor, just a question: why this hack doesn't run onto the subforums?

Deceptor
12-26-2008, 08:19 PM
KURTZ - It does, unless you mean the sub forums show as mini-links inside an existing forum cell? But if you go into forumdisplay, and see the subforums there, double clicking next to the sub forum name should bring up the editor :)

KURTZ
12-26-2008, 09:36 PM
dude, i just saw that your hack puts over my forum index 30 queries ... too many ... :( so i uninstall your hack ... sorry ... hope you can fix it in the next release ...

cya

Deceptor
12-26-2008, 09:38 PM
I'm sorry? This modification adds 0 queries to anything, the only query it does execute is when an AJAX request is sent to edit a forum title.

Please get your facts straight before making claims.

KURTZ
12-27-2008, 02:05 PM
I'm sorry? This modification adds 0 queries to anything, the only query it does execute is when an AJAX request is sent to edit a forum title.

Please get your facts straight before making claims.

i've installed your hack and now i've 56 queries onto the forumhome ... without this hack i've normally 26 queries ... i can saw this thing cause i've enabled the debug mode ... ;)

R-D
12-27-2008, 02:46 PM
i've installed your hack and now i've 56 queries onto the forumhome ... without this hack i've normally 26 queries ... i can saw this thing cause i've enabled the debug mode ... ;)

That'll be Hasann's "Username HTML Markup" mod, not this one.

I'm sorry? This modification adds 0 queries to anything, the only query it does execute is when an AJAX request is sent to edit a forum title.I just confirmed this on my main board - absolutely no queries added, unless you edit a forum title. :up:

LGKeiz
01-16-2009, 12:02 PM
on the normal vb skin, I couldnt get this working..

Daniel_HBK
01-31-2009, 11:30 AM
i it didn't worked :(

plz help

(http://2movies.net/forum/external.php?forumids=10)http://2movies.net/forum/2movies/misc/rss.gifTV Series"> (http://2movies.net/forum/external.php?forumids=10) TV Series (http://2movies.net/forum/f10.html) (28 Viewing)

i made before edits on "forumhome_forumbit_level2_post"


<tr align="center">
<td class="alt2">$forum[forumhomeicon]</td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="external.php?forumids=$forum[forumid]"><img src="$stylevar[imgdir_misc]/rss.gif" border="0" width="17" height="18" hspace="2" alt="????? ?? ??? ????? ?????? ??? ???????? ???? : $forum[title]"></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>
</tr>
$childforumbits

jayfenney
02-02-2009, 02:04 PM
I can't for the life of me get this to work. All AJAX features are enabled on my board, and editing of thread titles works fine. I've installed and re-installed this mod but absolutely no luck. I've got a number of mods installed on my board, any changes I've made to my skin (which started out life as the standard vB skin) have been cosmetic changes, colour changes and so on. Any advice on what the problem could be?

Teknik4
02-03-2009, 03:00 AM
thank you nice mod ;)

yingzhou
02-04-2009, 01:07 AM
very useful hack. Thanks.

kpa4941
02-04-2009, 11:17 PM
I use the greenfox skin from vbstyles.com and it doesn't work. I also get a javascript error on the bottom left of IE7 saying: 'this.span.innerHTML' is null or not an object

You said that this may happen on heavily changed styles.

Farsisat
02-10-2009, 10:14 AM
thanks.install
if anybody can made for subforum edit is the usefull and best plugin.

Dj Sagi
03-02-2009, 03:46 PM
i download this file and it is dont work it is say that the file is dont work...

DJ_Rguez
03-07-2009, 01:31 PM
This hack does not work

tirol07
03-07-2009, 03:08 PM
Thank you for this usefull hack, it work in the kategory but not on forumhome!
Can you help me please?

GhoHan
03-07-2009, 03:17 PM
This mod just edit Forum title only?
How about forum description??

Thanks i hope this mod also doing that for forum description... :)
but this a good idea.

Naxon
03-09-2009, 12:09 PM
doesn't work for me...

Dj Sagi
03-09-2009, 02:06 PM
it is with so much bugs it is change only category titles and i cant change forums title

Phalynx
03-09-2009, 07:12 PM
Nice one, thanks.

Mdrop
03-09-2009, 08:54 PM
Is there a option that you add a function to change the post-icon in ajax?

Spikeman
03-27-2009, 05:35 PM
Did not think this would work for me with my modded customised skin, but it does perfect, good job, thanks.

DJ XtAzY
04-02-2009, 02:33 AM
Does not work if vbseo installed

LGKeiz
04-03-2009, 08:55 PM
great addon, but can you make it so we can edit descriptions, and also edit threads in FORUMDISPLAY? not only FORUMHOME

supLaditOz
04-03-2009, 09:50 PM
This is easy to change forums and category great job

Installed!

LGKeiz
04-04-2009, 06:37 PM
This doesn't work with vbseo..

dutchbb
04-19-2009, 01:49 PM
Doesn't work here, also using vbseo.

vBulletin should make this default!

Floris
05-16-2009, 09:21 AM
I would install this, if it would also does:
* forum description editing,
* project tools title / descriptions,
* and works with vBSEO.
Nice addon :)

tldagent
01-06-2010, 02:09 AM
Excellent Hack. Nominated MOTM. Great find, thanks for sharing.

derzok
05-16-2010, 11:58 PM
Hack does not work with forum titles that have single quotes (') in them. To fix, add:


function vbaddslashes (str) {
return (str+'').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0');
}


to the clientscript. Then change:


eval("element." + a + " = " + ((parseInt(attributes[a]) == attributes[a]) ? attributes[a] : "'" + attributes[a] + "'") + ";");


to


eval("element." + a + " = " + ((parseInt(attributes[a]) == attributes[a]) ? attributes[a] : "'" + vbaddslashes(attributes[a]) + "'") + ";");


in the same file

sinpin
07-04-2010, 12:33 PM
Nice idea, thanks

Rafael?
08-31-2011, 02:56 PM
thanks, installed on vb 3.8.7!

Xexiu
04-15-2013, 03:49 PM
I'm using this hack for a very long time!

Is it posible to change attributes ID with CLASSES?

I saw that the code above its calling an ID, I would like to switch to "class" in order to:

<span id="forumtitle_ajax_$forum[forumid]">$forum[title]</span>

can be:

<span class="forumtitle_ajax_$forum[forumid]">$forum[title]</span>

I'd had a look inside the javascript and observed this:

if (spans[s].id && spans[s].id.substr(0, 16) == 'forumtitle_ajax_')
{
this.spans[spans[s].id.replace('forumtitle_ajax_', '')] = spans[s];
this.seek_parent(spans[s], 'td').ondblclick = vB_AJAX_Forumlist.forum_doubleclick;
}

How can I change from .id to .class?? Is it posible? I'm not a javascript expert so I dont know much about it.

Any help, will be appreciated.

Thanks.