vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   new thread button @ forumhome (https://vborg.vbsupport.ru/showthread.php?t=88684)

Kairo 03-21-2004 12:47 PM

new thread button @ forumhome
 
I looked around but i couldn;t really find what i;'m looking for ...

What i want is an extra colomn next to the Posts column on the forumhome with new thread buttons, and not something weird like Filberts hack; http://www.vbulletintemplates.com/mo...ead.php?t=2002

it should point to newthread.php ( same as when you click on new thread @ forumdisplay ... i hope its clear ;x

i;m using vb3 gold

/Kairo

stupid keyboard -.-

Zachery 03-21-2004 12:58 PM

basicly same idea


copy our code from forumdisplay template

HTML Code:

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
change the varible abit ;)

and presto, were done

Now if youd like to add this to the moderators collum. (i wouldnt suggest a new one as it might bie abit crapmed.)

in forumhome_level1_post find


<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>


and replace it with our new code

HTML Code:

<td class="alt1">
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></div></td>

:) you should change the newthread button to somthing else, as it would be rather large

Alien 03-26-2004 06:59 AM

I cannot get this to work for me. :( We don't use the moderator column and want to put this into it's own column... We tried adding to the moderator column to test and turned moderator column ON in AdminCP and it wouldn't work.. We tried to just ADD the column and couldn't get that working either...

Can you hold my hand some more with a step by step on how to create a brand new column with new thread and even subscribe/unsubscribe buttons via a conditional? :D

I'd be eternally grateful!

Zachery 03-26-2004 10:55 AM

Well that code should be right, ill try it out on one of my test forums today.


All times are GMT. The time now is 10:08 AM.

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.00937 seconds
  • Memory Usage 1,718KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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