vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - AdminFuel - Thread Starter (https://vborg.vbsupport.ru/showthread.php?t=223985)

rockinaway 09-25-2009 10:00 PM

AdminFuel - Thread Starter
 
1 Attachment(s)
Thread Starter v1.1

Simple modification that adds an image next to the thread starter's username.

This is my first modification, as I am not too sure with the vBulletin code. Please give me your feedback as it is a simple modification but I am sure it can be improved. Sorry for any code issues :)

Image thanks to FamFamFam

Installtion:

- Upload image provided to images/misc
- Upload threadstarter.xml folder to install product
- APPLY THE FOLLOWING TEMPLATE EDIT
In the postbit template you are using (default is 'postbit') add $thread_starter_img at the location you wish the image to be displayed.

Example
In the postbit template find:
Code:

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
After add:

Code:

$thread_starter_img

Demo and Support: http://www.adminfuel.com

Thanks
rockinaway

Sador 09-26-2009 11:12 AM

Congrats on your first mod. :)

Just tried to install this to be able to give you some feedback. It isn't too clear where you should add $thread_starter_img in the navbar template. Not everybody knows where they have to put the code to make it work, and if you put it at the wrong place, you'll get an annoying error when you want to view a topic.

Maybe you could add to your instructions where you have to place the code so the image will show up where you meant it to be?

4nawadir.com 09-26-2009 11:58 AM

Nice mod , thanks ...
Installed ...

rockinaway 09-26-2009 12:03 PM

Thanks for the feedback. It's intended for the postbit, I have updated the instructions here for a guide as to where to add it :)

Sador 09-26-2009 12:17 PM

Fatal error: Call to a member function query_first() on a non-object in forum/includes/class_postbit.php(265) : eval()'d code on line 3

This is the error I get when enabling your product and visit one of my forums. First I thought it was because of the wrong place for the code, but it disappears when I disable your product.

But thanks for adding the example. :)

rockinaway 09-26-2009 12:20 PM

Have you updated your vBulletin version? I was getting this error on my test board for some strange reason. As you can see, it works fine on the demo board.

Are there any other modifications you have installed?

Sador 09-26-2009 12:25 PM

Quote:

Originally Posted by rockinaway (Post 1890796)
Have you updated your vBulletin version? I was getting this error on my test board for some strange reason. As you can see, it works fine on the demo board.

Are there any other modifications you have installed?

It's the most recent version of vBulletin.

Yep, I do, a few. I've disabled all of them now to check if something is conflicting. I can now see my the forums again, but upon clicking a thread or trying to make a thread, I get that error message again.

rockinaway 09-26-2009 12:29 PM

I am slightly confused with this, since I don't have that much experience with vBulletin I can't give you a solution right away using vBulletin code. I can give you one that should work in normal PHP code.

I will have to look into this as to why it won't work on certain boards.

Sador 09-26-2009 12:31 PM

Don't worry about it, it's a testboard anyway. Hope you'll figure it out, it seems like a nice mod.

rockinaway 09-26-2009 12:33 PM

Okays, I have posted a thread in the programming area for some help. I will post here as soon as I do get some information.

Thanks again :)

You can also go to my forum if you wish to get some other resources and help :)

erel34 09-26-2009 01:03 PM

thanks

yahoooh 09-26-2009 04:27 PM

demo plz

rockinaway 09-26-2009 04:43 PM

Demo is at http://www.adminfuel.com

rockinaway 09-26-2009 04:50 PM

Updated with less code. Much simpler and should now work anywhere. I am sorry about this, I am just not familiar with all the variables yet.

Thanks :)

Sador 09-26-2009 05:10 PM

Quote:

Originally Posted by rockinaway (Post 1890918)
Updated with less code. Much simpler and should now work anywhere. I am sorry about this, I am just not familiar with all the variables yet.

Thanks :)

It works now, nice job. :)

And don't worry about it, everybody has got to learn. Hope you'll continue to make nice mods.

rockinaway 09-26-2009 05:28 PM

Thanks a lot :) Glad it works. I am starting off with the small edits to get things going and to learn the structure.


Thanks :)

Sador 09-26-2009 05:33 PM

I'll gladly test again if you release another mod. Good luck! :)

Bubble #5 09-26-2009 11:11 PM

Quote:

Originally Posted by rockinaway (Post 1890917)

Sorry but people do not have all day to hunt around for an example of what this hack is supposed to look:o like. Please post a simple screenshot of what it looks like. Thank you.

Sador 09-27-2009 12:00 AM

1 Attachment(s)
Quote:

Originally Posted by Bubble #5 (Post 1891091)
Sorry but people do not have all day to hunt around for an example of what this hack is supposed to look:o like. Please post a simple screenshot of what it looks like. Thank you.

Here, because you've asked so nicely.

It ads a small image at each post of the topic starter.

Bubble #5 09-27-2009 01:06 AM

Quote:

Originally Posted by Sador (Post 1891103)
It ads a small image at each post of the topic starter.

Thanks Sador :)

Isn't a pencil typically the 'edit' icon?

Sador 09-27-2009 07:14 AM

Quote:

Originally Posted by Bubble #5 (Post 1891111)
Thanks Sador :)

Isn't a pencil typically the 'edit' icon?

It is. But I can see how it could be thread starter as well.

You could of course change it to any kind of image by changing the image with the one you want. (I would make sure it's the same size though)

rockinaway 09-27-2009 08:07 AM

Simply change the image :) It can be anything you wish

Arcade Fire 09-27-2009 08:39 AM

1 Attachment(s)
Thanks, I chage the image for this other:

https://vborg.vbsupport.ru/attachmen...1&d=1254044312

Install & Nominate! ;)

The Coon 09-27-2009 12:29 PM

1 Attachment(s)
Works fine! Thank you!

Attachment 104852

rockinaway 09-27-2009 03:03 PM

Thank you :)

biagiovuolo 09-27-2009 04:22 PM

Good luck!
Downloaded and installed ;)

rockinaway 09-27-2009 04:48 PM

Thanks again :)

cupra 10-06-2009 06:29 AM

hi and tnx for that mod, im wonder, that should also with vb 3.6x visions ?

cupra 10-06-2009 03:30 PM

hi and tnx for that mod, im wonder, that should also with vb 3.6x visions ?

rockinaway 10-06-2009 06:15 PM

I have not tested it on 3.6 versions, but I assume it would work as there aren't many edits.

Try it on a DEMO board first, and not your live board :)


All times are GMT. The time now is 06:05 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.04224 seconds
  • Memory Usage 1,774KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete