Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2008, 04:06 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Best Idea Ever - New Thread Button Under Index Count User Permission Based

I want to ad a small Img file to my forum index called Add New , I want it to show under the Thread Counts for each forum and have the user be able to click the button and go directly to starting a thread in that forum , Button should only appear on the forums they are permitted to start a new thread in

- Img will go under the thread counts for each forum
- Img will be linked to start a new thread in that forum (Same Frame)
- Img must be permission based and only show to users who can start threads in that forum

Img Files Attached for Possible Mod Release Here on vBorg
Attached Images
File Type: png Untitled-2.png (95.7 KB, 0 views)
Reply With Quote
  #2  
Old 09-09-2008, 04:13 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am afraid this will only increase the number of duplicate threads. People will not even look in a forum and see the existing threads.
Reply With Quote
  #3  
Old 09-09-2008, 04:15 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The More the Merrier
Reply With Quote
  #4  
Old 09-09-2008, 04:17 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
I am afraid this will only increase the number of duplicate threads. People will not even look in a forum and see the existing threads.
I don't think so, this would make it easier for a member to start a new thread without needing to drill down to the forum to click the "new thread" button inside of the forum.

I don't have the time to do this myself at this time but I do see a legitimate value in this suggestion/idea. Creating the link is easy, getting the permissions for each forum to drive if the button is shown could be a little tricky.

I like the idea
Reply With Quote
  #5  
Old 09-09-2008, 04:25 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ! , There is a - User Can Start New Threads , Thing in each forums permissions

My Site Details you must be staff to start a new thread but anyone can reply so the code is there , just need to piggy back on it

I wish i could code , i bought books and everything for vbulletin and still i have to rely on the coders here , mainly Mike Biddle and Adam from AWCoding Both have done custom exclusive work for me ..., its getting expensive so i hope a coder will pick this challenge up for the community to benefit from and ill make a donation
Reply With Quote
  #6  
Old 09-09-2008, 04:30 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not much coding needed, think it could be done (without permission checks) with only a template edit.
Reply With Quote
  #7  
Old 09-09-2008, 04:33 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If i have to resort to that i will , But i would rather them be permission based not much use for them to show to guests unless the link changed to the register page if a guest clicks it
Reply With Quote
  #8  
Old 09-09-2008, 05:39 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not pretty but it will get you started, there are two templates you need to edit:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

In each you need to:

FIND:

PHP Code:
        <td class="alt1">$forum[threadcount]</td
REPLACE WITH:


PHP Code:
        <td class="alt1">$forum[threadcount]<if condition="$show['member']"><br /><a href="$vboptions[bburl]/newthread.php?$session[sessionurl_q]do=newthread&f=$forum[forumid]"><img src="$vboptions[bburl]/images/addnew.png" alt="vbphrase[post_new_thread]" /></a></if></td
You can see it here:

http://www.vbclassified.com/index.php?

user: testuser1
password: test2_paswrord

No permissions checks but it works fine

I do think you would want to have permissions around this so that obviously would need to be done outside of the template.

I will leave this on my site for a couple days and then expect it to be removed.
Reply With Quote
  #9  
Old 09-09-2008, 06:07 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WOW Thanks Ill try your edits..............

--------------- Added [DATE]1220987686[/DATE] at [TIME]1220987686[/TIME] ---------------

Its Working Thanks ill credit you the coder
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 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.03948 seconds
  • Memory Usage 2,269KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete