Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Moderadores y admins pueden usar HTML en los posts:
- c.posts.php: (DOS VECES)
- Buscas:
- if($tsUser->is_admod == 1){
- $postData['body'] = html_entity_decode($postData['body']);
- }
- Reemplazas por:
- if($tsUser->is_admod){
- $postData['body'] = html_entity_decode($postData['body']);
- }
- USARLO BAJO VUESTRA RESPONSABILIDAD, NO ME RESPONSABILIZO DEL USO QUE LE DEIS AL MOD NI DE CUALQUIER TIPO DE PROBLEMA QUE PUEDA SURGIR POR EL USO DEL MISMO.
- --------------------------------------------------------------
- Re up de un post al editarlo
- Abres el m.agregar_form.tpl y buscas:
- {if $tsUser->is_admod || $tsUser->permisos.most}
- <div class="option clearbeta">
- <input type="checkbox" tabindex="7" name="sticky" id="sticky" class="floatL" {if $tsDraft.b_sticky == 1}checked="checked"{/if} >
- <p class="floatL">
- <label for="sticky">Sticky</label>
- Colocar a este post fijo en la home.
- </p>
- </div>
- {/if}
- Abajo añades:
- {if $tsAction == 'editar'}
- <div class="option clearbeta">
- <input type="checkbox" tabindex="8" name="reup" id="reup" class="floatL">
- <p class="floatL">
- <label for="reup">Re up</label>
- Hacer que el post vuelva a aparecer de primero en la home como si estuviera recien agregado<br>
- <input type="pass" tabindex="8" name="pass" id="pass" class="floatL"/>
- </p>
- </div>
- {/if}
- En el c.posts.php
- Buscas:
- $s_order = 'p.post_id';
- Reemplazas por:
- $s_order = 'p.post_date';
- Buscas:
- $postData['block_comments'] = empty($_POST['sin_comentarios']) ? 0 : 1;
- Abajo añades:
- $postData['reup'] = empty($_POST['reup']) ? 0 : 1;
- Buscas:
- , post_sticky = \''.$postData['sticky'].'\'
- Al lado añades:
- '.($postData['reup'] = 1 ? ', post_date = \''.time().'\'' : '').'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement