PDA

View Full Version : Miscellaneous Hacks - Poster username in a separate column (all over the forum)


Omranic
06-22-2007, 10:00 PM
Please remember to click Mark as Installed if you use this modification.
Support questions from members who have not marked this as installed will be considered low priority.



Name: Poster username in a separate column (forumdisplay/search/moderation/subscribed)


Description: This modification will allow you to optionally separate poster username in a new column ( forumdisplay / search results / moderation system / Subscribed threads )


Feature:

Read Description.
Fully Controlled (On/Off) from admincp options.
Applied on the forum as whole ( forumdisplay / search results / moderation system / Subscribed threads ).



Notes:

Tested Only with 3.6.4 / 3.6.5 / 3.6.6 / 3.6.7 (NOT tested on 3.6.x < 3.6.4) But should work with 3.6.x.
NOT Compatible with 3.5.x.
VIP NOTE: The Following edits cat't be done automatically by plugins (No wAy!), So you SHOULD Do it MANUALLY !!. (Only 4 edits done automatically via plugins, no way to do the others).


Templates edited:

FORUMDISPLAY
threadbit
threadbit_deleted
SUBSCRIBE
USERCP
search_results
threadbit_lastvisit
moderation_threads


Help Us:

Suggestions needed to develop this mod :).
Any one can help in decreasing these edits or apply it with plugins.



Known Isues:
None till now.


History:
v1.0.0 23/6/2007 6:20 AM (EEST): First initial public release.


Screen Shots:
Available down there ;) .


Technical Notes:
Plugins: 4
Phrases: 3
Template changes: 32 (in 8 Templates) [4 Auto & 28 Manual] :eek:
Code Changes: 0
New Templates: 0
New Files: 0
Settings: 1
New DB Tables: 0
DB Changes: 0
Cron Jops: 0


Installing Procedure:

1. Import the attached product..

2. Do the following template edits..

#############################################
#############################################

In the template FORUMDISPLAY Search for the following code:

/ $vbphrase[thread_starter]


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']"> / $vbphrase[thread_starter]</if>


----------------------------

In the same template search for the following code:

<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[last_post]</span></td>


ADD above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="thead" align="center" nowrap="nowrap">
$vbphrase[thread_starter]
</td>
</if>


----------------------------

In the same template search for the following code:

/
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']"> /
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]</if>


----------------------------

In the same template search for the following code:

<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>


Add above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="thead" align="center" nowrap="nowrap">
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
</if>



#############################################
#############################################


In the template threadbit search for the following code:

<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']">
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>
</if>


----------------------------

In the same template search for the following code:

<if condition="$show['threadmoved']">


Add above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="alt2" align="center" nowrap="nowrap">
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<a href="member.php?$session[sessionurl]u=$thread[postuserid]">$thread[postusername]</a>
</if>
</td>
</if>


----------------------------

In the same template search for the following code:

<td class="alt2" align="center">-</td>


Replace it with following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt1<else />alt2</if>" align="center">-</td>


----------------------------

In the same template search for the following code:

<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">


Replace it with the following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt1<else />alt2</if>" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">


----------------------------

In the same template search for the following code:

<td class="alt1"><div class="smallfont">


Replace it with the following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt2<else />alt1</if>"><div class="smallfont">


----------------------------

In the same template search for the following code:

<td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>

Replace it with the following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt1<else />alt2</if>"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>

----------------------------

In the same template search for the following code:

<td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="misc.php?do=whoposted&amp;t=$thread[threadid]" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>


Replace it with the following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt2<else />alt1</if>" align="center"><if condition="$show['threadmoved']">-<else /><a href="misc.php?do=whoposted&amp;t=$thread[threadid]" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>


----------------------------

In the same template search for the following code:

<td class="alt2" align="center">$thread[views]</td>


Replace it with the following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt1<else />alt2</if>" align="center">$thread[views]</td>


----------------------------

In the same template search for the following code:

<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>


Replace it with the following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt2<else />alt1</if>"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>


----------------------------

In the same template search for the following code:

<if condition="$show['inlinemod']">
<td class="alt1">


Replace it with the following code:

<if condition="$show['inlinemod']">
<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt2<else />alt1</if>">



#############################################
#############################################


In the template threadbit_deleted search for the following code:

<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']">
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>
</if>


----------------------------

In the same template search for the following code:

<td class="alt2" colspan="3" align="center">


