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 :)


All times are GMT. The time now is 10:27 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.01032 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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