vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Any mod to add "new topic" link to forum list? (https://vborg.vbsupport.ru/showthread.php?t=302689)

postcd 09-26-2013 06:18 PM

Any mod to add "new topic" link to forum list?
 
Hello,

when i go to forum index like http://goteen.net i would like to be able to create new topic right from the category/forum list, i dont wish to enter the forum first. Please any hack/mod for this? Showing create new topic link/button in forum list, bellow description or so?

ozzy47 09-26-2013 08:25 PM

It can be done for forums with no subforums in them, with a template edit.

ACP --> Styles & Templates --> Style Manager, choose your style and select Edit Templates.

Find the template group, FORUMHOME, double click on that, then double click on, forumhome_forumbit_level2_post

In that template search for the following:
Code:

        <ul class="forumactionlinks td">
Then after that add this:
Code:

            <vb:if condition="$forum['allowposting']"><li class="forumactionlink newthreadlink"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;forumid={vb:raw forum.forumid}" title="{vb:rawphrase post_new_thread}" style="padding-{vb:stylevar left}:0;"><img src="{vb:stylevar imgdir_statusicon}/thread_new-16.png" height="12" width="12" /></a></li></vb:if>
This uses a one of the existing statusicons, but you'd obviously be free to change the image (in this particular location, 12x12 is the required dimensions).

postcd 09-30-2013 07:13 PM

Thanks, a new small icon is visible next to green subscribe icon. Worked exactly as you described.

ozzy47 09-30-2013 08:33 PM

Cool, glad it did what ya needed. :)


All times are GMT. The time now is 07:32 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.00935 seconds
  • Memory Usage 1,713KB
  • 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)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