Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
jasn18
Registered User
Posts: 4
Joined: Sun May 29, 2011 10:52 pm

Re: Custom BBCodes

Post by jasn18 » Sun May 29, 2011 11:08 pm

amigos gostava de saber como obter bbcodes para colocar power point no meu forum versão 3.08
translated by google wrote:Friends like to know how to put bbcode power point on my forum version 3.08
Last edited by bonelifer on Sun May 29, 2011 11:14 pm, edited 1 time in total.
Reason: added Google translation

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3480
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: Custom BBCodes

Post by bonelifer » Sun May 29, 2011 11:17 pm

jasn18 wrote:amigos gostava de saber como obter bbcodes para colocar power point no meu forum versão 3.08
translated by google wrote:Friends like to know how to put bbcode power point on my forum version 3.08

I've added a google translation instead of disapproving your post. Please follow this boards rules: http://www.phpbb.com/rules/

We require all posts to be posted in English per Board Wide Policy (Rule 1f)
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

madsergalvin1
Registered User
Posts: 3
Joined: Sun May 29, 2011 11:42 pm

Re: Custom BBCodes

Post by madsergalvin1 » Sun May 29, 2011 11:55 pm

Hi Guys Im looking for the BBCode to embed the Podomatic player and I cant find it anywhere can anyone help with this ???


Podomatic player url :http://jamesgalvin2011.podomatic.com/en ... 7_25-07_00

madsergalvin1
Registered User
Posts: 3
Joined: Sun May 29, 2011 11:42 pm

Re: Custom BBCodes

Post by madsergalvin1 » Mon May 30, 2011 7:08 am

madsergalvin1 wrote:Hi Guys Im looking for the BBCode to embed the Podomatic player and I cant find it anywhere can anyone help with this ???


Podomatic player url :http://jamesgalvin2011.podomatic.com/en ... 7_25-07_00
Embed code is :

<object width='440' height='85'><param name='movie' value='http://jamesgalvin2011.podomatic.com/sw ... ram><param name='flashvars' value='minicast=false&jsonLocation=http%3A%2F%2Fjamesgalvin2011.podomatic.com%2Fentry%2Fembed_params%2F2011-05-11T01_57_25-07_00%26color%3D43bee7%26autoPlay%3Dfalse%26width%3D440%26height%3D85'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://jamesgalvin2011.podomatic.com/sw ... r_v18a.swf' flashvars='minicast=false&jsonLocation=http%3A%2F%2Fjamesgalvin2011.podomatic.com%2Fentry%2Fembed_params%2F2011-05-11T01_57_25-07_00%26color%3D43bee7%26autoPlay%3Dfalse%26width%3D440%26height%3D85' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='440' height='85'></embed></object>

jasn18
Registered User
Posts: 4
Joined: Sun May 29, 2011 10:52 pm

Re: help bbcodes

Post by jasn18 » Mon May 30, 2011 12:35 pm

I liked to post the powerpoint and that for this view in real time as it has in this instance was so liked by my forun think it has to do with the embed code help or I'll have to give
attention has nothing to do with yutobe

pixieloulou1982
Registered User
Posts: 36
Joined: Mon Jan 05, 2009 1:54 pm

Re: Custom BBCodes

Post by pixieloulou1982 » Mon May 30, 2011 1:31 pm

Hi, I searched through this topic but could not find what I was looking for.

I need a BBcode which allows users to add a background to their post. With text over it. It's commonly called a posting template or posting scripts

an example can be seen here http://necessaryevil.tigressdesign.co.u ... p=116#p116

Now ideally I would like to make a custom bbcode for each user, so they can use it for their posts. Any idea's?

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Mon May 30, 2011 9:03 pm

pixieloulou1982 wrote: I need a BBcode which allows users to add a background to their post. With text over it. It's commonly called a posting template or posting scripts

an example can be seen here http://necessaryevil.tigressdesign.co.u ... p=116#p116
It's not quite like that, but I mocked up a background image tag. If you want to see how they did it, do a View Source on that page.
pixieloulou1982 wrote:Now ideally I would like to make a custom bbcode for each user, so they can use it for their posts. Any idea's?
With my example, each user has to enter the background image tag in all of their posts. They can put whatever image they want in there.

Doing a custom BBCode per user would have several problems:
  • It would be excessive work for the admin. You'd have to create one for each user, obviously.
  • Users couldn't change it themselves. Defining BBCodes requires admin permissions.
  • Users could easily spoof each other because custom BBCodes can't have permissions. You'd have to have a policy against that and warn or ban offenders.
That said, I suspect that they use a custom MOD to associate a user's ID with one or more PhotoBucket images. That would relieve users of the burden of entering the BBCode themselves for every post and prevent one user from using another's image (well, unless that user copied another user's image and uploaded it to PhotoBucket with their own name).

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

User avatar
boy_ofpersia
Registered User
Posts: 88
Joined: Sat Sep 13, 2008 5:58 pm
Location: Tehran, Iran
Name: Arman Pasayandeh
Contact:

Re: Custom BBCodes

Post by boy_ofpersia » Tue Jun 07, 2011 12:27 pm

Hello my friends!
i need a bbcode that when you put a link between the tag it converts the link to the button & when you click on that button (image) your download starts.
is it sth like this!?
"We tie knots & bind up words in double meanings, and then try to untie them"
--Seneca

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Tue Jun 07, 2011 9:16 pm

boy_ofpersia wrote:i need a bbcode that when you put a link between the tag it converts the link to the button & when you click on that button (image) your download starts.
You mean something like my Button Links? It seems to work for both hyperlinks and downloads.
boy_ofpersia wrote:is it sth like this!?
I have no idea what that means.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

sarhad12
Registered User
Posts: 18
Joined: Mon Oct 04, 2010 11:51 pm

Re: Custom BBCodes

Post by sarhad12 » Thu Jun 09, 2011 5:24 pm

Hi There is no custom bbcode for Veehd embbeding and Stagevu can you add them please or let me now how to embed them if its already there thanks

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Thu Jun 09, 2011 10:46 pm

sarhad12 wrote:There is no custom bbcode for Veehd embbeding and Stagevu can you add them please or let me now how to embed them if its already there thanks
You'll have much better luck if you provide URLs to those sites and post any embedded code here (in CODE tags, of course).

The solution is generally extremely simple. Look at the embedded code for any unique pieces and replace those with appropriate substitution variables.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

sarhad12
Registered User
Posts: 18
Joined: Mon Oct 04, 2010 11:51 pm

Re: Custom BBCodes

Post by sarhad12 » Thu Jun 09, 2011 11:30 pm

http://www.veehd.com and www.stagevu.com im not able to post codes but the both start and end with iframe.....

nefario1
Registered User
Posts: 1
Joined: Fri Jun 10, 2011 1:20 am

Re: Custom BBCodes

Post by nefario1 » Fri Jun 10, 2011 1:25 am

I have a multi-function script which allows me to call the function HighlightJass($text, $bb=false) and it will return the same text but with highlighted keywords. I understand how to create the BBcode, what I DON'T understand is where I put the script and how I access it.

I'm assuming there is a specific folder somewhere on my site that I can upload the code too, but I can't seem to find it.

Anyways, here is the script, any help would be appreciated:

Code: Select all

<?php
// Jass Highlighter
// Written by Asger Feldthaus (KaTTaNa)

if(!defined('JASS_HIGHLIGHTER_INCLUDED'))  // Make sure it is only included once.
{
define('JASS_HIGHLIGHTER_INCLUDED', true);

function FixWord($word) {
  $Blocks = 
   " constant native function takes returns endfunction if then else elseif endif loop endloop exitwhen ( ) [ ] ";
   
  $Keywords = 
   " call set local return not and or ";

  $Values = 
   " true false null ";

  $Types = 
   " nothing array string integer real code boolean handle event player widget unit destructable item ability buff ".
   "force group trigger triggercondition triggeraction timer location region rect boolexpr sound conditionfunc filterfunc ".
   "unitpool itempool race alliancetype racepreference gamestate igamestate fgamestate playerstate playergameresult ".
   "unitstate aidifficulty eventid gameevent playerevent playerunitevent unitevent limitop widgetevent dialogevent ".
   "unittype gamespeed gamedifficulty gametype mapflag mapvisibility mapsetting mapdensity mapcontrol playerslotstate ".
   "volumegroup camerafield camerasetup playercolor placement startlocprio raritycontrol blendmode texmapflags effect ".
   "effecttype weathereffect terraindeformation fogstate fogmodifier dialog button quest questitem defeatcondition timerdialog ".
   "leaderboard multiboard multiboarditem trackable gamecache version itemtype texttag playerscore lightning pathingtype image ubersplat ".
   "attacktype damagetype weapontype soundtype ";
   
  if (strpos($Blocks, " ".$word." ")!== false) {
    return "<b>".$word."</b>";
  } 
  elseif (strpos($Keywords, " ".$word." ")!== false) {
    return "<span style=\"color: Navy;\">".$word."</span>";
  }
  elseif (strpos($Values, " ".$word." ")!== false) {
    return "<span style=\"color: Maroon;\">".$word."</span>";
  }
  elseif (strpos($Types, " ".$word." ")!== false) {
    return "<span style=\"color: rgb(50, 100, 200);\">".$word."</span>";
  }
  return $word;
}

function HighlightJass($text, $bb=false) { 
  $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
  $special = "[]()";
  $str = "\"'";
  $trans = Array(">" => ">", "<" => "<", "&" => "&");
  if (!$bb)
  {
  	$text = strtr($text, $trans);
  }
  else
  {
  	// Do some backwards working
	$tr = array('&#40;' => '(',
				'&#41;' => ')',
				'&#91;' => '[',
				'&#93;' => ']',
				'"' => '"');
	$text = strtr($text,$tr);
  }
  
  $result = "";
  $comment = 0;
  $Lines = explode("\n", $text);
  $anchors = array();
  $n = 0;
  // First, find all functions and place an anchor there
  foreach($Lines as $Line) 
  {
  	// Leave anchor here?
	$reg = array();
	$anchors[$n] = '';
  	if (ereg('^ *(constant )? *(function|native)  *([a-zA-Z_][a-zA-Z_0-9]*)  *takes', $Line, $reg))
	{
		$l = max(0, $n-12);
		$anchors[$l] .= '<a name="'.strtolower($reg[3]).'"></a>';
	}
	$n++;
  }
  $n = 0;
  foreach($Lines as $Line) 
  {
    $result .= $anchors[$n];
	$Line = rtrim($Line);
	if ($isString) {
	  $result = $result . "</span>";
	}
    $stop = strpos($Line, "//");
	if ($stop === false) {
	  $stop = strlen($Line);
	  $comment = 0;
	} else {
	  $comment = 1;
	}
    $i = 0;
	$word = "";
	$isString = 0;
	$stringStarter = "";	
	$slashed = 0;
	// Highlight
	while ($i < $stop) {
	  $c = substr($Line, $i, 1);
	  $i += 1;
	  
	  if ($isString) {
	    $result = $result . $c;
	    if ($c == "\\") {
		  $slashed = ($slashed)? 0:1;
		} elseif (($c == $stringStarter) && !($slashed)) {
		  $result = $result . "</span>";
		  $isString = 0;
		} else {
		  $slashed = 0;
		}
	  } else {
	    // If normal character
	    if (strpos($chars, $c) !== false) {
          $word = $word . $c;
		
	    // If bracket
	    } elseif (strpos($special, $c) !== false) {
	      $result = $result . FixWord($word) . FixWord($c);
	    	$word = "";
		
	    // If string
        } elseif (strpos($str, $c) !== false) { 
	      $result = $result . FixWord($word) . "<span style=\"color: blue\">" . $c;
		  $slashed = 0;
		  $word = "";
		  $isString = 1;
		  $stringStarter = $c;
		
	    // If other character
	    } else {
	      $result = $result . FixWord($word) . $c;
		  $word = "";
        }
		
	  } // if ($isString)
	}
	$result = $result . FixWord($word);
	
	// Add comment
	if ($comment) {
	  $result = $result . "<span style=\"color: green;\">".strstr($Line, "//")."</span>";
	}
	// Add linebreak
	$result = $result . '<br />';
	$n++;
  }
  $result = substr($result, 0, strlen($result)-1); // Remove last linebreak
  
  if ($bb)
  {
  	$tr = array('(' => '&#40;',
				')' => '&#41;',
				'[' => '&#91;',
				']' => '&#93;');
	$result = strtr($result, $tr);
  }
  
  return $result;
}

}
?>

SnR
Registered User
Posts: 2
Joined: Tue May 24, 2011 3:44 am

Re: Custom BBCodes

Post by SnR » Fri Jun 10, 2011 3:53 am

Pony99CA wrote:You mean something like my Button Links? It seems to work for both hyperlinks and downloads.
Could i be directed to the Button links install info

Thanks

sarhad12
Registered User
Posts: 18
Joined: Mon Oct 04, 2010 11:51 pm

Re: Custom BBCodes

Post by sarhad12 » Fri Jun 10, 2011 10:10 am

Code: Select all

<iframe src="http://veehd.com/embed?v=2160336&w=720&h=297&t=3&s=7&p=divx" style="overflow:hidden ;border:0; width:720px; height:297px" scrolling="no" frameBorder="0"></iframe><p><a href="http://veehd.com/video/2160336_HEAT-1995-DE-NIRO-N-PACINO-2GETHER">HEAT (1995) DE NIRO N PACINO 2GETHER</a> from <a href="http://veehd.com/profile/3314">MOVIEMANIAK420</a> on <a href="http://veehd.com/">Veehd</a>.</p>
Custom BBcode for the above needed please

Locked

Return to “Custom BBCode Development and Requests”