Author Topic: [Youtube][/Youtube]Tags, for Posters with over 50/100 post count?  (Read 5561 times)

0 Members and 1 Guest are viewing this topic.

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Just wondered if this would be useful for people, It would for me but I know that doing this could give spam bots another way to post naughty stuff, so what about a post count limitation where you have to have at least 50 posts or 100 to post Youtube videos.

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: [Youtube][/Youtube]Tags, for Posters with over 50/100 post count?
« Reply #1 on: May 28, 2012, 10:32:16 PM »
Good suggestion, but it'd need some coding...  currently there's no way to limit such things on a per-rank basis.

You can limit stuff like preventing certain ranks from being able to create polls, or being able to edit posts... but not for specific types of links..


Also, the vast majority of spambots are only interested in posting URLs.  This is for the link-back strategy, where the more URL's a google spider finds that point to a given website, the higher that website tends to rise up in the search rankings.
This is the basically the only reason why the spambot model exists; it's an indirect result of Google's search ranking strategy.


So it would be better if we could prevent new users from posting links...  but again, that would take some coding.
« Last Edit: May 28, 2012, 10:35:19 PM by annikk.exe »

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: [Youtube][/Youtube]Tags, for Posters with over 50/100 post count?
« Reply #2 on: May 28, 2012, 11:14:32 PM »
Well I don't know how Forum coding works, so I wouldn't be able to help, but isn't there templates and addons to just copy the code?

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: [Youtube][/Youtube]Tags, for Posters with over 50/100 post count?
« Reply #3 on: May 28, 2012, 11:23:35 PM »
It's written in PHP.
There are pre-built addons you can use, some of these (such as the Spoiler Button mod) are in use on this forum.

A lot of modifications can be made by editing the code directly, which is how I was able to put the divider in between sticky topics and regular topics.


Here's a list of mods if you're interested:
http://custom.simplemachines.org/mods/

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: [Youtube][/Youtube]Tags, for Posters with over 50/100 post count?
« Reply #4 on: May 28, 2012, 11:32:58 PM »
Even if I was interested I couldn't edit anything haha!

is this PHP?

Code: [Select]
[youtube]<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>[/youtube]
or this?

Code: [Select]
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
« Last Edit: May 28, 2012, 11:36:25 PM by Tomfloria »

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: [Youtube][/Youtube]Tags, for Posters with over 50/100 post count?
« Reply #5 on: May 28, 2012, 11:42:02 PM »
Nope, that's HTML/CSS I think..


Here's some PHP:

Code: [Select]
function template_main()
{
   global $context, $settings, $options, $txt, $scripturl;

   echo '
         <div style="padding: 3px;">', theme_linktree(), '</div>
         <table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder">
            <tr>
               <td align="left" class="catbg" width="100%" height="30">
                  <b>', $txt[139], ':</b> ', $context['page_index'], '
               </td>
            </tr>
         </table>
         <br />';

Parts of it look like html.  That is because the PHP code is generating a html page each time it is viewed, so the html stuff and appropriate variables are echoed into a big long string which forms the html file.
This is part of the forum code by the way. :>

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 23
  • Posts: 930
  • Eufloria: Yes
Re: [Youtube][/Youtube]Tags, for Posters with over 50/100 post count?
« Reply #6 on: May 29, 2012, 01:17:05 AM »
PHP: Infinitely Recursive Acronyms

sillytuna

  • Eufloria lacky
  • Administrator
  • Arboreal Being
  • *****
  • Thank You
  • -Given: 58
  • -Receive: 92
  • Posts: 446
    • TunaHQ
  • Eufloria: Yes
[Youtube][/Youtube]Tags, for Posters with over 50/100 post count?
« Reply #7 on: November 16, 2012, 11:08:48 AM »
If you include a recognised video URL, it'll be embedded in the post as a video now.