PDA

View Full Version : Best Idea Ever - New Thread Button Under Index Count User Permission Based


DieselMinded
09-09-2008, 04:06 PM
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

Marco van Herwaarden
09-09-2008, 04:13 PM
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.

DieselMinded
09-09-2008, 04:15 PM
The More the Merrier

Quarterbore
09-09-2008, 04:17 PM
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

DieselMinded
09-09-2008, 04:25 PM
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

Marco van Herwaarden
09-09-2008, 04:30 PM
Not much coding needed, think it could be done (without permission checks) with only a template edit.

DieselMinded
09-09-2008, 04:33 PM
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 https://vborg.vbsupport.ru/external/2009/11/11.gif

Quarterbore
09-09-2008, 05:39 PM
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:


<td class="alt1">$forum[threadcount]</td>


REPLACE WITH:



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

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.

DieselMinded
09-09-2008, 06:07 PM
WOW Thanks Ill try your edits..............

--------------- Added 1220987686 at 1220987686 ---------------

Its Working Thanks ill credit you the coder