Replace it with the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="alt2" align="center" nowrap="nowrap">
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<a href="member.php?$session[sessionurl]u=$thread[postuserid]">$thread[postusername]</a>
</if>
</td>
</if>

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt1<else />alt2</if>" colspan="3" align="center">


----------------------------

In the same template search for the following code:

<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>


Replace it with the following code:

<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt2<else />alt1</if>"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>


----------------------------

In the same template search for the following code:

<if condition="$show['inlinemod']">
<td class="alt1">


Replace it with the following code:

<if condition="$show['inlinemod']">
<td class="<if condition="$vboptions['phpkd_poster_separatedcol_active']">alt2<else />alt1</if>">



#############################################
#############################################


In the template SUBSCRIBE search for the following code:

/
<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']"> /
<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]</if>


----------------------------

In the same template search for the following code:

<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>


Add above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="thead" align="center" nowrap="nowrap">
<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
</if>



#############################################
#############################################


In the template USERCP search for the following code:

/ $vbphrase[thread_starter]


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']"> / $vbphrase[thread_starter]</if>


----------------------------

In the same template search for the following code:

<td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>


and add above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="thead" align="center" nowrap="nowrap">
$vbphrase[thread_starter]
</td>
</if>



#############################################
#############################################


In the template search_results & search in it for the following code:

/ $vbphrase[thread_starter]


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']"> / $vbphrase[thread_starter]</if>


----------------------------

In the same template search for the following code:

<td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>


Add above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="thead" align="center" nowrap="nowrap">$vbphrase[thread_starter]</td>
</if>


----------------------------

In the same template search for the following code:

$navbar


Add under it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<if condition="$colspan_increment OR $threadcolspan++"></if>
</if>



#############################################
#############################################


In the template threadbit_lastvisit search for the following code:

<tr>


Add above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<if condition="$threadcolspan++ AND $colspan_increment = true"></if>
</if>



#############################################
#############################################


In the template moderation_threads search for the following code:

/
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]


Replace it with the following code:

<if condition="!$vboptions['phpkd_poster_separatedcol_active']"> /
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]</if>


----------------------------

In the same template search for the following code:

<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>


Add above it the following code:

<if condition="$vboptions['phpkd_poster_separatedcol_active']">
<td class="thead" align="center" nowrap="nowrap">
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
</if>



You're Done!

Omranic
06-23-2007, 02:20 AM
First Post Reserved!

rjmjr69
06-23-2007, 02:53 AM
HOLY COW SH!T BATMAN is there enough edits? That looks like more than installing vbplaza. Theres this auto code thing that allot of the coders are using maybe you could study up on that or ask someone for help.

Non the less keep up the good work. I'll wait for an easier install method.

FReeSTER
06-23-2007, 03:00 AM
HOLY COW SH!T BATMAN is there enough edits? That looks like more than installing vbplaza. Theres this auto code thing that allot of the coders are using maybe you could study up on that or ask someone for help.

Non the less keep up the good work. I'll wait for an easier install method.I second that.


But great work though, will love to see a beter install for this. It looks great!!!!!!!!!!

Magnumutz
06-23-2007, 04:28 AM
How about making it a product? I know it takes some time, but let me know when your done with it.

iogames
06-23-2007, 05:09 AM
Eerrr... yeah it's too much for me... I admire your dedication tough...
[right now I love so much my board to go for it :D]

Glamology
06-23-2007, 05:30 AM
You know, I thought there were a lot of edits, yes, but I did it anyway. I'd wanted this edit forever.

This? Is freaking perfect! Thanks so much. Question, in the future can you provide a way to let users chose whether or not they'd like to view the forum this way? Thanks!

Omranic
06-23-2007, 05:38 AM
Eerrr... yeah it's too much for me... I admire your dedication tough...
[right now I love so much my board to go for it :D]

You know, I thought there were a lot of edits, yes, but I did it anyway. I'd wanted this edit forever.

This? Is freaking perfect! Thanks so much. Question, in the future can you provide a way to let users chose whether or not they'd like to view the forum this way? Thanks!

How about making it a product? I know it takes some time, but let me know when your done with it.

I second that.


But great work though, will love to see a beter install for this. It looks great!!!!!!!!!!

HOLY COW SH!T BATMAN is there enough edits? That looks like more than installing vbplaza. Theres this auto code thing that allot of the coders are using maybe you could study up on that or ask someone for help.

Non the less keep up the good work. I'll wait for an easier install method.



VIP NOTE: These edits cat't be done automatically by plugins (No wAy!), So you SHOULD Do it MANUALLY !!.


Regarding to Glamology's comment: yes, i might release a future version allows users to choose the mode they prefer.

dbirosel
06-23-2007, 05:55 AM
Or you can follow the steps on vbulletin.com...

http://www.vbulletin.com/forum/showthread.php?t=197265

Omranic
06-23-2007, 09:41 AM
Or you can follow the steps on vbulletin.com...

http://www.vbulletin.com/forum/showthread.php?t=197265
The steps mentioned there isn't complete & some of it done via plugins within my mod, also my modification covers all forum parts ( forumdisplay / search results / moderation system / Subscribed threads ) & supply an option for turning the whole modification On/Off.

wizardan
06-23-2007, 09:46 AM
Wow.
Will check it out on my test forum.
If there's no conflict with anything else, it goes live.
Those edits, although many, look clean and precise.
:)Clicks install gladly.:)

Coders Shack
06-23-2007, 11:35 AM
nice mod, but holy crap. soo many edits.

Andyucs
06-23-2007, 12:17 PM
nice but again far to many edits

contact Cybernetec

he may be able to help

ChrisSy
06-23-2007, 04:47 PM
I wish this option would be included in future vbulletin versions.

Great hack though thanks!

Coders Shack
06-23-2007, 05:50 PM
I wish this option would be included in future vbulletin versions.

Great hack though thanks!
it is, they offer preg_replace for your templates.

but its easy to mess up that way.

Magnumutz
06-24-2007, 02:20 PM
If Cybernetec manages to help this dude with these so many template edits, i'm gonna install it, but i can't start doing so many template edits... not sure if it's gonna work on my skin.

saib
07-08-2007, 01:13 PM
Great. Thx.

I would like to change font size from 11px to a little smaller.
How can I do this?

Regards.

tokenyank
07-08-2007, 08:36 PM
plugin system has made us lazy!

Yeah, there's a lot of editing but this is minimal compared to what it used to be like to hack vB pre-plugins... And that was mostly core file edits that all had to redone with updates!

I don't need this hack, but I wanted to show my support and tell the whingers to stop whinging! ;)

saib
07-10-2007, 07:31 PM
Anyone? :)

ForYou
07-28-2007, 01:31 PM
Hello ,

Is there away to add poster date under the orginal poster , I mean i need to put to poster theard date not the last date of the last post ,

I hope there is no understanding ,

Regards

ahmedeldeep
07-28-2007, 11:39 PM
thank you very much
this is a good try and i hope the future work will be the best

gazak allah kher ( Arabic words )

Omranic
10-05-2007, 06:37 PM
There is no way to do it via plugins, till now there is no hooks, template hooks that can serv in this mod.

I have contacted 'Cybernetec' & he confirm that there is no way till this moment.

thanks for all.

GhoHan
11-30-2007, 02:22 AM
nice ones...
lots of work but the result is beyond expectation ThumbUp
INSTALLED :)

Mixibiza
12-17-2007, 08:30 AM
Excellent. Yes a Lot of work involved but once you get it done its pretty cool :)

Chachacha
12-18-2007, 01:16 AM
HA! I don't think I've EVER seen so many template edits in one hack.

JohnBee
12-18-2007, 01:46 AM
Wow so many whiners!
Take it from someone who's been doing it long hand(all these versions). It is nice to see something official and complete like this! - thanks

shadowevil
04-04-2008, 05:17 AM
Is it working for 3.7.x ??

BigJohnny
08-12-2010, 01:15 AM
it seems to be workin fine so far on board not yet live, running 3.8.3.

It was just installed so i'll update if their are any problems.

BigJohnny
08-14-2010, 11:22 AM
The steps mentioned there isn't complete & some of it done via plugins within my mod, also my modification covers all forum parts ( forumdisplay / search results / moderation system / Subscribed threads ) & supply an option for turning the whole modification On/Off.

I wasn't even paying attention to the fact that it could be turned on and off. It took almost an hour to complete the edits, and I loved the mod, then I discovered it can be turned off and about crapped myself with joy.

Is this supposed to work on the main board index though? I'm just wondering because my main index still looks the same, but it's also modified with the Forumhome Category Spacing Mod (https://vborg.vbsupport.ru/showthread.php?p=2083650) so I just wanted to confirm if it's supposed to work there or not.

BigJohnny
09-11-2010, 12:18 PM
so 2 almost 3 years since the last reply before me. I've noticed one small problem. When you're looking at your subscribed threads in usercp, one of the colspans somewhere is messed up because the thead and tcat dont extend all the way across the table.