The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#71
|
||||
|
||||
Anything in the error logs?
|
#72
|
|||
|
|||
It's not the mod you helped with, it's a fresh mod I'm making stylevars for.
|
#73
|
||||
|
||||
If you pm me the XML file on my site, I can look at it later today.
|
#74
|
|||
|
|||
Quote:
Code:
if ($vbulletin->options['url_active']) { if ($vbulletin->options['url_text_decoration']) { $decoration = 'underline'; }else{ $decoration = 'none'; } } vB_Template::preRegister('url.css',array('decoration' => $decoration)); Code:
text-decoration: $decoration; |
#75
|
|||
|
|||
How do I go about adding a setting from a mod into a plugin?
I want to add an input box into my mod which an admin can enter a URL or name etc, then have the setting output the value via a plugin. --------------- Added [DATE]1413282284[/DATE] at [TIME]1413282284[/TIME] --------------- I know I can add this to a template: Code:
{vb:raw vboptions.this_settings} I suppose I would be better off creating a template, putting my code inside it, then running a plugin to call the template to insert it inside the showthread template? |
#76
|
||||
|
||||
Kinda hard to say without 1, seeing your code, 2, knowing what it is you are trying to do and 3, knowing what the expected end result is desired.
|
#77
|
|||
|
|||
Sorry, I was in the middle of making it work. I got it in the end. I am looking for your help ozzy, I will PM you my question.
--------------- Added [DATE]1413304843[/DATE] at [TIME]1413304843[/TIME] --------------- Looking for a way to show all available forums so I can make my mod work on only chosen forums. Any tutorial about how to achieve this? |
#78
|
|||
|
|||
Is there a way to remove a chunk of code from a template using plugins? I know about the str_replace function but what about removing 20 lines from a template?
SHOWTHREAD template for example, how would I remove this: Code:
<vb:if condition="$show['threadrating']"> <li class="popupmenu" id="threadrating"> <h6><a class="popupctrl" href="javascript://">{vb:rawphrase rate_this_thread}</a></h6> <div class="popupbody popuphover"> <form action="threadrate.php" method="post" id='showthread_threadrate_form'> <ul> <li id="threadrating_current"<vb:if condition="!$show['rating']">class="hidden"</vb:if> title="{vb:rawphrase thread_rating_x_votes_y_average, {vb:raw thread.votenum}, {vb:raw thread.voteavg}}"><label> <span class="rating r{vb:raw thread.rating}<vb:if condition="$thread['rating'] != 5">_{vb:stylevar right}</vb:if>">{vb:rawphrase current_rating}</span> </label></li> <vb:if condition="$show['ratethread']"> <li><label for="r5"><span class="rating r5"> {vb:stylevar dirmark}<input type="radio" name="vote" value="5" id="r5" {vb:raw votechecked.5} tabindex="20" /> {vb:rawphrase excellent} </span></label></li> <li><label for="r4"><span class="rating r4_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="4" id="r4" {vb:raw votechecked.4} tabindex="21" /> {vb:rawphrase good} </span></label></li> <li><label for="r3"><span class="rating r3_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="3" id="r3" {vb:raw votechecked.3} tabindex="22" /> {vb:rawphrase average} </span></label></li> <li><label for="r2"><span class="rating r2_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="2" id="r2" {vb:raw votechecked.2} tabindex="23" /> {vb:rawphrase bad} </span></label></li> <li><label for="r1"><span class="rating r1_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="1" id="r1" {vb:raw votechecked.1} tabindex="24" /> {vb:rawphrase terrible} </span></label></li> <li class="formsubmit"><input type="submit" class="button" value="{vb:rawphrase vote_now}" tabindex="25" /></li> <vb:else /> <li><label>{vb:rawphrase already_rated_this_thread}</label></li> </vb:if> </ul> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="t" value="{vb:raw threadid}" /> <input type="hidden" name="pp" value="{vb:raw perpage}" /> <input type="hidden" name="page" value="{vb:raw pagenumber}" /> </form> </div> <script type="text/javascript"> <!-- vB_AJAX_ThreadRate_Init('showthread_threadrate_form', {vb:raw threadinfo.threadid}); //--> </script> </li> </vb:if> |
#79
|
||||
|
||||
Why remove or hide the code, just set the $show['threadrating'] to false.
|
#80
|
|||
|
|||
Because I want use the etiket template mod to put the options above the thread.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|